Goerli Testnet

Contract

0x586f6781cBf1c506EeE0Da14E28DB1F63723234c

Overview

ETH Balance

0 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Set WL Item77340112022-10-08 14:19:24537 days ago1665238764IN
0x586f6781...63723234c
0 ETH0.000003960.04674716
Set WL Item77340102022-10-08 14:19:12537 days ago1665238752IN
0x586f6781...63723234c
0 ETH0.000003830.04674704
Set WL Item77340092022-10-08 14:19:00537 days ago1665238740IN
0x586f6781...63723234c
0 ETH0.00000450.04674662
0x6080604077339782022-10-08 14:11:36537 days ago1665238296IN
 Contract Creation
0 ETH0.000057080.04674785

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
99016132023-10-20 19:23:36160 days ago1697829816
0x586f6781...63723234c
0 ETH
98777692023-10-16 17:44:48164 days ago1697478288
0x586f6781...63723234c
0 ETH
96648462023-09-09 14:23:00201 days ago1694269380
0x586f6781...63723234c
0 ETH
96648382023-09-09 14:21:12201 days ago1694269272
0x586f6781...63723234c
0 ETH
96648322023-09-09 14:20:00201 days ago1694269200
0x586f6781...63723234c
0 ETH
96648322023-09-09 14:20:00201 days ago1694269200
0x586f6781...63723234c
0 ETH
96648292023-09-09 14:19:24201 days ago1694269164
0x586f6781...63723234c
0 ETH
96100602023-08-31 2:00:48211 days ago1693447248
0x586f6781...63723234c
0 ETH
95222582023-08-15 13:22:24227 days ago1692105744
0x586f6781...63723234c
0 ETH
95222512023-08-15 13:20:48227 days ago1692105648
0x586f6781...63723234c
0 ETH
95222092023-08-15 13:09:00227 days ago1692104940
0x586f6781...63723234c
0 ETH
95221692023-08-15 12:59:12227 days ago1692104352
0x586f6781...63723234c
0 ETH
93771372023-07-20 14:15:24252 days ago1689862524
0x586f6781...63723234c
0 ETH
91490042023-06-09 11:09:24294 days ago1686308964
0x586f6781...63723234c
0 ETH
91490012023-06-09 11:08:36294 days ago1686308916
0x586f6781...63723234c
0 ETH
91439832023-06-08 13:24:12295 days ago1686230652
0x586f6781...63723234c
0 ETH
90424622023-05-22 6:10:12312 days ago1684735812
0x586f6781...63723234c
0 ETH
90423652023-05-22 5:45:00312 days ago1684734300
0x586f6781...63723234c
0 ETH
90423612023-05-22 5:43:48312 days ago1684734228
0x586f6781...63723234c
0 ETH
90423532023-05-22 5:42:00312 days ago1684734120
0x586f6781...63723234c
0 ETH
90399872023-05-21 19:35:48312 days ago1684697748
0x586f6781...63723234c
0 ETH
90399492023-05-21 19:26:48312 days ago1684697208
0x586f6781...63723234c
0 ETH
90393512023-05-21 16:53:12312 days ago1684687992
0x586f6781...63723234c
0 ETH
90393322023-05-21 16:48:00312 days ago1684687680
0x586f6781...63723234c
0 ETH
90393152023-05-21 16:42:24312 days ago1684687344
0x586f6781...63723234c
0 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x37624e62...8F6FB72C1
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
AdvancedWhiteList

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : AdvancedWhiteList.sol
// SPDX-License-Identifier: MIT
// ENVELOP(NIFTSY) protocol V1 for NFT. WhitList Storage
pragma solidity 0.8.16;

import "Ownable.sol";
import "IAdvancedWhiteList.sol";
import "LibEnvelopTypes.sol";
//import "IERC721Mintable.sol";

