ETH Price: $3,551.51 (-0.72%)
Gas: 21 Gwei

Contract

0x8dB68740422443C8476c886758F95a8eC7278a55
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Burn139291412022-01-02 23:53:45816 days ago1641167625IN
0x8dB68740...eC7278a55
0 ETH0.0087939999.46274792
Safe Transfer Fr...119606742021-03-02 19:14:311122 days ago1614712471IN
0x8dB68740...eC7278a55
0 ETH0.0090062140

Latest 2 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
112460382020-11-13 0:22:161232 days ago1605226936
0x8dB68740...eC7278a55
 Contract Creation0 ETH
112460382020-11-13 0:22:161232 days ago1605226936  Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
ERC721WrapperV1

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-11-11
*/

// 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: node_modules\eth-item-token-standard\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: @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: node_modules\eth-item-token-standard\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: node_modules\eth-item-token-standard\IERC20Data.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



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

// File: node_modules\eth-item-token-standard\IEthItemInteroperableInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



interface IEthItemInteroperableInterface is IERC20, IERC20Data {

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

    function mainInterface() external view returns (address);

    function objectId() external view returns (uint256);

    function mint(address owner, uint256 amount) external;

    function burn(address owner, uint256 amount) external;

    function permitNonce(address sender) external view returns(uint256);

    function permit(address owner, address spender, uint value, uint8 v, bytes32 r, bytes32 s) external;

    function interoperableInterfaceVersion() external pure returns(uint256 ethItemInteroperableInterfaceVersion);
}

// File: eth-item-token-standard\IEthItemMainInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;






interface IEthItemMainInterface is IERC1155, IERC1155Views, IBaseTokenData {

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

    function mainInterfaceVersion() external pure returns(uint256 ethItemInteroperableVersion);

    function toInteroperableInterfaceAmount(uint256 objectId, uint256 ethItemAmount) external view returns (uint256 interoperableInterfaceAmount);

    function toMainInterfaceAmount(uint256 objectId, uint256 erc20WrapperAmount) external view returns (uint256 mainInterfaceAmount);

    function interoperableInterfaceModel() external view returns (address, uint256);

    function asInteroperable(uint256 objectId) external view returns (IEthItemInteroperableInterface);

    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 NewItem(uint256 indexed objectId, address indexed tokenAddress);
    event Mint(uint256 objectId, address tokenAddress, uint256 amount);
}

// File: models\common\IEthItemModelBase.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev This interface contains the commonn data provided by all the EthItem models
 */
interface IEthItemModelBase is IEthItemMainInterface {

    /**
     * @dev Contract Initialization, the caller of this method should be a Contract containing the logic to provide the EthItemERC20WrapperModel to be used to create ERC20-based objectIds
     * @param name the chosen name for this NFT
     * @param symbol the chosen symbol (Ticker) for this NFT
     */
    function init(string calldata name, string calldata symbol) external;

    /**
     * @return modelVersionNumber The version number of the Model, it should be progressive
     */
    function modelVersion() external pure returns(uint256 modelVersionNumber);

    /**
     * @return factoryAddress the address of the Contract which initialized this EthItem
     */
    function factory() external view returns(address factoryAddress);
}

// File: @openzeppelin\contracts\token\ERC721\IERC721Receiver.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
    external returns (bytes4);
}

// File: models\ERC721Wrapper\1\IERC721WrapperV1.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



/**
 * @title ERC721 NFT-Based EthItem, version 1.
 * @dev All the wrapped ERC721 NFTs will be created following this Model.
 * The minting operation can be done only by transfering the original ERC721 Item through the classic safeTransferFrom call.
 * The burning operation will send back the original wrapped NFT.
 * To initalize it, the original 'init(address,string,string)' 
 * function of the EthItem Token Standard will be used, but the first address parameter will be the original ERC721 Source Contract to Wrap, and NOT the ERC20Model, which is always taken by the Contract who creates the Wrapper.
 * As the entire amount of the contract is always 1, the owner of the object can be the 
 */
interface IERC721WrapperV1 is IEthItemModelBase, IERC721Receiver {

    /**
     * @return sourceAddress The address of the original wrapped ERC721 NFT
     */
    function source() external view returns(address sourceAddress);
}

// 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\introspection\ERC165.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: eth-item-token-standard\EthItemMainInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;








/**
 * @title EthItem - An improved ERC1155 token with ERC20 trading capabilities.
 * @dev In the EthItem standard, there is no a centralized storage where to save every objectId info.
 * In fact every NFT data is saved in a specific ERC20 token that can also work as a standalone one, and let transfer parts of an atomic object.
 * The ERC20 represents a unique Token Id, and its supply represents the entire supply of that Token Id.
 * You can instantiate a EthItem as a brand-new one, or as a wrapper for pre-existent classic ERC1155 NFT.
 * In the first case, you can introduce some particular permissions to mint new tokens.
 * In the second case, you need to send your NFTs to the Wrapped EthItem (using the classic safeTransferFrom or safeBatchTransferFrom methods)
 * and it will create a brand new ERC20 Token or mint new supply (in the case some tokens with the same id were transfered before yours).
 */
