Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- ERC721LazyMintTransferProxy
- Optimization enabled
- true
- Compiler version
- v0.7.6+commit.7338295f
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2024-02-09T06:48:06.111139Z
@rarible/transfer-proxy/contracts/lazy-mint/erc721/ERC721LazyMintTransferProxy.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.9 <0.8.0; pragma abicoder v2; import "@rarible/exchange-interfaces/contracts/ITransferProxy.sol"; import "@rarible/lazy-mint/contracts/erc-721/LibERC721LazyMint.sol"; import "@rarible/lazy-mint/contracts/erc-721/IERC721LazyMint.sol"; import "@rarible/role-operator/contracts/OperatorRole.sol"; contract ERC721LazyMintTransferProxy is OperatorRole, ITransferProxy { function transfer(LibAsset.Asset memory asset, address from, address to) override onlyOperator external { require(asset.value == 1, "erc721 value error"); (address token, LibERC721LazyMint.Mint721Data memory data) = abi.decode(asset.assetType.data, (address, LibERC721LazyMint.Mint721Data)); IERC721LazyMint(token).transferFromOrMint(data, from, to); } }
@rarible/role-operator/contracts/OperatorRole.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.9 <0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract OperatorRole is OwnableUpgradeable { mapping (address => bool) operators; function __OperatorRole_init() external initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function addOperator(address operator) external onlyOwner { operators[operator] = true; } function removeOperator(address operator) external onlyOwner { operators[operator] = false; } modifier onlyOperator() { require(operators[_msgSender()], "OperatorRole: caller is not the operator"); _; } }
@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
@openzeppelin/contracts-upgradeable/introspection/IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @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); }
@openzeppelin/contracts-upgradeable/proxy/Initializable.sol
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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; }
@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 on 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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { 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); } } } }
@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } 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; } uint256[50] private __gap; }
@rarible/exchange-interfaces/contracts/ITransferProxy.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.9 <0.8.0; pragma abicoder v2; import "@rarible/lib-asset/contracts/LibAsset.sol"; interface ITransferProxy { function transfer(LibAsset.Asset calldata asset, address from, address to) external; }
@rarible/lazy-mint/contracts/erc-721/IERC721LazyMint.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; pragma abicoder v2; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "./LibERC721LazyMint.sol"; import "@rarible/lib-part/contracts/LibPart.sol"; interface IERC721LazyMint is IERC721Upgradeable { event Creators( uint256 tokenId, LibPart.Part[] creators ); function mintAndTransfer( LibERC721LazyMint.Mint721Data memory data, address to ) external; function transferFromOrMint( LibERC721LazyMint.Mint721Data memory data, address from, address to ) external; }
@rarible/lazy-mint/contracts/erc-721/LibERC721LazyMint.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "@rarible/lib-part/contracts/LibPart.sol"; library LibERC721LazyMint { bytes4 constant public ERC721_LAZY_ASSET_CLASS = bytes4(keccak256("ERC721_LAZY")); bytes4 constant _INTERFACE_ID_MINT_AND_TRANSFER = 0x8486f69f; struct Mint721Data { uint tokenId; string tokenURI; LibPart.Part[] creators; LibPart.Part[] royalties; bytes[] signatures; } bytes32 public constant MINT_AND_TRANSFER_TYPEHASH = keccak256("Mint721(uint256 tokenId,string tokenURI,Part[] creators,Part[] royalties)Part(address account,uint96 value)"); function hash(Mint721Data memory data) internal pure returns (bytes32) { bytes32[] memory royaltiesBytes = new bytes32[](data.royalties.length); for (uint i = 0; i < data.royalties.length; ++i) { royaltiesBytes[i] = LibPart.hash(data.royalties[i]); } bytes32[] memory creatorsBytes = new bytes32[](data.creators.length); for (uint i = 0; i < data.creators.length; ++i) { creatorsBytes[i] = LibPart.hash(data.creators[i]); } return keccak256(abi.encode( MINT_AND_TRANSFER_TYPEHASH, data.tokenId, keccak256(bytes(data.tokenURI)), keccak256(abi.encodePacked(creatorsBytes)), keccak256(abi.encodePacked(royaltiesBytes)) )); } }
@rarible/lib-asset/contracts/LibAsset.sol
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; library LibAsset { bytes4 constant public ETH_ASSET_CLASS = bytes4(keccak256("ETH")); bytes4 constant public ERC20_ASSET_CLASS = bytes4(keccak256("ERC20")); bytes4 constant public ERC721_ASSET_CLASS = bytes4(keccak256("ERC721")); bytes4 constant public ERC1155_ASSET_CLASS = bytes4(keccak256("ERC1155")); bytes4 constant public COLLECTION = bytes4(keccak256("COLLECTION")); bytes4 constant public CRYPTO_PUNKS = bytes4(keccak256("CRYPTO_PUNKS")); bytes32 constant ASSET_TYPE_TYPEHASH = keccak256( "AssetType(bytes4 assetClass,bytes data)" ); bytes32 constant ASSET_TYPEHASH = keccak256( "Asset(AssetType assetType,uint256 value)AssetType(bytes4 assetClass,bytes data)" ); struct AssetType { bytes4 assetClass; bytes data; } struct Asset { AssetType assetType; uint value; } function hash(AssetType memory assetType) internal pure returns (bytes32) { return keccak256(abi.encode( ASSET_TYPE_TYPEHASH, assetType.assetClass, keccak256(assetType.data) )); } function hash(Asset memory asset) internal pure returns (bytes32) { return keccak256(abi.encode( ASSET_TYPEHASH, hash(asset.assetType), asset.value )); } }
@rarible/lib-part/contracts/LibPart.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":200,"enabled":true},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul"}
Contract ABI
[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"__OperatorRole_init","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addOperator","inputs":[{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeOperator","inputs":[{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transfer","inputs":[{"type":"tuple","name":"asset","internalType":"struct LibAsset.Asset","components":[{"type":"tuple","name":"assetType","internalType":"struct LibAsset.AssetType","components":[{"type":"bytes4","name":"assetClass","internalType":"bytes4"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b50610e65806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a75780639870d7fe146100c5578063ac8a584a146100d8578063f2fde38b146100eb5761007d565b80632ff26a0a1461008257806354bc0cf11461008c578063715018a61461009f575b600080fd5b61008a6100fe565b005b61008a61009a3660046109fb565b6101b0565b61008a6102ce565b6100af61037a565b6040516100bc9190610bc4565b60405180910390f35b61008a6100d33660046108eb565b610389565b61008a6100e63660046108eb565b61040f565b61008a6100f93660046108eb565b610492565b600054610100900460ff16806101175750610117610595565b80610125575060005460ff16155b6101605760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff1615801561018b576000805460ff1961ff0019909116610100171660011790555b6101936105a6565b61019b610646565b80156101ad576000805461ff00191690555b50565b606560006101bc61073f565b6001600160a01b0316815260208101919091526040016000205460ff166102145760405162461bcd60e51b8152600401808060200182810382526028815260200180610e086028913960400191505060405180910390fd5b82602001516001146102415760405162461bcd60e51b815260040161023890610bd8565b60405180910390fd5b6000808460000151602001518060200190518101906102609190610907565b60405163832fbb2960e01b815291935091506001600160a01b0383169063832fbb299061029590849088908890600401610c04565b600060405180830381600087803b1580156102af57600080fd5b505af11580156102c3573d6000803e3d6000fd5b505050505050505050565b6102d661073f565b6001600160a01b03166102e761037a565b6001600160a01b031614610330576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6033546001600160a01b031690565b61039161073f565b6001600160a01b03166103a261037a565b6001600160a01b0316146103eb576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152606560205260409020805460ff19166001179055565b61041761073f565b6001600160a01b031661042861037a565b6001600160a01b031614610471576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152606560205260409020805460ff19169055565b61049a61073f565b6001600160a01b03166104ab61037a565b6001600160a01b0316146104f4576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b0381166105395760405162461bcd60e51b8152600401808060200182810382526026815260200180610d946026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60006105a030610743565b15905090565b600054610100900460ff16806105bf57506105bf610595565b806105cd575060005460ff16155b6106085760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff1615801561019b576000805460ff1961ff00199091166101001716600117905580156101ad576000805461ff001916905550565b600054610100900460ff168061065f575061065f610595565b8061066d575060005460ff16155b6106a85760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff161580156106d3576000805460ff1961ff0019909116610100171660011790555b60006106dd61073f565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156101ad576000805461ff001916905550565b3390565b803b15155b919050565b600061076061075b84610d2c565b610cea565b905082815283838301111561077457600080fd5b610782836020830184610d4e565b9392505050565b803561074881610d7e565b600082601f8301126107a4578081fd5b815160206107b461075b83610d0e565b82815281810190858301855b858110156107fe578151880189603f8201126107da578788fd5b6107eb8a878301516040840161074d565b85525092840192908401906001016107c0565b5090979650505050505050565b600082601f83011261081b578081fd5b8151602061082b61075b83610d0e565b82815281810190858301604080860288018501891015610849578687fd5b865b868110156108be5781838b031215610861578788fd5b815182810181811067ffffffffffffffff8211171561087c57fe5b8352835161088981610d7e565b8152838701516bffffffffffffffffffffffff811681146108a857898afd5b818801528552938501939181019160010161084b565b509198975050505050505050565b600082601f8301126108dc578081fd5b6107828383516020850161074d565b6000602082840312156108fc578081fd5b813561078281610d7e565b60008060408385031215610919578081fd5b825161092481610d7e565b602084015190925067ffffffffffffffff80821115610941578283fd5b9084019060a08287031215610954578283fd5b61095e60a0610cea565b82518152602083015182811115610973578485fd5b61097f888286016108cc565b602083015250604083015182811115610996578485fd5b6109a28882860161080b565b6040830152506060830151828111156109b9578485fd5b6109c58882860161080b565b6060830152506080830151828111156109dc578485fd5b6109e888828601610794565b6080830152508093505050509250929050565b600080600060608486031215610a0f578081fd5b833567ffffffffffffffff80821115610a26578283fd5b81860191506040808389031215610a3b578384fd5b80518181018181108482111715610a4e57fe5b808352843584811115610a5f578687fd5b8501808b03841315610a6f578687fd5b608083018281108682111715610a8157fe5b845280356001600160e01b031981168114610a9a578788fd5b825260208181013586811115610aae578889fd5b82019550601f86018c13610ac0578788fd5b85359150610ad061075b83610d2c565b8281528c82848901011115610ae3578889fd5b828288018383013788828483010152806060860152508284528087013581850152839950610b12818c01610789565b985050505050610b23818801610789565b93505050509250925092565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610b8d57815180516001600160a01b031688528301516bffffffffffffffffffffffff168388015260409096019590820190600101610b4f565b509495945050505050565b60008151808452610bb0816020860160208601610d4e565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b60208082526012908201527132b9319b9918903b30b63ab29032b93937b960711b604082015260600190565b6000606082528451606083015260208086015160a06080850152610c2c610100850182610b98565b90506040870151605f19808684030160a0870152610c4a8383610b3c565b925060608901519150808684030160c0870152610c678383610b3c565b60808a015187820390920160e0880152815180825290935090840191508383019084810284018501865b82811015610cbf57601f19868303018452610cad828651610b98565b94870194938701939150600101610c91565b508096505050505050610cd481840186610b2f565b50610ce26040830184610b2f565b949350505050565b60405181810167ffffffffffffffff81118282101715610d0657fe5b604052919050565b600067ffffffffffffffff821115610d2257fe5b5060209081020190565b600067ffffffffffffffff821115610d4057fe5b50601f01601f191660200190565b60005b83811015610d69578181015183820152602001610d51565b83811115610d78576000848401525b50505050565b6001600160a01b03811681146101ad57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724f70657261746f72526f6c653a2063616c6c6572206973206e6f7420746865206f70657261746f72a264697066735822122022780bcbc2a56161a6a3722e0e0c474492ff0b09629887f64b03fb1768e170fe64736f6c63430007060033
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a75780639870d7fe146100c5578063ac8a584a146100d8578063f2fde38b146100eb5761007d565b80632ff26a0a1461008257806354bc0cf11461008c578063715018a61461009f575b600080fd5b61008a6100fe565b005b61008a61009a3660046109fb565b6101b0565b61008a6102ce565b6100af61037a565b6040516100bc9190610bc4565b60405180910390f35b61008a6100d33660046108eb565b610389565b61008a6100e63660046108eb565b61040f565b61008a6100f93660046108eb565b610492565b600054610100900460ff16806101175750610117610595565b80610125575060005460ff16155b6101605760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff1615801561018b576000805460ff1961ff0019909116610100171660011790555b6101936105a6565b61019b610646565b80156101ad576000805461ff00191690555b50565b606560006101bc61073f565b6001600160a01b0316815260208101919091526040016000205460ff166102145760405162461bcd60e51b8152600401808060200182810382526028815260200180610e086028913960400191505060405180910390fd5b82602001516001146102415760405162461bcd60e51b815260040161023890610bd8565b60405180910390fd5b6000808460000151602001518060200190518101906102609190610907565b60405163832fbb2960e01b815291935091506001600160a01b0383169063832fbb299061029590849088908890600401610c04565b600060405180830381600087803b1580156102af57600080fd5b505af11580156102c3573d6000803e3d6000fd5b505050505050505050565b6102d661073f565b6001600160a01b03166102e761037a565b6001600160a01b031614610330576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6033546001600160a01b031690565b61039161073f565b6001600160a01b03166103a261037a565b6001600160a01b0316146103eb576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152606560205260409020805460ff19166001179055565b61041761073f565b6001600160a01b031661042861037a565b6001600160a01b031614610471576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152606560205260409020805460ff19169055565b61049a61073f565b6001600160a01b03166104ab61037a565b6001600160a01b0316146104f4576040805162461bcd60e51b81526020600482018190526024820152600080516020610de8833981519152604482015290519081900360640190fd5b6001600160a01b0381166105395760405162461bcd60e51b8152600401808060200182810382526026815260200180610d946026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60006105a030610743565b15905090565b600054610100900460ff16806105bf57506105bf610595565b806105cd575060005460ff16155b6106085760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff1615801561019b576000805460ff1961ff00199091166101001716600117905580156101ad576000805461ff001916905550565b600054610100900460ff168061065f575061065f610595565b8061066d575060005460ff16155b6106a85760405162461bcd60e51b815260040180806020018281038252602e815260200180610dba602e913960400191505060405180910390fd5b600054610100900460ff161580156106d3576000805460ff1961ff0019909116610100171660011790555b60006106dd61073f565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156101ad576000805461ff001916905550565b3390565b803b15155b919050565b600061076061075b84610d2c565b610cea565b905082815283838301111561077457600080fd5b610782836020830184610d4e565b9392505050565b803561074881610d7e565b600082601f8301126107a4578081fd5b815160206107b461075b83610d0e565b82815281810190858301855b858110156107fe578151880189603f8201126107da578788fd5b6107eb8a878301516040840161074d565b85525092840192908401906001016107c0565b5090979650505050505050565b600082601f83011261081b578081fd5b8151602061082b61075b83610d0e565b82815281810190858301604080860288018501891015610849578687fd5b865b868110156108be5781838b031215610861578788fd5b815182810181811067ffffffffffffffff8211171561087c57fe5b8352835161088981610d7e565b8152838701516bffffffffffffffffffffffff811681146108a857898afd5b818801528552938501939181019160010161084b565b509198975050505050505050565b600082601f8301126108dc578081fd5b6107828383516020850161074d565b6000602082840312156108fc578081fd5b813561078281610d7e565b60008060408385031215610919578081fd5b825161092481610d7e565b602084015190925067ffffffffffffffff80821115610941578283fd5b9084019060a08287031215610954578283fd5b61095e60a0610cea565b82518152602083015182811115610973578485fd5b61097f888286016108cc565b602083015250604083015182811115610996578485fd5b6109a28882860161080b565b6040830152506060830151828111156109b9578485fd5b6109c58882860161080b565b6060830152506080830151828111156109dc578485fd5b6109e888828601610794565b6080830152508093505050509250929050565b600080600060608486031215610a0f578081fd5b833567ffffffffffffffff80821115610a26578283fd5b81860191506040808389031215610a3b578384fd5b80518181018181108482111715610a4e57fe5b808352843584811115610a5f578687fd5b8501808b03841315610a6f578687fd5b608083018281108682111715610a8157fe5b845280356001600160e01b031981168114610a9a578788fd5b825260208181013586811115610aae578889fd5b82019550601f86018c13610ac0578788fd5b85359150610ad061075b83610d2c565b8281528c82848901011115610ae3578889fd5b828288018383013788828483010152806060860152508284528087013581850152839950610b12818c01610789565b985050505050610b23818801610789565b93505050509250925092565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610b8d57815180516001600160a01b031688528301516bffffffffffffffffffffffff168388015260409096019590820190600101610b4f565b509495945050505050565b60008151808452610bb0816020860160208601610d4e565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b60208082526012908201527132b9319b9918903b30b63ab29032b93937b960711b604082015260600190565b6000606082528451606083015260208086015160a06080850152610c2c610100850182610b98565b90506040870151605f19808684030160a0870152610c4a8383610b3c565b925060608901519150808684030160c0870152610c678383610b3c565b60808a015187820390920160e0880152815180825290935090840191508383019084810284018501865b82811015610cbf57601f19868303018452610cad828651610b98565b94870194938701939150600101610c91565b508096505050505050610cd481840186610b2f565b50610ce26040830184610b2f565b949350505050565b60405181810167ffffffffffffffff81118282101715610d0657fe5b604052919050565b600067ffffffffffffffff821115610d2257fe5b5060209081020190565b600067ffffffffffffffff821115610d4057fe5b50601f01601f191660200190565b60005b83811015610d69578181015183820152602001610d51565b83811115610d78576000848401525b50505050565b6001600160a01b03811681146101ad57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724f70657261746f72526f6c653a2063616c6c6572206973206e6f7420746865206f70657261746f72a264697066735822122022780bcbc2a56161a6a3722e0e0c474492ff0b09629887f64b03fb1768e170fe64736f6c63430007060033