contract AdvancedWhiteList is Ownable, IAdvancedWhiteList {

    
    mapping(address => ETypes.WhiteListItem) internal whiteList;
    mapping(address => bool) internal blackList;
    mapping(address => ETypes.Rules) internal rulesChecker;
    ETypes.Asset[] public whiteListedArray;
    ETypes.Asset[] public blackListedArray;

    /////////////////////////////////////////////////////////////////////
    //                    Admin functions                              //
    /////////////////////////////////////////////////////////////////////
    function setWLItem(ETypes.Asset calldata _asset, ETypes.WhiteListItem calldata _assetItem) 
        external onlyOwner 
    {
        require(_assetItem.transferFeeModel != address(0), 'Cant be zero, use default instead');
        whiteList[_asset.contractAddress] = _assetItem;
        bool alreadyExist;
        for (uint256 i = 0; i < whiteListedArray.length; i ++) {
            if (whiteListedArray[i].contractAddress == _asset.contractAddress){
                alreadyExist = true;
                break;
            }
        }
        if (!alreadyExist) {
               whiteListedArray.push(_asset); 
        }
        emit WhiteListItemChanged(
            _asset.contractAddress, 
            _assetItem.enabledForFee, 
            _assetItem.enabledForCollateral, 
            _assetItem.enabledRemoveFromCollateral,
            _assetItem.transferFeeModel
        );
    }

    function removeWLItem(ETypes.Asset calldata _asset) external onlyOwner {
        uint256 deletedIndex;
        for (uint256 i = 0; i < whiteListedArray.length; i ++) {
            if (whiteListedArray[i].contractAddress == _asset.contractAddress){
                deletedIndex = i;
                break;
            }
        }
        // Check that deleting item is not last array member
        // because in solidity we can remove only last item from array
        if (deletedIndex != whiteListedArray.length - 1) {
            // just replace deleted item with last item
            whiteListedArray[deletedIndex] = whiteListedArray[whiteListedArray.length - 1];
        } 
        whiteListedArray.pop();
        delete whiteList[_asset.contractAddress];
        emit WhiteListItemChanged(
            _asset.contractAddress, 
            false, false, false, address(0)
        );
    }

    function setBLItem(ETypes.Asset calldata _asset, bool _isBlackListed) external onlyOwner {
        blackList[_asset.contractAddress] = _isBlackListed;
        if (_isBlackListed) {
            for (uint256 i = 0; i < blackListedArray.length; i ++){
                if (blackListedArray[i].contractAddress == _asset.contractAddress) {
                    return;
                }
            }
            // There is no this address in array so  just add it
            blackListedArray.push(_asset);
        } else {
            uint256 deletedIndex;
            for (uint256 i = 0; i < blackListedArray.length; i ++){
                if (blackListedArray[i].contractAddress == _asset.contractAddress) {
                    deletedIndex = i;
                    break;
                }
            }
            // Check that deleting item is not last array member
            // because in solidity we can remove only last item from array
            if (deletedIndex != blackListedArray.length - 1) {
                // just replace deleted item with last item
                blackListedArray[deletedIndex] = blackListedArray[blackListedArray.length - 1];
            } 
            blackListedArray.pop();
            delete blackList[_asset.contractAddress];

        }
        emit BlackListItemChanged(_asset.contractAddress, _isBlackListed);
    }

    function setRules(address _asset, bytes2 _only, bytes2 _disabled) public onlyOwner {
        rulesChecker[_asset].onlythis = _only;
        rulesChecker[_asset].disabled = _disabled;
    }

    /////////////////////////////////////////////////////////////////////////////////////////////
    
    function getWLItem(address _asset) external view returns (ETypes.WhiteListItem memory) {
        return whiteList[_asset];
    }

    function getWLItemCount() external view returns (uint256) {
        return whiteListedArray.length;
    }

    function getWLAddressByIndex(uint256 _index) external view returns (ETypes.Asset memory) {
        return whiteListedArray[_index];
    }

    function getWLAddresses() external view returns (ETypes.Asset[] memory) {
        return whiteListedArray;
    }

     
    function getBLItem(address _asset) external view returns (bool) {
        return blackList[_asset];
    }

    function getBLItemCount() external view returns (uint256) {
        return blackListedArray.length;
    }

    function getBLAddressByIndex(uint256 _index) external view returns (ETypes.Asset memory) {
        return blackListedArray[_index];
    }

    function getBLAddresses() external view returns (ETypes.Asset[] memory) {
        return blackListedArray;
    }

    function enabledForCollateral(address _asset) external view returns (bool) {
        return whiteList[_asset].enabledForCollateral;
    }

    function enabledForFee(address _asset) external view returns (bool) {
        return whiteList[_asset].enabledForFee;
    }

    function enabledRemoveFromCollateral(address _asset) external view returns (bool) {
        return whiteList[_asset].enabledRemoveFromCollateral;
    }
    
    function rulesEnabled(address _asset, bytes2 _rules) external view returns (bool) {

        if (rulesChecker[_asset].onlythis != 0x0000) {
            return rulesChecker[_asset].onlythis == _rules;
        }

        if (rulesChecker[_asset].disabled != 0x0000) {
            return (rulesChecker[_asset].disabled & _rules) == 0x0000;
        }
        return true;
    }

    function validateRules(address _asset, bytes2 _rules) external view returns (bytes2) {
        if (rulesChecker[_asset].onlythis != 0x0000) {
            return rulesChecker[_asset].onlythis;
        }

        if (rulesChecker[_asset].disabled != 0x0000) {
            return (~rulesChecker[_asset].disabled) & _rules;
        }
        return _rules;
    }

}

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 5 of 10 : IAdvancedWhiteList.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;

