Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
350 NATO
Holders
303
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFTNato
Compiler Version
v0.8.10+commit.fc410830
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.10; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract NFTNato is ERC1155Supply, Ownable, Pausable { using ECDSA for bytes32; // Contract name string public name; // Contract symbol string public symbol; uint256 public constant TOKEN_ID_CENTURION = 1; uint256 public constant TOKEN_PRICE_CENTURION = 0.45 ether; uint256 public constant TOKEN_ID_PLATINUM = 2; uint256 public constant TOKEN_PRICE_PLATINUM = 0.15 ether; uint256 public constant MAX_TOKENS_CENTURION = 500; uint256 public constant MAX_TOKENS_PLATINUM = 2000; uint256 public constant NUMBER_RESERVED_TOKENS = 100; uint public freeTokensMinted = 0; bool public saleIsActivePlatinum = true; bool public saleIsActivePlatinumFree = true; bool public saleIsActiveCenturion = true; // Used to validate authorized mint addresses address private freeSignerAddress = 0x1E2646181a24e2EeEF56Ad7fa29aAA260d35544C; // Used to ensure each new token id can only be minted once by the owner mapping (uint256 => bool) public collectionMinted; mapping (uint256 => string) public tokenURI; mapping (address => bool) public hasAddressMintedPlatinumFree; constructor( string memory uriBase, string memory uriPlatinum, string memory uriCenturion, string memory _name, string memory _symbol ) ERC1155(uriBase) { name = _name; symbol = _symbol; tokenURI[TOKEN_ID_PLATINUM] = uriPlatinum; tokenURI[TOKEN_ID_CENTURION] = uriCenturion; } /** * Returns the custom URI for each token id. Overrides the default ERC-1155 single URI. */ function uri(uint256 tokenId) public view override returns (string memory) { // If no URI exists for the specific id requested, fallback to the default ERC-1155 URI. if (bytes(tokenURI[tokenId]).length == 0) { return super.uri(tokenId); } return tokenURI[tokenId]; } /** * Sets a URI for a specific token id. */ function setURI(string memory newTokenURI, uint256 tokenId) public onlyOwner { tokenURI[tokenId] = newTokenURI; } /** * Set the global default ERC-1155 base URI to be used for any tokens without unique URIs */ function setGlobalURI(string memory newTokenURI) public onlyOwner { _setURI(newTokenURI); } function setPlatinumSaleState(bool newState) public onlyOwner { require(saleIsActivePlatinum != newState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); saleIsActivePlatinum = newState; } function setPlatinumFreeSaleState(bool newState) public onlyOwner { require(saleIsActivePlatinumFree != newState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); saleIsActivePlatinumFree = newState; } function setCenturionSaleState(bool newState) public onlyOwner { require(saleIsActiveCenturion != newState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); saleIsActiveCenturion = newState; } function setFreeSignerAddress(address _freeSignerAddress) external onlyOwner { require(_freeSignerAddress != address(0)); freeSignerAddress = _freeSignerAddress; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function verifyAddressSigner(bytes32 messageHash, bytes memory signature) private view returns (bool) { return freeSignerAddress == messageHash.toEthSignedMessageHash().recover(signature); } function hashMessage(address sender) private pure returns (bytes32) { return keccak256(abi.encode(sender)); } /** * @notice Allow minting of any future tokens as desired as part of the same collection, * which can then be transferred to another contract for distribution purposes */ function adminMint(address account, uint256 id, uint256 amount) public onlyOwner { require(!collectionMinted[id], "CANNOT_MINT_EXISTING_TOKEN_ID"); require(id != TOKEN_ID_CENTURION && id != TOKEN_ID_PLATINUM, "CANNOT_MINT_EXISTING_TOKEN_ID"); collectionMinted[id] = true; _mint(account, id, amount, ""); } /** * @notice Allow minting of Platinum tokens by anyone while the sale is active max 3 per transaction */ function mintPlatinum(uint256 numberOfTokens) external payable { require(saleIsActivePlatinum, "SALE_NOT_ACTIVE"); require(!collectionMinted[TOKEN_ID_PLATINUM], "PLATINUM_TOKEN_LOCKED"); require(TOKEN_PRICE_PLATINUM * numberOfTokens == msg.value, "PRICE_WAS_INCORRECT"); require(totalSupply(TOKEN_ID_PLATINUM) + numberOfTokens <= MAX_TOKENS_PLATINUM - (NUMBER_RESERVED_TOKENS - freeTokensMinted), "WOULD_EXCEED_MAX_TOKEN_SUPPLY"); require(numberOfTokens > 0, "MUST_MINT_AT_LEAST_ONE_TOKEN"); require(numberOfTokens < 4, "CANT_MINT_MORE_THAN_THREE_TOKENS"); _mint(msg.sender, TOKEN_ID_PLATINUM, numberOfTokens, ""); if (totalSupply(TOKEN_ID_PLATINUM) >= MAX_TOKENS_PLATINUM) { saleIsActivePlatinum = false; saleIsActivePlatinumFree = false; } } /** * @notice Allow minting of Centurion tokens by anyone while the sale is active max 3 per transaction */ function mintCenturion(uint256 numberOfTokens) external payable { require(saleIsActiveCenturion, "SALE_NOT_ACTIVE"); require(!collectionMinted[TOKEN_ID_CENTURION], "CENTURION_TOKEN_LOCKED"); require(TOKEN_PRICE_CENTURION * numberOfTokens == msg.value, "PRICE_WAS_INCORRECT"); require(totalSupply(TOKEN_ID_CENTURION) + numberOfTokens <= MAX_TOKENS_CENTURION, "WOULD_EXCEED_MAX_TOKEN_SUPPLY"); require(numberOfTokens > 0, "MUST_MINT_AT_LEAST_ONE_TOKEN"); require(numberOfTokens < 4, "CANT_MINT_MORE_THAN_THREE_TOKENS"); _mint(msg.sender, TOKEN_ID_CENTURION, numberOfTokens, ""); if (totalSupply(TOKEN_ID_CENTURION) >= MAX_TOKENS_CENTURION) { saleIsActiveCenturion = false; } } /** * @notice Allow minting of a single Platinum token for free by whitelisted addresses only */ function mintPlatinumFree(bytes32 messageHash, bytes calldata signature) external payable { require(saleIsActivePlatinumFree, "SALE_NOT_ACTIVE"); require(!collectionMinted[TOKEN_ID_PLATINUM], "PLATINUM_TOKEN_LOCKED"); require(freeTokensMinted + 1 <= NUMBER_RESERVED_TOKENS, "WOULD_EXCEED_MAX_TOKEN_SUPPLY"); require(hasAddressMintedPlatinumFree[msg.sender] == false, "ADDRESS_HAS_ALREADY_MINTED_PLATINUM_FREE"); require(hashMessage(msg.sender) == messageHash, "MESSAGE_INVALID"); require(verifyAddressSigner(messageHash, signature), "SIGNATURE_VALIDATION_FAILED"); hasAddressMintedPlatinumFree[msg.sender] = true; _mint(msg.sender, TOKEN_ID_PLATINUM, 1, ""); freeTokensMinted = freeTokensMinted + 1; if (totalSupply(TOKEN_ID_PLATINUM) >= MAX_TOKENS_PLATINUM) { saleIsActivePlatinum = false; saleIsActivePlatinumFree = false; } } /** * @notice Allow owner to send `mintNumber` Platinum tokens without cost to multiple addresses */ function giftPlatinum(address[] calldata receivers, uint256 numberOfTokens) external onlyOwner { require(!collectionMinted[TOKEN_ID_PLATINUM], "PLATINUM_TOKEN_LOCKED"); require((totalSupply(TOKEN_ID_PLATINUM) + (receivers.length * numberOfTokens)) <= MAX_TOKENS_PLATINUM, "MINT_TOO_LARGE"); for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], TOKEN_ID_PLATINUM, numberOfTokens, ""); } freeTokensMinted = freeTokensMinted + (receivers.length * numberOfTokens); } /** * @notice Allow owner to send `mintNumber` Centurion tokens without cost to multiple addresses */ function giftCenturion(address[] calldata receivers, uint256 numberOfTokens) external onlyOwner { require(!collectionMinted[TOKEN_ID_CENTURION], "CENTURION_TOKEN_LOCKED"); require((totalSupply(TOKEN_ID_CENTURION) + (receivers.length * numberOfTokens)) <= MAX_TOKENS_CENTURION, "MINT_TOO_LARGE"); for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], TOKEN_ID_CENTURION, numberOfTokens, ""); } } /** * @notice Override ERC1155 such that zero amount token transfers are disallowed to prevent arbitrary creation of new tokens in the collection. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public override { require(amount > 0, "AMOUNT_CANNOT_BE_ZERO"); return super.safeTransferFrom(from, to, id, amount, data); } /** * @notice When the contract is paused, all token transfers are prevented in case of emergency. */ function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal whenNotPaused override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function withdraw() external onlyOwner { require(address(this).balance > 0, "BALANCE_IS_ZERO"); payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @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, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // 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 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 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/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); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uriBase","type":"string"},{"internalType":"string","name":"uriPlatinum","type":"string"},{"internalType":"string","name":"uriCenturion","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TOKENS_CENTURION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PLATINUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID_CENTURION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID_PLATINUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE_CENTURION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE_PLATINUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"giftCenturion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"giftPlatinum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasAddressMintedPlatinumFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintCenturion","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPlatinum","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPlatinumFree","outputs":[],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActiveCenturion","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleIsActivePlatinum","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleIsActivePlatinumFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setCenturionSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_freeSignerAddress","type":"address"}],"name":"setFreeSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setGlobalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setPlatinumFreeSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setPlatinumSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600755600880546001600160b81b031916761e2646181a24e2eeef56ad7fa29aaa260d35544c0101011790553480156200003f57600080fd5b5060405162003a8c38038062003a8c83398101604081905262000062916200031c565b846200006e816200013e565b506200007a3362000157565b6004805460ff60a01b1916905581516200009c906005906020850190620001a9565b508051620000b2906006906020840190620001a9565b506002600052600a60209081528451620000f2917fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba89190870190620001a9565b506001600052600a6020908152835162000132917fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79190860190620001a9565b5050505050506200043a565b805162000153906002906020840190620001a9565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b790620003fd565b90600052602060002090601f016020900481019282620001db576000855562000226565b82601f10620001f657805160ff191683800117855562000226565b8280016001018555821562000226579182015b828111156200022657825182559160200191906001019062000209565b506200023492915062000238565b5090565b5b8082111562000234576000815560010162000239565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027757600080fd5b81516001600160401b03808211156200029457620002946200024f565b604051601f8301601f19908116603f01168101908282118183101715620002bf57620002bf6200024f565b81604052838152602092508683858801011115620002dc57600080fd5b600091505b83821015620003005785820183015181830184015290820190620002e1565b83821115620003125760008385830101525b9695505050505050565b600080600080600060a086880312156200033557600080fd5b85516001600160401b03808211156200034d57600080fd5b6200035b89838a0162000265565b965060208801519150808211156200037257600080fd5b6200038089838a0162000265565b955060408801519150808211156200039757600080fd5b620003a589838a0162000265565b94506060880151915080821115620003bc57600080fd5b620003ca89838a0162000265565b93506080880151915080821115620003e157600080fd5b50620003f08882890162000265565b9150509295509295909350565b600181811c908216806200041257607f821691505b602082108114156200043457634e487b7160e01b600052602260045260246000fd5b50919050565b613642806200044a6000396000f3fe6080604052600436106102705760003560e01c8063891498ec1161014f578063cece82c3116100c1578063e985e9c51161007a578063e985e9c51461072a578063ea12a3fa14610773578063eaedcada14610793578063eccd5041146107b3578063f242432a146107c9578063f2fde38b146107e957600080fd5b8063cece82c314610678578063d0fa51d014610692578063d2f1cd9c146106b2578063d7423031146106d1578063db9b86f614610701578063dbcaa52c1461071457600080fd5b8063b22edfbc11610113578063b22edfbc146105c4578063bd85b039146105d9578063c106d3b614610606578063c15d0e2114610622578063c87b56dd14610642578063cc86ef971461066257600080fd5b8063891498ec146105275780638da5cb5b146105475780639410d4e61461056f57806395d89b411461058f578063a22cb465146105a457600080fd5b80634e1273f4116101e85780636f1f620b116101ac5780636f1f620b146104ad5780636f712d68146104c0578063715018a6146104d557806373598c62146104ea57806383d46e12146104fd5780638456cb591461051257600080fd5b80634e1273f4146103e25780634f558e791461040f578063513db84d1461043e5780635c975abb1461046e57806367db3b8f1461048d57600080fd5b8063129f6d391161023a578063129f6d391461033c5780631f3c0c411461035c5780632eb2c2d6146103785780633ccfd60b146103985780633f4ba83a146103ad57806343c9d1e7146103c257600080fd5b80624a84cb14610275578062fdd58e1461029757806301ffc9a7146102ca57806306fdde03146102fa5780630e89341c1461031c575b600080fd5b34801561028157600080fd5b50610295610290366004612b02565b610809565b005b3480156102a357600080fd5b506102b76102b2366004612b35565b610933565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004612b75565b6109c5565b60405190151581526020016102c1565b34801561030657600080fd5b5061030f610a17565b6040516102c19190612be6565b34801561032857600080fd5b5061030f610337366004612bf9565b610aa5565b34801561034857600080fd5b50610295610357366004612c22565b610b71565b34801561036857600080fd5b506102b767063eb89da4ed000081565b34801561038457600080fd5b50610295610393366004612d89565b610be7565b3480156103a457600080fd5b50610295610c7e565b3480156103b957600080fd5b50610295610d19565b3480156103ce57600080fd5b506008546102ea9062010000900460ff1681565b3480156103ee57600080fd5b506104026103fd366004612e33565b610d4d565b6040516102c19190612f39565b34801561041b57600080fd5b506102ea61042a366004612bf9565b600090815260036020526040902054151590565b34801561044a57600080fd5b506102ea610459366004612f4c565b600b6020526000908152604090205460ff1681565b34801561047a57600080fd5b50600454600160a01b900460ff166102ea565b34801561049957600080fd5b506102956104a8366004612f67565b610e77565b6102956104bb366004612bf9565b610ec0565b3480156104cc57600080fd5b506102b7600281565b3480156104e157600080fd5b506102956110cd565b6102956104f8366004612bf9565b611101565b34801561050957600080fd5b506102b7600181565b34801561051e57600080fd5b5061029561134c565b34801561053357600080fd5b50610295610542366004612f4c565b61137e565b34801561055357600080fd5b506004546040516001600160a01b0390911681526020016102c1565b34801561057b57600080fd5b5061029561058a366004612fac565b6113e7565b34801561059b57600080fd5b5061030f61154c565b3480156105b057600080fd5b506102956105bf366004613027565b611559565b3480156105d057600080fd5b506102b7606481565b3480156105e557600080fd5b506102b76105f4366004612bf9565b60009081526003602052604090205490565b34801561061257600080fd5b506102b7670214e8348c4f000081565b34801561062e57600080fd5b5061029561063d36600461305a565b611568565b34801561064e57600080fd5b5061030f61065d366004612bf9565b61159b565b34801561066e57600080fd5b506102b76101f481565b34801561068457600080fd5b506008546102ea9060ff1681565b34801561069e57600080fd5b506102956106ad366004612fac565b6115b4565b3480156106be57600080fd5b506008546102ea90610100900460ff1681565b3480156106dd57600080fd5b506102ea6106ec366004612bf9565b60096020526000908152604090205460ff1681565b61029561070f366004613097565b61173a565b34801561072057600080fd5b506102b760075481565b34801561073657600080fd5b506102ea610745366004613113565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077f57600080fd5b5061029561078e366004612c22565b61199d565b34801561079f57600080fd5b506102956107ae366004612c22565b611a03565b3480156107bf57600080fd5b506102b76107d081565b3480156107d557600080fd5b506102956107e436600461313d565b611a76565b3480156107f557600080fd5b50610295610804366004612f4c565b611acb565b6004546001600160a01b0316331461083c5760405162461bcd60e51b8152600401610833906131a2565b60405180910390fd5b60008281526009602052604090205460ff161561089b5760405162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f4d494e545f4558495354494e475f544f4b454e5f49440000006044820152606401610833565b600182141580156108ad575060028214155b6108f95760405162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f4d494e545f4558495354494e475f544f4b454e5f49440000006044820152606401610833565b6000828152600960209081526040808320805460ff191660011790558051918201905290815261092e90849084908490611b63565b505050565b60006001600160a01b03831661099f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610833565b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806109f657506001600160e01b031982166303a24d0760e21b145b80610a1157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60058054610a24906131d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a50906131d7565b8015610a9d5780601f10610a7257610100808354040283529160200191610a9d565b820191906000526020600020905b815481529060010190602001808311610a8057829003601f168201915b505050505081565b6000818152600a60205260409020805460609190610ac2906131d7565b15159050610ad357610a1182611c73565b6000828152600a602052604090208054610aec906131d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b18906131d7565b8015610b655780601f10610b3a57610100808354040283529160200191610b65565b820191906000526020600020905b815481529060010190602001808311610b4857829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610b9b5760405162461bcd60e51b8152600401610833906131a2565b60085460ff620100009091041615158115151415610bcb5760405162461bcd60e51b815260040161083390613212565b60088054911515620100000262ff000019909216919091179055565b6001600160a01b038516331480610c035750610c038533610745565b610c6a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610833565b610c778585858585611c82565b5050505050565b6004546001600160a01b03163314610ca85760405162461bcd60e51b8152600401610833906131a2565b60004711610cea5760405162461bcd60e51b815260206004820152600f60248201526e42414c414e43455f49535f5a45524f60881b6044820152606401610833565b60405133904780156108fc02916000818181858888f19350505050158015610d16573d6000803e3d6000fd5b50565b6004546001600160a01b03163314610d435760405162461bcd60e51b8152600401610833906131a2565b610d4b611e6d565b565b60608151835114610db25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610833565b6000835167ffffffffffffffff811115610dce57610dce612c3d565b604051908082528060200260200182016040528015610df7578160200160208202803683370190505b50905060005b8451811015610e6f57610e42858281518110610e1b57610e1b613247565b6020026020010151858381518110610e3557610e35613247565b6020026020010151610933565b828281518110610e5457610e54613247565b6020908102919091010152610e6881613273565b9050610dfd565b509392505050565b6004546001600160a01b03163314610ea15760405162461bcd60e51b8152600401610833906131a2565b6000818152600a60209081526040909120835161092e92850190612a4d565b60085460ff16610ee25760405162461bcd60e51b81526004016108339061328e565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff1615610f2e5760405162461bcd60e51b8152600401610833906132b7565b34610f4182670214e8348c4f00006132e6565b14610f845760405162461bcd60e51b815260206004820152601360248201527214149250d157d5d054d7d25390d3d4949150d5606a1b6044820152606401610833565b600754610f92906064613305565b610f9e906107d0613305565b600260005260036020526000805160206135ed83398151915254610fc390839061331c565b1115610fe15760405162461bcd60e51b815260040161083390613334565b600081116110315760405162461bcd60e51b815260206004820152601c60248201527f4d5553545f4d494e545f41545f4c454153545f4f4e455f544f4b454e000000006044820152606401610833565b600481106110815760405162461bcd60e51b815260206004820181905260248201527f43414e545f4d494e545f4d4f52455f5448414e5f54485245455f544f4b454e536044820152606401610833565b61109d3360028360405180602001604052806000815250611b63565b600260005260036020526000805160206135ed833981519152546107d011610d16576008805461ffff1916905550565b6004546001600160a01b031633146110f75760405162461bcd60e51b8152600401610833906131a2565b610d4b6000611f0a565b60085462010000900460ff166111295760405162461bcd60e51b81526004016108339061328e565b600160005260096020527f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a365460ff161561119e5760405162461bcd60e51b815260206004820152601660248201527510d1539515549253d397d513d2d15397d313d0d2d15160521b6044820152606401610833565b346111b18267063eb89da4ed00006132e6565b146111f45760405162461bcd60e51b815260206004820152601360248201527214149250d157d5d054d7d25390d3d4949150d5606a1b6044820152606401610833565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c546101f49061122f90839061331c565b111561124d5760405162461bcd60e51b815260040161083390613334565b6000811161129d5760405162461bcd60e51b815260206004820152601c60248201527f4d5553545f4d494e545f41545f4c454153545f4f4e455f544f4b454e000000006044820152606401610833565b600481106112ed5760405162461bcd60e51b815260206004820181905260248201527f43414e545f4d494e545f4d4f52455f5448414e5f54485245455f544f4b454e536044820152606401610833565b6113093360018360405180602001604052806000815250611b63565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c546101f411610d16576008805462ff00001916905550565b6004546001600160a01b031633146113765760405162461bcd60e51b8152600401610833906131a2565b610d4b611f5c565b6004546001600160a01b031633146113a85760405162461bcd60e51b8152600401610833906131a2565b6001600160a01b0381166113bb57600080fd5b600880546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6004546001600160a01b031633146114115760405162461bcd60e51b8152600401610833906131a2565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff161561145d5760405162461bcd60e51b8152600401610833906132b7565b6107d061146a82846132e6565b600260005260036020526000805160206135ed8339815191525461148e919061331c565b11156114cd5760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b6044820152606401610833565b60005b8281101561152c5761151a8484838181106114ed576114ed613247565b90506020020160208101906115029190612f4c565b60028460405180602001604052806000815250611b63565b8061152481613273565b9150506114d0565b5061153781836132e6565b600754611544919061331c565b600755505050565b60068054610a24906131d7565b611564338383611fe4565b5050565b6004546001600160a01b031633146115925760405162461bcd60e51b8152600401610833906131a2565b610d16816120c5565b600a6020526000908152604090208054610a24906131d7565b6004546001600160a01b031633146115de5760405162461bcd60e51b8152600401610833906131a2565b600160005260096020527f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a365460ff16156116535760405162461bcd60e51b815260206004820152601660248201527510d1539515549253d397d513d2d15397d313d0d2d15160521b6044820152606401610833565b6101f461166082846132e6565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54611696919061331c565b11156116d55760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b6044820152606401610833565b60005b82811015611734576117228484838181106116f5576116f5613247565b905060200201602081019061170a9190612f4c565b60018460405180602001604052806000815250611b63565b8061172c81613273565b9150506116d8565b50505050565b600854610100900460ff166117615760405162461bcd60e51b81526004016108339061328e565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff16156117ad5760405162461bcd60e51b8152600401610833906132b7565b606460075460016117be919061331c565b11156117dc5760405162461bcd60e51b815260040161083390613334565b336000908152600b602052604090205460ff161561184d5760405162461bcd60e51b815260206004820152602860248201527f414444524553535f4841535f414c52454144595f4d494e5445445f504c4154496044820152674e554d5f4652454560c01b6064820152608401610833565b82611857336120d8565b146118965760405162461bcd60e51b815260206004820152600f60248201526e135154d4d051d157d2539590531251608a1b6044820152606401610833565b6118d68383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061210d92505050565b6119225760405162461bcd60e51b815260206004820152601b60248201527f5349474e41545552455f56414c49444154494f4e5f4641494c454400000000006044820152606401610833565b336000818152600b60209081526040808320805460ff19166001908117909155815192830190915291815261195a9291600291611b63565b60075461196890600161331c565b600755600260005260036020526000805160206135ed833981519152546107d01161092e576008805461ffff19169055505050565b6004546001600160a01b031633146119c75760405162461bcd60e51b8152600401610833906131a2565b60085460ff16151581151514156119f05760405162461bcd60e51b815260040161083390613212565b6008805460ff1916911515919091179055565b6004546001600160a01b03163314611a2d5760405162461bcd60e51b8152600401610833906131a2565b60085460ff6101009091041615158115151415611a5c5760405162461bcd60e51b815260040161083390613212565b600880549115156101000261ff0019909216919091179055565b60008211611abe5760405162461bcd60e51b8152602060048201526015602482015274414d4f554e545f43414e4e4f545f42455f5a45524f60581b6044820152606401610833565b610c778585858585612142565b6004546001600160a01b03163314611af55760405162461bcd60e51b8152600401610833906131a2565b6001600160a01b038116611b5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610833565b610d1681611f0a565b6001600160a01b038416611bc35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610833565b33611be381600087611bd4886121c9565b611bdd886121c9565b87612214565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c1390849061331c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c778160008787878761226f565b606060028054610aec906131d7565b8151835114611ce45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610833565b6001600160a01b038416611d0a5760405162461bcd60e51b81526004016108339061336b565b33611d19818787878787612214565b60005b8451811015611dff576000858281518110611d3957611d39613247565b602002602001015190506000858381518110611d5757611d57613247565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611da75760405162461bcd60e51b8152600401610833906133b0565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611de490849061331c565b9250508190555050505080611df890613273565b9050611d1c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611e4f9291906133fa565b60405180910390a4611e658187878787876123d4565b505050505050565b600454600160a01b900460ff16611ebd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610833565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff1615611fa95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610833565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611eed3390565b816001600160a01b0316836001600160a01b031614156120585760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610833565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8051611564906002906020840190612a4d565b604080516001600160a01b0383166020820152600091015b604051602081830303815290604052805190602001209050919050565b60006121228261211c8561248f565b906124ca565b600854630100000090046001600160a01b03908116911614905092915050565b6001600160a01b03851633148061215e575061215e8533610745565b6121bc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610833565b610c7785858585856124e6565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061220357612203613247565b602090810291909101015292915050565b600454600160a01b900460ff16156122615760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610833565b611e658686868686866125fa565b6001600160a01b0384163b15611e655760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122b39089908990889088908890600401613428565b6020604051808303816000875af19250505080156122ee575060408051601f3d908101601f191682019092526122eb9181019061346d565b60015b61239b576122fa61348a565b806308c379a01415612334575061230f6134a6565b8061231a5750612336565b8060405162461bcd60e51b81526004016108339190612be6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610833565b6001600160e01b0319811663f23a6e6160e01b146123cb5760405162461bcd60e51b815260040161083390613530565b50505050505050565b6001600160a01b0384163b15611e655760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124189089908990889088908890600401613578565b6020604051808303816000875af1925050508015612453575060408051601f3d908101601f191682019092526124509181019061346d565b60015b61245f576122fa61348a565b6001600160e01b0319811663bc197c8160e01b146123cb5760405162461bcd60e51b815260040161083390613530565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c016120f0565b60008060006124d98585612706565b91509150610e6f81612776565b6001600160a01b03841661250c5760405162461bcd60e51b81526004016108339061336b565b3361251c818787611bd4886121c9565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561255d5760405162461bcd60e51b8152600401610833906133b0565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061259a90849061331c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123cb82888888888861226f565b6001600160a01b0385166126815760005b835181101561267f5782818151811061262657612626613247565b60200260200101516003600086848151811061264457612644613247565b602002602001015181526020019081526020016000206000828254612669919061331c565b90915550612678905081613273565b905061260b565b505b6001600160a01b038416611e655760005b83518110156123cb578281815181106126ad576126ad613247565b6020026020010151600360008684815181106126cb576126cb613247565b6020026020010151815260200190815260200160002060008282546126f09190613305565b909155506126ff905081613273565b9050612692565b60008082516041141561273d5760208301516040840151606085015160001a61273187828585612931565b9450945050505061276f565b825160401415612767576020830151604084015161275c868383612a1e565b93509350505061276f565b506000905060025b9250929050565b600081600481111561278a5761278a6135d6565b14156127935750565b60018160048111156127a7576127a76135d6565b14156127f55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610833565b6002816004811115612809576128096135d6565b14156128575760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610833565b600381600481111561286b5761286b6135d6565b14156128c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610833565b60048160048111156128d8576128d86135d6565b1415610d165760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610833565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129685750600090506003612a15565b8460ff16601b1415801561298057508460ff16601c14155b156129915750600090506004612a15565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0e57600060019250925050612a15565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3f87828885612931565b935093505050935093915050565b828054612a59906131d7565b90600052602060002090601f016020900481019282612a7b5760008555612ac1565b82601f10612a9457805160ff1916838001178555612ac1565b82800160010185558215612ac1579182015b82811115612ac1578251825591602001919060010190612aa6565b50612acd929150612ad1565b5090565b5b80821115612acd5760008155600101612ad2565b80356001600160a01b0381168114612afd57600080fd5b919050565b600080600060608486031215612b1757600080fd5b612b2084612ae6565b95602085013595506040909401359392505050565b60008060408385031215612b4857600080fd5b612b5183612ae6565b946020939093013593505050565b6001600160e01b031981168114610d1657600080fd5b600060208284031215612b8757600080fd5b8135612b9281612b5f565b9392505050565b6000815180845260005b81811015612bbf57602081850181015186830182015201612ba3565b81811115612bd1576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612b926020830184612b99565b600060208284031215612c0b57600080fd5b5035919050565b80358015158114612afd57600080fd5b600060208284031215612c3457600080fd5b612b9282612c12565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612c7957612c79612c3d565b6040525050565b600067ffffffffffffffff821115612c9a57612c9a612c3d565b5060051b60200190565b600082601f830112612cb557600080fd5b81356020612cc282612c80565b604051612ccf8282612c53565b83815260059390931b8501820192828101915086841115612cef57600080fd5b8286015b84811015612d0a5780358352918301918301612cf3565b509695505050505050565b600082601f830112612d2657600080fd5b813567ffffffffffffffff811115612d4057612d40612c3d565b604051612d57601f8301601f191660200182612c53565b818152846020838601011115612d6c57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612da157600080fd5b612daa86612ae6565b9450612db860208701612ae6565b9350604086013567ffffffffffffffff80821115612dd557600080fd5b612de189838a01612ca4565b94506060880135915080821115612df757600080fd5b612e0389838a01612ca4565b93506080880135915080821115612e1957600080fd5b50612e2688828901612d15565b9150509295509295909350565b60008060408385031215612e4657600080fd5b823567ffffffffffffffff80821115612e5e57600080fd5b818501915085601f830112612e7257600080fd5b81356020612e7f82612c80565b604051612e8c8282612c53565b83815260059390931b8501820192828101915089841115612eac57600080fd5b948201945b83861015612ed157612ec286612ae6565b82529482019490820190612eb1565b96505086013592505080821115612ee757600080fd5b50612ef485828601612ca4565b9150509250929050565b600081518084526020808501945080840160005b83811015612f2e57815187529582019590820190600101612f12565b509495945050505050565b602081526000612b926020830184612efe565b600060208284031215612f5e57600080fd5b612b9282612ae6565b60008060408385031215612f7a57600080fd5b823567ffffffffffffffff811115612f9157600080fd5b612f9d85828601612d15565b95602094909401359450505050565b600080600060408486031215612fc157600080fd5b833567ffffffffffffffff80821115612fd957600080fd5b818601915086601f830112612fed57600080fd5b813581811115612ffc57600080fd5b8760208260051b850101111561301157600080fd5b6020928301989097509590910135949350505050565b6000806040838503121561303a57600080fd5b61304383612ae6565b915061305160208401612c12565b90509250929050565b60006020828403121561306c57600080fd5b813567ffffffffffffffff81111561308357600080fd5b61308f84828501612d15565b949350505050565b6000806000604084860312156130ac57600080fd5b83359250602084013567ffffffffffffffff808211156130cb57600080fd5b818601915086601f8301126130df57600080fd5b8135818111156130ee57600080fd5b87602082850101111561310057600080fd5b6020830194508093505050509250925092565b6000806040838503121561312657600080fd5b61312f83612ae6565b915061305160208401612ae6565b600080600080600060a0868803121561315557600080fd5b61315e86612ae6565b945061316c60208701612ae6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561319657600080fd5b612e2688828901612d15565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806131eb57607f821691505b6020821081141561320c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156132875761328761325d565b5060010190565b6020808252600f908201526e53414c455f4e4f545f41435449564560881b604082015260600190565b602080825260159082015274141310551253955357d513d2d15397d313d0d2d151605a1b604082015260600190565b60008160001904831182151516156133005761330061325d565b500290565b6000828210156133175761331761325d565b500390565b6000821982111561332f5761332f61325d565b500190565b6020808252601d908201527f574f554c445f4558434545445f4d41585f544f4b454e5f535550504c59000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061340d6040830185612efe565b828103602084015261341f8185612efe565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061346290830184612b99565b979650505050505050565b60006020828403121561347f57600080fd5b8151612b9281612b5f565b600060033d11156134a35760046000803e5060005160e01c5b90565b600060443d10156134b45790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156134e457505050505090565b82850191508151818111156134fc5750505050505090565b843d87010160208285010111156135165750505050505090565b61352560208286010187612c53565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906135a490830186612efe565b82810360608401526135b68186612efe565b905082810360808401526135ca8185612b99565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfec3a24b0501bd2c13a7e57f2db4369ec4c223447539fc0724a9d55ac4a06ebd4da2646970667358221220d0f5086b81504bb6d7f7aec22ba2ef6e7f50ab10ce9f1df9ebb6f21a71ffdfa164736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6270646d384b58515074576332715a624b6e6876487a50425968615938326864463155744d4c50325a38394a00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5932546b634642756f55666f514c617848656875783267674865706851675031546b48517763666e424b587000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5574685a57725134325a4433705370384c6e7844544d6d554272686d7146475a5953556e46504456575767430000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4e46544e61746f436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e41544f00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102705760003560e01c8063891498ec1161014f578063cece82c3116100c1578063e985e9c51161007a578063e985e9c51461072a578063ea12a3fa14610773578063eaedcada14610793578063eccd5041146107b3578063f242432a146107c9578063f2fde38b146107e957600080fd5b8063cece82c314610678578063d0fa51d014610692578063d2f1cd9c146106b2578063d7423031146106d1578063db9b86f614610701578063dbcaa52c1461071457600080fd5b8063b22edfbc11610113578063b22edfbc146105c4578063bd85b039146105d9578063c106d3b614610606578063c15d0e2114610622578063c87b56dd14610642578063cc86ef971461066257600080fd5b8063891498ec146105275780638da5cb5b146105475780639410d4e61461056f57806395d89b411461058f578063a22cb465146105a457600080fd5b80634e1273f4116101e85780636f1f620b116101ac5780636f1f620b146104ad5780636f712d68146104c0578063715018a6146104d557806373598c62146104ea57806383d46e12146104fd5780638456cb591461051257600080fd5b80634e1273f4146103e25780634f558e791461040f578063513db84d1461043e5780635c975abb1461046e57806367db3b8f1461048d57600080fd5b8063129f6d391161023a578063129f6d391461033c5780631f3c0c411461035c5780632eb2c2d6146103785780633ccfd60b146103985780633f4ba83a146103ad57806343c9d1e7146103c257600080fd5b80624a84cb14610275578062fdd58e1461029757806301ffc9a7146102ca57806306fdde03146102fa5780630e89341c1461031c575b600080fd5b34801561028157600080fd5b50610295610290366004612b02565b610809565b005b3480156102a357600080fd5b506102b76102b2366004612b35565b610933565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004612b75565b6109c5565b60405190151581526020016102c1565b34801561030657600080fd5b5061030f610a17565b6040516102c19190612be6565b34801561032857600080fd5b5061030f610337366004612bf9565b610aa5565b34801561034857600080fd5b50610295610357366004612c22565b610b71565b34801561036857600080fd5b506102b767063eb89da4ed000081565b34801561038457600080fd5b50610295610393366004612d89565b610be7565b3480156103a457600080fd5b50610295610c7e565b3480156103b957600080fd5b50610295610d19565b3480156103ce57600080fd5b506008546102ea9062010000900460ff1681565b3480156103ee57600080fd5b506104026103fd366004612e33565b610d4d565b6040516102c19190612f39565b34801561041b57600080fd5b506102ea61042a366004612bf9565b600090815260036020526040902054151590565b34801561044a57600080fd5b506102ea610459366004612f4c565b600b6020526000908152604090205460ff1681565b34801561047a57600080fd5b50600454600160a01b900460ff166102ea565b34801561049957600080fd5b506102956104a8366004612f67565b610e77565b6102956104bb366004612bf9565b610ec0565b3480156104cc57600080fd5b506102b7600281565b3480156104e157600080fd5b506102956110cd565b6102956104f8366004612bf9565b611101565b34801561050957600080fd5b506102b7600181565b34801561051e57600080fd5b5061029561134c565b34801561053357600080fd5b50610295610542366004612f4c565b61137e565b34801561055357600080fd5b506004546040516001600160a01b0390911681526020016102c1565b34801561057b57600080fd5b5061029561058a366004612fac565b6113e7565b34801561059b57600080fd5b5061030f61154c565b3480156105b057600080fd5b506102956105bf366004613027565b611559565b3480156105d057600080fd5b506102b7606481565b3480156105e557600080fd5b506102b76105f4366004612bf9565b60009081526003602052604090205490565b34801561061257600080fd5b506102b7670214e8348c4f000081565b34801561062e57600080fd5b5061029561063d36600461305a565b611568565b34801561064e57600080fd5b5061030f61065d366004612bf9565b61159b565b34801561066e57600080fd5b506102b76101f481565b34801561068457600080fd5b506008546102ea9060ff1681565b34801561069e57600080fd5b506102956106ad366004612fac565b6115b4565b3480156106be57600080fd5b506008546102ea90610100900460ff1681565b3480156106dd57600080fd5b506102ea6106ec366004612bf9565b60096020526000908152604090205460ff1681565b61029561070f366004613097565b61173a565b34801561072057600080fd5b506102b760075481565b34801561073657600080fd5b506102ea610745366004613113565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077f57600080fd5b5061029561078e366004612c22565b61199d565b34801561079f57600080fd5b506102956107ae366004612c22565b611a03565b3480156107bf57600080fd5b506102b76107d081565b3480156107d557600080fd5b506102956107e436600461313d565b611a76565b3480156107f557600080fd5b50610295610804366004612f4c565b611acb565b6004546001600160a01b0316331461083c5760405162461bcd60e51b8152600401610833906131a2565b60405180910390fd5b60008281526009602052604090205460ff161561089b5760405162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f4d494e545f4558495354494e475f544f4b454e5f49440000006044820152606401610833565b600182141580156108ad575060028214155b6108f95760405162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f4d494e545f4558495354494e475f544f4b454e5f49440000006044820152606401610833565b6000828152600960209081526040808320805460ff191660011790558051918201905290815261092e90849084908490611b63565b505050565b60006001600160a01b03831661099f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610833565b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806109f657506001600160e01b031982166303a24d0760e21b145b80610a1157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60058054610a24906131d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a50906131d7565b8015610a9d5780601f10610a7257610100808354040283529160200191610a9d565b820191906000526020600020905b815481529060010190602001808311610a8057829003601f168201915b505050505081565b6000818152600a60205260409020805460609190610ac2906131d7565b15159050610ad357610a1182611c73565b6000828152600a602052604090208054610aec906131d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b18906131d7565b8015610b655780601f10610b3a57610100808354040283529160200191610b65565b820191906000526020600020905b815481529060010190602001808311610b4857829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610b9b5760405162461bcd60e51b8152600401610833906131a2565b60085460ff620100009091041615158115151415610bcb5760405162461bcd60e51b815260040161083390613212565b60088054911515620100000262ff000019909216919091179055565b6001600160a01b038516331480610c035750610c038533610745565b610c6a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610833565b610c778585858585611c82565b5050505050565b6004546001600160a01b03163314610ca85760405162461bcd60e51b8152600401610833906131a2565b60004711610cea5760405162461bcd60e51b815260206004820152600f60248201526e42414c414e43455f49535f5a45524f60881b6044820152606401610833565b60405133904780156108fc02916000818181858888f19350505050158015610d16573d6000803e3d6000fd5b50565b6004546001600160a01b03163314610d435760405162461bcd60e51b8152600401610833906131a2565b610d4b611e6d565b565b60608151835114610db25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610833565b6000835167ffffffffffffffff811115610dce57610dce612c3d565b604051908082528060200260200182016040528015610df7578160200160208202803683370190505b50905060005b8451811015610e6f57610e42858281518110610e1b57610e1b613247565b6020026020010151858381518110610e3557610e35613247565b6020026020010151610933565b828281518110610e5457610e54613247565b6020908102919091010152610e6881613273565b9050610dfd565b509392505050565b6004546001600160a01b03163314610ea15760405162461bcd60e51b8152600401610833906131a2565b6000818152600a60209081526040909120835161092e92850190612a4d565b60085460ff16610ee25760405162461bcd60e51b81526004016108339061328e565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff1615610f2e5760405162461bcd60e51b8152600401610833906132b7565b34610f4182670214e8348c4f00006132e6565b14610f845760405162461bcd60e51b815260206004820152601360248201527214149250d157d5d054d7d25390d3d4949150d5606a1b6044820152606401610833565b600754610f92906064613305565b610f9e906107d0613305565b600260005260036020526000805160206135ed83398151915254610fc390839061331c565b1115610fe15760405162461bcd60e51b815260040161083390613334565b600081116110315760405162461bcd60e51b815260206004820152601c60248201527f4d5553545f4d494e545f41545f4c454153545f4f4e455f544f4b454e000000006044820152606401610833565b600481106110815760405162461bcd60e51b815260206004820181905260248201527f43414e545f4d494e545f4d4f52455f5448414e5f54485245455f544f4b454e536044820152606401610833565b61109d3360028360405180602001604052806000815250611b63565b600260005260036020526000805160206135ed833981519152546107d011610d16576008805461ffff1916905550565b6004546001600160a01b031633146110f75760405162461bcd60e51b8152600401610833906131a2565b610d4b6000611f0a565b60085462010000900460ff166111295760405162461bcd60e51b81526004016108339061328e565b600160005260096020527f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a365460ff161561119e5760405162461bcd60e51b815260206004820152601660248201527510d1539515549253d397d513d2d15397d313d0d2d15160521b6044820152606401610833565b346111b18267063eb89da4ed00006132e6565b146111f45760405162461bcd60e51b815260206004820152601360248201527214149250d157d5d054d7d25390d3d4949150d5606a1b6044820152606401610833565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c546101f49061122f90839061331c565b111561124d5760405162461bcd60e51b815260040161083390613334565b6000811161129d5760405162461bcd60e51b815260206004820152601c60248201527f4d5553545f4d494e545f41545f4c454153545f4f4e455f544f4b454e000000006044820152606401610833565b600481106112ed5760405162461bcd60e51b815260206004820181905260248201527f43414e545f4d494e545f4d4f52455f5448414e5f54485245455f544f4b454e536044820152606401610833565b6113093360018360405180602001604052806000815250611b63565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c546101f411610d16576008805462ff00001916905550565b6004546001600160a01b031633146113765760405162461bcd60e51b8152600401610833906131a2565b610d4b611f5c565b6004546001600160a01b031633146113a85760405162461bcd60e51b8152600401610833906131a2565b6001600160a01b0381166113bb57600080fd5b600880546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6004546001600160a01b031633146114115760405162461bcd60e51b8152600401610833906131a2565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff161561145d5760405162461bcd60e51b8152600401610833906132b7565b6107d061146a82846132e6565b600260005260036020526000805160206135ed8339815191525461148e919061331c565b11156114cd5760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b6044820152606401610833565b60005b8281101561152c5761151a8484838181106114ed576114ed613247565b90506020020160208101906115029190612f4c565b60028460405180602001604052806000815250611b63565b8061152481613273565b9150506114d0565b5061153781836132e6565b600754611544919061331c565b600755505050565b60068054610a24906131d7565b611564338383611fe4565b5050565b6004546001600160a01b031633146115925760405162461bcd60e51b8152600401610833906131a2565b610d16816120c5565b600a6020526000908152604090208054610a24906131d7565b6004546001600160a01b031633146115de5760405162461bcd60e51b8152600401610833906131a2565b600160005260096020527f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a365460ff16156116535760405162461bcd60e51b815260206004820152601660248201527510d1539515549253d397d513d2d15397d313d0d2d15160521b6044820152606401610833565b6101f461166082846132e6565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54611696919061331c565b11156116d55760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b6044820152606401610833565b60005b82811015611734576117228484838181106116f5576116f5613247565b905060200201602081019061170a9190612f4c565b60018460405180602001604052806000815250611b63565b8061172c81613273565b9150506116d8565b50505050565b600854610100900460ff166117615760405162461bcd60e51b81526004016108339061328e565b600260005260096020527f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35460ff16156117ad5760405162461bcd60e51b8152600401610833906132b7565b606460075460016117be919061331c565b11156117dc5760405162461bcd60e51b815260040161083390613334565b336000908152600b602052604090205460ff161561184d5760405162461bcd60e51b815260206004820152602860248201527f414444524553535f4841535f414c52454144595f4d494e5445445f504c4154496044820152674e554d5f4652454560c01b6064820152608401610833565b82611857336120d8565b146118965760405162461bcd60e51b815260206004820152600f60248201526e135154d4d051d157d2539590531251608a1b6044820152606401610833565b6118d68383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061210d92505050565b6119225760405162461bcd60e51b815260206004820152601b60248201527f5349474e41545552455f56414c49444154494f4e5f4641494c454400000000006044820152606401610833565b336000818152600b60209081526040808320805460ff19166001908117909155815192830190915291815261195a9291600291611b63565b60075461196890600161331c565b600755600260005260036020526000805160206135ed833981519152546107d01161092e576008805461ffff19169055505050565b6004546001600160a01b031633146119c75760405162461bcd60e51b8152600401610833906131a2565b60085460ff16151581151514156119f05760405162461bcd60e51b815260040161083390613212565b6008805460ff1916911515919091179055565b6004546001600160a01b03163314611a2d5760405162461bcd60e51b8152600401610833906131a2565b60085460ff6101009091041615158115151415611a5c5760405162461bcd60e51b815260040161083390613212565b600880549115156101000261ff0019909216919091179055565b60008211611abe5760405162461bcd60e51b8152602060048201526015602482015274414d4f554e545f43414e4e4f545f42455f5a45524f60581b6044820152606401610833565b610c778585858585612142565b6004546001600160a01b03163314611af55760405162461bcd60e51b8152600401610833906131a2565b6001600160a01b038116611b5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610833565b610d1681611f0a565b6001600160a01b038416611bc35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610833565b33611be381600087611bd4886121c9565b611bdd886121c9565b87612214565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c1390849061331c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c778160008787878761226f565b606060028054610aec906131d7565b8151835114611ce45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610833565b6001600160a01b038416611d0a5760405162461bcd60e51b81526004016108339061336b565b33611d19818787878787612214565b60005b8451811015611dff576000858281518110611d3957611d39613247565b602002602001015190506000858381518110611d5757611d57613247565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611da75760405162461bcd60e51b8152600401610833906133b0565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611de490849061331c565b9250508190555050505080611df890613273565b9050611d1c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611e4f9291906133fa565b60405180910390a4611e658187878787876123d4565b505050505050565b600454600160a01b900460ff16611ebd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610833565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff1615611fa95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610833565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611eed3390565b816001600160a01b0316836001600160a01b031614156120585760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610833565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8051611564906002906020840190612a4d565b604080516001600160a01b0383166020820152600091015b604051602081830303815290604052805190602001209050919050565b60006121228261211c8561248f565b906124ca565b600854630100000090046001600160a01b03908116911614905092915050565b6001600160a01b03851633148061215e575061215e8533610745565b6121bc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610833565b610c7785858585856124e6565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061220357612203613247565b602090810291909101015292915050565b600454600160a01b900460ff16156122615760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610833565b611e658686868686866125fa565b6001600160a01b0384163b15611e655760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122b39089908990889088908890600401613428565b6020604051808303816000875af19250505080156122ee575060408051601f3d908101601f191682019092526122eb9181019061346d565b60015b61239b576122fa61348a565b806308c379a01415612334575061230f6134a6565b8061231a5750612336565b8060405162461bcd60e51b81526004016108339190612be6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610833565b6001600160e01b0319811663f23a6e6160e01b146123cb5760405162461bcd60e51b815260040161083390613530565b50505050505050565b6001600160a01b0384163b15611e655760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124189089908990889088908890600401613578565b6020604051808303816000875af1925050508015612453575060408051601f3d908101601f191682019092526124509181019061346d565b60015b61245f576122fa61348a565b6001600160e01b0319811663bc197c8160e01b146123cb5760405162461bcd60e51b815260040161083390613530565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c016120f0565b60008060006124d98585612706565b91509150610e6f81612776565b6001600160a01b03841661250c5760405162461bcd60e51b81526004016108339061336b565b3361251c818787611bd4886121c9565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561255d5760405162461bcd60e51b8152600401610833906133b0565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061259a90849061331c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123cb82888888888861226f565b6001600160a01b0385166126815760005b835181101561267f5782818151811061262657612626613247565b60200260200101516003600086848151811061264457612644613247565b602002602001015181526020019081526020016000206000828254612669919061331c565b90915550612678905081613273565b905061260b565b505b6001600160a01b038416611e655760005b83518110156123cb578281815181106126ad576126ad613247565b6020026020010151600360008684815181106126cb576126cb613247565b6020026020010151815260200190815260200160002060008282546126f09190613305565b909155506126ff905081613273565b9050612692565b60008082516041141561273d5760208301516040840151606085015160001a61273187828585612931565b9450945050505061276f565b825160401415612767576020830151604084015161275c868383612a1e565b93509350505061276f565b506000905060025b9250929050565b600081600481111561278a5761278a6135d6565b14156127935750565b60018160048111156127a7576127a76135d6565b14156127f55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610833565b6002816004811115612809576128096135d6565b14156128575760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610833565b600381600481111561286b5761286b6135d6565b14156128c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610833565b60048160048111156128d8576128d86135d6565b1415610d165760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610833565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129685750600090506003612a15565b8460ff16601b1415801561298057508460ff16601c14155b156129915750600090506004612a15565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0e57600060019250925050612a15565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3f87828885612931565b935093505050935093915050565b828054612a59906131d7565b90600052602060002090601f016020900481019282612a7b5760008555612ac1565b82601f10612a9457805160ff1916838001178555612ac1565b82800160010185558215612ac1579182015b82811115612ac1578251825591602001919060010190612aa6565b50612acd929150612ad1565b5090565b5b80821115612acd5760008155600101612ad2565b80356001600160a01b0381168114612afd57600080fd5b919050565b600080600060608486031215612b1757600080fd5b612b2084612ae6565b95602085013595506040909401359392505050565b60008060408385031215612b4857600080fd5b612b5183612ae6565b946020939093013593505050565b6001600160e01b031981168114610d1657600080fd5b600060208284031215612b8757600080fd5b8135612b9281612b5f565b9392505050565b6000815180845260005b81811015612bbf57602081850181015186830182015201612ba3565b81811115612bd1576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612b926020830184612b99565b600060208284031215612c0b57600080fd5b5035919050565b80358015158114612afd57600080fd5b600060208284031215612c3457600080fd5b612b9282612c12565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612c7957612c79612c3d565b6040525050565b600067ffffffffffffffff821115612c9a57612c9a612c3d565b5060051b60200190565b600082601f830112612cb557600080fd5b81356020612cc282612c80565b604051612ccf8282612c53565b83815260059390931b8501820192828101915086841115612cef57600080fd5b8286015b84811015612d0a5780358352918301918301612cf3565b509695505050505050565b600082601f830112612d2657600080fd5b813567ffffffffffffffff811115612d4057612d40612c3d565b604051612d57601f8301601f191660200182612c53565b818152846020838601011115612d6c57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612da157600080fd5b612daa86612ae6565b9450612db860208701612ae6565b9350604086013567ffffffffffffffff80821115612dd557600080fd5b612de189838a01612ca4565b94506060880135915080821115612df757600080fd5b612e0389838a01612ca4565b93506080880135915080821115612e1957600080fd5b50612e2688828901612d15565b9150509295509295909350565b60008060408385031215612e4657600080fd5b823567ffffffffffffffff80821115612e5e57600080fd5b818501915085601f830112612e7257600080fd5b81356020612e7f82612c80565b604051612e8c8282612c53565b83815260059390931b8501820192828101915089841115612eac57600080fd5b948201945b83861015612ed157612ec286612ae6565b82529482019490820190612eb1565b96505086013592505080821115612ee757600080fd5b50612ef485828601612ca4565b9150509250929050565b600081518084526020808501945080840160005b83811015612f2e57815187529582019590820190600101612f12565b509495945050505050565b602081526000612b926020830184612efe565b600060208284031215612f5e57600080fd5b612b9282612ae6565b60008060408385031215612f7a57600080fd5b823567ffffffffffffffff811115612f9157600080fd5b612f9d85828601612d15565b95602094909401359450505050565b600080600060408486031215612fc157600080fd5b833567ffffffffffffffff80821115612fd957600080fd5b818601915086601f830112612fed57600080fd5b813581811115612ffc57600080fd5b8760208260051b850101111561301157600080fd5b6020928301989097509590910135949350505050565b6000806040838503121561303a57600080fd5b61304383612ae6565b915061305160208401612c12565b90509250929050565b60006020828403121561306c57600080fd5b813567ffffffffffffffff81111561308357600080fd5b61308f84828501612d15565b949350505050565b6000806000604084860312156130ac57600080fd5b83359250602084013567ffffffffffffffff808211156130cb57600080fd5b818601915086601f8301126130df57600080fd5b8135818111156130ee57600080fd5b87602082850101111561310057600080fd5b6020830194508093505050509250925092565b6000806040838503121561312657600080fd5b61312f83612ae6565b915061305160208401612ae6565b600080600080600060a0868803121561315557600080fd5b61315e86612ae6565b945061316c60208701612ae6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561319657600080fd5b612e2688828901612d15565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806131eb57607f821691505b6020821081141561320c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156132875761328761325d565b5060010190565b6020808252600f908201526e53414c455f4e4f545f41435449564560881b604082015260600190565b602080825260159082015274141310551253955357d513d2d15397d313d0d2d151605a1b604082015260600190565b60008160001904831182151516156133005761330061325d565b500290565b6000828210156133175761331761325d565b500390565b6000821982111561332f5761332f61325d565b500190565b6020808252601d908201527f574f554c445f4558434545445f4d41585f544f4b454e5f535550504c59000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061340d6040830185612efe565b828103602084015261341f8185612efe565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061346290830184612b99565b979650505050505050565b60006020828403121561347f57600080fd5b8151612b9281612b5f565b600060033d11156134a35760046000803e5060005160e01c5b90565b600060443d10156134b45790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156134e457505050505090565b82850191508151818111156134fc5750505050505090565b843d87010160208285010111156135165750505050505090565b61352560208286010187612c53565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906135a490830186612efe565b82810360608401526135b68186612efe565b905082810360808401526135ca8185612b99565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfec3a24b0501bd2c13a7e57f2db4369ec4c223447539fc0724a9d55ac4a06ebd4da2646970667358221220d0f5086b81504bb6d7f7aec22ba2ef6e7f50ab10ce9f1df9ebb6f21a71ffdfa164736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6270646d384b58515074576332715a624b6e6876487a50425968615938326864463155744d4c50325a38394a00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5932546b634642756f55666f514c617848656875783267674865706851675031546b48517763666e424b587000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5574685a57725134325a4433705370384c6e7844544d6d554272686d7146475a5953556e46504456575767430000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4e46544e61746f436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e41544f00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : uriBase (string): ipfs://Qmbpdm8KXQPtWc2qZbKnhvHzPBYhaY82hdF1UtMLP2Z89J
Arg [1] : uriPlatinum (string): ipfs://QmY2TkcFBuoUfoQLaxHehux2ggHephQgP1TkHQwcfnBKXp
Arg [2] : uriCenturion (string): ipfs://QmUthZWrQ42ZD3pSp8LnxDTMmUBrhmqFGZYSUnFPDVWWgC
Arg [3] : _name (string): NFTNatoClub
Arg [4] : _symbol (string): NATO
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [6] : 697066733a2f2f516d6270646d384b58515074576332715a624b6e6876487a50
Arg [7] : 425968615938326864463155744d4c50325a38394a0000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [9] : 697066733a2f2f516d5932546b634642756f55666f514c617848656875783267
Arg [10] : 674865706851675031546b48517763666e424b58700000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [12] : 697066733a2f2f516d5574685a57725134325a4433705370384c6e7844544d6d
Arg [13] : 554272686d7146475a5953556e46504456575767430000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [15] : 4e46544e61746f436c7562000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [17] : 4e41544f00000000000000000000000000000000000000000000000000000000
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.