ETH Price: $3,131.87 (-4.50%)

Contract

0x1Fa5fAD3CC216309801873646e8e2a03377eCA7b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040110883342020-10-19 19:14:001486 days ago1603134840IN
 Create: ERC20NFTWrapper
0 ETH0.0298778730

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC20NFTWrapper

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-20
*/

// File: @openzeppelin\contracts\GSN\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin\contracts\math\SafeMath.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin\contracts\utils\Address.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin\contracts\token\ERC20\IERC20.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: IBaseTokenData.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

interface IBaseTokenData {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);
}

// File: IERC20Data.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


interface IERC20Data is IBaseTokenData {
    function decimals() external view returns (uint256);
}

// File: IERC20NFTWrapper.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



interface IERC20NFTWrapper is IERC20, IERC20Data {

    function init(uint256 objectId, string memory name, string memory symbol, uint256 decimals) external;

    function mainWrapper() external view returns (address);

    function objectId() external view returns (uint256);

    function mint(address owner, uint256 amount) external;

    function burn(address owner, uint256 amount) external;
}

// File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.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: @openzeppelin\contracts\token\ERC1155\IERC1155.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

// File: @openzeppelin\contracts\token\ERC1155\IERC1155Receiver.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

// File: IERC1155Views.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @title IERC1155Views - An optional utility interface to improve the ERC-1155 Standard.
 * @dev This interface introduces some additional capabilities for ERC-1155 Tokens.
 */
interface IERC1155Views {

    /**
     * @dev Returns the total supply of the given token id
     * @param objectId the id of the token whose availability you want to know 
     */
    function totalSupply(uint256 objectId) external view returns (uint256);

    /**
     * @dev Returns the name of the given token id
     * @param objectId the id of the token whose name you want to know 
     */
    function name(uint256 objectId) external view returns (string memory);

    /**
     * @dev Returns the symbol of the given token id
     * @param objectId the id of the token whose symbol you want to know 
     */
    function symbol(uint256 objectId) external view returns (string memory);

    /**
     * @dev Returns the decimals of the given token id
     * @param objectId the id of the token whose decimals you want to know 
     */
    function decimals(uint256 objectId) external view returns (uint256);

    /**
     * @dev Returns the uri of the given token id
     * @param objectId the id of the token whose uri you want to know 
     */
    function uri(uint256 objectId) external view returns (string memory);
}

// File: IEthItem.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;






interface IEthItem is IERC1155, IERC1155Views, IBaseTokenData {

    function init(
        address eRC20NFTWrapperModel,
        string calldata name,
        string calldata symbol
    ) external;

    function toERC20WrapperAmount(uint256 objectId, uint256 ethItemAmount) external view returns (uint256 erc20WrapperAmount);

    function toEthItemAmount(uint256 objectId, uint256 erc20WrapperAmount) external view returns (uint256 ethItemAmount);

    function erc20NFTWrapperModel() external view returns (address);

    function asERC20(uint256 objectId) external view returns (IERC20NFTWrapper);

    function emitTransferSingleEvent(address sender, address from, address to, uint256 objectId, uint256 amount) external;

    function mint(uint256 amount, string calldata partialUri)
        external
        returns (uint256, address);

    function burn(
        uint256 objectId,
        uint256 amount
    ) external;

    function burnBatch(
        uint256[] calldata objectIds,
        uint256[] calldata amounts
    ) external;

    event Mint(uint256 objectId, address tokenAddress, uint256 amount);
}

// File: ERC20NFTWrapper.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;