//import "IERC721Enumerable.sol";
import "LibEnvelopTypes.sol";

interface IAdvancedWhiteList  {


    event WhiteListItemChanged(
        address indexed asset,
        bool enabledForFee,
        bool enabledForCollateral,
        bool enabledRemoveFromCollateral,
        address transferFeeModel
    );
    event BlackListItemChanged(
        address indexed asset,
        bool isBlackListed
    );
    function getWLItem(address _asset) external view returns (ETypes.WhiteListItem memory);
    function getWLItemCount() external view returns (uint256);
    function getBLItem(address _asset) external view returns (bool);
    function getBLItemCount() external view returns (uint256);
    function enabledForCollateral(address _asset) external view returns (bool);
    function enabledForFee(address _asset) external view returns (bool);
    function enabledRemoveFromCollateral(address _asset) external view returns (bool);
    function rulesEnabled(address _asset, bytes2 _rules) external view returns (bool);
    function validateRules(address _asset, bytes2 _rules) external view returns (bytes2);
}

File 6 of 10 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 7 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 8 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 9 of 10 : LibEnvelopTypes.sol
// SPDX-License-Identifier: MIT
// ENVELOP(NIFTSY) protocol V1 for NFT. 
pragma solidity 0.8.16;

library ETypes {

    enum AssetType {EMPTY, NATIVE, ERC20, ERC721, ERC1155, FUTURE1, FUTURE2, FUTURE3}
    
    struct Asset {
        AssetType assetType;
        address contractAddress;
    }

    struct AssetItem {
        Asset asset;
        uint256 tokenId;
        uint256 amount;
    }

    struct NFTItem {
        address contractAddress;
        uint256 tokenId;   
    }

    struct Fee {
        bytes1 feeType;
        uint256 param;
        address token; 
    }

    struct Lock {
        bytes1 lockType;
        uint256 param; 
    }

    struct Royalty {
        address beneficiary;
        uint16 percent;
    }

    struct WNFT {
        AssetItem inAsset;
        AssetItem[] collateral;
        address unWrapDestination;
        Fee[] fees;
        Lock[] locks;
        Royalty[] royalties;
        bytes2 rules;

    }

    struct INData {
        AssetItem inAsset;
        address unWrapDestination;
        Fee[] fees;
        Lock[] locks;
        Royalty[] royalties;
        AssetType outType;
        uint256 outBalance;      //0- for 721 and any amount for 1155
        bytes2 rules;

    }

    struct WhiteListItem {
        bool enabledForFee;
        bool enabledForCollateral;
        bool enabledRemoveFromCollateral;
        address transferFeeModel;
    }

    struct Rules {
        bytes2 onlythis;
        bytes2 disabled;
    }

}

