Overview
TokenID
11766291
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
EthBlocks
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; import "./Minter.sol"; import "./@rarible/royalties/contracts/LibPart.sol"; /** * @title Eth Blocks * ETHB - a contract for creating Ethereum block NFTs */ contract EthBlocks is ERC721Tradable { address payable public royaltyAddress; uint96 public royaltyBasisPoints; Minter public minter; mapping(uint256 => bytes32) public blockHashes; using SafeMath for uint256; event Updated(uint256 tokenId, string url); /** * @dev Throws if called by any account other than the authorized minter. */ modifier onlyMinter() { require( address(minter) == _msgSender(), "EthBlocks: caller is not the minter" ); _; } constructor( address _proxyRegistryAddress, address payable _royaltyAddress, uint96 _royaltyBasisPoints, string memory _name, string memory _symbol ) ERC721Tradable(_name, _symbol, _proxyRegistryAddress) { royaltyAddress = _royaltyAddress; royaltyBasisPoints = _royaltyBasisPoints; } function contractURI() public pure returns (string memory) { return "https://ethblocksdata.mewapi.io/contract/meta"; } function changeMinter(Minter _minter) public onlyOwner { minter = _minter; } function changeRoyaltyAddress(address payable _royaltyAddress) public onlyOwner { royaltyAddress = _royaltyAddress; } function changeRoyaltyBasisPoints(uint96 _basisPoints) public onlyOwner { royaltyBasisPoints = _basisPoints; } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token * @param _blockNumber block number of the block * @param _blockHash bytes32 of the blockHash * @param _ipfsHash ipfsHash of the token URI */ function mint( address _to, uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash ) external onlyMinter { _safeMint(_to, _blockNumber); _setTokenURI(_blockNumber, _ipfsHash); blockHashes[_blockNumber] = _blockHash; emit RoyaltiesSet(_blockNumber, _getRoyalties()); } /** * @dev Updates a token to a new TokenURI. * @param _blockNumber block number of the block * @param _blockHash bytes32 of the blockHash * @param _ipfsHash ipfsHash of the token URI */ function updateToken( uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash ) external onlyMinter { _setTokenURI(_blockNumber, _ipfsHash); blockHashes[_blockNumber] = _blockHash; emit Updated(_blockNumber, tokenURI(_blockNumber)); } /** * @dev Rarible Royalties. * @param //_blockNumber token id */ function getRaribleV2Royalties( uint256 /*_blockNumber*/ ) public view override returns (LibPart.Part[] memory) { return _getRoyalties(); } /** * @dev ERC2981 for mintable. * @param //_blockNumber block number of the block * @param _salePrice sale price of NFT */ function royaltyInfo( uint256, /*_blockNumber*/ uint256 _salePrice ) external view returns (address receiver, uint256 royaltyAmount) { LibPart.Part[] memory _royalties = _getRoyalties(); if (_royalties.length > 0) { return ( _royalties[0].account, (_salePrice * _royalties[0].value) / 10000 ); } return (address(0), 0); } function _getRoyalties() internal view returns (LibPart.Part[] memory) { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0].value = royaltyBasisPoints; _royalties[0].account = royaltyAddress; return _royalties; } function getOwnersAllTokens(address _owner) public view returns (uint256[] memory) { uint256 balance = balanceOf(_owner); uint256[] memory tokens = new uint256[](balance); for (uint256 i = 0; i < balance; i++) { tokens[i] = tokenOfOwnerByIndex(_owner, i); } return tokens; } function multicall(bytes[] calldata data) external returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall( data[i] ); require(success); results[i] = result; } return results; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; /* Signature Verification How to Sign and Verify # Signing 1. Create message to sign 2. Hash the message 3. Sign the hash (off chain, keep your private key secret) # Verify 1. Recreate hash from the original message 2. Recover signer from signature and hash 3. Compare recovered signer to claimed signer */ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract VerifySignature { function getMessageHash( address _to, uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash, uint256 _price ) public pure returns (bytes32) { return keccak256( abi.encodePacked( _to, _blockNumber, _blockHash, _ipfsHash, _price ) ); } function verifySig( address _to, uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash, uint256 _price, address _signer, bytes memory signature ) public pure returns (bool) { bytes32 messageHash = getMessageHash( _to, _blockNumber, _blockHash, _ipfsHash, _price ); bytes32 ethSignedMessageHash = ECDSA.toEthSignedMessageHash( messageHash ); return ECDSA.recover(ethSignedMessageHash, signature) == _signer; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; import "./Signature.sol"; import "./EthBlocks.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Eth Blocks Minter * Contract to seperate minting logic */ contract Minter is Ownable, VerifySignature { address public signer; address payable public beneficiary; EthBlocks public ethBlock; using SafeMath for uint256; constructor( address _signer, address payable _beneficiary, EthBlocks _ethblock ) { signer = _signer; beneficiary = _beneficiary; ethBlock = _ethblock; } function changeSigner(address _newSigner) public onlyOwner { signer = _newSigner; } function changeBeneficiary(address payable _beneficiary) public onlyOwner { beneficiary = _beneficiary; } function changeEthBlock(EthBlocks _ethBlock) public onlyOwner { ethBlock = _ethBlock; } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token * @param _blockNumber block number of the block * @param _blockHash bytes32 of the blockHash * @param _ipfsHash ipfsHash of the token URI * @param _price price of the token * @param _signature signature of keccak256(abi.encodePacked(_blockNumber, _tokenId, _ipfsHash)) signed by the signer */ function mint( address _to, uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash, uint256 _price, bytes memory _signature ) external payable { require( verifySig( _to, _blockNumber, _blockHash, _ipfsHash, _price, signer, _signature ), "EthBlocksMinter: Not a valid signature" ); require(msg.value >= _price, "EthBlocksMinter: Price is low"); uint256 remainder = msg.value.sub(_price); beneficiary.transfer(_price); ethBlock.mint(_to, _blockNumber, _blockHash, _ipfsHash); payable(msg.sender).transfer(remainder); } function updateToken( address _to, uint256 _blockNumber, bytes32 _blockHash, string memory _ipfsHash, uint256 _price, bytes memory _signature ) external payable { require( verifySig( _to, _blockNumber, _blockHash, _ipfsHash, _price, signer, _signature ), "EthBlocks: Not a valid signature" ); require(msg.value >= _price, "EthBlocksMinter: Price is low"); require( ethBlock.ownerOf(_blockNumber) == msg.sender, "EthBlocksMinter: update caller is not owner" ); uint256 remainder = msg.value.sub(_price); beneficiary.transfer(_price); ethBlock.updateToken(_blockNumber, _blockHash, _ipfsHash); payable(msg.sender).transfer(remainder); } function multicall(bytes[] calldata data) external returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall( data[i] ); require(success); results[i] = result; } return results; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol"; import "./@rarible/royalties/contracts/RoyaltiesV2.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ERC721, ContextMixin, ERC721Enumerable, ERC721URIStorage, NativeMetaTransaction, Ownable, RoyaltiesV2 { using SafeMath for uint256; address proxyRegistryAddress; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal view override returns (address sender) { return ContextMixin.msgSender(); } function baseTokenURI() public pure returns (string memory) { return _baseURI(); } function _baseURI() internal pure override returns (string memory) { return "ipfs://"; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) { return true; } if (interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LibPart.sol"; interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibRoyaltiesV2 { /* * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca; }
// SPDX-License-Identifier: MIT pragma solidity ^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)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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"); (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"); (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"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address payable","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"_royaltyBasisPoints","type":"uint96"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"Updated","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blockHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract Minter","name":"_minter","type":"address"}],"name":"changeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_royaltyAddress","type":"address"}],"name":"changeRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_basisPoints","type":"uint96"}],"name":"changeRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnersAllTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes32","name":"_blockHash","type":"bytes32"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"contract Minter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyBasisPoints","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes32","name":"_blockHash","type":"bytes32"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200664e3803806200664e833981810160405281019062000052919062000790565b818186828281600090805190602001906200006f92919062000450565b5080600190805190602001906200008892919062000450565b505050620000ab6200009f6200017d60201b60201c565b6200019960201b60201c565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000fd836200025f60201b60201c565b50505083601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601060146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050505050620009c7565b600062000194620002e160201b62001f4e1760201c565b905090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600b60009054906101000a900460ff1615620002b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002a990620008b7565b60405180910390fd5b620002c3816200039460201b60201c565b6001600b60006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200038d57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505062000391565b3390505b90565b6040518060800160405280604f8152602001620065ff604f91398051906020012081805190602001206040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525080519060200120306200040b6200044360201b60201c565b60001b6040516020016200042495949392919062000905565b60405160208183030381529060405280519060200120600c8190555050565b6000804690508091505090565b8280546200045e9062000991565b90600052602060002090601f016020900481019282620004825760008555620004ce565b82601f106200049d57805160ff1916838001178555620004ce565b82800160010185558215620004ce579182015b82811115620004cd578251825591602001919060010190620004b0565b5b509050620004dd9190620004e1565b5090565b5b80821115620004fc576000816000905550600101620004e2565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005418262000514565b9050919050565b620005538162000534565b81146200055f57600080fd5b50565b600081519050620005738162000548565b92915050565b6000620005868262000514565b9050919050565b620005988162000579565b8114620005a457600080fd5b50565b600081519050620005b8816200058d565b92915050565b60006bffffffffffffffffffffffff82169050919050565b620005e181620005be565b8114620005ed57600080fd5b50565b6000815190506200060181620005d6565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200065c8262000611565b810181811067ffffffffffffffff821117156200067e576200067d62000622565b5b80604052505050565b60006200069362000500565b9050620006a1828262000651565b919050565b600067ffffffffffffffff821115620006c457620006c362000622565b5b620006cf8262000611565b9050602081019050919050565b60005b83811015620006fc578082015181840152602081019050620006df565b838111156200070c576000848401525b50505050565b6000620007296200072384620006a6565b62000687565b9050828152602081018484840111156200074857620007476200060c565b5b62000755848285620006dc565b509392505050565b600082601f83011262000775576200077462000607565b5b81516200078784826020860162000712565b91505092915050565b600080600080600060a08688031215620007af57620007ae6200050a565b5b6000620007bf8882890162000562565b9550506020620007d288828901620005a7565b9450506040620007e588828901620005f0565b935050606086015167ffffffffffffffff8111156200080957620008086200050f565b5b62000817888289016200075d565b925050608086015167ffffffffffffffff8111156200083b576200083a6200050f565b5b62000849888289016200075d565b9150509295509295909350565b600082825260208201905092915050565b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b60006200089f600e8362000856565b9150620008ac8262000867565b602082019050919050565b60006020820190508181036000830152620008d28162000890565b9050919050565b6000819050919050565b620008ee81620008d9565b82525050565b620008ff8162000534565b82525050565b600060a0820190506200091c6000830188620008e3565b6200092b6020830187620008e3565b6200093a6040830186620008e3565b620009496060830185620008f4565b620009586080830184620008e3565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009aa57607f821691505b60208210811415620009c157620009c062000962565b5b50919050565b615c2880620009d76000396000f3fe6080604052600436106102305760003560e01c80634f6ccce71161012e578063c87b56dd116100ab578063d547cfb71161006f578063d547cfb7146108b5578063e713d9c6146108e0578063e8a3d48514610909578063e985e9c514610934578063f2fde38b1461097157610230565b8063c87b56dd146107c0578063cad96cca146107fd578063cbefcbc31461083a578063d1cb756114610863578063d4bc675f1461088c57610230565b806395d89b41116100f257806395d89b41146106db578063a22cb46514610706578063ac9650d81461072f578063ad2f852a1461076c578063b88d4fde1461079757610230565b80634f6ccce7146105e25780636352211e1461061f57806370a082311461065c578063715018a6146106995780638da5cb5b146106b057610230565b806323b872dd116101bc5780633408e470116101805780633408e470146104e957806334cdf78d1461051457806342260b5d1461055157806342842e0e1461057c5780634d68b916146105a557610230565b806323b872dd146103df5780632a55205a146104085780632c4d4d18146104465780632d0335ab1461046f5780632f745c59146104ac57610230565b8063095ea7b311610203578063095ea7b3146103055780630c53c51c1461032e5780630f7e59701461035e57806318160ddd1461038957806320379ee5146103b457610230565b806301ffc9a71461023557806306fdde0314610272578063075461721461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613855565b61099a565b604051610269919061389d565b60405180910390f35b34801561027e57600080fd5b50610287610a59565b6040516102949190613951565b60405180910390f35b3480156102a957600080fd5b506102b2610aeb565b6040516102bf91906139f2565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190613a43565b610b11565b6040516102fc9190613a91565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613ad8565b610b96565b005b61034860048036038101906103439190613cbc565b610cae565b6040516103559190613da8565b60405180910390f35b34801561036a57600080fd5b50610373610f20565b6040516103809190613951565b60405180910390f35b34801561039557600080fd5b5061039e610f59565b6040516103ab9190613dd9565b60405180910390f35b3480156103c057600080fd5b506103c9610f66565b6040516103d69190613e03565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613e1e565b610f70565b005b34801561041457600080fd5b5061042f600480360381019061042a9190613e71565b610fd0565b60405161043d929190613eb1565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613f18565b611069565b005b34801561047b57600080fd5b5061049660048036038101906104919190613f45565b611129565b6040516104a39190613dd9565b60405180910390f35b3480156104b857600080fd5b506104d360048036038101906104ce9190613ad8565b611172565b6040516104e09190613dd9565b60405180910390f35b3480156104f557600080fd5b506104fe611217565b60405161050b9190613dd9565b60405180910390f35b34801561052057600080fd5b5061053b60048036038101906105369190613a43565b611224565b6040516105489190613e03565b60405180910390f35b34801561055d57600080fd5b5061056661123c565b6040516105739190613f99565b60405180910390f35b34801561058857600080fd5b506105a3600480360381019061059e9190613e1e565b61125a565b005b3480156105b157600080fd5b506105cc60048036038101906105c79190613f45565b61127a565b6040516105d99190614072565b60405180910390f35b3480156105ee57600080fd5b5061060960048036038101906106049190613a43565b611328565b6040516106169190613dd9565b60405180910390f35b34801561062b57600080fd5b5061064660048036038101906106419190613a43565b611399565b6040516106539190613a91565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e9190613f45565b61144b565b6040516106909190613dd9565b60405180910390f35b3480156106a557600080fd5b506106ae611503565b005b3480156106bc57600080fd5b506106c561158b565b6040516106d29190613a91565b60405180910390f35b3480156106e757600080fd5b506106f06115b5565b6040516106fd9190613951565b60405180910390f35b34801561071257600080fd5b5061072d600480360381019061072891906140c0565b611647565b005b34801561073b57600080fd5b5061075660048036038101906107519190614160565b6117c8565b60405161076391906142b9565b60405180910390f35b34801561077857600080fd5b50610781611902565b60405161078e91906142fc565b60405180910390f35b3480156107a357600080fd5b506107be60048036038101906107b99190614317565b611928565b005b3480156107cc57600080fd5b506107e760048036038101906107e29190613a43565b61198a565b6040516107f49190613951565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f9190613a43565b61199c565b6040516108319190614496565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614559565b6119ad565b005b34801561086f57600080fd5b5061088a600480360381019061088591906145c8565b611aac565b005b34801561089857600080fd5b506108b360048036038101906108ae9190614677565b611bb5565b005b3480156108c157600080fd5b506108ca611c75565b6040516108d79190613951565b60405180910390f35b3480156108ec57600080fd5b50610907600480360381019061090291906146d0565b611c84565b005b34801561091557600080fd5b5061091e611d34565b60405161092b9190613951565b60405180910390f35b34801561094057600080fd5b5061095b600480360381019061095691906146fd565b611d54565b604051610968919061389d565b60405180910390f35b34801561097d57600080fd5b5061099860048036038101906109939190613f45565b611e56565b005b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156109f25760019050610a54565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610a485760019050610a54565b610a5182611fff565b90505b919050565b606060008054610a689061476c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a949061476c565b8015610ae15780601f10610ab657610100808354040283529160200191610ae1565b820191906000526020600020905b815481529060010190602001808311610ac457829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610b1c82612079565b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290614810565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba182611399565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c09906148a2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c316120e5565b73ffffffffffffffffffffffffffffffffffffffff161480610c605750610c5f81610c5a6120e5565b611d54565b5b610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9690614934565b60405180910390fd5b610ca983836120f4565b505050565b606060006040518060600160405280600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610d3187828787876121ad565b610d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d67906149c6565b60405180910390fd5b610dc36001600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122b690919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610e39939291906149e6565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610e6e929190614aa8565b604051602081830303815290604052604051610e8a9190614ad0565b6000604051808303816000865af19150503d8060008114610ec7576040519150601f19603f3d011682016040523d82523d6000602084013e610ecc565b606091505b509150915081610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0890614b33565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600c54905090565b610f81610f7b6120e5565b826122cc565b610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790614bc5565b60405180910390fd5b610fcb8383836123aa565b505050565b6000806000610fdd612606565b90506000815111156110595780600081518110610ffd57610ffc614be5565b5b602002602001015160000151612710826000815181106110205761101f614be5565b5b6020026020010151602001516bffffffffffffffffffffffff16866110459190614c43565b61104f9190614ccc565b9250925050611062565b60008092509250505b9250929050565b6110716120e5565b73ffffffffffffffffffffffffffffffffffffffff1661108f61158b565b73ffffffffffffffffffffffffffffffffffffffff16146110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90614d49565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061117d8361144b565b82106111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b590614ddb565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b60126020528060005260406000206000915090505481565b601060149054906101000a90046bffffffffffffffffffffffff1681565b61127583838360405180602001604052806000815250611928565b505050565b606060006112878361144b565b905060008167ffffffffffffffff8111156112a5576112a4613b22565b5b6040519080825280602002602001820160405280156112d35781602001602082028036833780820191505090505b50905060005b8281101561131d576112eb8582611172565b8282815181106112fe576112fd614be5565b5b602002602001018181525050808061131590614dfb565b9150506112d9565b508092505050919050565b6000611332610f59565b8210611373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136a90614eb6565b60405180910390fd5b6008828154811061138757611386614be5565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614f48565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b390614fda565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61150b6120e5565b73ffffffffffffffffffffffffffffffffffffffff1661152961158b565b73ffffffffffffffffffffffffffffffffffffffff161461157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157690614d49565b60405180910390fd5b611589600061273a565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546115c49061476c565b80601f01602080910402602001604051908101604052809291908181526020018280546115f09061476c565b801561163d5780601f106116125761010080835404028352916020019161163d565b820191906000526020600020905b81548152906001019060200180831161162057829003601f168201915b5050505050905090565b61164f6120e5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490615046565b60405180910390fd5b80600560006116ca6120e5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117776120e5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117bc919061389d565b60405180910390a35050565b60608282905067ffffffffffffffff8111156117e7576117e6613b22565b5b60405190808252806020026020018201604052801561181a57816020015b60608152602001906001900390816118055790505b50905060005b838390508110156118fb576000803073ffffffffffffffffffffffffffffffffffffffff1686868581811061185857611857614be5565b5b905060200281019061186a9190615075565b6040516118789291906150fd565b600060405180830381855af49150503d80600081146118b3576040519150601f19603f3d011682016040523d82523d6000602084013e6118b8565b606091505b5091509150816118c757600080fd5b808484815181106118db576118da614be5565b5b6020026020010181905250505080806118f390614dfb565b915050611820565b5092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6119396119336120e5565b836122cc565b611978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196f90614bc5565b60405180910390fd5b61198484848484612800565b50505050565b60606119958261285c565b9050919050565b60606119a6612606565b9050919050565b6119b56120e5565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b90615188565b60405180910390fd5b611a4e83826129ae565b8160126000858152602001908152602001600020819055507f869eaec8fce459b49878f56773b8620ee220e51e2b9ca34d203a6cb3c73e125f83611a918561198a565b604051611a9f9291906151a8565b60405180910390a1505050565b611ab46120e5565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3a90615188565b60405180910390fd5b611b4d8484612a22565b611b5783826129ae565b8160126000858152602001908152602001600020819055507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df83611b99612606565b604051611ba79291906151d8565b60405180910390a150505050565b611bbd6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611bdb61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2890614d49565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611c7f612a40565b905090565b611c8c6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611caa61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790614d49565b60405180910390fd5b80601060146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b60606040518060600160405280602d8152602001615bc6602d9139905090565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611dcc9190613a91565b60206040518083038186803b158015611de457600080fd5b505afa158015611df8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1c9190615246565b73ffffffffffffffffffffffffffffffffffffffff161415611e42576001915050611e50565b611e4c8484612a7d565b9150505b92915050565b611e5e6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611e7c61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990614d49565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f39906152e5565b60405180910390fd5b611f4b8161273a565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611ff857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611ffc565b3390505b90565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612072575061207182612b11565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006120ef611f4e565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661216783611399565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561221e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221590615377565b60405180910390fd5b600161223161222c87612bf3565b612c5b565b8386866040516000815260200160405260405161225194939291906153a6565b6020604051602081039080840390855afa158015612273573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836122c491906153eb565b905092915050565b60006122d782612079565b612316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230d906154b3565b60405180910390fd5b600061232183611399565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061239057508373ffffffffffffffffffffffffffffffffffffffff1661237884610b11565b73ffffffffffffffffffffffffffffffffffffffff16145b806123a157506123a08185611d54565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123ca82611399565b73ffffffffffffffffffffffffffffffffffffffff1614612420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241790615545565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612490576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612487906155d7565b60405180910390fd5b61249b838383612c94565b6124a66000826120f4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124f691906155f7565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461254d91906153eb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60606000600167ffffffffffffffff81111561262557612624613b22565b5b60405190808252806020026020018201604052801561265e57816020015b61264b613708565b8152602001906001900390816126435790505b509050601060149054906101000a90046bffffffffffffffffffffffff16816000815181106126905761268f614be5565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816000815181106126f5576126f4614be5565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508091505090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61280b8484846123aa565b61281784848484612ca4565b612856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284d9061569d565b60405180910390fd5b50505050565b606061286782612079565b6128a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289d9061572f565b60405180910390fd5b6000600a600084815260200190815260200160002080546128c69061476c565b80601f01602080910402602001604051908101604052809291908181526020018280546128f29061476c565b801561293f5780601f106129145761010080835404028352916020019161293f565b820191906000526020600020905b81548152906001019060200180831161292257829003601f168201915b505050505090506000612950612a40565b90506000815114156129665781925050506129a9565b60008251111561299b57808260405160200161298392919061578b565b604051602081830303815290604052925050506129a9565b6129a484612e3b565b925050505b919050565b6129b782612079565b6129f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ed90615821565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190612a1d929190613746565b505050565b612a3c828260405180602001604052806000815250612ee2565b5050565b60606040518060400160405280600781526020017f697066733a2f2f00000000000000000000000000000000000000000000000000815250905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bdc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bec5750612beb82612f3d565b5b9050919050565b6000604051806080016040528060438152602001615b83604391398051906020012082600001518360200151846040015180519060200120604051602001612c3e9493929190615841565b604051602081830303815290604052805190602001209050919050565b6000612c65610f66565b82604051602001612c779291906158f3565b604051602081830303815290604052805190602001209050919050565b612c9f838383612fa7565b505050565b6000612cc58473ffffffffffffffffffffffffffffffffffffffff166130bb565b15612e2e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cee6120e5565b8786866040518563ffffffff1660e01b8152600401612d10949392919061592a565b602060405180830381600087803b158015612d2a57600080fd5b505af1925050508015612d5b57506040513d601f19601f82011682018060405250810190612d58919061598b565b60015b612dde573d8060008114612d8b576040519150601f19603f3d011682016040523d82523d6000602084013e612d90565b606091505b50600081511415612dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcd9061569d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e33565b600190505b949350505050565b6060612e4682612079565b612e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7c90615a2a565b60405180910390fd5b6000612e8f612a40565b90506000815111612eaf5760405180602001604052806000815250612eda565b80612eb9846130ce565b604051602001612eca92919061578b565b6040516020818303038152906040525b915050919050565b612eec838361322f565b612ef96000848484612ca4565b612f38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2f9061569d565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612fb28383836133fd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ff557612ff081613402565b613034565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461303357613032838261344b565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561307757613072816135b8565b6130b6565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130b5576130b48282613689565b5b5b505050565b600080823b905060008111915050919050565b60606000821415613116576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061322a565b600082905060005b6000821461314857808061313190614dfb565b915050600a826131419190614ccc565b915061311e565b60008167ffffffffffffffff81111561316457613163613b22565b5b6040519080825280601f01601f1916602001820160405280156131965781602001600182028036833780820191505090505b5090505b60008514613223576001826131af91906155f7565b9150600a856131be9190615a4a565b60306131ca91906153eb565b60f81b8183815181106131e0576131df614be5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561321c9190614ccc565b945061319a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561329f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329690615ac7565b60405180910390fd5b6132a881612079565b156132e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132df90615b33565b60405180910390fd5b6132f460008383612c94565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334491906153eb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016134588461144b565b61346291906155f7565b9050600060076000848152602001908152602001600020549050818114613547576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135cc91906155f7565b90506000600960008481526020019081526020016000205490506000600883815481106135fc576135fb614be5565b5b90600052602060002001549050806008838154811061361e5761361d614be5565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061366d5761366c615b53565b5b6001900381819060005260206000200160009055905550505050565b60006136948361144b565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b8280546137529061476c565b90600052602060002090601f01602090048101928261377457600085556137bb565b82601f1061378d57805160ff19168380011785556137bb565b828001600101855582156137bb579182015b828111156137ba57825182559160200191906001019061379f565b5b5090506137c891906137cc565b5090565b5b808211156137e55760008160009055506001016137cd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613832816137fd565b811461383d57600080fd5b50565b60008135905061384f81613829565b92915050565b60006020828403121561386b5761386a6137f3565b5b600061387984828501613840565b91505092915050565b60008115159050919050565b61389781613882565b82525050565b60006020820190506138b2600083018461388e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138f25780820151818401526020810190506138d7565b83811115613901576000848401525b50505050565b6000601f19601f8301169050919050565b6000613923826138b8565b61392d81856138c3565b935061393d8185602086016138d4565b61394681613907565b840191505092915050565b6000602082019050818103600083015261396b8184613918565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006139b86139b36139ae84613973565b613993565b613973565b9050919050565b60006139ca8261399d565b9050919050565b60006139dc826139bf565b9050919050565b6139ec816139d1565b82525050565b6000602082019050613a0760008301846139e3565b92915050565b6000819050919050565b613a2081613a0d565b8114613a2b57600080fd5b50565b600081359050613a3d81613a17565b92915050565b600060208284031215613a5957613a586137f3565b5b6000613a6784828501613a2e565b91505092915050565b6000613a7b82613973565b9050919050565b613a8b81613a70565b82525050565b6000602082019050613aa66000830184613a82565b92915050565b613ab581613a70565b8114613ac057600080fd5b50565b600081359050613ad281613aac565b92915050565b60008060408385031215613aef57613aee6137f3565b5b6000613afd85828601613ac3565b9250506020613b0e85828601613a2e565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5a82613907565b810181811067ffffffffffffffff82111715613b7957613b78613b22565b5b80604052505050565b6000613b8c6137e9565b9050613b988282613b51565b919050565b600067ffffffffffffffff821115613bb857613bb7613b22565b5b613bc182613907565b9050602081019050919050565b82818337600083830152505050565b6000613bf0613beb84613b9d565b613b82565b905082815260208101848484011115613c0c57613c0b613b1d565b5b613c17848285613bce565b509392505050565b600082601f830112613c3457613c33613b18565b5b8135613c44848260208601613bdd565b91505092915050565b6000819050919050565b613c6081613c4d565b8114613c6b57600080fd5b50565b600081359050613c7d81613c57565b92915050565b600060ff82169050919050565b613c9981613c83565b8114613ca457600080fd5b50565b600081359050613cb681613c90565b92915050565b600080600080600060a08688031215613cd857613cd76137f3565b5b6000613ce688828901613ac3565b955050602086013567ffffffffffffffff811115613d0757613d066137f8565b5b613d1388828901613c1f565b9450506040613d2488828901613c6e565b9350506060613d3588828901613c6e565b9250506080613d4688828901613ca7565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613d7a82613d53565b613d848185613d5e565b9350613d948185602086016138d4565b613d9d81613907565b840191505092915050565b60006020820190508181036000830152613dc28184613d6f565b905092915050565b613dd381613a0d565b82525050565b6000602082019050613dee6000830184613dca565b92915050565b613dfd81613c4d565b82525050565b6000602082019050613e186000830184613df4565b92915050565b600080600060608486031215613e3757613e366137f3565b5b6000613e4586828701613ac3565b9350506020613e5686828701613ac3565b9250506040613e6786828701613a2e565b9150509250925092565b60008060408385031215613e8857613e876137f3565b5b6000613e9685828601613a2e565b9250506020613ea785828601613a2e565b9150509250929050565b6000604082019050613ec66000830185613a82565b613ed36020830184613dca565b9392505050565b6000613ee582613a70565b9050919050565b613ef581613eda565b8114613f0057600080fd5b50565b600081359050613f1281613eec565b92915050565b600060208284031215613f2e57613f2d6137f3565b5b6000613f3c84828501613f03565b91505092915050565b600060208284031215613f5b57613f5a6137f3565b5b6000613f6984828501613ac3565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613f9381613f72565b82525050565b6000602082019050613fae6000830184613f8a565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fe981613a0d565b82525050565b6000613ffb8383613fe0565b60208301905092915050565b6000602082019050919050565b600061401f82613fb4565b6140298185613fbf565b935061403483613fd0565b8060005b8381101561406557815161404c8882613fef565b975061405783614007565b925050600181019050614038565b5085935050505092915050565b6000602082019050818103600083015261408c8184614014565b905092915050565b61409d81613882565b81146140a857600080fd5b50565b6000813590506140ba81614094565b92915050565b600080604083850312156140d7576140d66137f3565b5b60006140e585828601613ac3565b92505060206140f6858286016140ab565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126141205761411f613b18565b5b8235905067ffffffffffffffff81111561413d5761413c614100565b5b60208301915083602082028301111561415957614158614105565b5b9250929050565b60008060208385031215614177576141766137f3565b5b600083013567ffffffffffffffff811115614195576141946137f8565b5b6141a18582860161410a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b60006141f582613d53565b6141ff81856141d9565b935061420f8185602086016138d4565b61421881613907565b840191505092915050565b600061422f83836141ea565b905092915050565b6000602082019050919050565b600061424f826141ad565b61425981856141b8565b93508360208202850161426b856141c9565b8060005b858110156142a757848403895281516142888582614223565b945061429383614237565b925060208a0199505060018101905061426f565b50829750879550505050505092915050565b600060208201905081810360008301526142d38184614244565b905092915050565b60006142e682613973565b9050919050565b6142f6816142db565b82525050565b600060208201905061431160008301846142ed565b92915050565b60008060008060808587031215614331576143306137f3565b5b600061433f87828801613ac3565b945050602061435087828801613ac3565b935050604061436187828801613a2e565b925050606085013567ffffffffffffffff811115614382576143816137f8565b5b61438e87828801613c1f565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143cf816142db565b82525050565b6143de81613f72565b82525050565b6040820160008201516143fa60008501826143c6565b50602082015161440d60208501826143d5565b50505050565b600061441f83836143e4565b60408301905092915050565b6000602082019050919050565b60006144438261439a565b61444d81856143a5565b9350614458836143b6565b8060005b838110156144895781516144708882614413565b975061447b8361442b565b92505060018101905061445c565b5085935050505092915050565b600060208201905081810360008301526144b08184614438565b905092915050565b600067ffffffffffffffff8211156144d3576144d2613b22565b5b6144dc82613907565b9050602081019050919050565b60006144fc6144f7846144b8565b613b82565b90508281526020810184848401111561451857614517613b1d565b5b614523848285613bce565b509392505050565b600082601f8301126145405761453f613b18565b5b81356145508482602086016144e9565b91505092915050565b600080600060608486031215614572576145716137f3565b5b600061458086828701613a2e565b935050602061459186828701613c6e565b925050604084013567ffffffffffffffff8111156145b2576145b16137f8565b5b6145be8682870161452b565b9150509250925092565b600080600080608085870312156145e2576145e16137f3565b5b60006145f087828801613ac3565b945050602061460187828801613a2e565b935050604061461287828801613c6e565b925050606085013567ffffffffffffffff811115614633576146326137f8565b5b61463f8782880161452b565b91505092959194509250565b614654816142db565b811461465f57600080fd5b50565b6000813590506146718161464b565b92915050565b60006020828403121561468d5761468c6137f3565b5b600061469b84828501614662565b91505092915050565b6146ad81613f72565b81146146b857600080fd5b50565b6000813590506146ca816146a4565b92915050565b6000602082840312156146e6576146e56137f3565b5b60006146f4848285016146bb565b91505092915050565b60008060408385031215614714576147136137f3565b5b600061472285828601613ac3565b925050602061473385828601613ac3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061478457607f821691505b602082108114156147985761479761473d565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006147fa602c836138c3565b91506148058261479e565b604082019050919050565b60006020820190508181036000830152614829816147ed565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061488c6021836138c3565b915061489782614830565b604082019050919050565b600060208201905081810360008301526148bb8161487f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061491e6038836138c3565b9150614929826148c2565b604082019050919050565b6000602082019050818103600083015261494d81614911565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006149b06021836138c3565b91506149bb82614954565b604082019050919050565b600060208201905081810360008301526149df816149a3565b9050919050565b60006060820190506149fb6000830186613a82565b614a0860208301856142ed565b8181036040830152614a1a8184613d6f565b9050949350505050565b600081905092915050565b6000614a3a82613d53565b614a448185614a24565b9350614a548185602086016138d4565b80840191505092915050565b60008160601b9050919050565b6000614a7882614a60565b9050919050565b6000614a8a82614a6d565b9050919050565b614aa2614a9d82613a70565b614a7f565b82525050565b6000614ab48285614a2f565b9150614ac08284614a91565b6014820191508190509392505050565b6000614adc8284614a2f565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000614b1d601c836138c3565b9150614b2882614ae7565b602082019050919050565b60006020820190508181036000830152614b4c81614b10565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614baf6031836138c3565b9150614bba82614b53565b604082019050919050565b60006020820190508181036000830152614bde81614ba2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c4e82613a0d565b9150614c5983613a0d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c9257614c91614c14565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614cd782613a0d565b9150614ce283613a0d565b925082614cf257614cf1614c9d565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d336020836138c3565b9150614d3e82614cfd565b602082019050919050565b60006020820190508181036000830152614d6281614d26565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614dc5602b836138c3565b9150614dd082614d69565b604082019050919050565b60006020820190508181036000830152614df481614db8565b9050919050565b6000614e0682613a0d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e3957614e38614c14565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614ea0602c836138c3565b9150614eab82614e44565b604082019050919050565b60006020820190508181036000830152614ecf81614e93565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614f326029836138c3565b9150614f3d82614ed6565b604082019050919050565b60006020820190508181036000830152614f6181614f25565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614fc4602a836138c3565b9150614fcf82614f68565b604082019050919050565b60006020820190508181036000830152614ff381614fb7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006150306019836138c3565b915061503b82614ffa565b602082019050919050565b6000602082019050818103600083015261505f81615023565b9050919050565b600080fd5b600080fd5b600080fd5b6000808335600160200384360303811261509257615091615066565b5b80840192508235915067ffffffffffffffff8211156150b4576150b361506b565b5b6020830192506001820236038313156150d0576150cf615070565b5b509250929050565b60006150e48385614a24565b93506150f1838584613bce565b82840190509392505050565b600061510a8284866150d8565b91508190509392505050565b7f457468426c6f636b733a2063616c6c6572206973206e6f7420746865206d696e60008201527f7465720000000000000000000000000000000000000000000000000000000000602082015250565b60006151726023836138c3565b915061517d82615116565b604082019050919050565b600060208201905081810360008301526151a181615165565b9050919050565b60006040820190506151bd6000830185613dca565b81810360208301526151cf8184613918565b90509392505050565b60006040820190506151ed6000830185613dca565b81810360208301526151ff8184614438565b90509392505050565b600061521382613a70565b9050919050565b61522381615208565b811461522e57600080fd5b50565b6000815190506152408161521a565b92915050565b60006020828403121561525c5761525b6137f3565b5b600061526a84828501615231565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152cf6026836138c3565b91506152da82615273565b604082019050919050565b600060208201905081810360008301526152fe816152c2565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b60006153616025836138c3565b915061536c82615305565b604082019050919050565b6000602082019050818103600083015261539081615354565b9050919050565b6153a081613c83565b82525050565b60006080820190506153bb6000830187613df4565b6153c86020830186615397565b6153d56040830185613df4565b6153e26060830184613df4565b95945050505050565b60006153f682613a0d565b915061540183613a0d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561543657615435614c14565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061549d602c836138c3565b91506154a882615441565b604082019050919050565b600060208201905081810360008301526154cc81615490565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b600061552f6029836138c3565b915061553a826154d3565b604082019050919050565b6000602082019050818103600083015261555e81615522565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006155c16024836138c3565b91506155cc82615565565b604082019050919050565b600060208201905081810360008301526155f0816155b4565b9050919050565b600061560282613a0d565b915061560d83613a0d565b9250828210156156205761561f614c14565b5b828203905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006156876032836138c3565b91506156928261562b565b604082019050919050565b600060208201905081810360008301526156b68161567a565b9050919050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b60006157196031836138c3565b9150615724826156bd565b604082019050919050565b600060208201905081810360008301526157488161570c565b9050919050565b600081905092915050565b6000615765826138b8565b61576f818561574f565b935061577f8185602086016138d4565b80840191505092915050565b6000615797828561575a565b91506157a3828461575a565b91508190509392505050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b600061580b602e836138c3565b9150615816826157af565b604082019050919050565b6000602082019050818103600083015261583a816157fe565b9050919050565b60006080820190506158566000830187613df4565b6158636020830186613dca565b6158706040830185613a82565b61587d6060830184613df4565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006158bc60028361574f565b91506158c782615886565b600282019050919050565b6000819050919050565b6158ed6158e882613c4d565b6158d2565b82525050565b60006158fe826158af565b915061590a82856158dc565b60208201915061591a82846158dc565b6020820191508190509392505050565b600060808201905061593f6000830187613a82565b61594c6020830186613a82565b6159596040830185613dca565b818103606083015261596b8184613d6f565b905095945050505050565b60008151905061598581613829565b92915050565b6000602082840312156159a1576159a06137f3565b5b60006159af84828501615976565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615a14602f836138c3565b9150615a1f826159b8565b604082019050919050565b60006020820190508181036000830152615a4381615a07565b9050919050565b6000615a5582613a0d565b9150615a6083613a0d565b925082615a7057615a6f614c9d565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ab16020836138c3565b9150615abc82615a7b565b602082019050919050565b60006020820190508181036000830152615ae081615aa4565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615b1d601c836138c3565b9150615b2882615ae7565b602082019050919050565b60006020820190508181036000830152615b4c81615b10565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f657468626c6f636b73646174612e6d65776170692e696f2f636f6e74726163742f6d657461a2646970667358221220a04ee504cb9ecea20bc630510127d079b9dbd2de97d6e506cee44831b24def9464736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000d28f5c5e6de83dddf9b96f4f115763575db86e9e00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a45544820426c6f636b730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044554484200000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102305760003560e01c80634f6ccce71161012e578063c87b56dd116100ab578063d547cfb71161006f578063d547cfb7146108b5578063e713d9c6146108e0578063e8a3d48514610909578063e985e9c514610934578063f2fde38b1461097157610230565b8063c87b56dd146107c0578063cad96cca146107fd578063cbefcbc31461083a578063d1cb756114610863578063d4bc675f1461088c57610230565b806395d89b41116100f257806395d89b41146106db578063a22cb46514610706578063ac9650d81461072f578063ad2f852a1461076c578063b88d4fde1461079757610230565b80634f6ccce7146105e25780636352211e1461061f57806370a082311461065c578063715018a6146106995780638da5cb5b146106b057610230565b806323b872dd116101bc5780633408e470116101805780633408e470146104e957806334cdf78d1461051457806342260b5d1461055157806342842e0e1461057c5780634d68b916146105a557610230565b806323b872dd146103df5780632a55205a146104085780632c4d4d18146104465780632d0335ab1461046f5780632f745c59146104ac57610230565b8063095ea7b311610203578063095ea7b3146103055780630c53c51c1461032e5780630f7e59701461035e57806318160ddd1461038957806320379ee5146103b457610230565b806301ffc9a71461023557806306fdde0314610272578063075461721461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613855565b61099a565b604051610269919061389d565b60405180910390f35b34801561027e57600080fd5b50610287610a59565b6040516102949190613951565b60405180910390f35b3480156102a957600080fd5b506102b2610aeb565b6040516102bf91906139f2565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190613a43565b610b11565b6040516102fc9190613a91565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613ad8565b610b96565b005b61034860048036038101906103439190613cbc565b610cae565b6040516103559190613da8565b60405180910390f35b34801561036a57600080fd5b50610373610f20565b6040516103809190613951565b60405180910390f35b34801561039557600080fd5b5061039e610f59565b6040516103ab9190613dd9565b60405180910390f35b3480156103c057600080fd5b506103c9610f66565b6040516103d69190613e03565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613e1e565b610f70565b005b34801561041457600080fd5b5061042f600480360381019061042a9190613e71565b610fd0565b60405161043d929190613eb1565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613f18565b611069565b005b34801561047b57600080fd5b5061049660048036038101906104919190613f45565b611129565b6040516104a39190613dd9565b60405180910390f35b3480156104b857600080fd5b506104d360048036038101906104ce9190613ad8565b611172565b6040516104e09190613dd9565b60405180910390f35b3480156104f557600080fd5b506104fe611217565b60405161050b9190613dd9565b60405180910390f35b34801561052057600080fd5b5061053b60048036038101906105369190613a43565b611224565b6040516105489190613e03565b60405180910390f35b34801561055d57600080fd5b5061056661123c565b6040516105739190613f99565b60405180910390f35b34801561058857600080fd5b506105a3600480360381019061059e9190613e1e565b61125a565b005b3480156105b157600080fd5b506105cc60048036038101906105c79190613f45565b61127a565b6040516105d99190614072565b60405180910390f35b3480156105ee57600080fd5b5061060960048036038101906106049190613a43565b611328565b6040516106169190613dd9565b60405180910390f35b34801561062b57600080fd5b5061064660048036038101906106419190613a43565b611399565b6040516106539190613a91565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e9190613f45565b61144b565b6040516106909190613dd9565b60405180910390f35b3480156106a557600080fd5b506106ae611503565b005b3480156106bc57600080fd5b506106c561158b565b6040516106d29190613a91565b60405180910390f35b3480156106e757600080fd5b506106f06115b5565b6040516106fd9190613951565b60405180910390f35b34801561071257600080fd5b5061072d600480360381019061072891906140c0565b611647565b005b34801561073b57600080fd5b5061075660048036038101906107519190614160565b6117c8565b60405161076391906142b9565b60405180910390f35b34801561077857600080fd5b50610781611902565b60405161078e91906142fc565b60405180910390f35b3480156107a357600080fd5b506107be60048036038101906107b99190614317565b611928565b005b3480156107cc57600080fd5b506107e760048036038101906107e29190613a43565b61198a565b6040516107f49190613951565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f9190613a43565b61199c565b6040516108319190614496565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614559565b6119ad565b005b34801561086f57600080fd5b5061088a600480360381019061088591906145c8565b611aac565b005b34801561089857600080fd5b506108b360048036038101906108ae9190614677565b611bb5565b005b3480156108c157600080fd5b506108ca611c75565b6040516108d79190613951565b60405180910390f35b3480156108ec57600080fd5b50610907600480360381019061090291906146d0565b611c84565b005b34801561091557600080fd5b5061091e611d34565b60405161092b9190613951565b60405180910390f35b34801561094057600080fd5b5061095b600480360381019061095691906146fd565b611d54565b604051610968919061389d565b60405180910390f35b34801561097d57600080fd5b5061099860048036038101906109939190613f45565b611e56565b005b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156109f25760019050610a54565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610a485760019050610a54565b610a5182611fff565b90505b919050565b606060008054610a689061476c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a949061476c565b8015610ae15780601f10610ab657610100808354040283529160200191610ae1565b820191906000526020600020905b815481529060010190602001808311610ac457829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610b1c82612079565b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290614810565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba182611399565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c09906148a2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c316120e5565b73ffffffffffffffffffffffffffffffffffffffff161480610c605750610c5f81610c5a6120e5565b611d54565b5b610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9690614934565b60405180910390fd5b610ca983836120f4565b505050565b606060006040518060600160405280600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610d3187828787876121ad565b610d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d67906149c6565b60405180910390fd5b610dc36001600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122b690919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610e39939291906149e6565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610e6e929190614aa8565b604051602081830303815290604052604051610e8a9190614ad0565b6000604051808303816000865af19150503d8060008114610ec7576040519150601f19603f3d011682016040523d82523d6000602084013e610ecc565b606091505b509150915081610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0890614b33565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600c54905090565b610f81610f7b6120e5565b826122cc565b610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790614bc5565b60405180910390fd5b610fcb8383836123aa565b505050565b6000806000610fdd612606565b90506000815111156110595780600081518110610ffd57610ffc614be5565b5b602002602001015160000151612710826000815181106110205761101f614be5565b5b6020026020010151602001516bffffffffffffffffffffffff16866110459190614c43565b61104f9190614ccc565b9250925050611062565b60008092509250505b9250929050565b6110716120e5565b73ffffffffffffffffffffffffffffffffffffffff1661108f61158b565b73ffffffffffffffffffffffffffffffffffffffff16146110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90614d49565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061117d8361144b565b82106111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b590614ddb565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b60126020528060005260406000206000915090505481565b601060149054906101000a90046bffffffffffffffffffffffff1681565b61127583838360405180602001604052806000815250611928565b505050565b606060006112878361144b565b905060008167ffffffffffffffff8111156112a5576112a4613b22565b5b6040519080825280602002602001820160405280156112d35781602001602082028036833780820191505090505b50905060005b8281101561131d576112eb8582611172565b8282815181106112fe576112fd614be5565b5b602002602001018181525050808061131590614dfb565b9150506112d9565b508092505050919050565b6000611332610f59565b8210611373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136a90614eb6565b60405180910390fd5b6008828154811061138757611386614be5565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614f48565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b390614fda565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61150b6120e5565b73ffffffffffffffffffffffffffffffffffffffff1661152961158b565b73ffffffffffffffffffffffffffffffffffffffff161461157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157690614d49565b60405180910390fd5b611589600061273a565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546115c49061476c565b80601f01602080910402602001604051908101604052809291908181526020018280546115f09061476c565b801561163d5780601f106116125761010080835404028352916020019161163d565b820191906000526020600020905b81548152906001019060200180831161162057829003601f168201915b5050505050905090565b61164f6120e5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490615046565b60405180910390fd5b80600560006116ca6120e5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117776120e5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117bc919061389d565b60405180910390a35050565b60608282905067ffffffffffffffff8111156117e7576117e6613b22565b5b60405190808252806020026020018201604052801561181a57816020015b60608152602001906001900390816118055790505b50905060005b838390508110156118fb576000803073ffffffffffffffffffffffffffffffffffffffff1686868581811061185857611857614be5565b5b905060200281019061186a9190615075565b6040516118789291906150fd565b600060405180830381855af49150503d80600081146118b3576040519150601f19603f3d011682016040523d82523d6000602084013e6118b8565b606091505b5091509150816118c757600080fd5b808484815181106118db576118da614be5565b5b6020026020010181905250505080806118f390614dfb565b915050611820565b5092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6119396119336120e5565b836122cc565b611978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196f90614bc5565b60405180910390fd5b61198484848484612800565b50505050565b60606119958261285c565b9050919050565b60606119a6612606565b9050919050565b6119b56120e5565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b90615188565b60405180910390fd5b611a4e83826129ae565b8160126000858152602001908152602001600020819055507f869eaec8fce459b49878f56773b8620ee220e51e2b9ca34d203a6cb3c73e125f83611a918561198a565b604051611a9f9291906151a8565b60405180910390a1505050565b611ab46120e5565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3a90615188565b60405180910390fd5b611b4d8484612a22565b611b5783826129ae565b8160126000858152602001908152602001600020819055507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df83611b99612606565b604051611ba79291906151d8565b60405180910390a150505050565b611bbd6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611bdb61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2890614d49565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611c7f612a40565b905090565b611c8c6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611caa61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790614d49565b60405180910390fd5b80601060146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b60606040518060600160405280602d8152602001615bc6602d9139905090565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611dcc9190613a91565b60206040518083038186803b158015611de457600080fd5b505afa158015611df8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1c9190615246565b73ffffffffffffffffffffffffffffffffffffffff161415611e42576001915050611e50565b611e4c8484612a7d565b9150505b92915050565b611e5e6120e5565b73ffffffffffffffffffffffffffffffffffffffff16611e7c61158b565b73ffffffffffffffffffffffffffffffffffffffff1614611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990614d49565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f39906152e5565b60405180910390fd5b611f4b8161273a565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611ff857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611ffc565b3390505b90565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612072575061207182612b11565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006120ef611f4e565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661216783611399565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561221e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221590615377565b60405180910390fd5b600161223161222c87612bf3565b612c5b565b8386866040516000815260200160405260405161225194939291906153a6565b6020604051602081039080840390855afa158015612273573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836122c491906153eb565b905092915050565b60006122d782612079565b612316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230d906154b3565b60405180910390fd5b600061232183611399565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061239057508373ffffffffffffffffffffffffffffffffffffffff1661237884610b11565b73ffffffffffffffffffffffffffffffffffffffff16145b806123a157506123a08185611d54565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123ca82611399565b73ffffffffffffffffffffffffffffffffffffffff1614612420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241790615545565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612490576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612487906155d7565b60405180910390fd5b61249b838383612c94565b6124a66000826120f4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124f691906155f7565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461254d91906153eb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60606000600167ffffffffffffffff81111561262557612624613b22565b5b60405190808252806020026020018201604052801561265e57816020015b61264b613708565b8152602001906001900390816126435790505b509050601060149054906101000a90046bffffffffffffffffffffffff16816000815181106126905761268f614be5565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816000815181106126f5576126f4614be5565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508091505090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61280b8484846123aa565b61281784848484612ca4565b612856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284d9061569d565b60405180910390fd5b50505050565b606061286782612079565b6128a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289d9061572f565b60405180910390fd5b6000600a600084815260200190815260200160002080546128c69061476c565b80601f01602080910402602001604051908101604052809291908181526020018280546128f29061476c565b801561293f5780601f106129145761010080835404028352916020019161293f565b820191906000526020600020905b81548152906001019060200180831161292257829003601f168201915b505050505090506000612950612a40565b90506000815114156129665781925050506129a9565b60008251111561299b57808260405160200161298392919061578b565b604051602081830303815290604052925050506129a9565b6129a484612e3b565b925050505b919050565b6129b782612079565b6129f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ed90615821565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190612a1d929190613746565b505050565b612a3c828260405180602001604052806000815250612ee2565b5050565b60606040518060400160405280600781526020017f697066733a2f2f00000000000000000000000000000000000000000000000000815250905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bdc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bec5750612beb82612f3d565b5b9050919050565b6000604051806080016040528060438152602001615b83604391398051906020012082600001518360200151846040015180519060200120604051602001612c3e9493929190615841565b604051602081830303815290604052805190602001209050919050565b6000612c65610f66565b82604051602001612c779291906158f3565b604051602081830303815290604052805190602001209050919050565b612c9f838383612fa7565b505050565b6000612cc58473ffffffffffffffffffffffffffffffffffffffff166130bb565b15612e2e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cee6120e5565b8786866040518563ffffffff1660e01b8152600401612d10949392919061592a565b602060405180830381600087803b158015612d2a57600080fd5b505af1925050508015612d5b57506040513d601f19601f82011682018060405250810190612d58919061598b565b60015b612dde573d8060008114612d8b576040519150601f19603f3d011682016040523d82523d6000602084013e612d90565b606091505b50600081511415612dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcd9061569d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e33565b600190505b949350505050565b6060612e4682612079565b612e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7c90615a2a565b60405180910390fd5b6000612e8f612a40565b90506000815111612eaf5760405180602001604052806000815250612eda565b80612eb9846130ce565b604051602001612eca92919061578b565b6040516020818303038152906040525b915050919050565b612eec838361322f565b612ef96000848484612ca4565b612f38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2f9061569d565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612fb28383836133fd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ff557612ff081613402565b613034565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461303357613032838261344b565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561307757613072816135b8565b6130b6565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130b5576130b48282613689565b5b5b505050565b600080823b905060008111915050919050565b60606000821415613116576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061322a565b600082905060005b6000821461314857808061313190614dfb565b915050600a826131419190614ccc565b915061311e565b60008167ffffffffffffffff81111561316457613163613b22565b5b6040519080825280601f01601f1916602001820160405280156131965781602001600182028036833780820191505090505b5090505b60008514613223576001826131af91906155f7565b9150600a856131be9190615a4a565b60306131ca91906153eb565b60f81b8183815181106131e0576131df614be5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561321c9190614ccc565b945061319a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561329f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329690615ac7565b60405180910390fd5b6132a881612079565b156132e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132df90615b33565b60405180910390fd5b6132f460008383612c94565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334491906153eb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016134588461144b565b61346291906155f7565b9050600060076000848152602001908152602001600020549050818114613547576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135cc91906155f7565b90506000600960008481526020019081526020016000205490506000600883815481106135fc576135fb614be5565b5b90600052602060002001549050806008838154811061361e5761361d614be5565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061366d5761366c615b53565b5b6001900381819060005260206000200160009055905550505050565b60006136948361144b565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b8280546137529061476c565b90600052602060002090601f01602090048101928261377457600085556137bb565b82601f1061378d57805160ff19168380011785556137bb565b828001600101855582156137bb579182015b828111156137ba57825182559160200191906001019061379f565b5b5090506137c891906137cc565b5090565b5b808211156137e55760008160009055506001016137cd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613832816137fd565b811461383d57600080fd5b50565b60008135905061384f81613829565b92915050565b60006020828403121561386b5761386a6137f3565b5b600061387984828501613840565b91505092915050565b60008115159050919050565b61389781613882565b82525050565b60006020820190506138b2600083018461388e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138f25780820151818401526020810190506138d7565b83811115613901576000848401525b50505050565b6000601f19601f8301169050919050565b6000613923826138b8565b61392d81856138c3565b935061393d8185602086016138d4565b61394681613907565b840191505092915050565b6000602082019050818103600083015261396b8184613918565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006139b86139b36139ae84613973565b613993565b613973565b9050919050565b60006139ca8261399d565b9050919050565b60006139dc826139bf565b9050919050565b6139ec816139d1565b82525050565b6000602082019050613a0760008301846139e3565b92915050565b6000819050919050565b613a2081613a0d565b8114613a2b57600080fd5b50565b600081359050613a3d81613a17565b92915050565b600060208284031215613a5957613a586137f3565b5b6000613a6784828501613a2e565b91505092915050565b6000613a7b82613973565b9050919050565b613a8b81613a70565b82525050565b6000602082019050613aa66000830184613a82565b92915050565b613ab581613a70565b8114613ac057600080fd5b50565b600081359050613ad281613aac565b92915050565b60008060408385031215613aef57613aee6137f3565b5b6000613afd85828601613ac3565b9250506020613b0e85828601613a2e565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5a82613907565b810181811067ffffffffffffffff82111715613b7957613b78613b22565b5b80604052505050565b6000613b8c6137e9565b9050613b988282613b51565b919050565b600067ffffffffffffffff821115613bb857613bb7613b22565b5b613bc182613907565b9050602081019050919050565b82818337600083830152505050565b6000613bf0613beb84613b9d565b613b82565b905082815260208101848484011115613c0c57613c0b613b1d565b5b613c17848285613bce565b509392505050565b600082601f830112613c3457613c33613b18565b5b8135613c44848260208601613bdd565b91505092915050565b6000819050919050565b613c6081613c4d565b8114613c6b57600080fd5b50565b600081359050613c7d81613c57565b92915050565b600060ff82169050919050565b613c9981613c83565b8114613ca457600080fd5b50565b600081359050613cb681613c90565b92915050565b600080600080600060a08688031215613cd857613cd76137f3565b5b6000613ce688828901613ac3565b955050602086013567ffffffffffffffff811115613d0757613d066137f8565b5b613d1388828901613c1f565b9450506040613d2488828901613c6e565b9350506060613d3588828901613c6e565b9250506080613d4688828901613ca7565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613d7a82613d53565b613d848185613d5e565b9350613d948185602086016138d4565b613d9d81613907565b840191505092915050565b60006020820190508181036000830152613dc28184613d6f565b905092915050565b613dd381613a0d565b82525050565b6000602082019050613dee6000830184613dca565b92915050565b613dfd81613c4d565b82525050565b6000602082019050613e186000830184613df4565b92915050565b600080600060608486031215613e3757613e366137f3565b5b6000613e4586828701613ac3565b9350506020613e5686828701613ac3565b9250506040613e6786828701613a2e565b9150509250925092565b60008060408385031215613e8857613e876137f3565b5b6000613e9685828601613a2e565b9250506020613ea785828601613a2e565b9150509250929050565b6000604082019050613ec66000830185613a82565b613ed36020830184613dca565b9392505050565b6000613ee582613a70565b9050919050565b613ef581613eda565b8114613f0057600080fd5b50565b600081359050613f1281613eec565b92915050565b600060208284031215613f2e57613f2d6137f3565b5b6000613f3c84828501613f03565b91505092915050565b600060208284031215613f5b57613f5a6137f3565b5b6000613f6984828501613ac3565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613f9381613f72565b82525050565b6000602082019050613fae6000830184613f8a565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fe981613a0d565b82525050565b6000613ffb8383613fe0565b60208301905092915050565b6000602082019050919050565b600061401f82613fb4565b6140298185613fbf565b935061403483613fd0565b8060005b8381101561406557815161404c8882613fef565b975061405783614007565b925050600181019050614038565b5085935050505092915050565b6000602082019050818103600083015261408c8184614014565b905092915050565b61409d81613882565b81146140a857600080fd5b50565b6000813590506140ba81614094565b92915050565b600080604083850312156140d7576140d66137f3565b5b60006140e585828601613ac3565b92505060206140f6858286016140ab565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126141205761411f613b18565b5b8235905067ffffffffffffffff81111561413d5761413c614100565b5b60208301915083602082028301111561415957614158614105565b5b9250929050565b60008060208385031215614177576141766137f3565b5b600083013567ffffffffffffffff811115614195576141946137f8565b5b6141a18582860161410a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b60006141f582613d53565b6141ff81856141d9565b935061420f8185602086016138d4565b61421881613907565b840191505092915050565b600061422f83836141ea565b905092915050565b6000602082019050919050565b600061424f826141ad565b61425981856141b8565b93508360208202850161426b856141c9565b8060005b858110156142a757848403895281516142888582614223565b945061429383614237565b925060208a0199505060018101905061426f565b50829750879550505050505092915050565b600060208201905081810360008301526142d38184614244565b905092915050565b60006142e682613973565b9050919050565b6142f6816142db565b82525050565b600060208201905061431160008301846142ed565b92915050565b60008060008060808587031215614331576143306137f3565b5b600061433f87828801613ac3565b945050602061435087828801613ac3565b935050604061436187828801613a2e565b925050606085013567ffffffffffffffff811115614382576143816137f8565b5b61438e87828801613c1f565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143cf816142db565b82525050565b6143de81613f72565b82525050565b6040820160008201516143fa60008501826143c6565b50602082015161440d60208501826143d5565b50505050565b600061441f83836143e4565b60408301905092915050565b6000602082019050919050565b60006144438261439a565b61444d81856143a5565b9350614458836143b6565b8060005b838110156144895781516144708882614413565b975061447b8361442b565b92505060018101905061445c565b5085935050505092915050565b600060208201905081810360008301526144b08184614438565b905092915050565b600067ffffffffffffffff8211156144d3576144d2613b22565b5b6144dc82613907565b9050602081019050919050565b60006144fc6144f7846144b8565b613b82565b90508281526020810184848401111561451857614517613b1d565b5b614523848285613bce565b509392505050565b600082601f8301126145405761453f613b18565b5b81356145508482602086016144e9565b91505092915050565b600080600060608486031215614572576145716137f3565b5b600061458086828701613a2e565b935050602061459186828701613c6e565b925050604084013567ffffffffffffffff8111156145b2576145b16137f8565b5b6145be8682870161452b565b9150509250925092565b600080600080608085870312156145e2576145e16137f3565b5b60006145f087828801613ac3565b945050602061460187828801613a2e565b935050604061461287828801613c6e565b925050606085013567ffffffffffffffff811115614633576146326137f8565b5b61463f8782880161452b565b91505092959194509250565b614654816142db565b811461465f57600080fd5b50565b6000813590506146718161464b565b92915050565b60006020828403121561468d5761468c6137f3565b5b600061469b84828501614662565b91505092915050565b6146ad81613f72565b81146146b857600080fd5b50565b6000813590506146ca816146a4565b92915050565b6000602082840312156146e6576146e56137f3565b5b60006146f4848285016146bb565b91505092915050565b60008060408385031215614714576147136137f3565b5b600061472285828601613ac3565b925050602061473385828601613ac3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061478457607f821691505b602082108114156147985761479761473d565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006147fa602c836138c3565b91506148058261479e565b604082019050919050565b60006020820190508181036000830152614829816147ed565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061488c6021836138c3565b915061489782614830565b604082019050919050565b600060208201905081810360008301526148bb8161487f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061491e6038836138c3565b9150614929826148c2565b604082019050919050565b6000602082019050818103600083015261494d81614911565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006149b06021836138c3565b91506149bb82614954565b604082019050919050565b600060208201905081810360008301526149df816149a3565b9050919050565b60006060820190506149fb6000830186613a82565b614a0860208301856142ed565b8181036040830152614a1a8184613d6f565b9050949350505050565b600081905092915050565b6000614a3a82613d53565b614a448185614a24565b9350614a548185602086016138d4565b80840191505092915050565b60008160601b9050919050565b6000614a7882614a60565b9050919050565b6000614a8a82614a6d565b9050919050565b614aa2614a9d82613a70565b614a7f565b82525050565b6000614ab48285614a2f565b9150614ac08284614a91565b6014820191508190509392505050565b6000614adc8284614a2f565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000614b1d601c836138c3565b9150614b2882614ae7565b602082019050919050565b60006020820190508181036000830152614b4c81614b10565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614baf6031836138c3565b9150614bba82614b53565b604082019050919050565b60006020820190508181036000830152614bde81614ba2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c4e82613a0d565b9150614c5983613a0d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c9257614c91614c14565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614cd782613a0d565b9150614ce283613a0d565b925082614cf257614cf1614c9d565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d336020836138c3565b9150614d3e82614cfd565b602082019050919050565b60006020820190508181036000830152614d6281614d26565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614dc5602b836138c3565b9150614dd082614d69565b604082019050919050565b60006020820190508181036000830152614df481614db8565b9050919050565b6000614e0682613a0d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e3957614e38614c14565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614ea0602c836138c3565b9150614eab82614e44565b604082019050919050565b60006020820190508181036000830152614ecf81614e93565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614f326029836138c3565b9150614f3d82614ed6565b604082019050919050565b60006020820190508181036000830152614f6181614f25565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614fc4602a836138c3565b9150614fcf82614f68565b604082019050919050565b60006020820190508181036000830152614ff381614fb7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006150306019836138c3565b915061503b82614ffa565b602082019050919050565b6000602082019050818103600083015261505f81615023565b9050919050565b600080fd5b600080fd5b600080fd5b6000808335600160200384360303811261509257615091615066565b5b80840192508235915067ffffffffffffffff8211156150b4576150b361506b565b5b6020830192506001820236038313156150d0576150cf615070565b5b509250929050565b60006150e48385614a24565b93506150f1838584613bce565b82840190509392505050565b600061510a8284866150d8565b91508190509392505050565b7f457468426c6f636b733a2063616c6c6572206973206e6f7420746865206d696e60008201527f7465720000000000000000000000000000000000000000000000000000000000602082015250565b60006151726023836138c3565b915061517d82615116565b604082019050919050565b600060208201905081810360008301526151a181615165565b9050919050565b60006040820190506151bd6000830185613dca565b81810360208301526151cf8184613918565b90509392505050565b60006040820190506151ed6000830185613dca565b81810360208301526151ff8184614438565b90509392505050565b600061521382613a70565b9050919050565b61522381615208565b811461522e57600080fd5b50565b6000815190506152408161521a565b92915050565b60006020828403121561525c5761525b6137f3565b5b600061526a84828501615231565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152cf6026836138c3565b91506152da82615273565b604082019050919050565b600060208201905081810360008301526152fe816152c2565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b60006153616025836138c3565b915061536c82615305565b604082019050919050565b6000602082019050818103600083015261539081615354565b9050919050565b6153a081613c83565b82525050565b60006080820190506153bb6000830187613df4565b6153c86020830186615397565b6153d56040830185613df4565b6153e26060830184613df4565b95945050505050565b60006153f682613a0d565b915061540183613a0d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561543657615435614c14565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061549d602c836138c3565b91506154a882615441565b604082019050919050565b600060208201905081810360008301526154cc81615490565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b600061552f6029836138c3565b915061553a826154d3565b604082019050919050565b6000602082019050818103600083015261555e81615522565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006155c16024836138c3565b91506155cc82615565565b604082019050919050565b600060208201905081810360008301526155f0816155b4565b9050919050565b600061560282613a0d565b915061560d83613a0d565b9250828210156156205761561f614c14565b5b828203905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006156876032836138c3565b91506156928261562b565b604082019050919050565b600060208201905081810360008301526156b68161567a565b9050919050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b60006157196031836138c3565b9150615724826156bd565b604082019050919050565b600060208201905081810360008301526157488161570c565b9050919050565b600081905092915050565b6000615765826138b8565b61576f818561574f565b935061577f8185602086016138d4565b80840191505092915050565b6000615797828561575a565b91506157a3828461575a565b91508190509392505050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b600061580b602e836138c3565b9150615816826157af565b604082019050919050565b6000602082019050818103600083015261583a816157fe565b9050919050565b60006080820190506158566000830187613df4565b6158636020830186613dca565b6158706040830185613a82565b61587d6060830184613df4565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006158bc60028361574f565b91506158c782615886565b600282019050919050565b6000819050919050565b6158ed6158e882613c4d565b6158d2565b82525050565b60006158fe826158af565b915061590a82856158dc565b60208201915061591a82846158dc565b6020820191508190509392505050565b600060808201905061593f6000830187613a82565b61594c6020830186613a82565b6159596040830185613dca565b818103606083015261596b8184613d6f565b905095945050505050565b60008151905061598581613829565b92915050565b6000602082840312156159a1576159a06137f3565b5b60006159af84828501615976565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615a14602f836138c3565b9150615a1f826159b8565b604082019050919050565b60006020820190508181036000830152615a4381615a07565b9050919050565b6000615a5582613a0d565b9150615a6083613a0d565b925082615a7057615a6f614c9d565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ab16020836138c3565b9150615abc82615a7b565b602082019050919050565b60006020820190508181036000830152615ae081615aa4565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615b1d601c836138c3565b9150615b2882615ae7565b602082019050919050565b60006020820190508181036000830152615b4c81615b10565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f657468626c6f636b73646174612e6d65776170692e696f2f636f6e74726163742f6d657461a2646970667358221220a04ee504cb9ecea20bc630510127d079b9dbd2de97d6e506cee44831b24def9464736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000d28f5c5e6de83dddf9b96f4f115763575db86e9e00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a45544820426c6f636b730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044554484200000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _royaltyAddress (address): 0xd28F5C5E6de83DDDf9B96F4F115763575DB86e9E
Arg [2] : _royaltyBasisPoints (uint96): 1000
Arg [3] : _name (string): ETH Blocks
Arg [4] : _symbol (string): ETHB
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 000000000000000000000000d28f5c5e6de83dddf9b96f4f115763575db86e9e
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 45544820426c6f636b7300000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4554484200000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.