contract EthItemMainInterface is IEthItemMainInterface, Context, ERC165 {
    using SafeMath for uint256;
    using Address for address;

    bytes4 internal constant _INTERFACEobjectId_ERC1155 = 0xd9b67a26;

    string internal _name;
    string internal _symbol;

    mapping(uint256 => string) internal _objectUris;

    mapping(uint256 => address) internal _dest;
    mapping(address => bool) internal _isMine;

    mapping(address => mapping(address => bool)) internal _operatorApprovals;

    address internal _interoperableInterfaceModel;
    uint256 internal _interoperableInterfaceModelVersion;

    uint256 internal _decimals;

    /**
     * @dev Constructor
     * When you create a EthItem, you can specify if you want to create a brand new one, passing the classic data like name, symbol, amd URI,
     * or wrap a pre-existent ERC1155 NFT, passing its contract address.
     * You can use just one of the two modes at the same time.
     * In both cases, a ERC20 token address is mandatory. It will be used as a model to be cloned for every minted NFT.
     * @param erc20NFTWrapperModel the address of the ERC20 pre-deployed model. I will not be used in the procedure, but just cloned as a brand-new one every time a new NFT is minted.
     * @param name the name of the brand new EthItem to be created. If you are wrapping a pre-existing ERC1155 NFT, this must be blank.
     * @param symbol the symbol of the brand new EthItem to be created. If you are wrapping a pre-existing ERC1155 NFT, this must be blank.
     */
    constructor(
        address erc20NFTWrapperModel,
        string memory name,
        string memory symbol
    ) public {
        if(erc20NFTWrapperModel != address(0)) {
            init(erc20NFTWrapperModel, name, symbol);
        }
    }

    /**
     * @dev Utility method which contains the logic of the constructor.
     * This is a useful trick to instantiate a contract when it is cloned.
     */
    function init(
        address interoperableInterfaceModel,
        string memory name,
        string memory symbol
    ) public virtual override {
        require(
            _interoperableInterfaceModel == address(0),
            "Init already called!"
        );

        require(
            interoperableInterfaceModel != address(0),
            "Model should be a valid ethereum address"
        );
        _interoperableInterfaceModelVersion = IEthItemInteroperableInterface(_interoperableInterfaceModel = interoperableInterfaceModel).interoperableInterfaceVersion();
        require(
            keccak256(bytes(name)) != keccak256(""),
            "Name is mandatory"
        );
        require(
            keccak256(bytes(symbol)) != keccak256(""),
            "Symbol is mandatory"
        );

        _name = name;
        _symbol = symbol;
        _decimals = 18;

        _registerInterface(this.safeBatchTransferFrom.selector);
        _registerInterface(_INTERFACEobjectId_ERC1155);
        _registerInterface(this.balanceOf.selector);
        _registerInterface(this.balanceOfBatch.selector);
        _registerInterface(this.setApprovalForAll.selector);
        _registerInterface(this.isApprovedForAll.selector);
        _registerInterface(this.safeTransferFrom.selector);
        _registerInterface(this.uri.selector);
        _registerInterface(this.totalSupply.selector);
        _registerInterface(0x00ad800c); //name(uint256)
        _registerInterface(0x4e41a1fb); //symbol(uint256)
        _registerInterface(this.decimals.selector);
        _registerInterface(0x06fdde03); //name()
        _registerInterface(0x95d89b41); //symbol()
    }

    function mainInterfaceVersion() public pure virtual override returns(uint256) {
        return 1;
    }

    /**
     * @dev Mint
     * If the EthItem does not wrap a pre-existent NFT, this call is used to mint new NFTs, according to the permission rules provided by the Token creator.
     * @param amount The amount of tokens to be created. It must be greater than 1 unity.
     * @param objectUri The Uri to locate this new token's metadata.
     */
    function mint(uint256 amount, string memory objectUri)
        public
        virtual
        override
        returns (uint256 objectId, address tokenAddress)
    {
        require(
            amount > 1,
            "You need to pass more than a token"
        );
        require(
            keccak256(bytes(objectUri)) != keccak256(""),
            "Uri cannot be empty"
        );
        (objectId, tokenAddress) = _mint(msg.sender, amount);
        _objectUris[objectId] = objectUri;
    }

    /**
     * @dev Burn
     * You can choose to burn your NFTs.
     * In case this Token wraps a pre-existent ERC1155 NFT, you will receive the wrapped NFTs.
     */
    function burn(
        uint256 objectId,
        uint256 amount
    ) public virtual override {
        uint256[] memory objectIds = new uint256[](1);
        objectIds[0] = objectId;
        uint256[] memory amounts = new uint256[](1);
        amounts[0] = amount;
        _burn(msg.sender, objectIds, amounts);
        emit TransferSingle(msg.sender, msg.sender, address(0), objectId, amount);
    }

    /**
     * @dev Burn Batch
     * Same as burn, but for multiple NFTs at the same time
     */
    function burnBatch(
        uint256[] memory objectIds,
        uint256[] memory amounts
    ) public virtual override {
        _burn(msg.sender, objectIds, amounts);
        emit TransferBatch(msg.sender, msg.sender, address(0), objectIds, amounts);
    }

    function _burn(address owner, 
        uint256[] memory objectIds,
        uint256[] memory amounts) internal virtual {
        for (uint256 i = 0; i < objectIds.length; i++) {
            asInteroperable(objectIds[i]).burn(
                owner,
                toInteroperableInterfaceAmount(objectIds[i], amounts[i])
            );
        }
    }

    /**
     * @dev get the address of the ERC20 Contract used as a model
     */
    function interoperableInterfaceModel() public virtual override view returns (address, uint256) {
        return (_interoperableInterfaceModel, _interoperableInterfaceModelVersion);
    }

    /**
     * @dev Gives back the address of the ERC20 Token representing this Token Id
     */
    function asInteroperable(uint256 objectId)
        public
        virtual
        override
        view
        returns (IEthItemInteroperableInterface)
    {
        return IEthItemInteroperableInterface(_dest[objectId]);
    }

    /**
     * @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)
        public
        virtual
        override
        view
        returns (uint256)
    {
        return toMainInterfaceAmount(objectId, asInteroperable(objectId).totalSupply());
    }

    /**
     * @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)
        public
        virtual
        override
        view
        returns (string memory)
    {
        return asInteroperable(objectId).name();
    }

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

    /**
     * @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)
        public
        virtual
        override
        view
        returns (string memory)
    {
        return asInteroperable(objectId).symbol();
    }

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

    /**
     * @dev Returns the decimals of the given token id
     */
    function decimals(uint256)
        public
        virtual
        override
        view
        returns (uint256)
    {
        return 1;
    }

    /**
     * @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)
        public
        virtual
        override
        view
        returns (string memory)
    {
        return _objectUris[objectId];
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function balanceOf(address account, uint256 objectId)
        public
        virtual
        override
        view
        returns (uint256)
    {
        return toMainInterfaceAmount(objectId, asInteroperable(objectId).balanceOf(account));
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory objectIds
    ) public virtual override view returns (uint256[] memory balances) {
        balances = new uint256[](accounts.length);
        for (uint256 i = 0; i < accounts.length; i++) {
            balances[i] = balanceOf(accounts[i], objectIds[i]);
        }
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        address sender = _msgSender();
        require(
            sender != operator,
            "ERC1155: setting approval status for self"
        );

        _operatorApprovals[sender][operator] = approved;
        emit ApprovalForAll(sender, operator, approved);
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function isApprovedForAll(address account, address operator)
        public
        virtual
        override
        view
        returns (bool)
    {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 objectId,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(to != address(0), "ERC1155: transfer to the zero address");
        address operator = _msgSender();
        require(
            from == operator || isApprovedForAll(from, operator),
            "ERC1155: caller is not owner nor approved"
        );

        asInteroperable(objectId).transferFrom(from, to, toInteroperableInterfaceAmount(objectId, amount));

        emit TransferSingle(operator, from, to, objectId, amount);

        _doSafeTransferAcceptanceCheck(
            operator,
            from,
            to,
            objectId,
            amount,
            data
        );
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory objectIds,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        for (uint256 i = 0; i < objectIds.length; i++) {
            asInteroperable(objectIds[i]).transferFrom(
                from,
                to,
                toInteroperableInterfaceAmount(objectIds[i], amounts[i])
            );
        }

        address operator = _msgSender();

        emit TransferBatch(operator, from, to, objectIds, amounts);

        _doSafeBatchTransferAcceptanceCheck(
            operator,
            from,
            to,
            objectIds,
            amounts,
            data
        );
    }

    function emitTransferSingleEvent(address sender, address from, address to, uint256 objectId, uint256 amount) public override {
        require(_dest[objectId] == msg.sender, "Unauthorized Action!");
        uint256 entireAmount = toMainInterfaceAmount(objectId, amount);
        if(entireAmount == 0) {
            return;
        }
        emit TransferSingle(sender, from, to, objectId, entireAmount);
    }

    function toInteroperableInterfaceAmount(uint256 objectId, uint256 mainInterfaceAmount) public override virtual view returns (uint256 interoperableInterfaceAmount) {
        interoperableInterfaceAmount = mainInterfaceAmount * (10**asInteroperable(objectId).decimals());
    }

    function toMainInterfaceAmount(uint256 objectId, uint256 interoperableInterfaceAmount) public override virtual view returns (uint256 mainInterfaceAmount) {
        mainInterfaceAmount = interoperableInterfaceAmount / (10**asInteroperable(objectId).decimals());
    }

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155Received(
                    operator,
                    from,
                    id,
                    amount,
                    data
                )
            returns (bytes4 response) {
                if (
                    response != IERC1155Receiver(to).onERC1155Received.selector
                ) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155BatchReceived(
                    operator,
                    from,
                    ids,
                    amounts,
                    data
                )
            returns (bytes4 response) {
                if (
                    response !=
                    IERC1155Receiver(to).onERC1155BatchReceived.selector
                ) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _clone(address original) internal returns (address copy) {
        assembly {
            mstore(
                0,
                or(
                    0x5880730000000000000000000000000000000000000000803b80938091923cF3,
                    mul(original, 0x1000000000000000000)
                )
            )
            copy := create(0, 0, 32)
            switch extcodesize(copy)
                case 0 {
                    invalid()
                }
        }
    }

    function _mint(
        address from,
        uint256 amount
    ) internal virtual returns (uint256 objectId, address wrapperAddress) {
        IEthItemInteroperableInterface wrapper = IEthItemInteroperableInterface(wrapperAddress = _clone(_interoperableInterfaceModel));
        _isMine[_dest[objectId = uint256(wrapperAddress)] = wrapperAddress] = true;
        wrapper.init(objectId, _name, _symbol, _decimals);
        wrapper.mint(from, amount * (10**_decimals));
        emit NewItem(objectId, wrapperAddress);
        emit Mint(objectId, wrapperAddress, amount);
        emit TransferSingle(address(this), address(0), from, objectId, amount);
    }
}

// File: orchestrator\IEthItemOrchestratorDependantElement.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


interface IEthItemOrchestratorDependantElement is IERC165 {

    /**
     * @dev GET - The DoubleProxy of the DFO linked to this Contract
     */
    function doubleProxy() external view returns (address);

    /**
     * @dev SET - The DoubleProxy of the DFO linked to this Contract
     * It can be done only by the Factory controller
     * @param newDoubleProxy the new DoubleProxy address
     */
    function setDoubleProxy(address newDoubleProxy) external;

    function isAuthorizedOrchestrator(address operator) external view returns(bool);
}

// File: factory\IEthItemFactory.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @title IEthItemFactory
 * @dev This contract represents the Factory Used to deploy all the EthItems, keeping track of them.
 */
interface IEthItemFactory is IEthItemOrchestratorDependantElement {

    /**
     * @dev GET - The address of the Smart Contract whose code will serve as a model for all the EthItemERC20Wrappers (please see the eth-item-token-standard for further information).
     */
    function ethItemInteroperableInterfaceModel() external view returns (address ethItemInteroperableInterfaceModelAddress, uint256 ethItemInteroperableInterfaceModelVersion);

    /**
     * @dev SET - The address of the Smart Contract whose code will serve as a model for all the EthItemERC20Wrappers (please see the eth-item-token-standard for further information).
     * It can be done only by the Factory controller
     */
    function setEthItemInteroperableInterfaceModel(address ethItemInteroperableInterfaceModelAddress) external;

    /**
     * @dev GET - The address of the Smart Contract whose code will serve as a model for all the Native EthItems.
     * Every EthItem will have its own address, but the code will be cloned from this one.
     */
    function nativeModel() external view returns (address nativeModelAddress, uint256 nativeModelVersion);

    /**
     * @dev SET - The address of the Native EthItem model.
     * It can be done only by the Factory controller
     */
    function setNativeModel(address nativeModelAddress) external;

    /**
     * @dev GET - The address of the Smart Contract whose code will serve as a model for all the Wrapped ERC1155 EthItems.
     * Every EthItem will have its own address, but the code will be cloned from this one.
     */
    function erc1155WrapperModel() external view returns (address erc1155WrapperModelAddress, uint256 erc1155WrapperModelVersion);

    /**
     * @dev SET - The address of the ERC1155 NFT-Based EthItem model.
     * It can be done only by the Factory controller
     */
    function setERC1155WrapperModel(address erc1155WrapperModelAddress) external;

    /**
     * @dev GET - The address of the Smart Contract whose code will serve as a model for all the Wrapped ERC20 EthItems.
     */
    function erc20WrapperModel() external view returns (address erc20WrapperModelAddress, uint256 erc20WrapperModelVersion);

    /**
     * @dev SET - The address of the Smart Contract whose code will serve as a model for all the Wrapped ERC20 EthItems.
     * It can be done only by the Factory controller
     */
    function setERC20WrapperModel(address erc20WrapperModelAddress) external;

    /**
     * @dev GET - The address of the Smart Contract whose code will serve as a model for all the Wrapped ERC721 EthItems.
     */
    function erc721WrapperModel() external view returns (address erc721WrapperModelAddress, uint256 erc721WrapperModelVersion);

    /**
     * @dev SET - The address of the Smart Contract whose code will serve as a model for all the Wrapped ERC721 EthItems.
     * It can be done only by the Factory controller
     */
    function setERC721WrapperModel(address erc721WrapperModelAddress) external;

    /**
     * @dev GET - The elements (numerator and denominator) useful to calculate the percentage fee to be transfered to the DFO for every new Minted EthItem
     */
    function mintFeePercentage() external view returns (uint256 mintFeePercentageNumerator, uint256 mintFeePercentageDenominator);

    /**
     * @dev SET - The element useful to calculate the Percentage fee
     * It can be done only by the Factory controller
     */
    function setMintFeePercentage(uint256 mintFeePercentageNumerator, uint256 mintFeePercentageDenominator) external;

    /**
     * @dev Useful utility method to calculate the percentage fee to transfer to the DFO for the minted EthItem amount.
     * @param erc20WrapperAmount The amount of minted EthItem
     */
    function calculateMintFee(uint256 erc20WrapperAmount) external view returns (uint256 mintFee, address dfoWalletAddress);

    /**
     * @dev GET - The elements (numerator and denominator) useful to calculate the percentage fee to be transfered to the DFO for every Burned EthItem
     */
    function burnFeePercentage() external view returns (uint256 burnFeePercentageNumerator, uint256 burnFeePercentageDenominator);

    /**
     * @dev SET - The element useful to calculate the Percentage fee
     * It can be done only by the Factory controller
     */
    function setBurnFeePercentage(uint256 burnFeePercentageNumerator, uint256 burnFeePercentageDenominator) external;