File 10 of 10 : IERC721Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;

import "IERC721Metadata.sol";

interface IERC721Mintable is  IERC721Metadata {
     function mint(address _to, uint256 _tokenId) external;
     function burn(uint256 _tokenId) external;
     function exists(uint256 _tokenId) external view returns(bool);
}

File 11 of 10 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "AdvancedWhiteList.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"isBlackListed","type":"bool"}],"name":"BlackListItemChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"enabledForFee","type":"bool"},{"indexed":false,"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"indexed":false,"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"indexed":false,"internalType":"address","name":"transferFeeModel","type":"address"}],"name":"WhiteListItemChanged","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blackListedArray","outputs":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledForCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledForFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledRemoveFromCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getBLAddressByIndex","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBLAddresses","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getBLItem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBLItemCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getWLAddressByIndex","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWLAddresses","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getWLItem","outputs":[{"components":[{"internalType":"bool","name":"enabledForFee","type":"bool"},{"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"internalType":"address","name":"transferFeeModel","type":"address"}],"internalType":"struct ETypes.WhiteListItem","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWLItemCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"}],"name":"removeWLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_rules","type":"bytes2"}],"name":"rulesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"},{"internalType":"bool","name":"_isBlackListed","type":"bool"}],"name":"setBLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_only","type":"bytes2"},{"internalType":"bytes2","name":"_disabled","type":"bytes2"}],"name":"setRules","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"},{"components":[{"internalType":"bool","name":"enabledForFee","type":"bool"},{"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"internalType":"address","name":"transferFeeModel","type":"address"}],"internalType":"struct ETypes.WhiteListItem","name":"_assetItem","type":"tuple"}],"name":"setWLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_rules","type":"bytes2"}],"name":"validateRules","outputs":[{"internalType":"bytes2","name":"","type":"bytes2"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whiteListedArray","outputs":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638f8b138e116100b8578063c31934e11161007c578063c31934e114610393578063d294900e146103c5578063d9546321146103d8578063dcff984d146103f8578063eb9ae17c1461040b578063f2fde38b1461043c57600080fd5b80638f8b138e146102ff5780639a567e321461032b578063aa628fc614610333578063b6e306ac14610354578063b9a283381461038057600080fd5b806356bcec971161010a57806356bcec97146101dc578063715018a6146101ee5780637181dc9d146101f65780637279c6ed1461020957806373cf00f6146102115780638da5cb5b146102e457600080fd5b806320ca943a1461014757806337a0b0d2146101655780634d975ba21461019157806352cdc6a6146101a657806354676f4f146101c9575b600080fd5b61014f61044f565b60405161015c91906110c7565b60405180910390f35b610178610173366004611146565b6104eb565b6040516001600160f01b0319909116815260200161015c565b6101a461019f36600461118d565b61059d565b005b6101b96101b4366004611146565b6107be565b604051901515815260200161015c565b6101a46101d73660046111cd565b61088a565b6005545b60405190815260200161015c565b6101a46108ce565b6101a4610204366004611220565b6108e2565b61014f610bca565b6102a261021f366004611258565b60408051608080820183526000808352602080840182905283850182905260609384018290526001600160a01b0395861682526001815290849020845192830185525460ff808216151584526101008204811615159284019290925262010000810490911615159382019390935263010000009092049092169181019190915290565b60405161015c91908151151581526020808301511515908201526040808301511515908201526060918201516001600160a01b03169181019190915260800190565b6000546040516001600160a01b03909116815260200161015c565b6101b961030d366004611258565b6001600160a01b031660009081526002602052604090205460ff1690565b6004546101e0565b61034661034136600461127c565b610c5d565b60405161015c929190611295565b6101b9610362366004611258565b6001600160a01b031660009081526001602052604090205460ff1690565b61034661038e36600461127c565b610c90565b6101b96103a1366004611258565b6001600160a01b031660009081526001602052604090205462010000900460ff1690565b6101a46103d33660046112bb565b610ca0565b6103eb6103e636600461127c565b610ea2565b60405161015c91906112d7565b6103eb61040636600461127c565b610f26565b6101b9610419366004611258565b6001600160a01b0316600090815260016020526040902054610100900460ff1690565b6101a461044a366004611258565b610f4d565b60606004805480602002602001604051908101604052809291908181526020016000905b828210156104e257600084815260209020604080518082019091529083018054829060ff1660078111156104a9576104a9611070565b60078111156104ba576104ba611070565b8152905461010090046001600160a01b03166020918201529082526001929092019101610473565b50505050905090565b6001600160a01b03821660009081526003602052604081205460f01b6001600160f01b0319161561053857506001600160a01b03821660009081526003602052604090205460f01b610597565b6001600160a01b03831660009081526003602052604090205462010000900460f01b6001600160f01b0319161561059457506001600160a01b03821660009081526003602052604090205462010000900460f01b198116610597565b50805b92915050565b6105a5610fc6565b60006105b76080830160608401611258565b6001600160a01b03160361061c5760405162461bcd60e51b815260206004820152602160248201527f43616e74206265207a65726f2c207573652064656661756c7420696e737465616044820152601960fa1b60648201526084015b60405180910390fd5b80600160006106316040860160208701611258565b6001600160a01b03168152602081019190915260400160002061065482826112f2565b5060009050805b6004548110156106cb576106756040850160208601611258565b6001600160a01b03166004828154811061069157610691611397565b60009182526020909120015461010090046001600160a01b0316036106b957600191506106cb565b806106c3816113c3565b91505061065b565b5080610712576004805460018101825560009190915283907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0161070f82826113dc565b50505b6107226040840160208501611258565b6001600160a01b03167f68752e399b0ebafcb887afbbb8962f48e85608db11b51dc8815ca005c83b8ff26107596020850185611430565b6107696040860160208701611430565b6107796060870160408801611430565b6107896080880160608901611258565b6040805194151585529215156020850152901515838301526001600160a01b03166060830152519081900360800190a2505050565b6001600160a01b03821660009081526003602052604081205460f01b6001600160f01b0319161561081b57506001600160a01b03821660009081526003602052604090205460f01b6001600160f01b031990811690821614610597565b6001600160a01b03831660009081526003602052604090205462010000900460f01b6001600160f01b0319161561088157506001600160a01b03821660009081526003602052604090205462010000900460f01b81166001600160f01b03191615610597565b50600192915050565b610892610fc6565b6001600160a01b03929092166000908152600360205260409020805460f092831c63ffffffff1990911617620100009390921c92909202179055565b6108d6610fc6565b6108e06000611020565b565b6108ea610fc6565b80600260006108ff6040860160208701611258565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580156109e25760005b60055481101561099c5761094a6040840160208501611258565b6001600160a01b03166005828154811061096657610966611397565b60009182526020909120015461010090046001600160a01b03160361098a57505050565b80610994816113c3565b915050610930565b506005805460018101825560009190915282907f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0016109db82826113dc565b5050610b71565b6000805b600554811015610a5557610a006040850160208601611258565b6001600160a01b031660058281548110610a1c57610a1c611397565b60009182526020909120015461010090046001600160a01b031603610a4357809150610a55565b80610a4d816113c3565b9150506109e6565b50600554610a659060019061144d565b8114610b035760058054610a7b9060019061144d565b81548110610a8b57610a8b611397565b9060005260206000200160058281548110610aa857610aa8611397565b60009182526020909120825491018054909160ff1690829060ff19166001836007811115610ad857610ad8611070565b021790555090548154610100600160a81b031916610100918290046001600160a01b03169091021790555b6005805480610b1457610b14611460565b60008281526020808220830160001990810180546001600160a81b031916905590920190925560029190610b4e9060408701908701611258565b6001600160a01b031681526020810191909152604001600020805460ff19169055505b610b816040830160208401611258565b6001600160a01b03167fad86a7fad4fca4785e76e250dfc050962483258bc01904e846d4f52b23bc841282604051610bbd911515815260200190565b60405180910390a25b5050565b60606005805480602002602001604051908101604052809291908181526020016000905b828210156104e257600084815260209020604080518082019091529083018054829060ff166007811115610c2457610c24611070565b6007811115610c3557610c35611070565b8152905461010090046001600160a01b03166020918201529082526001929092019101610bee565b60048181548110610c6d57600080fd5b60009182526020909120015460ff8116915061010090046001600160a01b031682565b60058181548110610c6d57600080fd5b610ca8610fc6565b6000805b600454811015610d1b57610cc66040840160208501611258565b6001600160a01b031660048281548110610ce257610ce2611397565b60009182526020909120015461010090046001600160a01b031603610d0957809150610d1b565b80610d13816113c3565b915050610cac565b50600454610d2b9060019061144d565b8114610dc95760048054610d419060019061144d565b81548110610d5157610d51611397565b9060005260206000200160048281548110610d6e57610d6e611397565b60009182526020909120825491018054909160ff1690829060ff19166001836007811115610d9e57610d9e611070565b021790555090548154610100600160a81b031916610100918290046001600160a01b03169091021790555b6004805480610dda57610dda611460565b60008281526020808220830160001990810180546001600160a81b031916905590920190925560019190610e149060408601908601611258565b6001600160a01b03168152602080820192909252604090810160002080546001600160b81b0319169055610e4d91908401908401611258565b6040805160008082526020820181905291810182905260608101919091526001600160a01b0391909116907f68752e399b0ebafcb887afbbb8962f48e85608db11b51dc8815ca005c83b8ff290608001610bbd565b604080518082019091526000808252602082015260048281548110610ec957610ec9611397565b600091825260209091206040805180820190915291018054829060ff166007811115610ef757610ef7611070565b6007811115610f0857610f08611070565b8152905461010090046001600160a01b031660209091015292915050565b604080518082019091526000808252602082015260058281548110610ec957610ec9611397565b610f55610fc6565b6001600160a01b038116610fba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610613565b610fc381611020565b50565b6000546001600160a01b031633146108e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610613565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052602160045260246000fd5b600881106110a457634e487b7160e01b600052602160045260246000fd5b9052565b6110b3828251611086565b6020908101516001600160a01b0316910152565b602080825282518282018190526000919060409081850190868401855b82811015611107576110f78483516110a8565b92840192908501906001016110e4565b5091979650505050505050565b6001600160a01b0381168114610fc357600080fd5b80356001600160f01b03198116811461114157600080fd5b919050565b6000806040838503121561115957600080fd5b823561116481611114565b915061117260208401611129565b90509250929050565b60006040828403121561059457600080fd5b60008082840360c08112156111a157600080fd5b6111ab858561117b565b92506080603f19820112156111bf57600080fd5b506040830190509250929050565b6000806000606084860312156111e257600080fd5b83356111ed81611114565b92506111fb60208501611129565b915061120960408501611129565b90509250925092565b8015158114610fc357600080fd5b6000806060838503121561123357600080fd5b61123d848461117b565b9150604083013561124d81611212565b809150509250929050565b60006020828403121561126a57600080fd5b813561127581611114565b9392505050565b60006020828403121561128e57600080fd5b5035919050565b604081016112a38285611086565b6001600160a01b039290921660209190910152919050565b6000604082840312156112cd57600080fd5b611275838361117b565b6040810161059782846110a8565b6000813561059781611114565b81356112fd81611212565b815460ff19811691151560ff169182178355602084013561131d81611212565b61ff0090151560081b1661ffff198216831781178455604085013561134181611212565b62ff000081151560101b168462ffffff19851617831717855550505050610bc661136d606084016112e5565b8280546301000000600160b81b03191660189290921b6301000000600160b81b0316919091179055565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016113d5576113d56113ad565b5060010190565b8135600881106113eb57600080fd5b815460ff821691508160ff198216178355602084013561140a81611114565b6001600160a81b03199190911690911760089190911b610100600160a81b031617905550565b60006020828403121561144257600080fd5b813561127581611212565b81810381811115610597576105976113ad565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220f86fd01766ec0ac50d1e281013978c5a29f55d44b7d4ffe7b6a6b424bd6e0db664736f6c63430008100033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.