contract ERC20NFTWrapper is Context, IERC20NFTWrapper {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) internal _balances;

    mapping(address => mapping(address => uint256)) internal _allowances;

    uint256 internal _totalSupply;

    string internal _name;
    string internal _symbol;
    uint256 internal _decimals;

    address internal _mainWrapper;
    uint256 internal _objectId;

    function init(uint256 objectId, string memory name, string memory symbol, uint256 decimals) public virtual override {
        require(_mainWrapper == address(0), "Init already called!");
        _mainWrapper = msg.sender;
        _objectId = objectId;
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    function mainWrapper() public virtual override view returns (address) {
        return _mainWrapper;
    }

    function objectId() public virtual override view returns (uint256) {
        return _objectId;
    }

    function name() public virtual override view returns (string memory) {
        return _name;
    }

    function symbol() public virtual override view returns (string memory) {
        return _symbol;
    }

    function decimals() public virtual override view returns (uint256) {
        return _decimals;
    }

    function totalSupply() public virtual override view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account)
        public
        virtual
        override
        view
        returns (uint256)
    {
        return _balances[account];
    }

    function mint(address owner, uint256 amount) public virtual override {
        require(msg.sender == _mainWrapper, "Unauthorized action!");
        _mint(owner, amount);
    }

    function burn(address owner, uint256 amount) public virtual override {
        require(
            msg.sender == _mainWrapper,
            "Unauthorized action!"
        );
        _burn(owner, amount);
    }

    function transfer(address recipient, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender)
        public
        virtual
        override
        view
        returns (uint256 allowanceAmount)
    {
        allowanceAmount = _allowances[owner][spender];
        if (
            allowanceAmount == 0 &&
            IEthItem(_mainWrapper).isApprovedForAll(owner, spender)
        ) {
            allowanceAmount = _totalSupply;
        }
    }

    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        if (_msgSender() == _mainWrapper) {
            return true;
        }
        if (
            !IEthItem(_mainWrapper).isApprovedForAll(
                sender,
                _msgSender()
            )
        ) {
            _approve(
                sender,
                _msgSender(),
                _allowances[sender][_msgSender()].sub(
                    amount,
                    "ERC20: transfer amount exceeds allowance"
                )
            );
        }
        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(
            amount,
            "ERC20: transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
        if (_msgSender() != _mainWrapper) {
            IEthItem(_mainWrapper).emitTransferSingleEvent(_msgSender(), sender, recipient, _objectId, amount);
        }
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(
            amount,
            "ERC20: burn amount exceeds balance"
        );
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"allowanceAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mainWrapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"objectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061110d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806370a082311161008c578063a9059cbb11610066578063a9059cbb146103c2578063c889c5f4146103ee578063d4d5a06d14610412578063dd62ed3e1461041a576100ea565b806370a082311461036857806395d89b411461038e5780639dc29fac14610396576100ea565b806323b872dd116100c857806323b872dd146101c6578063313ce567146101fc57806340c10f1914610204578063620b29cd14610232576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f7610448565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b0381351690602001356104de565b604080519115158252519081900360200190f35b6101b46104fc565b60408051918252519081900360200190f35b610198600480360360608110156101dc57600080fd5b506001600160a01b03813581169160208101359091169060400135610502565b6101b461064c565b6102306004803603604081101561021a57600080fd5b506001600160a01b038135169060200135610652565b005b6102306004803603608081101561024857600080fd5b8135919081019060408101602082013564010000000081111561026a57600080fd5b82018360208201111561027c57600080fd5b8035906020019184600183028401116401000000008311171561029e57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102f157600080fd5b82018360208201111561030357600080fd5b8035906020019184600183028401116401000000008311171561032557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106b6915050565b6101b46004803603602081101561037e57600080fd5b50356001600160a01b0316610752565b6100f761076d565b610230600480360360408110156103ac57600080fd5b506001600160a01b0381351690602001356107ce565b610198600480360360408110156103d857600080fd5b506001600160a01b03813516906020013561082e565b6103f6610842565b604080516001600160a01b039092168252519081900360200190f35b6101b4610851565b6101b46004803603604081101561043057600080fd5b506001600160a01b0381358116916020013516610857565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b60006104f26104eb610917565b848461091b565b5060015b92915050565b60025490565b600061050f848484610a07565b6006546001600160a01b0316610523610917565b6001600160a01b0316141561053a57506001610645565b6006546001600160a01b031663e985e9c585610554610917565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156105a157600080fd5b505afa1580156105b5573d6000803e3d6000fd5b505050506040513d60208110156105cb57600080fd5b505161064157610641846105dd610917565b61063c85604051806060016040528060288152602001611046602891396001600160a01b038a1660009081526001602052604081209061061b610917565b6001600160a01b031681526020810191909152604001600020549190610c1e565b61091b565b5060015b9392505050565b60055490565b6006546001600160a01b031633146106a8576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6106b28282610cb5565b5050565b6006546001600160a01b03161561070b576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b0319163317905560078490558251610735906003906020860190610f25565b508151610749906004906020850190610f25565b50600555505050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d45780601f106104a9576101008083540402835291602001916104d4565b6006546001600160a01b03163314610824576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6106b28282610d99565b60006104f261083b610917565b8484610a07565b6006546001600160a01b031690565b60075490565b6001600160a01b038083166000908152600160209081526040808320938516835292905220548015801561090857506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b1580156108db57600080fd5b505afa1580156108ef573d6000803e3d6000fd5b505050506040513d602081101561090557600080fd5b50515b156104f6575060025492915050565b3390565b6001600160a01b0383166109605760405162461bcd60e51b81526004018080602001828103825260248152602001806110b46024913960400191505060405180910390fd5b6001600160a01b0382166109a55760405162461bcd60e51b8152600401808060200182810382526022815260200180610ffe6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610a4c5760405162461bcd60e51b815260040180806020018281038252602581526020018061108f6025913960400191505060405180910390fd5b6001600160a01b038216610a915760405162461bcd60e51b8152600401808060200182810382526023815260200180610fb96023913960400191505060405180910390fd5b610ace81604051806060016040528060268152602001611020602691396001600160a01b0386166000908152602081905260409020549190610c1e565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610afd9082610e89565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b0316610b66610917565b6001600160a01b031614610c19576006546001600160a01b031663e82b15f4610b8d610917565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b158015610c0057600080fd5b505af1158015610c14573d6000803e3d6000fd5b505050505b505050565b60008184841115610cad5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c72578181015183820152602001610c5a565b50505050905090810190601f168015610c9f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610d10576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254610d1d9082610e89565b6002556001600160a01b038216600090815260208190526040902054610d439082610e89565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610dde5760405162461bcd60e51b815260040180806020018281038252602181526020018061106e6021913960400191505060405180910390fd5b610e1b81604051806060016040528060228152602001610fdc602291396001600160a01b0385166000908152602081905260409020549190610c1e565b6001600160a01b038316600090815260208190526040902055600254610e419082610ee3565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600082820183811015610645576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061064583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c1e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610f6657805160ff1916838001178555610f93565b82800160010185558215610f93579182015b82811115610f93578251825591602001919060010190610f78565b50610f9f929150610fa3565b5090565b5b80821115610f9f5760008155600101610fa456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a2646970667358221220559da9f1c2cc51187be7239fe8e9cf74c29a2e412b47783edf1478bb81d88d5764736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806370a082311161008c578063a9059cbb11610066578063a9059cbb146103c2578063c889c5f4146103ee578063d4d5a06d14610412578063dd62ed3e1461041a576100ea565b806370a082311461036857806395d89b411461038e5780639dc29fac14610396576100ea565b806323b872dd116100c857806323b872dd146101c6578063313ce567146101fc57806340c10f1914610204578063620b29cd14610232576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f7610448565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b0381351690602001356104de565b604080519115158252519081900360200190f35b6101b46104fc565b60408051918252519081900360200190f35b610198600480360360608110156101dc57600080fd5b506001600160a01b03813581169160208101359091169060400135610502565b6101b461064c565b6102306004803603604081101561021a57600080fd5b506001600160a01b038135169060200135610652565b005b6102306004803603608081101561024857600080fd5b8135919081019060408101602082013564010000000081111561026a57600080fd5b82018360208201111561027c57600080fd5b8035906020019184600183028401116401000000008311171561029e57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102f157600080fd5b82018360208201111561030357600080fd5b8035906020019184600183028401116401000000008311171561032557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106b6915050565b6101b46004803603602081101561037e57600080fd5b50356001600160a01b0316610752565b6100f761076d565b610230600480360360408110156103ac57600080fd5b506001600160a01b0381351690602001356107ce565b610198600480360360408110156103d857600080fd5b506001600160a01b03813516906020013561082e565b6103f6610842565b604080516001600160a01b039092168252519081900360200190f35b6101b4610851565b6101b46004803603604081101561043057600080fd5b506001600160a01b0381358116916020013516610857565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b60006104f26104eb610917565b848461091b565b5060015b92915050565b60025490565b600061050f848484610a07565b6006546001600160a01b0316610523610917565b6001600160a01b0316141561053a57506001610645565b6006546001600160a01b031663e985e9c585610554610917565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156105a157600080fd5b505afa1580156105b5573d6000803e3d6000fd5b505050506040513d60208110156105cb57600080fd5b505161064157610641846105dd610917565b61063c85604051806060016040528060288152602001611046602891396001600160a01b038a1660009081526001602052604081209061061b610917565b6001600160a01b031681526020810191909152604001600020549190610c1e565b61091b565b5060015b9392505050565b60055490565b6006546001600160a01b031633146106a8576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6106b28282610cb5565b5050565b6006546001600160a01b03161561070b576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b0319163317905560078490558251610735906003906020860190610f25565b508151610749906004906020850190610f25565b50600555505050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d45780601f106104a9576101008083540402835291602001916104d4565b6006546001600160a01b03163314610824576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6106b28282610d99565b60006104f261083b610917565b8484610a07565b6006546001600160a01b031690565b60075490565b6001600160a01b038083166000908152600160209081526040808320938516835292905220548015801561090857506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b1580156108db57600080fd5b505afa1580156108ef573d6000803e3d6000fd5b505050506040513d602081101561090557600080fd5b50515b156104f6575060025492915050565b3390565b6001600160a01b0383166109605760405162461bcd60e51b81526004018080602001828103825260248152602001806110b46024913960400191505060405180910390fd5b6001600160a01b0382166109a55760405162461bcd60e51b8152600401808060200182810382526022815260200180610ffe6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610a4c5760405162461bcd60e51b815260040180806020018281038252602581526020018061108f6025913960400191505060405180910390fd5b6001600160a01b038216610a915760405162461bcd60e51b8152600401808060200182810382526023815260200180610fb96023913960400191505060405180910390fd5b610ace81604051806060016040528060268152602001611020602691396001600160a01b0386166000908152602081905260409020549190610c1e565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610afd9082610e89565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b0316610b66610917565b6001600160a01b031614610c19576006546001600160a01b031663e82b15f4610b8d610917565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b158015610c0057600080fd5b505af1158015610c14573d6000803e3d6000fd5b505050505b505050565b60008184841115610cad5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c72578181015183820152602001610c5a565b50505050905090810190601f168015610c9f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610d10576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254610d1d9082610e89565b6002556001600160a01b038216600090815260208190526040902054610d439082610e89565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610dde5760405162461bcd60e51b815260040180806020018281038252602181526020018061106e6021913960400191505060405180910390fd5b610e1b81604051806060016040528060228152602001610fdc602291396001600160a01b0385166000908152602081905260409020549190610c1e565b6001600160a01b038316600090815260208190526040902055600254610e419082610ee3565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600082820183811015610645576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061064583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c1e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610f6657805160ff1916838001178555610f93565b82800160010185558215610f93579182015b82811115610f93578251825591602001919060010190610f78565b50610f9f929150610fa3565b5090565b5b80821115610f9f5760008155600101610fa456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a2646970667358221220559da9f1c2cc51187be7239fe8e9cf74c29a2e412b47783edf1478bb81d88d5764736f6c634300060c0033

Deployed Bytecode Sourcemap

26432:5519:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27470:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29159:210;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29159:210:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;27800:108;;;:::i;:::-;;;;;;;;;;;;;;;;29377:731;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29377:731:0;;;;;;;;;;;;;;;;;:::i;27690:102::-;;;:::i;28101:178::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28101:178:0;;;;;;;;:::i;:::-;;26894:342;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26894:342:0;;;;;;;;-1:-1:-1;26894:342:0;;-1:-1:-1;;26894:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26894:342:0;;-1:-1:-1;;26894:342:0;;;-1:-1:-1;26894:342:0;;-1:-1:-1;;26894:342:0:i;27916:177::-;;;;;;;;;;;;;;;;-1:-1:-1;27916:177:0;-1:-1:-1;;;;;27916:177:0;;:::i;27578:104::-;;;:::i;28287:215::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28287:215:0;;;;;;;;:::i;28510:216::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28510:216:0;;;;;;;;:::i;27244:108::-;;;:::i;:::-;;;;-1:-1:-1;;;;;27244:108:0;;;;;;;;;;;;;;27360:102;;;:::i;28734:417::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28734:417:0;;;;;;;;;;:::i;27470:100::-;27557:5;27550:12;;;;;;;;-1:-1:-1;;27550:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27524:13;;27550:12;;27557:5;;27550:12;;27557:5;27550:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27470:100;:::o;29159:210::-;29278:4;29300:39;29309:12;:10;:12::i;:::-;29323:7;29332:6;29300:8;:39::i;:::-;-1:-1:-1;29357:4:0;29159:210;;;;;:::o;27800:108::-;27888:12;;27800:108;:::o;29377:731::-;29517:4;29534:36;29544:6;29552:9;29563:6;29534:9;:36::i;:::-;29601:12;;-1:-1:-1;;;;;29601:12:0;29585;:10;:12::i;:::-;-1:-1:-1;;;;;29585:28:0;;29581:72;;;-1:-1:-1;29637:4:0;29630:11;;29581:72;29691:12;;-1:-1:-1;;;;;29691:12:0;29682:39;29740:6;29765:12;:10;:12::i;:::-;29682:110;;;;;;;;;;;;;-1:-1:-1;;;;;29682:110:0;;;;;;-1:-1:-1;;;;;29682:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29682:110:0;29663:416;;29819:248;29846:6;29871:12;:10;:12::i;:::-;29902:150;29962:6;29902:150;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29902:19:0;;;;;;:11;:19;;;;;;29922:12;:10;:12::i;:::-;-1:-1:-1;;;;;29902:33:0;;;;;;;;;;;;-1:-1:-1;29902:33:0;;;:150;:37;:150::i;:::-;29819:8;:248::i;:::-;-1:-1:-1;30096:4:0;29377:731;;;;;;:::o;27690:102::-;27775:9;;27690:102;:::o;28101:178::-;28203:12;;-1:-1:-1;;;;;28203:12:0;28189:10;:26;28181:59;;;;;-1:-1:-1;;;28181:59:0;;;;;;;;;;;;-1:-1:-1;;;28181:59:0;;;;;;;;;;;;;;;28251:20;28257:5;28264:6;28251:5;:20::i;:::-;28101:178;;:::o;26894:342::-;27029:12;;-1:-1:-1;;;;;27029:12:0;:26;27021:59;;;;;-1:-1:-1;;;27021:59:0;;;;;;;;;;;;-1:-1:-1;;;27021:59:0;;;;;;;;;;;;;;;27091:12;:25;;-1:-1:-1;;;;;;27091:25:0;27106:10;27091:25;;;27127:9;:20;;;27158:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;27181:16:0;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;27208:9:0;:20;-1:-1:-1;;;26894:342:0:o;27916:177::-;-1:-1:-1;;;;;28067:18:0;28035:7;28067:18;;;;;;;;;;;;27916:177::o;27578:104::-;27667:7;27660:14;;;;;;;;-1:-1:-1;;27660:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27634:13;;27660:14;;27667:7;;27660:14;;27667:7;27660:14;;;;;;;;;;;;;;;;;;;;;;;;28287:215;28403:12;;-1:-1:-1;;;;;28403:12:0;28389:10;:26;28367:96;;;;;-1:-1:-1;;;28367:96:0;;;;;;;;;;;;-1:-1:-1;;;28367:96:0;;;;;;;;;;;;;;;28474:20;28480:5;28487:6;28474:5;:20::i;28510:216::-;28632:4;28654:42;28664:12;:10;:12::i;:::-;28678:9;28689:6;28654:9;:42::i;27244:108::-;27332:12;;-1:-1:-1;;;;;27332:12:0;27244:108;:::o;27360:102::-;27445:9;;27360:102;:::o;28734:417::-;-1:-1:-1;;;;;28927:18:0;;;28868:23;28927:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;28983:20;;:92;;;;-1:-1:-1;29029:12:0;;29020:55;;;-1:-1:-1;;;29020:55:0;;-1:-1:-1;;;;;29020:55:0;;;;;;;;;;;;;;;;29029:12;;;;;29020:39;;:55;;;;;;;;;;;;;;29029:12;29020:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29020:55:0;28983:92;28965:179;;;-1:-1:-1;29120:12:0;;28734:417;;;;:::o;657:106::-;745:10;657:106;:::o;31568:380::-;-1:-1:-1;;;;;31704:19:0;;31696:68;;;;-1:-1:-1;;;31696:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31783:21:0;;31775:68;;;;-1:-1:-1;;;31775:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31856:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;31908:32;;;;;;;;;;;;;;;;;31568:380;;;:::o;30116:719::-;-1:-1:-1;;;;;30256:20:0;;30248:70;;;;-1:-1:-1;;;30248:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30337:23:0;;30329:71;;;;-1:-1:-1;;;30329:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30433:108;30469:6;30433:108;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30433:17:0;;:9;:17;;;;;;;;;;;;:108;:21;:108::i;:::-;-1:-1:-1;;;;;30413:17:0;;;:9;:17;;;;;;;;;;;:128;;;;30575:20;;;;;;;:32;;30600:6;30575:24;:32::i;:::-;-1:-1:-1;;;;;30552:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;30623:35;;;;;;;30552:20;;30623:35;;;;;;;;;;;;;30689:12;;-1:-1:-1;;;;;30689:12:0;30673;:10;:12::i;:::-;-1:-1:-1;;;;;30673:28:0;;30669:159;;30727:12;;-1:-1:-1;;;;;30727:12:0;30718:46;30765:12;:10;:12::i;:::-;30779:6;30787:9;30798;;30809:6;30718:98;;;;;;;;;;;;;-1:-1:-1;;;;;30718:98:0;;;;;;-1:-1:-1;;;;;30718:98:0;;;;;;-1:-1:-1;;;;;30718:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30669:159;30116:719;;;:::o;2870:192::-;2956:7;2992:12;2984:6;;;;2976:29;;;;-1:-1:-1;;;2976:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3028:5:0;;;2870:192::o;30843:316::-;-1:-1:-1;;;;;30927:21:0;;30919:65;;;;;-1:-1:-1;;;30919:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31012:12;;:24;;31029:6;31012:16;:24::i;:::-;30997:12;:39;-1:-1:-1;;;;;31068:18:0;;:9;:18;;;;;;;;;;;:30;;31091:6;31068:22;:30::i;:::-;-1:-1:-1;;;;;31047:18:0;;:9;:18;;;;;;;;;;;:51;;;;31114:37;;;;;;;31047:18;;:9;;31114:37;;;;;;;;;;30843:316;;:::o;31167:393::-;-1:-1:-1;;;;;31251:21:0;;31243:67;;;;-1:-1:-1;;;31243:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31344:105;31381:6;31344:105;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31344:18:0;;:9;:18;;;;;;;;;;;;:105;:22;:105::i;:::-;-1:-1:-1;;;;;31323:18:0;;:9;:18;;;;;;;;;;:126;31475:12;;:24;;31492:6;31475:16;:24::i;:::-;31460:12;:39;31515:37;;;;;;;;31541:1;;-1:-1:-1;;;;;31515:37:0;;;;;;;;;;;;31167:393;;:::o;1967:181::-;2025:7;2057:5;;;2081:6;;;;2073:46;;;;;-1:-1:-1;;;2073:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;2431:136;2489:7;2516:43;2520:1;2523;2516:43;;;;;;;;;;;;;;;;;:3;:43::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://559da9f1c2cc51187be7239fe8e9cf74c29a2e412b47783edf1478bb81d88d57

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.