ERC-721
Overview
Max Total Supply
1,387 SESHERS
Holders
569
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SESHERSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SecretSeshCollection
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes 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 "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./lib/ERC2981.sol"; import "./lib/Base64.sol"; contract SecretSeshCollection is ERC721, ERC2981, AccessControl, Initializable { using Address for address payable; using Strings for uint256; /// Fixed at deployment time struct DeploymentConfig { /// Name of the NFT contract. string name; /// Symbol of the NFT contract. string symbol; /// The contract owner address. If you wish to own the contract, then set it as your wallet address. /// This is also the wallet that can manage the contract on NFT marketplaces. Use `transferOwnership()` /// to update the contract owner. address owner; /// The maximum number of tokens that can be minted in this collection. uint256 maxSupply; /// Minting price per token. uint256 mintPrice; /// Special presale minting price. uint256 specialMintPrice; /// The maximum number of tokens that OG whitelisted can mint in this collection. uint256 ogTokensPerMint; /// The maximum number of tokens that Normal whitelisted can mint in this collection. uint256 wlTokensPerMint; /// A very special presale count uint256 specialPresaleCount; /// The maximum number of tokens the user can mint per transaction. uint256 tokensPerMint; /// Treasury address is the address where minting fees can be withdrawn to. /// Use `withdrawFees()` to transfer the entire contract balance to the treasury address. address payable treasuryAddress; } /// Updatable by admins and owner struct RuntimeConfig { /// Metadata base URI for tokens, NFTs minted in this contract will have metadata URI of `baseURI` + `tokenID`. /// Set this to reveal token metadata. string baseURI; /// If true, the base URI of the NFTs minted in the specified contract can be updated after minting (token URIs /// are not frozen on the contract level). This is useful for revealing NFTs after the drop. If false, all the /// NFTs minted in this contract are frozen by default which means token URIs are non-updatable. bool metadataUpdatable; /// Starting timestamp for public minting. uint256 publicMintStart; /// Starting timestamp for whitelisted/presale minting. uint256 presaleMintStart; /// Pre-reveal token URI for placholder metadata. This will be returned for all token IDs until a `baseURI` /// has been set. string prerevealTokenURI; /// Root of the Merkle tree of whitelisted addresses. This is used to check if a wallet has been whitelisted /// for presale minting. bytes32 presaleMerkleRoot; /// Root of the Merkle tree of whitelisted addresses. This is used to check if a wallet has been whitelisted bytes32 ogPresaleMerkleRoot; /// Secondary market royalties in basis points (100 bps = 1%) uint256 royaltiesBps; /// Address for royalties address royaltiesAddress; /// Metadata file extension string metadataExtension; } struct ContractInfo { uint256 version; DeploymentConfig deploymentConfig; RuntimeConfig runtimeConfig; } event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /************* * Constants * *************/ /// Contract version, semver-style uint X_YY_ZZ uint256 public constant VERSION = 1_01_00; /// Admin role bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); /// Owner role bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE"); // Basis for calculating royalties. // This has to be 10k for royaltiesBps to be in basis points. uint16 constant ROYALTIES_BASIS = 10000; /******************** * Public variables * ********************/ /// The number of currently minted tokens /// @dev Managed by the contract uint256 public totalSupply; /*************************** * Contract initialization * ***************************/ constructor() ERC721("", "") { } /// Contract initializer function initialize( DeploymentConfig memory deploymentConfig, RuntimeConfig memory runtimeConfig ) public initializer { _validateDeploymentConfig(deploymentConfig); _grantRole(ADMIN_ROLE, msg.sender); _grantRole(ADMIN_ROLE, deploymentConfig.owner); _grantRole(DEFAULT_ADMIN_ROLE, deploymentConfig.owner); _grantRole(OWNER_ROLE, deploymentConfig.owner); _deploymentConfig = deploymentConfig; _runtimeConfig = runtimeConfig; } /**************** * User actions * ****************/ /// Mint tokens function mint(uint256 amount) external payable { require(mintingActive(), "Minting has not started yet"); require( amount <= _deploymentConfig.tokensPerMint, "Amount too large" ); _mintTokens(msg.sender, amount, _deploymentConfig.mintPrice); } /// Mint tokens if the wallet has been whitelisted function presaleMint(uint256 amount, bytes32[] calldata proof) external payable { require(presaleActive(), "Presale has not started yet"); // require(!_presaleMinted[msg.sender], "Already minted"); require( isWhitelisted(msg.sender, proof) || isOGWhitelisted(msg.sender, proof), "Not whitelisted for presale" ); uint256 totalAmount = _deploymentConfig.wlTokensPerMint; if (isOGWhitelisted(msg.sender, proof)) { totalAmount = _deploymentConfig.ogTokensPerMint; } require( amount <= totalAmount, "Amount too large" ); uint256 _mintPrice = _deploymentConfig.specialMintPrice; _presaleMinted[msg.sender] = true; _mintTokens(msg.sender, amount, _mintPrice); } function specialMint(uint256 amount) external payable onlyRole(ADMIN_ROLE) { uint256 newSupply = totalSupply + amount; require( newSupply <= _deploymentConfig.maxSupply, "Maximum supply reached" ); // Update totalSupply only once with the total minted amount totalSupply = newSupply; for (uint256 i = 0; i < amount; i++) { _mint(_deploymentConfig.owner, totalSupply - i); } } /****************** * View functions * ******************/ /// Check if public minting is active function mintingActive() public view returns (bool) { return block.timestamp > _runtimeConfig.publicMintStart; } /// Check if presale minting is active function presaleActive() public view returns (bool) { return block.timestamp > _runtimeConfig.presaleMintStart; } /// Check if the wallet is whitelisted for the presale function isWhitelisted(address wallet, bytes32[] calldata proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(wallet)); return MerkleProof.verify(proof, _runtimeConfig.presaleMerkleRoot, leaf); } function isOGWhitelisted(address wallet, bytes32[] calldata proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(wallet)); return MerkleProof.verify(proof, _runtimeConfig.ogPresaleMerkleRoot, leaf); } /// Contract owner address /// @dev Required for easy integration with OpenSea function owner() public view returns (address) { return _deploymentConfig.owner; } function getAssetsByOwner(address _owner) public view returns (uint256[] memory) { uint256 balance = balanceOf(_owner); uint256[] memory assets = new uint256[](balance); uint256 j = 0; for (uint256 i = 1; i <= totalSupply; i++) { if (ownerOf(i) == _owner) { assets[j] = i; j++; if (j == balance) { break; } } } return assets; } /******************* * Access controls * *******************/ /// Transfer contract ownership function transferOwnership(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { require(newOwner != _deploymentConfig.owner, "Already the owner"); _revokeRole(ADMIN_ROLE, _deploymentConfig.owner); _revokeRole(DEFAULT_ADMIN_ROLE, _deploymentConfig.owner); address previousOwner = _deploymentConfig.owner; _deploymentConfig.owner = newOwner; _grantRole(ADMIN_ROLE, _deploymentConfig.owner); _grantRole(DEFAULT_ADMIN_ROLE, _deploymentConfig.owner); emit OwnershipTransferred(previousOwner, newOwner); } /// Transfer contract ownership function transferAdminRights(address to) external onlyRole(ADMIN_ROLE) { require(!hasRole(ADMIN_ROLE, to), "Already an admin"); require(msg.sender != _deploymentConfig.owner, "Use transferOwnership"); _revokeRole(ADMIN_ROLE, msg.sender); _grantRole(ADMIN_ROLE, to); } /***************** * Admin actions * *****************/ /// Get full contract information /// @dev Convenience helper function getInfo() external view returns (ContractInfo memory info) { info.version = VERSION; info.deploymentConfig = _deploymentConfig; info.runtimeConfig = _runtimeConfig; } /// Update contract configuration /// @dev Callable by admin roles only function updateConfig(RuntimeConfig calldata newConfig) external onlyRole(ADMIN_ROLE) { _validateRuntimeConfig(newConfig); _runtimeConfig = newConfig; } /// Withdraw minting fees to the treasury address /// @dev Callable by admin roles only function withdrawFees() external onlyRole(ADMIN_ROLE) { _deploymentConfig.treasuryAddress.sendValue(address(this).balance); } /************* * Internals * *************/ /// Contract configuration RuntimeConfig internal _runtimeConfig; DeploymentConfig internal _deploymentConfig; /// Mapping for tracking presale mint status mapping(address => bool) internal _presaleMinted; /// Mapping for tracking presale mint status mapping(address => uint256) internal _presaleOGAmounts; mapping(address => uint256) internal _presaleWLAmounts; /// @dev Internal function for performing token mints function _mintTokens(address to, uint256 amount, uint256 _mintPrice) internal { require( msg.value >= amount * _mintPrice, "Payment too small" ); uint256 newSupply = totalSupply + amount; require( newSupply <= _deploymentConfig.maxSupply, "Maximum supply reached" ); // Update totalSupply only once with the total minted amount totalSupply = newSupply; // Mint the required amount of tokens, // starting with the highest token ID for (uint256 i = 0; i < amount; i++) { _safeMint(to, totalSupply - i); } } /// Validate deployment config function _validateDeploymentConfig(DeploymentConfig memory config) internal pure { require(config.maxSupply > 0, "Maximum supply must be non-zero"); require(config.tokensPerMint > 0, "Tokens per mint must be non-zero"); require( config.treasuryAddress != address(0), "Treasury address cannot be the null address" ); require(config.owner != address(0), "Contract must have an owner"); } /// Validate a runtime configuration change function _validateRuntimeConfig(RuntimeConfig calldata config) internal view { // Can't set royalties to more than 100% require(config.royaltiesBps <= ROYALTIES_BASIS, "Royalties too high"); // If metadata is updatable, we don't have any other limitations if (_runtimeConfig.metadataUpdatable) return; // If it isn't, has we can't allow the flag to change anymore require( _runtimeConfig.metadataUpdatable == config.metadataUpdatable, "Cannot unfreeze metadata" ); // We also can't allow base URI to change require( keccak256(abi.encodePacked(_runtimeConfig.baseURI)) == keccak256(abi.encodePacked(config.baseURI)), "Metadata is frozen" ); } /// @dev See {IERC165-supportsInterface}. function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl, ERC2981) returns (bool) { return ERC721.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /// Get the token metadata URI function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Token does not exist"); if (bytes(_runtimeConfig.baseURI).length > 0) { string memory filename = tokenId.toString(); if (bytes(_runtimeConfig.metadataExtension).length > 0) { filename = string(abi.encodePacked(filename, _runtimeConfig.metadataExtension)); } return string(abi.encodePacked( _runtimeConfig.baseURI, filename )); } return _runtimeConfig.prerevealTokenURI; } /// @dev Need name() to support setting it in the initializer instead of constructor function name() public view override returns (string memory) { return _deploymentConfig.name; } /// @dev Need symbol() to support setting it in the initializer instead of constructor function symbol() public view override returns (string memory) { return _deploymentConfig.symbol; } /// @dev ERC2981 token royalty info function royaltyInfo(uint256, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { receiver = _runtimeConfig.royaltiesAddress; royaltyAmount = (_runtimeConfig.royaltiesBps * salePrice) / ROYALTIES_BASIS; } /// @dev OpenSea contract metadata function contractURI() external view returns (string memory) { string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"seller_fee_basis_points": ', _runtimeConfig.royaltiesBps.toString(), ', "fee_recipient": "', uint256(uint160(_runtimeConfig.royaltiesAddress)) .toHexString(20), '"}' ) ) ) ); string memory output = string( abi.encodePacked("data:application/json;base64,", json) ); return output; } /*********************** * Convenience getters * ***********************/ function maxSupply() public view returns (uint256) { return _deploymentConfig.maxSupply; } function mintPrice() public view returns (uint256) { return _deploymentConfig.mintPrice; } function tokensPerMint() public view returns (uint256) { return _deploymentConfig.tokensPerMint; } function treasuryAddress() public view returns (address) { return _deploymentConfig.treasuryAddress; } function publicMintStart() public view returns (uint256) { return _runtimeConfig.publicMintStart; } function presaleMintStart() public view returns (uint256) { return _runtimeConfig.presaleMintStart; } function presaleMerkleRoot() public view returns (bytes32) { return _runtimeConfig.presaleMerkleRoot; } function baseURI() public view returns (string memory) { return _runtimeConfig.baseURI; } function metadataUpdatable() public view returns (bool) { return _runtimeConfig.metadataUpdatable; } function prerevealTokenURI() public view returns (string memory) { return _runtimeConfig.prerevealTokenURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import { IERC2981 } from "@openzeppelin/contracts/token/common/ERC2981.sol"; abstract contract ERC2981 is IERC165, IERC2981 { function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/Address.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !Address.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "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":[],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getAssetsByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInfo","outputs":[{"components":[{"internalType":"uint256","name":"version","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"specialMintPrice","type":"uint256"},{"internalType":"uint256","name":"ogTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"wlTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"specialPresaleCount","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct SecretSeshCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"ogPresaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"},{"internalType":"string","name":"metadataExtension","type":"string"}],"internalType":"struct SecretSeshCollection.RuntimeConfig","name":"runtimeConfig","type":"tuple"}],"internalType":"struct SecretSeshCollection.ContractInfo","name":"info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"specialMintPrice","type":"uint256"},{"internalType":"uint256","name":"ogTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"wlTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"specialPresaleCount","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct SecretSeshCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"ogPresaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"},{"internalType":"string","name":"metadataExtension","type":"string"}],"internalType":"struct SecretSeshCollection.RuntimeConfig","name":"runtimeConfig","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"wallet","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isOGWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataUpdatable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"prerevealTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"specialMint","outputs":[],"stateMutability":"payable","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferAdminRights","outputs":[],"stateMutability":"nonpayable","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":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"ogPresaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"},{"internalType":"string","name":"metadataExtension","type":"string"}],"internalType":"struct SecretSeshCollection.RuntimeConfig","name":"newConfig","type":"tuple"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080516020808201808452600080845284519283019094528382528251929391926200004192919062000060565b5080516200005790600190602084019062000060565b50505062000143565b8280546200006e9062000106565b90600052602060002090601f016020900481019282620000925760008555620000dd565b82601f10620000ad57805160ff1916838001178555620000dd565b82800160010185558215620000dd579182015b82811115620000dd578251825591602001919060010190620000c0565b50620000eb929150620000ef565b5090565b5b80821115620000eb5760008155600101620000f0565b600181811c908216806200011b57607f821691505b602082108114156200013d57634e487b7160e01b600052602260045260246000fd5b50919050565b61410180620001536000396000f3fe6080604052600436106102c95760003560e01c80636c0360eb11610175578063c5f956af116100dc578063e8a3d48511610095578063ebec95d31161006f578063ebec95d31461087e578063f2fde38b1461089e578063f4ad0f97146108be578063ffa1ad74146108d357600080fd5b8063e8a3d48514610800578063e9234d0314610815578063e985e9c51461083557600080fd5b8063c5f956af14610746578063c87b56dd14610764578063d547741f14610784578063d5abeb01146107a4578063e3e1e8ef146107b9578063e58378bb146107cc57600080fd5b806395d89b411161012e57806395d89b41146106a9578063a0712d68146106be578063a217fddf146106d1578063a22cb465146106e6578063b5106add14610706578063b88d4fde1461072657600080fd5b80636c0360eb146105ff57806370a082311461061457806375b238fc146106345780638cfec4c0146106565780638da5cb5b1461066b57806391d148541461068957600080fd5b806331f9c9191161023457806353135ca0116101ed5780635a23dd99116101c75780635a23dd99146105885780635a9b0b89146105a85780636352211e146105ca5780636817c76c146105ea57600080fd5b806353135ca01461053e57806355ee139a14610555578063575104921461057557600080fd5b806331f9c919146104a557806336568abe146104bc57806342842e0e146104dc5780634653124b146104fc578063476343ee146105115780634e6f9dd61461052657600080fd5b806322212e2b1161028657806322212e2b146103b457806323b872dd146103c9578063248a9ca3146103e9578063276f0934146104195780632a55205a146104465780632f2ff15d1461048557600080fd5b806301ffc9a7146102ce57806306fdde03146103035780630807b9e214610325578063081812fc14610344578063095ea7b31461037c57806318160ddd1461039e575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461313a565b6108e9565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610924565b6040516102fa91906131af565b34801561033157600080fd5b50601c545b6040519081526020016102fa565b34801561035057600080fd5b5061036461035f3660046131c2565b6109b9565b6040516001600160a01b0390911681526020016102fa565b34801561038857600080fd5b5061039c610397366004613200565b610a53565b005b3480156103aa57600080fd5b5061033660085481565b3480156103c057600080fd5b50600e54610336565b3480156103d557600080fd5b5061039c6103e436600461322c565b610b69565b3480156103f557600080fd5b506103366104043660046131c2565b60009081526006602052604090206001015490565b34801561042557600080fd5b5061043961043436600461326d565b610b9a565b6040516102fa919061328a565b34801561045257600080fd5b506104666104613660046132ce565b610c73565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561049157600080fd5b5061039c6104a03660046132f0565b610caa565b3480156104b157600080fd5b50600b5442116102ee565b3480156104c857600080fd5b5061039c6104d73660046132f0565b610cd0565b3480156104e857600080fd5b5061039c6104f736600461322c565b610d4e565b34801561050857600080fd5b50600c54610336565b34801561051d57600080fd5b5061039c610d69565b34801561053257600080fd5b50600a5460ff166102ee565b34801561054a57600080fd5b50600c5442116102ee565b34801561056157600080fd5b5061039c61057036600461351d565b610d9b565b61039c6105833660046131c2565b611052565b34801561059457600080fd5b506102ee6105a336600461368b565b611115565b3480156105b457600080fd5b506105bd61119b565b6040516102fa9190613797565b3480156105d657600080fd5b506103646105e53660046131c2565b61157b565b3480156105f657600080fd5b50601754610336565b34801561060b57600080fd5b506103186115f2565b34801561062057600080fd5b5061033661062f36600461326d565b611604565b34801561064057600080fd5b506103366000805160206140ac83398151915281565b34801561066257600080fd5b50600b54610336565b34801561067757600080fd5b506015546001600160a01b0316610364565b34801561069557600080fd5b506102ee6106a43660046132f0565b61168b565b3480156106b557600080fd5b506103186116b6565b61039c6106cc3660046131c2565b6116c8565b3480156106dd57600080fd5b50610336600081565b3480156106f257600080fd5b5061039c610701366004613894565b61176e565b34801561071257600080fd5b5061039c61072136600461326d565b611779565b34801561073257600080fd5b5061039c6107413660046138c2565b61186d565b34801561075257600080fd5b50601d546001600160a01b0316610364565b34801561077057600080fd5b5061031861077f3660046131c2565b61189f565b34801561079057600080fd5b5061039c61079f3660046132f0565b611a20565b3480156107b057600080fd5b50601654610336565b61039c6107c7366004613941565b611a46565b3480156107d857600080fd5b506103367fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b34801561080c57600080fd5b50610318611b89565b34801561082157600080fd5b506102ee61083036600461368b565b611c06565b34801561084157600080fd5b506102ee610850366004613973565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561088a57600080fd5b5061039c6108993660046139a1565b611c83565b3480156108aa57600080fd5b5061039c6108b936600461326d565b611cb2565b3480156108ca57600080fd5b50610318611de4565b3480156108df57600080fd5b5061033661277481565b60006108f482611df6565b80610903575061090382611e46565b8061091e575063152a902d60e11b6001600160e01b03198316145b92915050565b606060136000018054610936906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610962906139dc565b80156109af5780601f10610984576101008083540402835291602001916109af565b820191906000526020600020905b81548152906001019060200180831161099257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a5e8261157b565b9050806001600160a01b0316836001600160a01b03161415610acc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a2e565b336001600160a01b0382161480610ae85750610ae88133610850565b610b5a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a2e565b610b648383611e7b565b505050565b610b733382611ee9565b610b8f5760405162461bcd60e51b8152600401610a2e90613a17565b610b64838383611fe0565b60606000610ba783611604565b90506000816001600160401b03811115610bc357610bc3613320565b604051908082528060200260200182016040528015610bec578160200160208202803683370190505b509050600060015b6008548111610c6957856001600160a01b0316610c108261157b565b6001600160a01b03161415610c575780838381518110610c3257610c32613a68565b602090810291909101015281610c4781613a94565b92505083821415610c5757610c69565b80610c6181613a94565b915050610bf4565b5090949350505050565b6011546010546001600160a01b039091169060009061271090610c97908590613aaf565b610ca19190613ae4565b90509250929050565b600082815260066020526040902060010154610cc6813361217c565b610b6483836121e0565b6001600160a01b0381163314610d405760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2e565b610d4a8282612266565b5050565b610b648383836040518060200160405280600081525061186d565b6000805160206140ac833981519152610d82813361217c565b601d54610d98906001600160a01b0316476122cd565b50565b600754610100900460ff16610db65760075460ff1615610dba565b303b155b610e1d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a2e565b600754610100900460ff16158015610e3f576007805461ffff19166101011790555b610e48836123e6565b610e606000805160206140ac833981519152336121e0565b610e7c6000805160206140ac83398151915284604001516121e0565b610e8d6000801b84604001516121e0565b610ebb7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e84604001516121e0565b825180518491601391610ed5918391602090910190612fb4565b506020828101518051610eee9260018501920190612fb4565b5060408201516002820180546001600160a01b039283166001600160a01b031991821617909155606084015160038401556080840151600484015560a0840151600584015560c0840151600684015560e08401516007840155610100840151600884015561012084015160098085019190915561014090940151600a909301805493909216921691909117905582518051849291610f9191839160200190612fb4565b5060208281015160018301805460ff1916911515919091179055604083015160028301556060830151600383015560808301518051610fd69260048501920190612fb4565b5060a0820151600582015560c0820151600682015560e082015160078201556101008201516008820180546001600160a01b0319166001600160a01b039092169190911790556101208201518051611038916009840191602090910190612fb4565b509050508015610b64576007805461ff0019169055505050565b6000805160206140ac83398151915261106b813361217c565b60008260085461107b9190613af8565b6016549091508111156110c95760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401610a2e565b600881905560005b8381101561110f576015546008546110fd916001600160a01b0316906110f8908490613b10565b612558565b8061110781613a94565b9150506110d1565b50505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061119284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e54915084905061269a565b95945050505050565b6111a3613038565b612774815260408051610160810190915260138054829082906111c5906139dc565b80601f01602080910402602001604051908101604052809291908181526020018280546111f1906139dc565b801561123e5780601f106112135761010080835404028352916020019161123e565b820191906000526020600020905b81548152906001019060200180831161122157829003601f168201915b50505050508152602001600182018054611257906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611283906139dc565b80156112d05780601f106112a5576101008083540402835291602001916112d0565b820191906000526020600020905b8154815290600101906020018083116112b357829003601f168201915b505050918352505060028201546001600160a01b0390811660208084019190915260038401546040808501919091526004850154606085015260058501546080850152600685015460a0850152600785015460c0850152600885015460e0850152600980860154610100860152600a90950154909216610120909301929092529084019290925281516101408101909252805482908290611370906139dc565b80601f016020809104026020016040519081016040528092919081815260200182805461139c906139dc565b80156113e95780601f106113be576101008083540402835291602001916113e9565b820191906000526020600020905b8154815290600101906020018083116113cc57829003601f168201915b5050509183525050600182015460ff16151560208201526002820154604082015260038201546060820152600482018054608090920191611429906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611455906139dc565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050918352505060058201546020820152600682015460408201526007820154606082015260088201546001600160a01b0316608082015260098201805460a0909201916114f0906139dc565b80601f016020809104026020016040519081016040528092919081815260200182805461151c906139dc565b80156115695780601f1061153e57610100808354040283529160200191611569565b820191906000526020600020905b81548152906001019060200180831161154c57829003601f168201915b50505091909252505050604082015290565b6000818152600260205260408120546001600160a01b03168061091e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a2e565b606060096000018054610936906139dc565b60006001600160a01b03821661166f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a2e565b506001600160a01b031660009081526003602052604090205490565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060136001018054610936906139dc565b600b5442116117195760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f7420737461727465642079657400000000006044820152606401610a2e565b601c5481111561175e5760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b6044820152606401610a2e565b610d9833826013600401546126b0565b610d4a338383612794565b6000805160206140ac833981519152611792813361217c565b6117aa6000805160206140ac8339815191528361168b565b156117ea5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b6044820152606401610a2e565b6015546001600160a01b031633141561183d5760405162461bcd60e51b81526020600482015260156024820152740557365207472616e736665724f776e65727368697605c1b6044820152606401610a2e565b6118556000805160206140ac83398151915233612266565b610d4a6000805160206140ac833981519152836121e0565b6118773383611ee9565b6118935760405162461bcd60e51b8152600401610a2e90613a17565b61110f84848484612863565b6000818152600260205260409020546060906001600160a01b03166118fd5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610a2e565b60006009600001805461190f906139dc565b9050111561198e57600061192283612896565b90506000600980018054611935906139dc565b9050111561196357604051611951908290601290602001613b96565b60405160208183030381529060405290505b604051611977906009908390602001613bb4565b604051602081830303815290604052915050919050565b600d805461199b906139dc565b80601f01602080910402602001604051908101604052809291908181526020018280546119c7906139dc565b8015611a145780601f106119e957610100808354040283529160200191611a14565b820191906000526020600020905b8154815290600101906020018083116119f757829003601f168201915b50505050509050919050565b600082815260066020526040902060010154611a3c813361217c565b610b648383612266565b600c544211611a975760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f7420737461727465642079657400000000006044820152606401610a2e565b611aa2338383611115565b80611ab35750611ab3338383611c06565b611aff5760405162461bcd60e51b815260206004820152601b60248201527f4e6f742077686974656c697374656420666f722070726573616c6500000000006044820152606401610a2e565b601a54611b0d338484611c06565b15611b1757506019545b80841115611b5a5760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b6044820152606401610a2e565b601854336000818152601e60205260409020805460ff19166001179055611b829086836126b0565b5050505050565b60606000611bda611b9e600960070154612896565b601154611bb5906001600160a01b03166014612993565b604051602001611bc6929190613bd9565b604051602081830303815290604052612b35565b9050600081604051602001611bef9190613c60565b60408051601f198184030181529190529392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061119284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061269a565b6000805160206140ac833981519152611c9c813361217c565b611ca582612c9a565b81600961110f8282613e12565b6000611cbe813361217c565b6015546001600160a01b0383811691161415611d105760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c903a34329037bbb732b960791b6044820152606401610a2e565b601554611d35906000805160206140ac833981519152906001600160a01b0316612266565b601554611d4d906000906001600160a01b0316612266565b601580546001600160a01b038481166001600160a01b0319831681179093551690611d87906000805160206140ac833981519152906121e0565b601554611d9f906000906001600160a01b03166121e0565b826001600160a01b0316816001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b606060096004018054610936906139dc565b60006001600160e01b031982166380ac58cd60e01b1480611e2757506001600160e01b03198216635b5e139f60e01b145b8061091e57506301ffc9a760e01b6001600160e01b031983161461091e565b60006001600160e01b03198216637965db0b60e01b148061091e575063152a902d60e11b6001600160e01b031983161461091e565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb08261157b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611f625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a2e565b6000611f6d8361157b565b9050806001600160a01b0316846001600160a01b03161480611fa85750836001600160a01b0316611f9d846109b9565b6001600160a01b0316145b80611fd857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ff38261157b565b6001600160a01b0316146120575760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a2e565b6001600160a01b0382166120b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a2e565b6120c4600082611e7b565b6001600160a01b03831660009081526003602052604081208054600192906120ed908490613b10565b90915550506001600160a01b038216600090815260036020526040812080546001929061211b908490613af8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612186828261168b565b610d4a5761219e816001600160a01b03166014612993565b6121a9836020612993565b6040516020016121ba929190613ef0565b60408051601f198184030181529082905262461bcd60e51b8252610a2e916004016131af565b6121ea828261168b565b610d4a5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612270828261168b565b15610d4a5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561231d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a2e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461236a576040519150601f19603f3d011682016040523d82523d6000602084013e61236f565b606091505b5050905080610b645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a2e565b600081606001511161243a5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c79206d757374206265206e6f6e2d7a65726f006044820152606401610a2e565b60008161012001511161248f5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e7320706572206d696e74206d757374206265206e6f6e2d7a65726f6044820152606401610a2e565b6101408101516001600160a01b03166124fe5760405162461bcd60e51b815260206004820152602b60248201527f547265617375727920616464726573732063616e6e6f7420626520746865206e60448201526a756c6c206164647265737360a81b6064820152608401610a2e565b60408101516001600160a01b0316610d985760405162461bcd60e51b815260206004820152601b60248201527f436f6e7472616374206d757374206861766520616e206f776e657200000000006044820152606401610a2e565b6001600160a01b0382166125ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a2e565b6000818152600260205260409020546001600160a01b0316156126135760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a2e565b6001600160a01b038216600090815260036020526040812080546001929061263c908490613af8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000826126a78584612df5565b14949350505050565b6126ba8183613aaf565b3410156126fd5760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b6044820152606401610a2e565b60008260085461270d9190613af8565b60165490915081111561275b5760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401610a2e565b600881905560005b83811015611b8257612782858260085461277d9190613b10565b612e69565b8061278c81613a94565b915050612763565b816001600160a01b0316836001600160a01b031614156127f65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a2e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61286e848484611fe0565b61287a84848484612e83565b61110f5760405162461bcd60e51b8152600401610a2e90613f65565b6060816128ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128e457806128ce81613a94565b91506128dd9050600a83613ae4565b91506128be565b6000816001600160401b038111156128fe576128fe613320565b6040519080825280601f01601f191660200182016040528015612928576020820181803683370190505b5090505b8415611fd85761293d600183613b10565b915061294a600a86613fb7565b612955906030613af8565b60f81b81838151811061296a5761296a613a68565b60200101906001600160f81b031916908160001a90535061298c600a86613ae4565b945061292c565b606060006129a2836002613aaf565b6129ad906002613af8565b6001600160401b038111156129c4576129c4613320565b6040519080825280601f01601f1916602001820160405280156129ee576020820181803683370190505b509050600360fc1b81600081518110612a0957612a09613a68565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3857612a38613a68565b60200101906001600160f81b031916908160001a9053506000612a5c846002613aaf565b612a67906001613af8565b90505b6001811115612adf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a9b57612a9b613a68565b1a60f81b828281518110612ab157612ab1613a68565b60200101906001600160f81b031916908160001a90535060049490941c93612ad881613fcb565b9050612a6a565b508315612b2e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2e565b9392505050565b805160609080612b55575050604080516020810190915260008152919050565b60006003612b64836002613af8565b612b6e9190613ae4565b612b79906004613aaf565b90506000612b88826020613af8565b6001600160401b03811115612b9f57612b9f613320565b6040519080825280601f01601f191660200182016040528015612bc9576020820181803683370190505b509050600060405180606001604052806040815260200161406c604091399050600181016020830160005b86811015612c55576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612bf4565b506003860660018114612c6f5760028114612c8057612c8c565b613d3d60f01b600119830152612c8c565b603d60f81b6000198301525b505050918152949350505050565b61271060e08201351115612ce55760405162461bcd60e51b81526020600482015260126024820152710a4def2c2d8e8d2cae640e8dede40d0d2ced60731b6044820152606401610a2e565b600a5460ff1615612cf35750565b612d036040820160208301613fe2565b600a5460ff16151590151514612d5b5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e667265657a65206d6574616461746100000000000000006044820152606401610a2e565b612d658180613ca5565b604051602001612d76929190613fff565b60408051601f1981840301815290829052805160209182012091612d9d916009910161400f565b6040516020818303038152906040528051906020012014610d985760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610a2e565b600081815b8451811015612e61576000858281518110612e1757612e17613a68565b60200260200101519050808311612e3d5760008381526020829052604090209250612e4e565b600081815260208490526040902092505b5080612e5981613a94565b915050612dfa565b509392505050565b610d4a828260405180602001604052806000815250612f81565b60006001600160a01b0384163b15612f7657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ec790339089908890889060040161401b565b6020604051808303816000875af1925050508015612f02575060408051601f3d908101601f19168201909252612eff9181019061404e565b60015b612f5c573d808015612f30576040519150601f19603f3d011682016040523d82523d6000602084013e612f35565b606091505b508051612f545760405162461bcd60e51b8152600401610a2e90613f65565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fd8565b506001949350505050565b612f8b8383612558565b612f986000848484612e83565b610b645760405162461bcd60e51b8152600401610a2e90613f65565b828054612fc0906139dc565b90600052602060002090601f016020900481019282612fe25760008555613028565b82601f10612ffb57805160ff1916838001178555613028565b82800160010185558215613028579182015b8281111561302857825182559160200191906001019061300d565b5061303492915061310f565b5090565b6040518060600160405280600081526020016130b9604051806101600160405280606081526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b815260408051610140810182526060808252600060208381018290529383018190528183018190526080830182905260a0830181905260c0830181905260e0830181905261010083015261012082015291015290565b5b808211156130345760008155600101613110565b6001600160e01b031981168114610d9857600080fd5b60006020828403121561314c57600080fd5b8135612b2e81613124565b60005b8381101561317257818101518382015260200161315a565b8381111561110f5750506000910152565b6000815180845261319b816020860160208601613157565b601f01601f19169290920160200192915050565b602081526000612b2e6020830184613183565b6000602082840312156131d457600080fd5b5035919050565b6001600160a01b0381168114610d9857600080fd5b80356131fb816131db565b919050565b6000806040838503121561321357600080fd5b823561321e816131db565b946020939093013593505050565b60008060006060848603121561324157600080fd5b833561324c816131db565b9250602084013561325c816131db565b929592945050506040919091013590565b60006020828403121561327f57600080fd5b8135612b2e816131db565b6020808252825182820181905260009190848201906040850190845b818110156132c2578351835292840192918401916001016132a6565b50909695505050505050565b600080604083850312156132e157600080fd5b50508035926020909101359150565b6000806040838503121561330357600080fd5b823591506020830135613315816131db565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b038111828210171561335957613359613320565b60405290565b60405161016081016001600160401b038111828210171561335957613359613320565b60006001600160401b038084111561339c5761339c613320565b604051601f8501601f19908116603f011681019082821181831017156133c4576133c4613320565b816040528093508581528686860111156133dd57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261340857600080fd5b612b2e83833560208501613382565b8015158114610d9857600080fd5b80356131fb81613417565b6000610140828403121561344357600080fd5b61344b613336565b905081356001600160401b038082111561346457600080fd5b613470858386016133f7565b835261347e60208501613425565b6020840152604084013560408401526060840135606084015260808401359150808211156134ab57600080fd5b6134b7858386016133f7565b608084015260a084013560a084015260c084013560c084015260e084013560e084015261010091506134ea8285016131f0565b828401526101209150818401358181111561350457600080fd5b613510868287016133f7565b8385015250505092915050565b6000806040838503121561353057600080fd5b82356001600160401b038082111561354757600080fd5b90840190610160828703121561355c57600080fd5b61356461335f565b82358281111561357357600080fd5b61357f888286016133f7565b82525060208301358281111561359457600080fd5b6135a0888286016133f7565b6020830152506135b2604084016131f0565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e082015261010080840135818301525061012080840135818301525061014061360f8185016131f0565b908201529350602085013591508082111561362957600080fd5b5061363685828601613430565b9150509250929050565b60008083601f84011261365257600080fd5b5081356001600160401b0381111561366957600080fd5b6020830191508360208260051b850101111561368457600080fd5b9250929050565b6000806000604084860312156136a057600080fd5b83356136ab816131db565b925060208401356001600160401b038111156136c657600080fd5b6136d286828701613640565b9497909650939450505050565b600061014082518185526136f582860182613183565b915050602083015161370b602086018215159052565b506040830151604085015260608301516060850152608083015184820360808601526137378282613183565b91505060a083015160a085015260c083015160c085015260e083015160e085015261010080840151613773828701826001600160a01b03169052565b5050610120808401518583038287015261378d8382613183565b9695505050505050565b6020815281516020820152600060208301516060604084015280516101608060808601526137c96101e0860183613183565b91506020830151607f198684030160a08701526137e68382613183565b925050604083015161380360c08701826001600160a01b03169052565b50606083015160e08601526080830151610100818188015260a08501519150610120828189015260c0860151925061014083818a015260e0870151858a0152828701516101808a0152818701516101a08a015280870151965050505050506138776101c08501836001600160a01b03169052565b6040850151848203601f19016060860152915061119281836136df565b600080604083850312156138a757600080fd5b82356138b2816131db565b9150602083013561331581613417565b600080600080608085870312156138d857600080fd5b84356138e3816131db565b935060208501356138f3816131db565b92506040850135915060608501356001600160401b0381111561391557600080fd5b8501601f8101871361392657600080fd5b61393587823560208401613382565b91505092959194509250565b60008060006040848603121561395657600080fd5b8335925060208401356001600160401b038111156136c657600080fd5b6000806040838503121561398657600080fd5b8235613991816131db565b91506020830135613315816131db565b6000602082840312156139b357600080fd5b81356001600160401b038111156139c957600080fd5b82016101408185031215612b2e57600080fd5b600181811c908216806139f057607f821691505b60208210811415613a1157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613aa857613aa8613a7e565b5060010190565b6000816000190483118215151615613ac957613ac9613a7e565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613af357613af3613ace565b500490565b60008219821115613b0b57613b0b613a7e565b500190565b600082821015613b2257613b22613a7e565b500390565b60008154613b34816139dc565b60018281168015613b4c5760018114613b5d57613b8c565b60ff19841687528287019450613b8c565b8560005260208060002060005b85811015613b835781548a820152908401908201613b6a565b50505082870194505b5050505092915050565b60008351613ba8818460208801613157565b61119281840185613b27565b6000613bc08285613b27565b8351613bd0818360208801613157565b01949350505050565b7f7b2273656c6c65725f6665655f62617369735f706f696e7473223a2000000000815260008351613c1181601c850160208801613157565b731610113332b2afb932b1b4b834b2b73a111d101160611b601c918401918201528351613c45816030840160208801613157565b61227d60f01b60309290910191820152603201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613c9881601d850160208701613157565b91909101601d0192915050565b6000808335601e19843603018112613cbc57600080fd5b8301803591506001600160401b03821115613cd657600080fd5b60200191503681900382131561368457600080fd5b601f821115610b6457600081815260208120601f850160051c81016020861015613d125750805b601f850160051c820191505b81811015613d3157828155600101613d1e565b505050505050565b6001600160401b03831115613d5057613d50613320565b613d6483613d5e83546139dc565b83613ceb565b6000601f841160018114613d985760008515613d805750838201355b600019600387901b1c1916600186901b178355611b82565b600083815260209020601f19861690835b82811015613dc95786850135825560209485019460019092019101613da9565b5086821015613de65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000813561091e81613417565b6000813561091e816131db565b613e1c8283613ca5565b613e27818385613d39565b5050613e51613e3860208401613df8565b6001830160ff1981541660ff8315151681178255505050565b6040820135600282015560608201356003820155613e726080830183613ca5565b613e80818360048601613d39565b505060a0820135600582015560c0820135600682015560e08201356007820155613ed4613eb06101008401613e05565b6008830180546001600160a01b0319166001600160a01b0392909216919091179055565b613ee2610120830183613ca5565b61110f818360098601613d39565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613f28816017850160208801613157565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613f59816028840160208801613157565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613fc657613fc6613ace565b500690565b600081613fda57613fda613a7e565b506000190190565b600060208284031215613ff457600080fd5b8135612b2e81613417565b8183823760009101908152919050565b6000612b2e8284613b27565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061378d90830184613183565b60006020828403121561406057600080fd5b8151612b2e8161312456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220c4fbe9c2ca421c693ac37bd71b57caa9e183286374d138844c6d92c4914ea47964736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106102c95760003560e01c80636c0360eb11610175578063c5f956af116100dc578063e8a3d48511610095578063ebec95d31161006f578063ebec95d31461087e578063f2fde38b1461089e578063f4ad0f97146108be578063ffa1ad74146108d357600080fd5b8063e8a3d48514610800578063e9234d0314610815578063e985e9c51461083557600080fd5b8063c5f956af14610746578063c87b56dd14610764578063d547741f14610784578063d5abeb01146107a4578063e3e1e8ef146107b9578063e58378bb146107cc57600080fd5b806395d89b411161012e57806395d89b41146106a9578063a0712d68146106be578063a217fddf146106d1578063a22cb465146106e6578063b5106add14610706578063b88d4fde1461072657600080fd5b80636c0360eb146105ff57806370a082311461061457806375b238fc146106345780638cfec4c0146106565780638da5cb5b1461066b57806391d148541461068957600080fd5b806331f9c9191161023457806353135ca0116101ed5780635a23dd99116101c75780635a23dd99146105885780635a9b0b89146105a85780636352211e146105ca5780636817c76c146105ea57600080fd5b806353135ca01461053e57806355ee139a14610555578063575104921461057557600080fd5b806331f9c919146104a557806336568abe146104bc57806342842e0e146104dc5780634653124b146104fc578063476343ee146105115780634e6f9dd61461052657600080fd5b806322212e2b1161028657806322212e2b146103b457806323b872dd146103c9578063248a9ca3146103e9578063276f0934146104195780632a55205a146104465780632f2ff15d1461048557600080fd5b806301ffc9a7146102ce57806306fdde03146103035780630807b9e214610325578063081812fc14610344578063095ea7b31461037c57806318160ddd1461039e575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461313a565b6108e9565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610924565b6040516102fa91906131af565b34801561033157600080fd5b50601c545b6040519081526020016102fa565b34801561035057600080fd5b5061036461035f3660046131c2565b6109b9565b6040516001600160a01b0390911681526020016102fa565b34801561038857600080fd5b5061039c610397366004613200565b610a53565b005b3480156103aa57600080fd5b5061033660085481565b3480156103c057600080fd5b50600e54610336565b3480156103d557600080fd5b5061039c6103e436600461322c565b610b69565b3480156103f557600080fd5b506103366104043660046131c2565b60009081526006602052604090206001015490565b34801561042557600080fd5b5061043961043436600461326d565b610b9a565b6040516102fa919061328a565b34801561045257600080fd5b506104666104613660046132ce565b610c73565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561049157600080fd5b5061039c6104a03660046132f0565b610caa565b3480156104b157600080fd5b50600b5442116102ee565b3480156104c857600080fd5b5061039c6104d73660046132f0565b610cd0565b3480156104e857600080fd5b5061039c6104f736600461322c565b610d4e565b34801561050857600080fd5b50600c54610336565b34801561051d57600080fd5b5061039c610d69565b34801561053257600080fd5b50600a5460ff166102ee565b34801561054a57600080fd5b50600c5442116102ee565b34801561056157600080fd5b5061039c61057036600461351d565b610d9b565b61039c6105833660046131c2565b611052565b34801561059457600080fd5b506102ee6105a336600461368b565b611115565b3480156105b457600080fd5b506105bd61119b565b6040516102fa9190613797565b3480156105d657600080fd5b506103646105e53660046131c2565b61157b565b3480156105f657600080fd5b50601754610336565b34801561060b57600080fd5b506103186115f2565b34801561062057600080fd5b5061033661062f36600461326d565b611604565b34801561064057600080fd5b506103366000805160206140ac83398151915281565b34801561066257600080fd5b50600b54610336565b34801561067757600080fd5b506015546001600160a01b0316610364565b34801561069557600080fd5b506102ee6106a43660046132f0565b61168b565b3480156106b557600080fd5b506103186116b6565b61039c6106cc3660046131c2565b6116c8565b3480156106dd57600080fd5b50610336600081565b3480156106f257600080fd5b5061039c610701366004613894565b61176e565b34801561071257600080fd5b5061039c61072136600461326d565b611779565b34801561073257600080fd5b5061039c6107413660046138c2565b61186d565b34801561075257600080fd5b50601d546001600160a01b0316610364565b34801561077057600080fd5b5061031861077f3660046131c2565b61189f565b34801561079057600080fd5b5061039c61079f3660046132f0565b611a20565b3480156107b057600080fd5b50601654610336565b61039c6107c7366004613941565b611a46565b3480156107d857600080fd5b506103367fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b34801561080c57600080fd5b50610318611b89565b34801561082157600080fd5b506102ee61083036600461368b565b611c06565b34801561084157600080fd5b506102ee610850366004613973565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561088a57600080fd5b5061039c6108993660046139a1565b611c83565b3480156108aa57600080fd5b5061039c6108b936600461326d565b611cb2565b3480156108ca57600080fd5b50610318611de4565b3480156108df57600080fd5b5061033661277481565b60006108f482611df6565b80610903575061090382611e46565b8061091e575063152a902d60e11b6001600160e01b03198316145b92915050565b606060136000018054610936906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610962906139dc565b80156109af5780601f10610984576101008083540402835291602001916109af565b820191906000526020600020905b81548152906001019060200180831161099257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a5e8261157b565b9050806001600160a01b0316836001600160a01b03161415610acc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a2e565b336001600160a01b0382161480610ae85750610ae88133610850565b610b5a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a2e565b610b648383611e7b565b505050565b610b733382611ee9565b610b8f5760405162461bcd60e51b8152600401610a2e90613a17565b610b64838383611fe0565b60606000610ba783611604565b90506000816001600160401b03811115610bc357610bc3613320565b604051908082528060200260200182016040528015610bec578160200160208202803683370190505b509050600060015b6008548111610c6957856001600160a01b0316610c108261157b565b6001600160a01b03161415610c575780838381518110610c3257610c32613a68565b602090810291909101015281610c4781613a94565b92505083821415610c5757610c69565b80610c6181613a94565b915050610bf4565b5090949350505050565b6011546010546001600160a01b039091169060009061271090610c97908590613aaf565b610ca19190613ae4565b90509250929050565b600082815260066020526040902060010154610cc6813361217c565b610b6483836121e0565b6001600160a01b0381163314610d405760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2e565b610d4a8282612266565b5050565b610b648383836040518060200160405280600081525061186d565b6000805160206140ac833981519152610d82813361217c565b601d54610d98906001600160a01b0316476122cd565b50565b600754610100900460ff16610db65760075460ff1615610dba565b303b155b610e1d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a2e565b600754610100900460ff16158015610e3f576007805461ffff19166101011790555b610e48836123e6565b610e606000805160206140ac833981519152336121e0565b610e7c6000805160206140ac83398151915284604001516121e0565b610e8d6000801b84604001516121e0565b610ebb7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e84604001516121e0565b825180518491601391610ed5918391602090910190612fb4565b506020828101518051610eee9260018501920190612fb4565b5060408201516002820180546001600160a01b039283166001600160a01b031991821617909155606084015160038401556080840151600484015560a0840151600584015560c0840151600684015560e08401516007840155610100840151600884015561012084015160098085019190915561014090940151600a909301805493909216921691909117905582518051849291610f9191839160200190612fb4565b5060208281015160018301805460ff1916911515919091179055604083015160028301556060830151600383015560808301518051610fd69260048501920190612fb4565b5060a0820151600582015560c0820151600682015560e082015160078201556101008201516008820180546001600160a01b0319166001600160a01b039092169190911790556101208201518051611038916009840191602090910190612fb4565b509050508015610b64576007805461ff0019169055505050565b6000805160206140ac83398151915261106b813361217c565b60008260085461107b9190613af8565b6016549091508111156110c95760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401610a2e565b600881905560005b8381101561110f576015546008546110fd916001600160a01b0316906110f8908490613b10565b612558565b8061110781613a94565b9150506110d1565b50505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061119284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e54915084905061269a565b95945050505050565b6111a3613038565b612774815260408051610160810190915260138054829082906111c5906139dc565b80601f01602080910402602001604051908101604052809291908181526020018280546111f1906139dc565b801561123e5780601f106112135761010080835404028352916020019161123e565b820191906000526020600020905b81548152906001019060200180831161122157829003601f168201915b50505050508152602001600182018054611257906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611283906139dc565b80156112d05780601f106112a5576101008083540402835291602001916112d0565b820191906000526020600020905b8154815290600101906020018083116112b357829003601f168201915b505050918352505060028201546001600160a01b0390811660208084019190915260038401546040808501919091526004850154606085015260058501546080850152600685015460a0850152600785015460c0850152600885015460e0850152600980860154610100860152600a90950154909216610120909301929092529084019290925281516101408101909252805482908290611370906139dc565b80601f016020809104026020016040519081016040528092919081815260200182805461139c906139dc565b80156113e95780601f106113be576101008083540402835291602001916113e9565b820191906000526020600020905b8154815290600101906020018083116113cc57829003601f168201915b5050509183525050600182015460ff16151560208201526002820154604082015260038201546060820152600482018054608090920191611429906139dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611455906139dc565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050918352505060058201546020820152600682015460408201526007820154606082015260088201546001600160a01b0316608082015260098201805460a0909201916114f0906139dc565b80601f016020809104026020016040519081016040528092919081815260200182805461151c906139dc565b80156115695780601f1061153e57610100808354040283529160200191611569565b820191906000526020600020905b81548152906001019060200180831161154c57829003601f168201915b50505091909252505050604082015290565b6000818152600260205260408120546001600160a01b03168061091e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a2e565b606060096000018054610936906139dc565b60006001600160a01b03821661166f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a2e565b506001600160a01b031660009081526003602052604090205490565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060136001018054610936906139dc565b600b5442116117195760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f7420737461727465642079657400000000006044820152606401610a2e565b601c5481111561175e5760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b6044820152606401610a2e565b610d9833826013600401546126b0565b610d4a338383612794565b6000805160206140ac833981519152611792813361217c565b6117aa6000805160206140ac8339815191528361168b565b156117ea5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b6044820152606401610a2e565b6015546001600160a01b031633141561183d5760405162461bcd60e51b81526020600482015260156024820152740557365207472616e736665724f776e65727368697605c1b6044820152606401610a2e565b6118556000805160206140ac83398151915233612266565b610d4a6000805160206140ac833981519152836121e0565b6118773383611ee9565b6118935760405162461bcd60e51b8152600401610a2e90613a17565b61110f84848484612863565b6000818152600260205260409020546060906001600160a01b03166118fd5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610a2e565b60006009600001805461190f906139dc565b9050111561198e57600061192283612896565b90506000600980018054611935906139dc565b9050111561196357604051611951908290601290602001613b96565b60405160208183030381529060405290505b604051611977906009908390602001613bb4565b604051602081830303815290604052915050919050565b600d805461199b906139dc565b80601f01602080910402602001604051908101604052809291908181526020018280546119c7906139dc565b8015611a145780601f106119e957610100808354040283529160200191611a14565b820191906000526020600020905b8154815290600101906020018083116119f757829003601f168201915b50505050509050919050565b600082815260066020526040902060010154611a3c813361217c565b610b648383612266565b600c544211611a975760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f7420737461727465642079657400000000006044820152606401610a2e565b611aa2338383611115565b80611ab35750611ab3338383611c06565b611aff5760405162461bcd60e51b815260206004820152601b60248201527f4e6f742077686974656c697374656420666f722070726573616c6500000000006044820152606401610a2e565b601a54611b0d338484611c06565b15611b1757506019545b80841115611b5a5760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b6044820152606401610a2e565b601854336000818152601e60205260409020805460ff19166001179055611b829086836126b0565b5050505050565b60606000611bda611b9e600960070154612896565b601154611bb5906001600160a01b03166014612993565b604051602001611bc6929190613bd9565b604051602081830303815290604052612b35565b9050600081604051602001611bef9190613c60565b60408051601f198184030181529190529392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061119284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061269a565b6000805160206140ac833981519152611c9c813361217c565b611ca582612c9a565b81600961110f8282613e12565b6000611cbe813361217c565b6015546001600160a01b0383811691161415611d105760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c903a34329037bbb732b960791b6044820152606401610a2e565b601554611d35906000805160206140ac833981519152906001600160a01b0316612266565b601554611d4d906000906001600160a01b0316612266565b601580546001600160a01b038481166001600160a01b0319831681179093551690611d87906000805160206140ac833981519152906121e0565b601554611d9f906000906001600160a01b03166121e0565b826001600160a01b0316816001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b606060096004018054610936906139dc565b60006001600160e01b031982166380ac58cd60e01b1480611e2757506001600160e01b03198216635b5e139f60e01b145b8061091e57506301ffc9a760e01b6001600160e01b031983161461091e565b60006001600160e01b03198216637965db0b60e01b148061091e575063152a902d60e11b6001600160e01b031983161461091e565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb08261157b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611f625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a2e565b6000611f6d8361157b565b9050806001600160a01b0316846001600160a01b03161480611fa85750836001600160a01b0316611f9d846109b9565b6001600160a01b0316145b80611fd857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ff38261157b565b6001600160a01b0316146120575760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a2e565b6001600160a01b0382166120b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a2e565b6120c4600082611e7b565b6001600160a01b03831660009081526003602052604081208054600192906120ed908490613b10565b90915550506001600160a01b038216600090815260036020526040812080546001929061211b908490613af8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612186828261168b565b610d4a5761219e816001600160a01b03166014612993565b6121a9836020612993565b6040516020016121ba929190613ef0565b60408051601f198184030181529082905262461bcd60e51b8252610a2e916004016131af565b6121ea828261168b565b610d4a5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612270828261168b565b15610d4a5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561231d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a2e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461236a576040519150601f19603f3d011682016040523d82523d6000602084013e61236f565b606091505b5050905080610b645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a2e565b600081606001511161243a5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c79206d757374206265206e6f6e2d7a65726f006044820152606401610a2e565b60008161012001511161248f5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e7320706572206d696e74206d757374206265206e6f6e2d7a65726f6044820152606401610a2e565b6101408101516001600160a01b03166124fe5760405162461bcd60e51b815260206004820152602b60248201527f547265617375727920616464726573732063616e6e6f7420626520746865206e60448201526a756c6c206164647265737360a81b6064820152608401610a2e565b60408101516001600160a01b0316610d985760405162461bcd60e51b815260206004820152601b60248201527f436f6e7472616374206d757374206861766520616e206f776e657200000000006044820152606401610a2e565b6001600160a01b0382166125ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a2e565b6000818152600260205260409020546001600160a01b0316156126135760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a2e565b6001600160a01b038216600090815260036020526040812080546001929061263c908490613af8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000826126a78584612df5565b14949350505050565b6126ba8183613aaf565b3410156126fd5760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b6044820152606401610a2e565b60008260085461270d9190613af8565b60165490915081111561275b5760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401610a2e565b600881905560005b83811015611b8257612782858260085461277d9190613b10565b612e69565b8061278c81613a94565b915050612763565b816001600160a01b0316836001600160a01b031614156127f65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a2e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61286e848484611fe0565b61287a84848484612e83565b61110f5760405162461bcd60e51b8152600401610a2e90613f65565b6060816128ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128e457806128ce81613a94565b91506128dd9050600a83613ae4565b91506128be565b6000816001600160401b038111156128fe576128fe613320565b6040519080825280601f01601f191660200182016040528015612928576020820181803683370190505b5090505b8415611fd85761293d600183613b10565b915061294a600a86613fb7565b612955906030613af8565b60f81b81838151811061296a5761296a613a68565b60200101906001600160f81b031916908160001a90535061298c600a86613ae4565b945061292c565b606060006129a2836002613aaf565b6129ad906002613af8565b6001600160401b038111156129c4576129c4613320565b6040519080825280601f01601f1916602001820160405280156129ee576020820181803683370190505b509050600360fc1b81600081518110612a0957612a09613a68565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3857612a38613a68565b60200101906001600160f81b031916908160001a9053506000612a5c846002613aaf565b612a67906001613af8565b90505b6001811115612adf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a9b57612a9b613a68565b1a60f81b828281518110612ab157612ab1613a68565b60200101906001600160f81b031916908160001a90535060049490941c93612ad881613fcb565b9050612a6a565b508315612b2e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2e565b9392505050565b805160609080612b55575050604080516020810190915260008152919050565b60006003612b64836002613af8565b612b6e9190613ae4565b612b79906004613aaf565b90506000612b88826020613af8565b6001600160401b03811115612b9f57612b9f613320565b6040519080825280601f01601f191660200182016040528015612bc9576020820181803683370190505b509050600060405180606001604052806040815260200161406c604091399050600181016020830160005b86811015612c55576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612bf4565b506003860660018114612c6f5760028114612c8057612c8c565b613d3d60f01b600119830152612c8c565b603d60f81b6000198301525b505050918152949350505050565b61271060e08201351115612ce55760405162461bcd60e51b81526020600482015260126024820152710a4def2c2d8e8d2cae640e8dede40d0d2ced60731b6044820152606401610a2e565b600a5460ff1615612cf35750565b612d036040820160208301613fe2565b600a5460ff16151590151514612d5b5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e667265657a65206d6574616461746100000000000000006044820152606401610a2e565b612d658180613ca5565b604051602001612d76929190613fff565b60408051601f1981840301815290829052805160209182012091612d9d916009910161400f565b6040516020818303038152906040528051906020012014610d985760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610a2e565b600081815b8451811015612e61576000858281518110612e1757612e17613a68565b60200260200101519050808311612e3d5760008381526020829052604090209250612e4e565b600081815260208490526040902092505b5080612e5981613a94565b915050612dfa565b509392505050565b610d4a828260405180602001604052806000815250612f81565b60006001600160a01b0384163b15612f7657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ec790339089908890889060040161401b565b6020604051808303816000875af1925050508015612f02575060408051601f3d908101601f19168201909252612eff9181019061404e565b60015b612f5c573d808015612f30576040519150601f19603f3d011682016040523d82523d6000602084013e612f35565b606091505b508051612f545760405162461bcd60e51b8152600401610a2e90613f65565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fd8565b506001949350505050565b612f8b8383612558565b612f986000848484612e83565b610b645760405162461bcd60e51b8152600401610a2e90613f65565b828054612fc0906139dc565b90600052602060002090601f016020900481019282612fe25760008555613028565b82601f10612ffb57805160ff1916838001178555613028565b82800160010185558215613028579182015b8281111561302857825182559160200191906001019061300d565b5061303492915061310f565b5090565b6040518060600160405280600081526020016130b9604051806101600160405280606081526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b815260408051610140810182526060808252600060208381018290529383018190528183018190526080830182905260a0830181905260c0830181905260e0830181905261010083015261012082015291015290565b5b808211156130345760008155600101613110565b6001600160e01b031981168114610d9857600080fd5b60006020828403121561314c57600080fd5b8135612b2e81613124565b60005b8381101561317257818101518382015260200161315a565b8381111561110f5750506000910152565b6000815180845261319b816020860160208601613157565b601f01601f19169290920160200192915050565b602081526000612b2e6020830184613183565b6000602082840312156131d457600080fd5b5035919050565b6001600160a01b0381168114610d9857600080fd5b80356131fb816131db565b919050565b6000806040838503121561321357600080fd5b823561321e816131db565b946020939093013593505050565b60008060006060848603121561324157600080fd5b833561324c816131db565b9250602084013561325c816131db565b929592945050506040919091013590565b60006020828403121561327f57600080fd5b8135612b2e816131db565b6020808252825182820181905260009190848201906040850190845b818110156132c2578351835292840192918401916001016132a6565b50909695505050505050565b600080604083850312156132e157600080fd5b50508035926020909101359150565b6000806040838503121561330357600080fd5b823591506020830135613315816131db565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b038111828210171561335957613359613320565b60405290565b60405161016081016001600160401b038111828210171561335957613359613320565b60006001600160401b038084111561339c5761339c613320565b604051601f8501601f19908116603f011681019082821181831017156133c4576133c4613320565b816040528093508581528686860111156133dd57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261340857600080fd5b612b2e83833560208501613382565b8015158114610d9857600080fd5b80356131fb81613417565b6000610140828403121561344357600080fd5b61344b613336565b905081356001600160401b038082111561346457600080fd5b613470858386016133f7565b835261347e60208501613425565b6020840152604084013560408401526060840135606084015260808401359150808211156134ab57600080fd5b6134b7858386016133f7565b608084015260a084013560a084015260c084013560c084015260e084013560e084015261010091506134ea8285016131f0565b828401526101209150818401358181111561350457600080fd5b613510868287016133f7565b8385015250505092915050565b6000806040838503121561353057600080fd5b82356001600160401b038082111561354757600080fd5b90840190610160828703121561355c57600080fd5b61356461335f565b82358281111561357357600080fd5b61357f888286016133f7565b82525060208301358281111561359457600080fd5b6135a0888286016133f7565b6020830152506135b2604084016131f0565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e082015261010080840135818301525061012080840135818301525061014061360f8185016131f0565b908201529350602085013591508082111561362957600080fd5b5061363685828601613430565b9150509250929050565b60008083601f84011261365257600080fd5b5081356001600160401b0381111561366957600080fd5b6020830191508360208260051b850101111561368457600080fd5b9250929050565b6000806000604084860312156136a057600080fd5b83356136ab816131db565b925060208401356001600160401b038111156136c657600080fd5b6136d286828701613640565b9497909650939450505050565b600061014082518185526136f582860182613183565b915050602083015161370b602086018215159052565b506040830151604085015260608301516060850152608083015184820360808601526137378282613183565b91505060a083015160a085015260c083015160c085015260e083015160e085015261010080840151613773828701826001600160a01b03169052565b5050610120808401518583038287015261378d8382613183565b9695505050505050565b6020815281516020820152600060208301516060604084015280516101608060808601526137c96101e0860183613183565b91506020830151607f198684030160a08701526137e68382613183565b925050604083015161380360c08701826001600160a01b03169052565b50606083015160e08601526080830151610100818188015260a08501519150610120828189015260c0860151925061014083818a015260e0870151858a0152828701516101808a0152818701516101a08a015280870151965050505050506138776101c08501836001600160a01b03169052565b6040850151848203601f19016060860152915061119281836136df565b600080604083850312156138a757600080fd5b82356138b2816131db565b9150602083013561331581613417565b600080600080608085870312156138d857600080fd5b84356138e3816131db565b935060208501356138f3816131db565b92506040850135915060608501356001600160401b0381111561391557600080fd5b8501601f8101871361392657600080fd5b61393587823560208401613382565b91505092959194509250565b60008060006040848603121561395657600080fd5b8335925060208401356001600160401b038111156136c657600080fd5b6000806040838503121561398657600080fd5b8235613991816131db565b91506020830135613315816131db565b6000602082840312156139b357600080fd5b81356001600160401b038111156139c957600080fd5b82016101408185031215612b2e57600080fd5b600181811c908216806139f057607f821691505b60208210811415613a1157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613aa857613aa8613a7e565b5060010190565b6000816000190483118215151615613ac957613ac9613a7e565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613af357613af3613ace565b500490565b60008219821115613b0b57613b0b613a7e565b500190565b600082821015613b2257613b22613a7e565b500390565b60008154613b34816139dc565b60018281168015613b4c5760018114613b5d57613b8c565b60ff19841687528287019450613b8c565b8560005260208060002060005b85811015613b835781548a820152908401908201613b6a565b50505082870194505b5050505092915050565b60008351613ba8818460208801613157565b61119281840185613b27565b6000613bc08285613b27565b8351613bd0818360208801613157565b01949350505050565b7f7b2273656c6c65725f6665655f62617369735f706f696e7473223a2000000000815260008351613c1181601c850160208801613157565b731610113332b2afb932b1b4b834b2b73a111d101160611b601c918401918201528351613c45816030840160208801613157565b61227d60f01b60309290910191820152603201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613c9881601d850160208701613157565b91909101601d0192915050565b6000808335601e19843603018112613cbc57600080fd5b8301803591506001600160401b03821115613cd657600080fd5b60200191503681900382131561368457600080fd5b601f821115610b6457600081815260208120601f850160051c81016020861015613d125750805b601f850160051c820191505b81811015613d3157828155600101613d1e565b505050505050565b6001600160401b03831115613d5057613d50613320565b613d6483613d5e83546139dc565b83613ceb565b6000601f841160018114613d985760008515613d805750838201355b600019600387901b1c1916600186901b178355611b82565b600083815260209020601f19861690835b82811015613dc95786850135825560209485019460019092019101613da9565b5086821015613de65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000813561091e81613417565b6000813561091e816131db565b613e1c8283613ca5565b613e27818385613d39565b5050613e51613e3860208401613df8565b6001830160ff1981541660ff8315151681178255505050565b6040820135600282015560608201356003820155613e726080830183613ca5565b613e80818360048601613d39565b505060a0820135600582015560c0820135600682015560e08201356007820155613ed4613eb06101008401613e05565b6008830180546001600160a01b0319166001600160a01b0392909216919091179055565b613ee2610120830183613ca5565b61110f818360098601613d39565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613f28816017850160208801613157565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613f59816028840160208801613157565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613fc657613fc6613ace565b500690565b600081613fda57613fda613a7e565b506000190190565b600060208284031215613ff457600080fd5b8135612b2e81613417565b8183823760009101908152919050565b6000612b2e8284613b27565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061378d90830184613183565b60006020828403121561406057600080fd5b8151612b2e8161312456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220c4fbe9c2ca421c693ac37bd71b57caa9e183286374d138844c6d92c4914ea47964736f6c634300080b0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.