    /**
     * @dev Useful utility method to calculate the percentage fee to transfer to the DFO for the burned EthItem amount.
     * @param erc20WrapperAmount The amount of burned EthItem
     */
    function calculateBurnFee(uint256 erc20WrapperAmount) external view returns (uint256 burnFee, address dfoWalletAddress);

    /**
     * @dev Business Logic to create a brand-new EthItem.
     * It raises the 'NewNativeCreated' events.
     * @param modelInitCallPayload The ABI-encoded input parameters to be passed to the model to phisically create the NFT.
     * It changes according to the Model Version.
     * @param ethItemAddress The address of the new EthItem
     * @param ethItemInitResponse The ABI-encoded output response eventually received by the Model initialization procedure.
     */
    function createNative(bytes calldata modelInitCallPayload) external returns (address ethItemAddress, bytes memory ethItemInitResponse);

    event NewNativeCreated(uint256 indexed standardVersion, uint256 indexed wrappedItemModelVersion, uint256 indexed modelVersion, address tokenCreated);
    event NewNativeCreated(address indexed model, uint256 indexed modelVersion, address indexed tokenCreated, address creator);

    /**
     * @dev Business Logic to wrap already existing ERC1155 Tokens to obtain a new NFT-Based EthItem.
     * It raises the 'NewWrappedERC1155Created' events.
     * @param modelInitCallPayload The ABI-encoded input parameters to be passed to the model to phisically create the NFT.
     * It changes according to the Model Version.
     * @param ethItemAddress The address of the new EthItem
     * @param ethItemInitResponse The ABI-encoded output response eventually received by the Model initialization procedure.
     */
    function createWrappedERC1155(bytes calldata modelInitCallPayload) external returns (address ethItemAddress, bytes memory ethItemInitResponse);

    event NewWrappedERC1155Created(uint256 indexed standardVersion, uint256 indexed wrappedItemModelVersion, uint256 indexed modelVersion, address tokenCreated);
    event NewWrappedERC1155Created(address indexed model, uint256 indexed modelVersion, address indexed tokenCreated, address creator);

    /**
     * @dev Business Logic to wrap already existing ERC20 Tokens to obtain a new NFT-Based EthItem.
     * It raises the 'NewWrappedERC20Created' events.
     * @param modelInitCallPayload The ABI-encoded input parameters to be passed to the model to phisically create the NFT.
     * It changes according to the Model Version.
     * @param ethItemAddress The address of the new EthItem
     * @param ethItemInitResponse The ABI-encoded output response eventually received by the Model initialization procedure.
     */
    function createWrappedERC20(bytes calldata modelInitCallPayload) external returns (address ethItemAddress, bytes memory ethItemInitResponse);

    event NewWrappedERC20Created(uint256 indexed standardVersion, uint256 indexed wrappedItemModelVersion, uint256 indexed modelVersion, address tokenCreated);
    event NewWrappedERC20Created(address indexed model, uint256 indexed modelVersion, address indexed tokenCreated, address creator);

    /**
     * @dev Business Logic to wrap already existing ERC721 Tokens to obtain a new NFT-Based EthItem.
     * It raises the 'NewWrappedERC721Created' events.
     * @param modelInitCallPayload The ABI-encoded input parameters to be passed to the model to phisically create the NFT.
     * It changes according to the Model Version.
     * @param ethItemAddress The address of the new EthItem
     * @param ethItemInitResponse The ABI-encoded output response eventually received by the Model initialization procedure.
     */
    function createWrappedERC721(bytes calldata modelInitCallPayload) external returns (address ethItemAddress, bytes memory ethItemInitResponse);

    event NewWrappedERC721Created(uint256 indexed standardVersion, uint256 indexed wrappedItemModelVersion, uint256 indexed modelVersion, address tokenCreated);
    event NewWrappedERC721Created(address indexed model, uint256 indexed modelVersion, address indexed tokenCreated, address creator);
}

// File: models\common\EthItemModelBase.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;




abstract contract EthItemModelBase is IEthItemModelBase, EthItemMainInterface(address(0), "", "") {

    address internal _factoryAddress;

    function init(
        address,
        string memory,
        string memory
    ) public virtual override(IEthItemMainInterface, EthItemMainInterface) {
        revert("Cannot directly call this method.");
    }

    function init(
        string memory name,
        string memory symbol
    ) public override virtual {
        require(_factoryAddress == address(0), "Init already called!");
        (address ethItemInteroperableInterfaceModelAddress,) = IEthItemFactory(_factoryAddress = msg.sender).ethItemInteroperableInterfaceModel();
        super.init(ethItemInteroperableInterfaceModelAddress, name, symbol);
    }

    function modelVersion() public override virtual pure returns(uint256) {
        return 1;
    }

    function factory() public override view returns (address) {
        return _factoryAddress;
    }

    function _sendMintFeeToDFO(address from, uint256 objectId, uint256 erc20WrapperAmount) internal virtual returns(uint256 mintFeeToDFO) {
        address dfoWallet;
        (mintFeeToDFO, dfoWallet) = IEthItemFactory(_factoryAddress).calculateMintFee(erc20WrapperAmount);
        if(mintFeeToDFO > 0 && dfoWallet != address(0)) {
            asInteroperable(objectId).transferFrom(from, dfoWallet, mintFeeToDFO);
        }
    }

    function _sendBurnFeeToDFO(address from, uint256 objectId, uint256 erc20WrapperAmount) internal virtual returns(uint256 burnFeeToDFO) {
        address dfoWallet;
        (burnFeeToDFO, dfoWallet) = IEthItemFactory(_factoryAddress).calculateBurnFee(erc20WrapperAmount);
        if(burnFeeToDFO > 0 && dfoWallet != address(0)) {
            asInteroperable(objectId).transferFrom(from, dfoWallet, burnFeeToDFO);
        }
    }

    function mint(uint256, string memory)
        public
        virtual
        override(IEthItemMainInterface, EthItemMainInterface)
        returns (uint256, address)
    {
        revert("Cannot directly call this method.");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 objectId,
        uint256 amount,
        bytes memory data
    ) public virtual override(IERC1155, EthItemMainInterface) {
        require(to != address(0), "ERC1155: transfer to the zero address");
        address operator = _msgSender();
        require(
            from == operator || isApprovedForAll(from, operator),
            "ERC1155: caller is not owner nor approved"
        );

        _doERC20Transfer(from, to, objectId, amount);

        emit TransferSingle(operator, from, to, objectId, amount);

        _doSafeTransferAcceptanceCheck(
            operator,
            from,
            to,
            objectId,
            amount,
            data
        );
    }

    /**
     * @dev Classic ERC1155 Standard Method
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory objectIds,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override(IERC1155, EthItemMainInterface) {
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        for (uint256 i = 0; i < objectIds.length; i++) {
            _doERC20Transfer(from, to, objectIds[i], amounts[i]);
        }

        address operator = _msgSender();

        emit TransferBatch(operator, from, to, objectIds, amounts);

        _doSafeBatchTransferAcceptanceCheck(
            operator,
            from,
            to,
            objectIds,
            amounts,
            data
        );
    }

    function _doERC20Transfer(address from, address to, uint256 objectId, uint256 amount) internal virtual {
        (,uint256 result) = _getCorrectERC20ValueForTransferOrBurn(from, objectId, amount);
        asInteroperable(objectId).transferFrom(from, to, result);
    }

    function _getCorrectERC20ValueForTransferOrBurn(address from, uint256 objectId, uint256 amount) internal virtual view returns(uint256 balanceOfNormal, uint256 result) {
        uint256 toTransfer = toInteroperableInterfaceAmount(objectId, amount);
        uint256 balanceOfDecimals = asInteroperable(objectId).balanceOf(from);
        balanceOfNormal = balanceOf(from, objectId);
        result = amount == balanceOfNormal ? balanceOfDecimals : toTransfer;
    }

    function _burn(
        uint256 objectId,
        uint256 amount
    ) internal virtual returns(uint256 burnt, uint256 burnFeeToDFO) {
        (uint256 balanceOfNormal, uint256 result) = _getCorrectERC20ValueForTransferOrBurn(msg.sender, objectId, amount);
        require(balanceOfNormal >= amount, "Insufficient Amount");
        burnFeeToDFO = _sendBurnFeeToDFO(msg.sender, objectId, result);
        asInteroperable(objectId).burn(msg.sender, burnt = result - burnFeeToDFO);
    }

    function _isUnique(uint256 objectId) internal virtual view returns (bool unique, uint256 unity, uint256 totalSupply, uint256 erc20Decimals) {
        erc20Decimals = asInteroperable(objectId).decimals();
        unity = erc20Decimals <= 1 ? 1 : (10**erc20Decimals);
        totalSupply = asInteroperable(objectId).totalSupply();
        unique = totalSupply <= unity;
    }

    function toMainInterfaceAmount(uint256 objectId, uint256 interoperableInterfaceAmount) public virtual view override(IEthItemMainInterface, EthItemMainInterface) returns (uint256 mainInterfaceAmount) {
        (bool unique, uint256 unity,, uint256 erc20Decimals) = _isUnique(objectId);
        if(unique && interoperableInterfaceAmount < unity) {
            uint256 half = (unity * 51) / 100;
            return mainInterfaceAmount = interoperableInterfaceAmount <= half ? 0 : 1;
        }
        return mainInterfaceAmount = interoperableInterfaceAmount / (10**erc20Decimals);
    }
}

// File: @openzeppelin\contracts\token\ERC721\IERC721.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
      * @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;
}


// File: @openzeppelin\contracts\token\ERC721\IERC721Metadata.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @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);
}

// File: models\ERC721Wrapper\1\ERC721WrapperV1.sol

//SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;





contract ERC721WrapperV1 is IERC721WrapperV1, EthItemModelBase {

    address internal _source;
    bool internal _idAsName;

    function init(
        address source,
        string memory name,
        string memory symbol
    ) public virtual override(IEthItemMainInterface, EthItemModelBase) {
        require(source != address(0), "Source cannot be void");
        _source = source;
        super.init(name, symbol);
        _idAsName = keccak256(bytes(name)) == keccak256(bytes(_toString(_source)));
        _registerInterface(this.onERC721Received.selector);
    }

    function source() public override view returns (address) {
        return _source;
    }

    function uri(uint256 objectId)
        public
        virtual
        override
        view
        returns (string memory)
    {
        return IERC721Metadata(_source).tokenURI(objectId);
    }

    function onERC721Received(
        address,
        address owner,
        uint256 objectId,
        bytes memory
    ) public virtual override returns (bytes4) {
        require(msg.sender == _source, "Unauthorized action!");
        _mint(owner, objectId);
        return this.onERC721Received.selector;
    }

    function burn(
        uint256 objectId,
        uint256 amount
    ) public virtual override {
        _burn(objectId, amount);
        emit TransferSingle(msg.sender, msg.sender, address(0), objectId, amount);
    }

    function burnBatch(
        uint256[] memory objectIds,
        uint256[] memory amounts
    ) public virtual override {
        for (uint256 i = 0; i < objectIds.length; i++) {
            _burn(objectIds[i], amounts[i]);
        }
        emit TransferBatch(msg.sender, msg.sender, address(0), objectIds, amounts);
    }

    function _burn(
        uint256 objectId,
        uint256 amount
    ) internal virtual override returns(uint256, uint256) {
        super._burn(objectId, amount);
        IERC721(_source).safeTransferFrom(address(this), msg.sender, objectId, "");
    }

    function _mint(
        address from,
        uint256 objectIdInput
    ) internal virtual override returns (uint256 objectId, address wrapperAddress) {
        wrapperAddress = _dest[objectId = objectIdInput];
        if (wrapperAddress == address(0)) {
            (address interoperableInterfaceModelAddress,) = interoperableInterfaceModel();
            _isMine[_dest[objectId] = wrapperAddress = _clone(interoperableInterfaceModelAddress)] = true;
            string memory name = _idAsName ? _toString(objectId) : _name;
            IEthItemInteroperableInterface(wrapperAddress).init(objectId, name, _symbol, _decimals);
            emit NewItem(objectId, wrapperAddress);
        }
        uint256 toMint = (10**_decimals) - asInteroperable(objectId).totalSupply();
        asInteroperable(objectId).mint(from, toMint);
        uint256 mintFeeToDFO = _sendMintFeeToDFO(from, objectId, toMint);
        uint256 nftAmount = toMainInterfaceAmount(objectId, toMint - mintFeeToDFO);
        if(nftAmount > 0) {
            emit Mint(objectId, wrapperAddress, nftAmount);
            emit TransferSingle(address(this), address(0), from, objectId, nftAmount);
        }
    }

    function _toString(address _addr) internal pure returns(string memory) {
        bytes32 value = bytes32(uint256(_addr));
        bytes memory alphabet = "0123456789abcdef";

        bytes memory str = new bytes(42);
        str[0] = '0';
        str[1] = 'x';
        for (uint i = 0; i < 20; i++) {
            str[2+i*2] = alphabet[uint(uint8(value[i + 12] >> 4))];
            str[3+i*2] = alphabet[uint(uint8(value[i + 12] & 0x0f))];
        }
        return string(str);
    }

    function _toString(uint _i) internal pure returns(string memory) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"objectId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"objectId","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"NewItem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"asInteroperable","outputs":[{"internalType":"contract IEthItemInteroperableInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"objectIds","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"objectIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emitTransferSingleEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"source","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interoperableInterfaceModel","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainInterfaceVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"string","name":"","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"modelVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"objectIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"source","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"mainInterfaceAmount","type":"uint256"}],"name":"toInteroperableInterfaceAmount","outputs":[{"internalType":"uint256","name":"interoperableInterfaceAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"interoperableInterfaceAmount","type":"uint256"}],"name":"toMainInterfaceAmount","outputs":[{"internalType":"uint256","name":"mainInterfaceAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cd5760003560e01c80634e41a1fb11610104578063b2b45df5116100a2578063e82b15f411610071578063e82b15f414610cdc578063e985e9c514610d1e578063edb3ba0b1461064a578063f242432a14610d4c576101cd565b8063b2b45df514610b5b578063b390c0ab14610c94578063bd85b03914610cb7578063c45a015514610cd4576101cd565b806377097fc8116100de57806377097fc81461093657806383ca4b6f14610a0257806395d89b4114610b25578063a22cb46514610b2d576101cd565b80634e41a1fb146107e857806367e828bf146108055780637029144c1461080d576101cd565b80632d7f1d2b1161017157806340dc7bff1161014b57806340dc7bff14610627578063434d7d921461064a57806345a0ef80146106525780634e1273f414610675576101cd565b80632d7f1d2b1461041c5780632eb2c2d6146104475780633f47e6621461060a576101cd565b806306fdde03116101ad57806306fdde03146102dd5780630c0f6b71146102e55780630e89341c1461031e578063150b7a021461033b576101cd565b8062ad800c146101d2578062fdd58e1461026457806301ffc9a7146102a2575b600080fd5b6101ef600480360360208110156101e857600080fd5b5035610e15565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610229578181015183820152602001610211565b50505050905090810190601f1680156102565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102906004803603604081101561027a57600080fd5b506001600160a01b038135169060200135610f4b565b60408051918252519081900360200190f35b6102c9600480360360208110156102b857600080fd5b50356001600160e01b031916610fe0565b604080519115158252519081900360200190f35b6101ef610fff565b610302600480360360208110156102fb57600080fd5b5035611095565b604080516001600160a01b039092168252519081900360200190f35b6101ef6004803603602081101561033457600080fd5b50356110b0565b6103ff6004803603608081101561035157600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561038b57600080fd5b82018360208201111561039d57600080fd5b803590602001918460018302840111600160201b831117156103be57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110fc945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610424611172565b604080516001600160a01b03909316835260208301919091528051918290030190f35b610608600480360360a081101561045d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460208302840111600160201b831117156104c357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561051257600080fd5b82018360208201111561052457600080fd5b803590602001918460208302840111600160201b8311171561054557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561059457600080fd5b8201836020820111156105a657600080fd5b803590602001918460018302840111600160201b831117156105c757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611186945050505050565b005b6102906004803603602081101561062057600080fd5b503561137b565b6102906004803603604081101561063d57600080fd5b5080359060200135611381565b6102906113fd565b6102906004803603604081101561066857600080fd5b5080359060200135611402565b6107986004803603604081101561068b57600080fd5b810190602081018135600160201b8111156106a557600080fd5b8201836020820111156106b757600080fd5b803590602001918460208302840111600160201b831117156106d857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072757600080fd5b82018360208201111561073957600080fd5b803590602001918460208302840111600160201b8311171561075a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611467945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d45781810151838201526020016107bc565b505050509050019250505060405180910390f35b6101ef600480360360208110156107fe57600080fd5b5035611510565b610302611553565b6106086004803603604081101561082357600080fd5b810190602081018135600160201b81111561083d57600080fd5b82018360208201111561084f57600080fd5b803590602001918460018302840111600160201b8311171561087057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156108c257600080fd5b8201836020820111156108d457600080fd5b803590602001918460018302840111600160201b831117156108f557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611562945050505050565b6109e16004803603604081101561094c57600080fd5b81359190810190604081016020820135600160201b81111561096d57600080fd5b82018360208201111561097f57600080fd5b803590602001918460018302840111600160201b831117156109a057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061163f945050505050565b604080519283526001600160a01b0390911660208301528051918290030190f35b61060860048036036040811015610a1857600080fd5b810190602081018135600160201b811115610a3257600080fd5b820183602082011115610a4457600080fd5b803590602001918460208302840111600160201b83111715610a6557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610ab457600080fd5b820183602082011115610ac657600080fd5b803590602001918460208302840111600160201b83111715610ae757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611679945050505050565b6101ef61179e565b61060860048036036040811015610b4357600080fd5b506001600160a01b03813516906020013515156117fc565b61060860048036036060811015610b7157600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610b9b57600080fd5b820183602082011115610bad57600080fd5b803590602001918460018302840111600160201b83111715610bce57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610c2057600080fd5b820183602082011115610c3257600080fd5b803590602001918460018302840111600160201b83111715610c5357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506118c7945050505050565b61060860048036036040811015610caa57600080fd5b508035906020013561198d565b61029060048036036020811015610ccd57600080fd5b50356119cd565b610302611a14565b610608600480360360a0811015610cf257600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060800135611a23565b6102c960048036036040811015610d3457600080fd5b506001600160a01b0381358116916020013516611af2565b610608600480360360a0811015610d6257600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610da157600080fd5b820183602082011115610db357600080fd5b803590602001918460018302840111600160201b83111715610dd457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611b20945050505050565b6060610e2082611095565b6001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610e5857600080fd5b505afa158015610e6c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610e9557600080fd5b8101908080516040519392919084600160201b821115610eb457600080fd5b908301906020820185811115610ec957600080fd5b8251600160201b811182820188101715610ee257600080fd5b82525081516020918201929091019080838360005b83811015610f0f578181015183820152602001610ef7565b50505050905090810190601f168015610f3c5780820380516001836020036101000a031916815260200191505b5060405250505090505b919050565b6000610fd782610f5a84611095565b6001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610fa657600080fd5b505afa158015610fba573d6000803e3d6000fd5b505050506040513d6020811015610fd057600080fd5b5051611402565b90505b92915050565b6001600160e01b03191660009081526020819052604090205460ff1690565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561108a5780601f1061105f5761010080835404028352916020019161108a565b820191906000526020600020905b81548152906001019060200180831161106d57829003601f168201915b505050505090505b90565b6000908152600460205260409020546001600160a01b031690565b600b546040805163c87b56dd60e01b81526004810184905290516060926001600160a01b03169163c87b56dd916024808301926000929190829003018186803b158015610e5857600080fd5b600b546000906001600160a01b03163314611155576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61115f8484611f3e565b50630a85bd0160e11b9695505050505050565b6007546008546001600160a01b0390911691565b6001600160a01b0384166111cb5760405162461bcd60e51b815260040180806020018281038252602581526020018061329a6025913960400191505060405180910390fd5b6111d361239e565b6001600160a01b0316856001600160a01b031614806111fe57506111fe856111f961239e565b611af2565b6112395760405162461bcd60e51b81526004018080602001828103825260298152602001806132506029913960400191505060405180910390fd5b60005b835181101561127f57611277868686848151811061125657fe5b602002602001015186858151811061126a57fe5b60200260200101516123a2565b60010161123c565b50600061128a61239e565b9050846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156113115781810151838201526020016112f9565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611350578181015183820152602001611338565b5050505090500194505050505060405180910390a4611373818787878787612455565b505050505050565b50600190565b600061138c83611095565b6001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156113c457600080fd5b505afa1580156113d8573d6000803e3d6000fd5b505050506040513d60208110156113ee57600080fd5b5051600a0a9190910292915050565b600190565b60008060008061141186612709565b9350509250925082801561142457508185105b1561145057606460338302048086111561143f576001611442565b60005b60ff16945050505050610fda565b80600a0a858161145c57fe5b049695505050505050565b6060825167ffffffffffffffff8111801561148157600080fd5b506040519080825280602002602001820160405280156114ab578160200160208202803683370190505b50905060005b8351811015611509576114ea8482815181106114c957fe5b60200260200101518483815181106114dd57fe5b6020026020010151610f4b565b8282815181106114f657fe5b60209081029190910101526001016114b1565b5092915050565b606061151b82611095565b6001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610e5857600080fd5b600b546001600160a01b031690565b600a546001600160a01b0316156115b7576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600a80546001600160a01b031916339081179091556040805163a826080960e01b815281516000939263a82608099260048082019391829003018186803b15801561160157600080fd5b505afa158015611615573d6000803e3d6000fd5b505050506040513d604081101561162b57600080fd5b5051905061163a818484611c36565b505050565b60008060405162461bcd60e51b81526004018080602001828103825260218152602001806132796021913960400191505060405180910390fd5b60005b82518110156116bf576116b583828151811061169457fe5b60200260200101518383815181106116a857fe5b6020026020010151612811565b505060010161167c565b5060006001600160a01b0316336001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8585604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561174657818101518382015260200161172e565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561178557818101518382015260200161176d565b5050505090500194505050505060405180910390a45050565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060939092909183018282801561108a5780601f1061105f5761010080835404028352916020019161108a565b600061180661239e565b9050826001600160a01b0316816001600160a01b031614156118595760405162461bcd60e51b81526004018080602001828103825260298152602001806132bf6029913960400191505060405180910390fd5b6001600160a01b03818116600081815260066020908152604080832094881680845294825291829020805460ff1916871515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b6001600160a01b03831661191a576040805162461bcd60e51b815260206004820152601560248201527414dbdd5c98d94818d85b9b9bdd081899481d9bda59605a1b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b03851617905561193f8282611562565b600b54611954906001600160a01b03166128a5565b80519060200120828051906020012014600b60146101000a81548160ff02191690831515021790555061163a63150b7a0260e01b612a21565b6119978282612811565b50506040805183815260208101839052815160009233928392600080516020613230833981519152929181900390910190a45050565b6000610fda826119dc84611095565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fa657600080fd5b600a546001600160a01b031690565b6000828152600460205260409020546001600160a01b03163314611a85576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420416374696f6e2160601b604482015290519081900360640190fd5b6000611a918383611402565b905080611a9e5750611aeb565b836001600160a01b0316856001600160a01b0316876001600160a01b03166000805160206132308339815191528685604051808381526020018281526020019250505060405180910390a4505b5050505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416611b655760405162461bcd60e51b815260040180806020018281038252602581526020018061329a6025913960400191505060405180910390fd5b6000611b6f61239e565b9050806001600160a01b0316866001600160a01b03161480611b965750611b968682611af2565b611bd15760405162461bcd60e51b81526004018080602001828103825260298152602001806132506029913960400191505060405180910390fd5b611bdd868686866123a2565b846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206132308339815191528787604051808381526020018281526020019250505060405180910390a4611373818787878787612aa5565b6007546001600160a01b031615611c8b576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b6001600160a01b038316611cd05760405162461bcd60e51b81526004018080602001828103825260288152602001806132086028913960400191505060405180910390fd5b600780546001600160a01b0319166001600160a01b0385169081179091556040805163440eb4bf60e11b8152905163881d697e91600480820192602092909190829003018186803b158015611d2457600080fd5b505afa158015611d38573d6000803e3d6000fd5b505050506040513d6020811015611d4e57600080fd5b5051600855815160208301207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4701415611dc2576040805162461bcd60e51b81526020600482015260116024820152704e616d65206973206d616e6461746f727960781b604482015290519081900360640190fd5b805160208201207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4701415611e33576040805162461bcd60e51b815260206004820152601360248201527253796d626f6c206973206d616e6461746f727960681b604482015290519081900360640190fd5b8151611e4690600190602085019061306d565b508051611e5a90600290602084019061306d565b506012600955611e70631759616b60e11b612a21565b611e80636cdb3d1360e11b612a21565b611e8f627eeac760e11b612a21565b611e9f6313849cfd60e21b612a21565b611eaf63a22cb46560e01b612a21565b611ebf63e985e9c560e01b612a21565b611ecf637921219560e11b612a21565b611edf6303a24d0760e21b612a21565b611eef63bd85b03960e01b612a21565b611efe622b600360e21b612a21565b611f0e634e41a1fb60e01b612a21565b611f1e631fa3f33160e11b612a21565b611f2e6306fdde0360e01b612a21565b61163a6395d89b4160e01b612a21565b60008181526004602052604090205481906001600160a01b0316806121fe576000611f67611172565b509050600160056000611f7984612c16565b600087815260046020908152604080832080546001600160a01b0319166001600160a01b038616908117909155855290840194909452919092019020805460ff191692151592909217909155600b5490925060609060ff600160a01b9091041661206c5760018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156120625780601f1061203757610100808354040283529160200191612062565b820191906000526020600020905b81548152906001019060200180831161204557829003601f168201915b5050505050612075565b61207584612c58565b9050826001600160a01b031663620b29cd858360026009546040518563ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156120e95781810151838201526020016120d1565b50505050905090810190601f1680156121165780820380516001836020036101000a031916815260200191505b508381038252855460026000196101006001841615020190911604808252602090910190869080156121895780601f1061215e57610100808354040283529160200191612189565b820191906000526020600020905b81548152906001019060200180831161216c57829003601f168201915b50509650505050505050600060405180830381600087803b1580156121ad57600080fd5b505af11580156121c1573d6000803e3d6000fd5b50506040516001600160a01b03861692508691507f0c4ad8244c49e226fa47310564e3a7d0bb97b9808742e9159b5fd2e62033f88490600090a350505b600061220983611095565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561224157600080fd5b505afa158015612255573d6000803e3d6000fd5b505050506040513d602081101561226b57600080fd5b5051600954600a0a03905061227f83611095565b6001600160a01b03166340c10f1986836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156122d557600080fd5b505af11580156122e9573d6000803e3d6000fd5b5050505060006122fa868584612d27565b9050600061230a85838503611402565b9050801561239457604080518681526001600160a01b038616602082015280820183905290517f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f69181900360600190a1604080518681526020810183905281516001600160a01b038a16926000923092600080516020613230833981519152929181900390910190a45b5050509250929050565b3390565b60006123af858484612e6c565b9150506123bb83611095565b6001600160a01b03166323b872dd8686846040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561242257600080fd5b505af1158015612436573d6000803e3d6000fd5b505050506040513d602081101561244c57600080fd5b50505050505050565b612467846001600160a01b0316612f29565b1561137357836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156124f55781810151838201526020016124dd565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561253457818101518382015260200161251c565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015612570578181015183820152602001612558565b50505050905090810190601f16801561259d5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156125c257600080fd5b505af19250505080156125e757506040513d60208110156125e257600080fd5b505160015b6126ba576125f3613106565b806125fe5750612683565b8060405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612648578181015183820152602001612630565b50505050905090810190601f1680156126755780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405162461bcd60e51b81526004018080602001828103825260348152602001806131ac6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b1461244c5760405162461bcd60e51b81526004018080602001828103825260288152602001806131e06028913960400191505060405180910390fd5b60008060008061271885611095565b6001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561275057600080fd5b505afa158015612764573d6000803e3d6000fd5b505050506040513d602081101561277a57600080fd5b5051905060018111156127905780600a0a612793565b60015b925061279e85611095565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127d657600080fd5b505afa1580156127ea573d6000803e3d6000fd5b505050506040513d602081101561280057600080fd5b505183811115969395509350919050565b60008061281e8484612f2f565b5050600b5460408051635c46a7ef60e11b8152306004820152336024820152604481018790526080606482015260006084820181905291516001600160a01b039093169263b88d4fde9260c48084019391929182900301818387803b15801561288657600080fd5b505af115801561289a573d6000803e3d6000fd5b505050509250929050565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b03851692918491602082018180368337019050509050600360fc1b8160008151811061290957fe5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061293257fe5b60200101906001600160f81b031916908160001a90535060005b6014811015612a18578260048583600c016020811061296757fe5b1a60f81b6001600160f81b031916901c60f81c60ff168151811061298757fe5b602001015160f81c60f81b8282600202600201815181106129a457fe5b60200101906001600160f81b031916908160001a905350828482600c01602081106129cb57fe5b825191901a600f169081106129dc57fe5b602001015160f81c60f81b8282600202600301815181106129f957fe5b60200101906001600160f81b031916908160001a90535060010161294c565b50949350505050565b6001600160e01b03198082161415612a80576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b612ab7846001600160a01b0316612f29565b1561137357836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612b46578181015183820152602001612b2e565b50505050905090810190601f168015612b735780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015612b9657600080fd5b505af1925050508015612bbb57506040513d6020811015612bb657600080fd5b505160015b612bc7576125f3613106565b6001600160e01b0319811663f23a6e6160e01b1461244c5760405162461bcd60e51b81526004018080602001828103825260288152602001806131e06028913960400191505060405180910390fd5b60006901000000000000000000820268803b80938091923cf36258807360e81b01176000526020600080f09050803b8015612c5057612c52565bfe5b50919050565b606081612c7d57506040805180820190915260018152600360fc1b6020820152610f46565b8160005b8115612c9557600101600a82049150612c81565b60608167ffffffffffffffff81118015612cae57600080fd5b506040519080825280601f01601f191660200182016040528015612cd9576020820181803683370190505b50905060001982015b8515612a1857600a860660300160f81b82828060019003935081518110612d0557fe5b60200101906001600160f81b031916908160001a905350600a86049550612ce2565b600a5460408051631702579560e21b815260048101849052815160009384936001600160a01b0390911692635c095e549260248083019392829003018186803b158015612d7357600080fd5b505afa158015612d87573d6000803e3d6000fd5b505050506040513d6040811015612d9d57600080fd5b50805160209091015190925090508115801590612dc257506001600160a01b03811615155b15612e6457612dd084611095565b6001600160a01b03166323b872dd8683856040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b158015612e3757600080fd5b505af1158015612e4b573d6000803e3d6000fd5b505050506040513d6020811015612e6157600080fd5b50505b509392505050565b6000806000612e7b8585611381565b90506000612e8886611095565b6001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612ed457600080fd5b505afa158015612ee8573d6000803e3d6000fd5b505050506040513d6020811015612efe57600080fd5b50519050612f0c8787610f4b565b9350838514612f1b5781612f1d565b805b92505050935093915050565b3b151590565b600080600080612f40338787612e6c565b9150915084821015612f8f576040805162461bcd60e51b8152602060048201526013602482015272125b9cdd59999a58da595b9d08105b5bdd5b9d606a1b604482015290519081900360640190fd5b612f9a338783613021565b9250612fa586611095565b6001600160a01b0316639dc29fac338584039650866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561300057600080fd5b505af1158015613014573d6000803e3d6000fd5b5050505050509250929050565b600a5460408051636ad8826960e01b815260048101849052815160009384936001600160a01b0390911692636ad882699260248083019392829003018186803b158015612d7357600080fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106130ae57805160ff19168380011785556130db565b828001600101855582156130db579182015b828111156130db5782518255916020019190600101906130c0565b506130e79291506130eb565b5090565b5b808211156130e757600081556001016130ec565b60e01c90565b600060443d101561311657611092565b600481823e6308c379a061312a8251613100565b1461313457611092565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156131645750505050611092565b8284019250825191508082111561317e5750505050611092565b503d8301602082840101111561319657505050611092565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e734d6f64656c2073686f756c6420626520612076616c696420657468657265756d2061646472657373c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656443616e6e6f74206469726563746c792063616c6c2074686973206d6574686f642e455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66a2646970667358221220358c156159049525df5b19d709db40efa82e22b848c1570ed357549c2680c8d064736f6c634300060c0033

Deployed Bytecode Sourcemap

70760:4245:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40220:193;;;;;;;;;;;;;;;;-1:-1:-1;40220:193:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41617:254;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41617:254:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;31198:142;;;;;;;;;;;;;;;;-1:-1:-1;31198:142:0;-1:-1:-1;;;;;;31198:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;40421:100;;;:::i;39434:236::-;;;;;;;;;;;;;;;;-1:-1:-1;39434:236:0;;:::i;:::-;;;;-1:-1:-1;;;;;39434:236:0;;;;;;;;;;;;;;71453:203;;;;;;;;;;;;;;;;-1:-1:-1;71453:203:0;;:::i;71664:320::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71664:320:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;71664:320:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;71664:320:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71664:320:0;;-1:-1:-1;71664:320:0;;-1:-1:-1;;;;;71664:320:0:i;:::-;;;;-1:-1:-1;;;;;;71664:320:0;;;;;;;;;;;;;;39138:188;;;:::i;:::-;;;;-1:-1:-1;;;;;39138:188:0;;;;;;;;;;;;;;;;;;;;;61981:921;;;;;;;;;;;;;;;;-1:-1:-1;;;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61981:921:0;;;;;;;;-1:-1:-1;61981:921:0;;-1:-1:-1;;;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61981:921:0;;;;;;;;-1:-1:-1;61981:921:0;;-1:-1:-1;;;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61981:921:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61981:921:0;;-1:-1:-1;61981:921:0;;-1:-1:-1;;;;;61981:921:0:i;:::-;;41066:151;;;;;;;;;;;;;;;;-1:-1:-1;41066:151:0;;:::i;45472:277::-;;;;;;;;;;;;;;;;-1:-1:-1;45472:277:0;;;;;;;:::i;36729:105::-;;;:::i;64550:591::-;;;;;;;;;;;;;;;;-1:-1:-1;64550:591:0;;;;;;;:::i;41942:362::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;41942:362:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;41942:362:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41942:362:0;;;;;;;;-1:-1:-1;41942:362:0;;-1:-1:-1;;;;;41942:362:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;41942:362:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41942:362:0;;-1:-1:-1;41942:362:0;;-1:-1:-1;;;;;41942:362:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40675:197;;;;;;;;;;;;;;;;-1:-1:-1;40675:197:0;;:::i;71355:90::-;;;:::i;59356:412::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59356:412:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59356:412:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59356:412:0;;;;;;;;-1:-1:-1;59356:412:0;;-1:-1:-1;;;;;59356:412:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59356:412:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59356:412:0;;-1:-1:-1;59356:412:0;;-1:-1:-1;;;;;59356:412:0:i;60868:237::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;60868:237:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;60868:237:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60868:237:0;;-1:-1:-1;60868:237:0;;-1:-1:-1;;;;;60868:237:0:i;:::-;;;;;;;-1:-1:-1;;;;;60868:237:0;;;;;;;;;;;;;;;;72223:330;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72223:330:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72223:330:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72223:330:0;;;;;;;;-1:-1:-1;72223:330:0;;-1:-1:-1;;;;;72223:330:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72223:330:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72223:330:0;;-1:-1:-1;72223:330:0;;-1:-1:-1;;;;;72223:330:0:i;40880:104::-;;;:::i;42375:402::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42375:402:0;;;;;;;;;;:::i;70895:452::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70895:452:0;;;;;;;;;;;;;;;-1:-1:-1;;;70895:452:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;70895:452:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70895:452:0;;;;;;;;-1:-1:-1;70895:452:0;;-1:-1:-1;;;;;70895:452:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;70895:452:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70895:452:0;;-1:-1:-1;70895:452:0;;-1:-1:-1;;;;;70895:452:0:i;71992:223::-;;;;;;;;;;;;;;;;-1:-1:-1;71992:223:0;;;;;;;:::i;39836:234::-;;;;;;;;;;;;;;;;-1:-1:-1;39836:234:0;;:::i;59881:99::-;;;:::i;45048:416::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45048:416:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;42848:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42848:218:0;;;;;;;;;;:::i;61113:797::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;61113:797:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61113:797:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61113:797:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61113:797:0;;-1:-1:-1;61113:797:0;;-1:-1:-1;;;;;61113:797:0:i;40220:193::-;40335:13;40373:25;40389:8;40373:15;:25::i;:::-;-1:-1:-1;;;;;40373:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40373:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;40373:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;40373:32:0;;;;;;-1:-1:-1;40373:32:0;;;;;;;;;;-1:-1:-1;40373:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40366:39;;40220:193;;;;:::o;41617:254::-;41754:7;41786:77;41808:8;41818:25;41834:8;41818:15;:25::i;:::-;-1:-1:-1;;;;;41818:35:0;;41854:7;41818:44;;;;;;;;;;;;;-1:-1:-1;;;;;41818:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41818:44:0;41786:21;:77::i;:::-;41779:84;;41617:254;;;;;:::o;31198:142::-;-1:-1:-1;;;;;;31299:33:0;31275:4;31299:33;;;;;;;;;;;;;;31198:142::o;40421:100::-;40508:5;40501:12;;;;;;;;-1:-1:-1;;40501:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40475:13;;40501:12;;40508:5;;40501:12;;40508:5;40501:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40421:100;;:::o;39434:236::-;39560:30;39646:15;;;:5;:15;;;;;;-1:-1:-1;;;;;39646:15:0;;39434:236::o;71453:203::-;71621:7;;71605:43;;;-1:-1:-1;;;71605:43:0;;;;;;;;;;71567:13;;-1:-1:-1;;;;;71621:7:0;;71605:33;;:43;;;;;71621:7;;71605:43;;;;;;;71621:7;71605:43;;;;;;;;;;71664:320;71863:7;;71822:6;;-1:-1:-1;;;;;71863:7:0;71849:10;:21;71841:54;;;;;-1:-1:-1;;;71841:54:0;;;;;;;;;;;;-1:-1:-1;;;71841:54:0;;;;;;;;;;;;;;;71906:22;71912:5;71919:8;71906:5;:22::i;:::-;-1:-1:-1;;;;71946:30:0;71664:320;-1:-1:-1;;;;;;71664:320:0:o;39138:188::-;39252:28;;39282:35;;-1:-1:-1;;;;;39252:28:0;;;39138:188;:::o;61981:921::-;-1:-1:-1;;;;;62238:16:0;;62230:66;;;;-1:-1:-1;;;62230:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62337:12;:10;:12::i;:::-;-1:-1:-1;;;;;62329:20:0;:4;-1:-1:-1;;;;;62329:20:0;;:60;;;;62353:36;62370:4;62376:12;:10;:12::i;:::-;62353:16;:36::i;:::-;62307:151;;;;-1:-1:-1;;;62307:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62476:9;62471:126;62495:9;:16;62491:1;:20;62471:126;;;62533:52;62550:4;62556:2;62560:9;62570:1;62560:12;;;;;;;;;;;;;;62574:7;62582:1;62574:10;;;;;;;;;;;;;;62533:16;:52::i;:::-;62513:3;;62471:126;;;;62609:16;62628:12;:10;:12::i;:::-;62609:31;;62688:2;-1:-1:-1;;;;;62658:53:0;62682:4;-1:-1:-1;;;;;62658:53:0;62672:8;-1:-1:-1;;;;;62658:53:0;;62692:9;62703:7;62658:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62724:170;62774:8;62797:4;62816:2;62833:9;62857:7;62879:4;62724:35;:170::i;:::-;61981:921;;;;;;:::o;41066:151::-;-1:-1:-1;41208:1:0;;41066:151::o;45472:277::-;45597:36;45704:25;45720:8;45704:15;:25::i;:::-;-1:-1:-1;;;;;45704:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45704:36:0;45700:2;:40;45677:64;;;;;45472:277;-1:-1:-1;;45472:277:0:o;36729:105::-;36825:1;36729:105;:::o;64550:591::-;64720:27;64761:11;64774:13;64790:21;64815:19;64825:8;64815:9;:19::i;:::-;64760:74;;;;;;;64848:6;:46;;;;;64889:5;64858:28;:36;64848:46;64845:199;;;64941:3;64935:2;64927:10;;64926:18;64988:36;;;;:44;;65031:1;64988:44;;;65027:1;64988:44;64966:66;;;;64959:73;;;;;;64845:199;65119:13;65115:2;:17;65083:28;:50;;;;;;;64550:591;-1:-1:-1;;;;;;64550:591:0:o;41942:362::-;42084:25;42147:8;:15;42133:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42133:30:0;;42122:41;;42179:9;42174:123;42198:8;:15;42194:1;:19;42174:123;;;42249:36;42259:8;42268:1;42259:11;;;;;;;;;;;;;;42272:9;42282:1;42272:12;;;;;;;;;;;;;;42249:9;:36::i;:::-;42235:8;42244:1;42235:11;;;;;;;;;;;;;;;;;:50;42215:3;;42174:123;;;;41942:362;;;;:::o;40675:197::-;40792:13;40830:25;40846:8;40830:15;:25::i;:::-;-1:-1:-1;;;;;40830:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71355:90;71430:7;;-1:-1:-1;;;;;71430:7:0;71355:90;:::o;59356:412::-;59480:15;;-1:-1:-1;;;;;59480:15:0;:29;59472:62;;;;;-1:-1:-1;;;59472:62:0;;;;;;;;;;;;-1:-1:-1;;;59472:62:0;;;;;;;;;;;;;;;59616:15;:28;;-1:-1:-1;;;;;;59616:28:0;59634:10;59616:28;;;;;;59600:82;;;-1:-1:-1;;;59600:82:0;;;;59546:49;;59634:10;59600:80;;:82;;;;;;;;;;;59634:10;59600:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59600:82:0;;-1:-1:-1;59693:67:0;59600:82;59747:4;59753:6;59693:10;:67::i;:::-;59356:412;;;:::o;60868:237::-;61020:7;61029;61054:43;;-1:-1:-1;;;61054:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72223:330;72361:9;72356:105;72380:9;:16;72376:1;:20;72356:105;;;72418:31;72424:9;72434:1;72424:12;;;;;;;;;;;;;;72438:7;72446:1;72438:10;;;;;;;;;;;;;;72418:5;:31::i;:::-;-1:-1:-1;;72398:3:0;;72356:105;;;;72522:1;-1:-1:-1;;;;;72476:69:0;72502:10;-1:-1:-1;;;;;72476:69:0;72490:10;-1:-1:-1;;;;;72476:69:0;;72526:9;72537:7;72476:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72223:330;;:::o;40880:104::-;40969:7;40962:14;;;;;;;-1:-1:-1;;40962:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40936:13;;40962:14;;40969:7;;40962:14;;40969:7;40962:14;;;;;;;;;;;;;;;;;;;;;;;;42375:402;42502:14;42519:12;:10;:12::i;:::-;42502:29;;42574:8;-1:-1:-1;;;;;42564:18:0;:6;-1:-1:-1;;;;;42564:18:0;;;42542:109;;;;-1:-1:-1;;;42542:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42664:26:0;;;;;;;:18;:26;;;;;;;;:36;;;;;;;;;;;;;:47;;-1:-1:-1;;42664:47:0;;;;;;;;;;42727:42;;;;;;;;;;;;;;;;;42375:402;;;:::o;70895:452::-;-1:-1:-1;;;;;71085:20:0;;71077:54;;;;;-1:-1:-1;;;71077:54:0;;;;;;;;;;;;-1:-1:-1;;;71077:54:0;;;;;;;;;;;;;;;71142:7;:16;;-1:-1:-1;;;;;;71142:16:0;-1:-1:-1;;;;;71142:16:0;;;;;71169:24;71180:4;71186:6;71169:10;:24::i;:::-;71268:7;;71258:18;;-1:-1:-1;;;;;71268:7:0;71258:9;:18::i;:::-;71242:36;;;;;;71232:4;71216:22;;;;;;:62;71204:9;;:74;;;;;;;;;;;;;;;;;;71289:50;71308:30;;;71289:18;:50::i;71992:223::-;72100:23;72106:8;72116:6;72100:5;:23::i;:::-;-1:-1:-1;;72139:68:0;;;;;;;;;;;;;;72186:1;;72166:10;;;;-1:-1:-1;;;;;;;;;;;72139:68:0;;;;;;;;;;71992:223;;:::o;39836:234::-;39958:7;39990:72;40012:8;40022:25;40038:8;40022:15;:25::i;:::-;-1:-1:-1;;;;;40022:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59881:99;59957:15;;-1:-1:-1;;;;;59957:15:0;59881:99;:::o;45048:416::-;45192:15;;;;:5;:15;;;;;;-1:-1:-1;;;;;45192:15:0;45211:10;45192:29;45184:62;;;;;-1:-1:-1;;;45184:62:0;;;;;;;;;;;;-1:-1:-1;;;45184:62:0;;;;;;;;;;;;;;;45257:20;45280:39;45302:8;45312:6;45280:21;:39::i;:::-;45257:62;-1:-1:-1;45333:17:0;45330:55;;45367:7;;;45330:55;45429:2;-1:-1:-1;;;;;45400:56:0;45423:4;-1:-1:-1;;;;;45400:56:0;45415:6;-1:-1:-1;;;;;45400:56:0;-1:-1:-1;;;;;;;;;;;45433:8:0;45443:12;45400:56;;;;;;;;;;;;;;;;;;;;;;;;45048:416;;;;;;;:::o;42848:218::-;-1:-1:-1;;;;;43021:27:0;;;42992:4;43021:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;42848:218::o;61113:797::-;-1:-1:-1;;;;;61345:16:0;;61337:66;;;;-1:-1:-1;;;61337:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61414:16;61433:12;:10;:12::i;:::-;61414:31;;61486:8;-1:-1:-1;;;;;61478:16:0;:4;-1:-1:-1;;;;;61478:16:0;;:52;;;;61498:32;61515:4;61521:8;61498:16;:32::i;:::-;61456:143;;;;-1:-1:-1;;;61456:143:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61612:44;61629:4;61635:2;61639:8;61649:6;61612:16;:44::i;:::-;61705:2;-1:-1:-1;;;;;61674:52:0;61699:4;-1:-1:-1;;;;;61674:52:0;61689:8;-1:-1:-1;;;;;61674:52:0;-1:-1:-1;;;;;;;;;;;61709:8:0;61719:6;61674:52;;;;;;;;;;;;;;;;;;;;;;;;61739:163;61784:8;61807:4;61826:2;61843:8;61866:6;61887:4;61739:30;:163::i;35012:1709::-;35196:28;;-1:-1:-1;;;;;35196:28:0;:42;35174:112;;;;;-1:-1:-1;;;35174:112:0;;;;;;;;;;;;-1:-1:-1;;;35174:112:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;35321:41:0;;35299:131;;;;-1:-1:-1;;;35299:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35510:28;:58;;-1:-1:-1;;;;;;35510:58:0;-1:-1:-1;;;;;35510:58:0;;;;;;;;35479:122;;;-1:-1:-1;;;35479:122:0;;;;:120;;:122;;;;;;;;;;;;;;;35510:58;35479:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35479:122:0;35441:35;:160;35634:22;;35479:122;35634:22;;;35660:13;35634:39;;35612:106;;;;;-1:-1:-1;;;35612:106:0;;;;;;;;;;;;-1:-1:-1;;;35612:106:0;;;;;;;;;;;;;;;35751:24;;;;;;35779:13;35751:41;;35729:110;;;;;-1:-1:-1;;;35729:110:0;;;;;;;;;;;;-1:-1:-1;;;35729:110:0;;;;;;;;;;;;;;;35852:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;35875:16:0;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;35914:2:0;35902:9;:14;35929:55;-1:-1:-1;;;35929:18:0;:55::i;:::-;35995:46;-1:-1:-1;;;35995:18:0;:46::i;:::-;36052:43;-1:-1:-1;;;36052:18:0;:43::i;:::-;36106:48;-1:-1:-1;;;36106:18:0;:48::i;:::-;36165:51;-1:-1:-1;;;36165:18:0;:51::i;:::-;36227:50;-1:-1:-1;;;36227:18:0;:50::i;:::-;36288;-1:-1:-1;;;36288:18:0;:50::i;:::-;36349:37;-1:-1:-1;;;36349:18:0;:37::i;:::-;36397:45;-1:-1:-1;;;36397:18:0;:45::i;:::-;36453:30;-1:-1:-1;;;36453:18:0;:30::i;:::-;36510;-1:-1:-1;;;36510:18:0;:30::i;:::-;36569:42;-1:-1:-1;;;36569:18:0;:42::i;:::-;36622:30;-1:-1:-1;;;36622:18:0;:30::i;:::-;36672;-1:-1:-1;;;36672:18:0;:30::i;72828:1196::-;72940:16;73010:31;;;:5;:31;;;;;;73027:13;;-1:-1:-1;;;;;73010:31:0;73056:28;73052:476;;73102:42;73149:29;:27;:29::i;:::-;73101:77;;;73282:4;73193:7;:86;73236:42;73243:34;73236:6;:42::i;:::-;73201:15;;;;:5;:15;;;;;;;;:77;;-1:-1:-1;;;;;;73201:77:0;-1:-1:-1;;;;;73201:77:0;;;;;;;;73193:86;;;;;;;;;;;;;;;:93;;-1:-1:-1;;73193:93:0;;;;;;;;;;;73322:9;;73201:77;;-1:-1:-1;73301:18:0;;73193:93;-1:-1:-1;;;73322:9:0;;;;:39;;73356:5;73322:39;;;;;;;;;;;;;-1:-1:-1;;73322:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;73356:5;73322:39;;73356:5;73322:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73334:19;73344:8;73334:9;:19::i;:::-;73301:60;;73407:14;-1:-1:-1;;;;;73376:51:0;;73428:8;73438:4;73444:7;73453:9;;73376:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73376:87:0;;;;;;;;-1:-1:-1;;73376:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73483:33:0;;-1:-1:-1;;;;;73483:33:0;;;-1:-1:-1;73491:8:0;;-1:-1:-1;73483:33:0;;;;;73052:476;;;73538:14;73573:25;73589:8;73573:15;:25::i;:::-;-1:-1:-1;;;;;73573:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73573:39:0;73560:9;;73556:2;:13;73555:57;;-1:-1:-1;73623:25:0;73639:8;73623:15;:25::i;:::-;-1:-1:-1;;;;;73623:30:0;;73654:4;73660:6;73623:44;;;;;;;;;;;;;-1:-1:-1;;;;;73623:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73678:20;73701:41;73719:4;73725:8;73735:6;73701:17;:41::i;:::-;73678:64;;73753:17;73773:54;73795:8;73814:12;73805:6;:21;73773;:54::i;:::-;73753:74;-1:-1:-1;73841:13:0;;73838:179;;73876:41;;;;;;-1:-1:-1;;;;;73876:41:0;;;;;;;;;;;;;;;;;;;;;;;73937:68;;;;;;;;;;;;;;-1:-1:-1;;;;;73937:68:0;;;73975:1;;73960:4;;-1:-1:-1;;;;;;;;;;;73937:68:0;;;;;;;;;;73838:179;72828:1196;;;;;;;;:::o;18332:106::-;18420:10;18332:106;:::o;62910:271::-;63026:14;63044:62;63083:4;63089:8;63099:6;63044:38;:62::i;:::-;63024:82;;;63117:25;63133:8;63117:15;:25::i;:::-;-1:-1:-1;;;;;63117:38:0;;63156:4;63162:2;63166:6;63117:56;;;;;;;;;;;;;-1:-1:-1;;;;;63117:56:0;;;;;;-1:-1:-1;;;;;63117:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;62910:271:0:o;46992:1009::-;47241:15;:2;-1:-1:-1;;;;;47241:13:0;;:15::i;:::-;47237:757;;;47311:2;-1:-1:-1;;;;;47294:43:0;;47360:8;47391:4;47418:3;47444:7;47474:4;47294:203;;;;;;;;;;;;;-1:-1:-1;;;;;47294:203:0;;;;;;-1:-1:-1;;;;;47294:203:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47294:203:0;;;47273:710;;;;:::i;:::-;;;;;;;;47856:6;47849:14;;-1:-1:-1;;;47849:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47273:710;47905:62;;-1:-1:-1;;;47905:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47273:710;-1:-1:-1;;;;;;47582:85:0;;-1:-1:-1;;;47582:85:0;47556:224;;47710:50;;-1:-1:-1;;;47710:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64164:378;64232:11;64245:13;64260:19;64281:21;64331:25;64347:8;64331:15;:25::i;:::-;-1:-1:-1;;;;;64331:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64331:36:0;;-1:-1:-1;64403:1:0;64386:18;;;:44;;64416:13;64412:2;:17;64386:44;;;64407:1;64386:44;64378:52;;64455:25;64471:8;64455:15;:25::i;:::-;-1:-1:-1;;;;;64455:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64455:39:0;64514:20;;;;;64529:5;;-1:-1:-1;64455:39:0;-1:-1:-1;64164:378:0;;-1:-1:-1;64164:378:0:o;72561:259::-;72669:7;72678;72698:29;72710:8;72720:6;72698:11;:29::i;:::-;-1:-1:-1;;72746:7:0;;72738:74;;;-1:-1:-1;;;72738:74:0;;72780:4;72738:74;;;;72787:10;72738:74;;;;;;;;;;;;;;;72746:7;72738:74;;;;;;;;-1:-1:-1;;;;;72746:7:0;;;;72738:33;;:74;;;;;72746:7;;72738:74;;;;;;72746:7;;72738:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72561:259;;;;;:::o;74032:494::-;74164:42;;;;;;;;;;;-1:-1:-1;;;74164:42:0;;;;74238:13;;74248:2;74238:13;;;74088;74238;;;;;;-1:-1:-1;;;;;74138:14:0;;;74164:42;74088:13;;74238;;;;;;;;;;-1:-1:-1;74238:13:0;74219:32;;-1:-1:-1;;;74262:3:0;74266:1;74262:6;;;;;;;;;;;:12;-1:-1:-1;;;;;74262:12:0;;;;;;;;;-1:-1:-1;;;74285:3:0;74289:1;74285:6;;;;;;;;;;;:12;-1:-1:-1;;;;;74285:12:0;;;;;;;;;74313:6;74308:182;74329:2;74325:1;:6;74308:182;;;74366:8;74403:1;74386:5;74392:1;74396:2;74392:6;74386:13;;;;;;;;;;-1:-1:-1;;;;;74386:18:0;;;;74380:25;;74375:31;;74366:41;;;;;;;;;;;;;;;;74353:3;74359:1;74361;74359:3;74357:1;:5;74353:10;;;;;;;;;;;:54;-1:-1:-1;;;;;74353:54:0;;;;;;;;;74435:8;74455:5;74461:1;74465:2;74461:6;74455:13;;;;;;;74435:43;;74455:13;;;74471:4;74449:27;;74435:43;;;;;;;;;;;;;;74422:3;74428:1;74430;74428:3;74426:1;:5;74422:10;;;;;;;;;;;:56;-1:-1:-1;;;;;74422:56:0;;;;;;;;-1:-1:-1;74333:3:0;;74308:182;;;-1:-1:-1;74514:3:0;74032:494;-1:-1:-1;;;;74032:494:0:o;31747:201::-;-1:-1:-1;;;;;;31831:25:0;;;;;31823:66;;;;;-1:-1:-1;;;31823:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31900:33:0;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;31900:40:0;31936:4;31900:40;;;31747:201::o;46033:951::-;46257:15;:2;-1:-1:-1;;;;;46257:13:0;;:15::i;:::-;46253:724;;;46327:2;-1:-1:-1;;;;;46310:38:0;;46371:8;46402:4;46429:2;46454:6;46483:4;46310:196;;;;;;;;;;;;;-1:-1:-1;;;;;46310:196:0;;;;;;-1:-1:-1;;;;;46310:196:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46310:196:0;;;46289:677;;;;:::i;:::-;-1:-1:-1;;;;;;46591:59:0;;-1:-1:-1;;;46591:59:0;46565:198;;46693:50;;-1:-1:-1;;;46693:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48009:500;48061:12;48283:21;48273:8;48269:36;-1:-1:-1;;;;;48155:169:0;48135:1;48110:229;48374:2;48371:1;48368;48361:16;48353:24;-1:-1:-1;48398:17:0;;48433:58;;;;48391:100;;48433:58;48463:9;48391:100;;48095:407;;;:::o;74534:468::-;74584:13;74614:7;74610:50;;-1:-1:-1;74638:10:0;;;;;;;;;;;;-1:-1:-1;;;74638:10:0;;;;;;74610:50;74679:2;74670:6;74711:69;74718:6;;74711:69;;74741:5;;74766:2;74761:7;;;;74711:69;;;74790:17;74820:3;74810:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74810:14:0;-1:-1:-1;74790:34:0;-1:-1:-1;;;74844:7:0;;74862:103;74869:7;;74862:103;;74926:2;74921;:7;74916:2;:12;74905:25;;74893:4;74898:3;;;;;;;74893:9;;;;;;;;;;;:37;-1:-1:-1;;;;;74893:37:0;;;;;;;;-1:-1:-1;74951:2:0;74945:8;;;;74862:103;;59988:432;60205:15;;60189:69;;;-1:-1:-1;;;60189:69:0;;;;;;;;;;60100:20;;;;-1:-1:-1;;;;;60205:15:0;;;;60189:49;;:69;;;;;;;;;;;60205:15;60189:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60189:69:0;;;;;;;;;-1:-1:-1;60189:69:0;-1:-1:-1;60272:16:0;;;;;:43;;-1:-1:-1;;;;;;60292:23:0;;;;60272:43;60269:144;;;60332:25;60348:8;60332:15;:25::i;:::-;-1:-1:-1;;;;;60332:38:0;;60371:4;60377:9;60388:12;60332:69;;;;;;;;;;;;;-1:-1:-1;;;;;60332:69:0;;;;;;-1:-1:-1;;;;;60332:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60269:144:0;59988:432;;;;;;:::o;63189:467::-;63315:23;63340:14;63367:18;63388:48;63419:8;63429:6;63388:30;:48::i;:::-;63367:69;;63447:25;63475;63491:8;63475:15;:25::i;:::-;-1:-1:-1;;;;;63475:35:0;;63511:4;63475:41;;;;;;;;;;;;;-1:-1:-1;;;;;63475:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63475:41:0;;-1:-1:-1;63545:25:0;63555:4;63561:8;63545:9;:25::i;:::-;63527:43;;63600:15;63590:6;:25;:58;;63638:10;63590:58;;;63618:17;63590:58;63581:67;;63189:467;;;;;;;;:::o;24899:422::-;25266:20;25305:8;;;24899:422::o;63664:492::-;63763:13;63778:20;63812:23;63837:14;63855:68;63894:10;63906:8;63916:6;63855:38;:68::i;:::-;63811:112;;;;63961:6;63942:15;:25;;63934:57;;;;;-1:-1:-1;;;63934:57:0;;;;;;;;;;;;-1:-1:-1;;;63934:57:0;;;;;;;;;;;;;;;64017:47;64035:10;64047:8;64057:6;64017:17;:47::i;:::-;64002:62;;64075:25;64091:8;64075:15;:25::i;:::-;-1:-1:-1;;;;;64075:30:0;;64106:10;64135:12;64126:6;:21;64118:29;;;64075:73;;;;;;;;;;;;;-1:-1:-1;;;;;64075:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63664:492;;;;;;;:::o;60428:432::-;60645:15;;60629:69;;;-1:-1:-1;;;60629:69:0;;;;;;;;;;60540:20;;;;-1:-1:-1;;;;;60645:15:0;;;;60629:49;;:69;;;;;;;;;;;60645:15;60629:69;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;110:106;195:3;191:15;;163:53::o;224:739::-;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;-1:-1;;318:23;414:10;357:34;-1:-1;382:8;357:34;:::i;:::-;406:19;396:2;;429:5;;396:2;460;454:9;496:16;-1:-1;;492:24;339:1;454:9;468:49;543:4;537:11;624:16;576:18;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;;553:2;693:6;687:4;683:17;672:28;;725:3;719:10;705:24;;576:18;740:6;737:30;734:2;;;770:5;;;;;;734:2;;847:16;841:4;837:27;807:4;814:6;802:3;794:27;;829:36;826:2;;;868:5;;;;;826:2;89:7;73:14;-1:-1;;69:28;892:50;;807:4;892:50;460:2;881:62;900:3;-1:-1;;267:696;:::o

Swarm Source

ipfs://358c156159049525df5b19d709db40efa82e22b848c1570ed357549c2680c8d0

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

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.