Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FoxGameNFTGen1_v1_2
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)
1234567891011121314151617181920212223242526/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol";import "./IFoxGameNFTTraits.sol";import "./IFoxGameCarrot.sol";import "./IFoxGameCrown.sol";import "./IFoxGameNFT.sol";import "./IFoxGame.sol";contract FoxGameNFTGen1_v1_2 is IFoxGameNFT, ERC721EnumerableUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable {using ECDSAUpgradeable for bytes32; // signature verification helpers
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../utils/ContextUpgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {address private _owner;event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);/*** @dev Initializes the contract setting the deployer as the initial owner.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../proxy/utils/Initializable.sol";/*** @dev Contract module that helps prevent reentrant calls to a function.** Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier* available, which can be applied to functions to make sure there are no nested* (reentrant) calls to them.** Note that because there is a single `nonReentrant` guard, functions marked as* `nonReentrant` may not call one another. This can be worked around by making* those functions `private`, and then adding `external` `nonReentrant` entry* points to them.** TIP: If you would like to learn more about reentrancy and alternative ways* to protect against it, check out our blog post* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].*/abstract contract ReentrancyGuardUpgradeable is Initializable {// Booleans are more expensive than uint256 or any type that takes up a full// word because each write operation emits an extra SLOAD to first read the// slot's contents, replace the bits taken up by the boolean, and then write// back. This is the compiler's defense against contract upgrades and
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../ERC721Upgradeable.sol";import "./IERC721EnumerableUpgradeable.sol";import "../../../proxy/utils/Initializable.sol";/*** @dev This implements an optional extension of {ERC721} defined in the EIP that adds* enumerability of all the token ids in the contract as well as all token ids owned by each* account.*/abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {function __ERC721Enumerable_init() internal initializer {__Context_init_unchained();__ERC165_init_unchained();__ERC721Enumerable_init_unchained();}function __ERC721Enumerable_init_unchained() internal initializer {}// Mapping from owner to list of owned token IDsmapping(address => mapping(uint256 => uint256)) private _ownedTokens;// Mapping from token ID to index of the owner tokens list
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.** These functions can be used to verify that a message was signed by the holder* of the private keys of a given address.*/library ECDSAUpgradeable {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");
12345678910111213141516/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;interface IFoxGameNFTTraits {function tokenURI(uint16 tokenId) external view returns (string memory);}
1234567891011121314151617/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;interface IFoxGameCarrot {function mint(address to, uint256 amount) external;function burn(address from, uint256 amount) external;}
1234567891011121314151617/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;interface IFoxGameCrown {function mint(address to, uint256 amount) external;function burn(address from, uint256 amount) external;}
1234567891011121314151617181920212223/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;interface IFoxGameNFT {enum Kind { RABBIT, FOX, HUNTER }enum Coin { CARROT, CROWN }struct Traits { Kind kind; uint8 advantage; uint8[7] traits; }function getMaxGEN0Players() external pure returns (uint16);function getTraits(uint16) external view returns (Traits memory);function ownerOf(uint256) external view returns (address owner);function transferFrom(address, address, uint256) external;function safeTransferFrom(address, address, uint256, bytes memory) external;}
1234567891011121314151617181920/*███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝*/// SPDX-License-Identifier: MITpragma solidity ^0.8.10;interface IFoxGame {function stakeTokens(address, uint16[] calldata) external;function randomFoxOwner(uint256) external view returns (address);function isValidMintSignature(address, uint8, uint32, uint256, bytes memory) external view returns (bool);function ownsBarrel(address) external view returns (bool);function getCorruptionEnabled() external view returns (bool);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../proxy/utils/Initializable.sol";/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract ContextUpgradeable is Initializable {function __Context_init() internal initializer {__Context_init_unchained();}function __Context_init_unchained() internal initializer {}function _msgSender() internal view virtual returns (address) {return msg.sender;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.** TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.** CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.*/abstract contract Initializable {/*** @dev Indicates that the contract has been initialized.*/bool private _initialized;/*** @dev Indicates that the contract is in the process of being initialized.*/bool private _initializing;
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "./IERC721Upgradeable.sol";import "./IERC721ReceiverUpgradeable.sol";import "./extensions/IERC721MetadataUpgradeable.sol";import "../../utils/AddressUpgradeable.sol";import "../../utils/ContextUpgradeable.sol";import "../../utils/StringsUpgradeable.sol";import "../../utils/introspection/ERC165Upgradeable.sol";import "../../proxy/utils/Initializable.sol";/*** @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including* the Metadata extension, but not including the Enumerable extension, which is available separately as* {ERC721Enumerable}.*/contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {using AddressUpgradeable for address;using StringsUpgradeable for uint256;// Token namestring private _name;// Token symbol
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../IERC721Upgradeable.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional enumeration extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721EnumerableUpgradeable is IERC721Upgradeable {/*** @dev Returns the total amount of tokens stored by the contract.*/function totalSupply() external view returns (uint256);/*** @dev Returns a token ID owned by `owner` at a given `index` of its token list.* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.*/function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);/*** @dev Returns a token ID at a given `index` of all the tokens stored by the contract.* Use along with {totalSupply} to enumerate all tokens.*/
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../../utils/introspection/IERC165Upgradeable.sol";/*** @dev Required interface of an ERC721 compliant contract.*/interface IERC721Upgradeable is IERC165Upgradeable {/*** @dev Emitted when `tokenId` token is transferred from `from` to `to`.*/event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.*/event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.*/event ApprovalForAll(address indexed owner, address indexed operator, bool approved);/**
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @title ERC721 token receiver interface* @dev Interface for any contract that wants to support safeTransfers* from ERC721 asset contracts.*/interface IERC721ReceiverUpgradeable {/*** @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}* by `operator` from `from`, this function is called.** It must return its Solidity selector to confirm the token transfer.* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.** The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.*/function onERC721Received(address operator,address from,uint256 tokenId,bytes calldata data) external returns (bytes4);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../IERC721Upgradeable.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional metadata extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721MetadataUpgradeable is IERC721Upgradeable {/*** @dev Returns the token collection name.*/function name() external view returns (string memory);/*** @dev Returns the token collection symbol.*/function symbol() external view returns (string memory);/*** @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.*/function tokenURI(uint256 tokenId) external view returns (string memory);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @dev Collection of functions related to the address type*/library AddressUpgradeable {/*** @dev Returns true if `account` is a contract.** [IMPORTANT]* ====* It is unsafe to assume that an address for which this function returns* false is an externally-owned account (EOA) and not a contract.** Among others, `isContract` will return false for the following* types of addresses:** - an externally-owned account* - a contract in construction* - an address where a contract will be created* - an address where a contract lived, but was destroyed* ====*/function isContract(address account) internal view returns (bool) {
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @dev String operations.*/library StringsUpgradeable {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.solif (value == 0) {return "0";}uint256 temp = value;uint256 digits;while (temp != 0) {digits++;temp /= 10;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "./IERC165Upgradeable.sol";import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {function __ERC165_init() internal initializer {__ERC165_init_unchained();}
123456789101112131415161718192021222324// SPDX-License-Identifier: MITpragma 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 IERC165Upgradeable {/*** @dev Returns true if this contract implements the interface defined by* `interfaceId`. See the corresponding* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]* to learn more about how these ids are created.** This function call must use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) external view returns (bool);}
12345678910111213141516171819{"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
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"kind","type":"string"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintFailure","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"thief","type":"address"},{"indexed":false,"internalType":"address","name":"victim","type":"address"},{"indexed":false,"internalType":"string","name":"kind","type":"string"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"MintStolen","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":"bool","name":"active","type":"bool"}],"name":"SaleActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_GEN0_TOKENS","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"enum IFoxGameNFT.Coin","name":"token","type":"uint8"}],"name":"getEntropy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxGEN0Players","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"enum IFoxGameNFT.Coin","name":"token","type":"uint8"},{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getTraits","outputs":[{"components":[{"internalType":"enum IFoxGameNFT.Kind","name":"kind","type":"uint8"},{"internalType":"uint8","name":"advantage","type":"uint8"},{"internalType":"uint8[7]","name":"traits","type":"uint8[7]"}],"internalType":"struct IFoxGameNFT.Traits","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"},{"internalType":"bool","name":"stake","type":"bool"},{"internalType":"enum IFoxGameNFT.Coin","name":"token","type":"uint8"},{"internalType":"uint32","name":"blocknum","type":"uint32"},{"internalType":"uint256","name":"originSeed","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"originSeed","type":"uint256"}],"name":"mintToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","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":"address","name":"_address","type":"address"}],"name":"setCarrotContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setCrownContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setGameContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTraitsContract","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":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOf","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"traitTypeId","type":"uint8"},{"internalType":"uint8[]","name":"_rarities","type":"uint8[]"},{"internalType":"uint8[]","name":"_aliases","type":"uint8[]"}],"name":"uploadTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613deb806100206000396000f3fe6080604052600436106102255760003560e01c806368428a1b1161012357806395d89b41116100ab578063c87b56dd1161006f578063c87b56dd14610653578063e985e9c514610673578063eee38a79146106bc578063f2fde38b146106d1578063f47c84c5146106f157600080fd5b806395d89b41146105c8578063a20a25fe146105dd578063a22cb465146105fd578063ad789acb1461061d578063b88d4fde1461063357600080fd5b80637d8966e4116100f25780637d8966e4146105405780637d8dde41146105555780638129fc1c146105755780638da5cb5b1461058a57806393f8e8bc146105a857600080fd5b806368428a1b146104d057806370a08231146104eb578063715018a61461050b57806377ad7e3e1461052057600080fd5b8063405ebd4d116101b15780634f6ccce7116101755780634f6ccce7146104235780635a3f2672146104435780635b39e2b5146104705780635eabd84a146104905780636352211e146104b057600080fd5b8063405ebd4d1461036f57806340ff081d1461038f57806342842e0e146103a257806343e55e30146103c25780634f02c420146103ef57600080fd5b806310c9600a116101f857806310c9600a146102db57806318160ddd146102fb57806323b872dd1461031a5780632f745c591461033a5780633ccfd60b1461035a57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004613255565b610707565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610732565b60405161025691906132ca565b34801561028d57600080fd5b506102a161029c3660046132dd565b6107c4565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461330b565b61085e565b005b3480156102e757600080fd5b506102d96102f6366004613383565b610974565b34801561030757600080fd5b506099545b604051908152602001610256565b34801561032657600080fd5b506102d961033536600461340c565b6109f1565b34801561034657600080fd5b5061030c61035536600461330b565b610a65565b34801561036657600080fd5b506102d9610afb565b34801561037b57600080fd5b506102d961038a36600461344d565b610b61565b6102d961039d3660046134a0565b610bae565b3480156103ae57600080fd5b506102d96103bd36600461340c565b61165b565b3480156103ce57600080fd5b506103e26103dd366004613573565b611676565b60405161025691906135a4565b3480156103fb57600080fd5b5061012d5461041090610100900461ffff1681565b60405161ffff9091168152602001610256565b34801561042f57600080fd5b5061030c61043e3660046132dd565b611733565b34801561044f57600080fd5b5061046361045e36600461344d565b6117c6565b6040516102569190613651565b34801561047c57600080fd5b506102d961048b36600461344d565b61188e565b34801561049c57600080fd5b506102d96104ab36600461344d565b6118db565b3480156104bc57600080fd5b506102a16104cb3660046132dd565b611928565b3480156104dc57600080fd5b5061012d5461024a9060ff1681565b3480156104f757600080fd5b5061030c61050636600461344d565b611933565b34801561051757600080fd5b506102d96119ba565b34801561052c57600080fd5b5061030c61053b366004613664565b6119f0565b34801561054c57600080fd5b506102d9611a87565b34801561056157600080fd5b5061030c610570366004613699565b611aff565b34801561058157600080fd5b506102d9611bb4565b34801561059657600080fd5b5060c9546001600160a01b03166102a1565b3480156105b457600080fd5b506102d96105c336600461344d565b611c66565b3480156105d457600080fd5b50610274611cbd565b3480156105e957600080fd5b506102d96105f83660046136c3565b611ccc565b34801561060957600080fd5b506102d96106183660046136ea565b611f1d565b34801561062957600080fd5b5061041061271081565b34801561063f57600080fd5b506102d961064e366004613792565b611fe2565b34801561065f57600080fd5b5061027461066e3660046132dd565b611ff4565b34801561067f57600080fd5b5061024a61068e366004613841565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b3480156106c857600080fd5b50612710610410565b3480156106dd57600080fd5b506102d96106ec36600461344d565b6120c4565b3480156106fd57600080fd5b5061041061c35081565b60006001600160e01b0319821663780e9d6360e01b148061072c575061072c8261215c565b92915050565b6060606580546107419061386f565b80601f016020809104026020016040519081016040528092919081815260200182805461076d9061386f565b80156107ba5780601f1061078f576101008083540402835291602001916107ba565b820191906000526020600020905b81548152906001019060200180831161079d57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6000610869826121ac565b9050806001600160a01b0316836001600160a01b031614156108d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610839565b336001600160a01b03821614806108f357506108f3813361068e565b6109655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610839565b61096f8383612223565b505050565b60c9546001600160a01b0316331461099e5760405162461bcd60e51b8152600401610839906138aa565b83836101308760ff16601d81106109b7576109b76138df565b6109c3939101916130eb565b50818161014d8760ff16601d81106109dd576109dd6138df565b6109e9939101916130eb565b505050505050565b61012f546001600160a01b03163314610a5a57610a0e3382612291565b610a5a5760405162461bcd60e51b815260206004820152601f60248201527f7472616e73666572206e6f74206f776e6572206e6f7220617070726f766564006044820152606401610839565b61096f838383612388565b6000610a7083611933565b8210610ad25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610839565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60c9546001600160a01b03163314610b255760405162461bcd60e51b8152600401610839906138aa565b60c9546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b5e573d6000803e3d6000fd5b50565b60c9546001600160a01b03163314610b8b5760405162461bcd60e51b8152600401610839906138aa565b61012f80546001600160a01b0319166001600160a01b0392909216919091179055565b600260fb541415610c015760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b600260fb553360009081526101706020526040812090866001811115610c2957610c2961358e565b6001811115610c3a57610c3a61358e565b815260208101919091526040016000205463ffffffff858116911614610ca25760405162461bcd60e51b815260206004820152601860248201527f7365656420626c6f636b20646964206e6f74206d6174636800000000000000006044820152606401610839565b323314610cdc5760405162461bcd60e51b8152602060048201526008602482015267656f73206f6e6c7960c01b6044820152606401610839565b61012d5460ff16610d275760405162461bcd60e51b81526020600482015260156024820152746d696e74696e67206973206e6f742061637469766560581b6044820152606401610839565b61012d5461c35090610d43908990610100900461ffff1661390b565b63ffffffff161115610d845760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d1959081bdd5d60b21b6044820152606401610839565b60008763ffffffff16118015610da1575060148763ffffffff1611155b610de35760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610839565b3415610e295760405162461bcd60e51b81526020600482015260156024820152741bdb9b1e4818d85c9c9bdd1cc81c995c5d5a5c9959605a1b6044820152606401610839565b6000856001811115610e3d57610e3d61358e565b1480610e5a57506001856001811115610e5857610e5861358e565b145b610e965760405162461bcd60e51b815260206004820152600d60248201526c3ab735b737bbb7103a37b5b2b760991b6044820152606401610839565b61012f546001600160a01b031663f40b3b8033876001811115610ebb57610ebb61358e565b878787876040518763ffffffff1660e01b8152600401610ee096959493929190613933565b602060405180830381865afa158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f219190613992565b610f615760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610839565b61012f5460405163a36d499d60e01b81523360048201526000916001600160a01b03169063a36d499d90602401602060405180830381865afa158015610fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcf9190613992565b90506000866001811115610fe557610fe561358e565b141580610fef5750805b61103b5760405162461bcd60e51b815260206004820181905260248201527f434152524f54206d696e74696e6720726571756972657320612062617272656c6044820152606401610839565b33600090815261017060205260408120439188600181111561105f5761105f61358e565b60018111156110705761107061358e565b815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff160217905550600061012f60009054906101000a90046001600160a01b03166001600160a01b031663aacd4ae26040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111169190613992565b8015611120575081155b90506000808961113e57604080516000815260208101909152611188565b8a63ffffffff1667ffffffffffffffff81111561115d5761115d613723565b604051908082528060200260200182016040528015611186578160200160208202803683370190505b505b9050600080606060005b8e63ffffffff168163ffffffff1610156114e95761012d8054610100900461ffff169060016111c0836139af565b91906101000a81548161ffff021916908361ffff160217905550506111e58b82612533565b92506112028d61012d60019054906101000a900461ffff16611aff565b61120c90856139d1565b935060008d60018111156112225761122261358e565b14801561123c5750611239600a60e085901c6139ff565b15155b156112b15761012d8054610100900461ffff1690600161125b83613a13565b825461ffff9182166101009390930a9283029190920219909116179055506040513381527f334a0d82fe3fae2f6b05e0cd4da238f3a52759b483975871dbd5b596ba8ee3a29060200160405180910390a16114d7565b61012d546112ca90610100900461ffff1684600061257d565b51955061016d8660028111156112e2576112e261358e565b60ff16600381106112f5576112f56138df565b0180546113019061386f565b80601f016020809104026020016040519081016040528092919081815260200182805461132d9061386f565b801561137a5780601f1061134f5761010080835404028352916020019161137a565b820191906000526020600020905b81548152906001019060200180831161135d57829003601f168201915b50505050509150600061138d84896126d0565b90506001600160a01b03811633146114065761012d546113b7908290610100900461ffff16612789565b61012d546040517f190317d76faefaf237b7612256c9a9a8bb96cbc8092fdf344e38c8337c70e539916113f991849133918891610100900461ffff1690613a31565b60405180910390a16114d5565b8e156114705761012d60019054906101000a900461ffff16868363ffffffff1681518110611436576114366138df565b61ffff928316602091820292909201015261012f5461012d5461146b926001600160a01b039092169161010090910416612789565b611488565b61012d54611488903390610100900461ffff16612789565b7f7b609c9f4f77457dc3fdc7b402815c96115b20d86a5539d015dc363324030da8833361012d60019054906101000a900461ffff166040516114cc93929190613a72565b60405180910390a15b505b806114e181613aa9565b915050611192565b5060008c60018111156114fe576114fe61358e565b14156115745761012d54604051632770a7eb60e21b81523360048201526024810185905263010000009091046001600160a01b031690639dc29fac90604401600060405180830381600087803b15801561155757600080fd5b505af115801561156b573d6000803e3d6000fd5b505050506115da565b61017154604051632770a7eb60e21b8152336004820152602481018590526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b505050505b8c156116465761012f54604051639284937760e01b81526001600160a01b03909116906392849377906116139033908890600401613ac3565b600060405180830381600087803b15801561162d57600080fd5b505af1158015611641573d6000803e3d6000fd5b505050505b5050600160fb55505050505050505050505050565b61096f83838360405180602001604052806000815250611fe2565b61167e613194565b61ffff8216600090815261016a6020526040908190208151606081019092528054829060ff1660028111156116b5576116b561358e565b60028111156116c6576116c661358e565b81528154610100900460ff1660208201526040805160e081018083529190920191906001840190600790826000855b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116116f55790505050505050815250509050919050565b600061173e60995490565b82106117a15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610839565b609982815481106117b4576117b46138df565b90600052602060002001549050919050565b606060006117d383611933565b905060008163ffffffff1667ffffffffffffffff8111156117f6576117f6613723565b60405190808252806020026020018201604052801561181f578160200160208202803683370190505b50905060005b8263ffffffff168163ffffffff16101561188657611849858263ffffffff16610a65565b828263ffffffff1681518110611861576118616138df565b61ffff909216602092830291909101909101528061187e81613aa9565b915050611825565b509392505050565b60c9546001600160a01b031633146118b85760405162461bcd60e51b8152600401610839906138aa565b61017180546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146119055760405162461bcd60e51b8152600401610839906138aa565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600061072c826121ac565b60006001600160a01b03821661199e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610839565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146119e45760405162461bcd60e51b8152600401610839906138aa565b6119ee60006127a7565b565b6000323314611a2c5760405162461bcd60e51b8152602060048201526008602482015267656f73206f6e6c7960c01b6044820152606401610839565b6001600160a01b03831660009081526101706020526040812090836001811115611a5857611a5861358e565b6001811115611a6957611a6961358e565b815260208101919091526040016000205463ffffffff169392505050565b60c9546001600160a01b03163314611ab15760405162461bcd60e51b8152600401610839906138aa565b61012d805460ff8082161560ff1990921682179092556040519116151581527fe8a4303c22d8b575a6f175ea4803f56b0a4551ac9e22153304feb0ddfd6143559060200160405180910390a1565b600080836001811115611b1457611b1461358e565b1415611b6757614e208261ffff1611611b385750691969368974c05b00000061072c565b619c408261ffff1611611b565750691da56a4b0835bf80000061072c565b5069261dd1ce2f208880000061072c565b614e208261ffff1611611b85575069043c33c193756480000061072c565b619c408261ffff1611611ba35750690878678326eac900000061072c565b506910f0cf064dd59200000061072c565b600054610100900460ff1680611bcd575060005460ff16155b611c305760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610839565b600054610100900460ff16158015611c52576000805461ffff19166101011790555b8015610b5e576000805461ff001916905550565b60c9546001600160a01b03163314611c905760405162461bcd60e51b8152600401610839906138aa565b61012d80546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6060606680546107419061386f565b60c9546001600160a01b03163314611cf65760405162461bcd60e51b8152600401610839906138aa565b61012d5461c35090611d12908590610100900461ffff166139d1565b1115611d4d5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d1959081bdd5d60b21b6044820152606401610839565b60008311611d935760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610839565b60008060005b858163ffffffff1610156109e95761012d8054610100900461ffff16906001611dc1836139af565b825461ffff91821661010093840a908102908302199091161790925561012d54611df19350879291900416612533565b61012d54909250611e0d90610100900461ffff1683600061257d565b5161012d54909350611e29908690610100900461ffff16612789565b7f7b609c9f4f77457dc3fdc7b402815c96115b20d86a5539d015dc363324030da86000846002811115611e5e57611e5e61358e565b14611ec1576001846002811115611e7757611e7761358e565b14611ea05760405180604001604052806006815260200165242aa72a22a960d11b815250611ee1565b6040518060400160405280600381526020016208c9eb60eb1b815250611ee1565b6040518060400160405280600681526020016514905090925560d21b8152505b8661012d60019054906101000a900461ffff16604051611f0393929190613a72565b60405180910390a180611f1581613aa9565b915050611d99565b6001600160a01b038216331415611f765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610839565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611fee848484846127f9565b50505050565b6000818152606760205260409020546060906001600160a01b031661204f5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610839565b61012e54604051630375f61160e61b815261ffff841660048201526001600160a01b039091169063dd7d844090602401600060405180830381865afa15801561209c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261072c9190810190613ae7565b60c9546001600160a01b031633146120ee5760405162461bcd60e51b8152600401610839906138aa565b6001600160a01b0381166121535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610839565b610b5e816127a7565b60006001600160e01b031982166380ac58cd60e01b148061218d57506001600160e01b03198216635b5e139f60e01b145b8061072c57506301ffc9a760e01b6001600160e01b031983161461072c565b6000818152606760205260408120546001600160a01b03168061072c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610839565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612258826121ac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b031661230a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610839565b6000612315836121ac565b9050806001600160a01b0316846001600160a01b031614806123505750836001600160a01b0316612345846107c4565b6001600160a01b0316145b8061238057506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661239b826121ac565b6001600160a01b0316146124035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610839565b6001600160a01b0382166124655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610839565b612470838383612875565b61247b600082612223565b6001600160a01b03831660009081526068602052604081208054600192906124a4908490613b5e565b90915550506001600160a01b03821660009081526068602052604081208054600192906124d29084906139d1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828260405160200161255e92919091825260e01b6001600160e01b031916602082015260240190565b60408051601f1981840301815291905280516020909101209392505050565b612585613194565b60068260ff16106125d85760405162461bcd60e51b815260206004820181905260248201527f756e61626c6520746f2067656e657261746520756e69717565207472616974736044820152606401610839565b6125e18361292d565b905061016b60006125f183612b67565b815260208101919091526040016000205460ff166126ab5761ffff8416600090815261016a602052604090208151815483929190829060ff1916600183600281111561263f5761263f61358e565b02179055506020820151815460ff9091166101000261ff0019909116178155604082015161267390600183019060076131b8565b50905050600161016b600061268784612b67565b81526020810191909152604001600020805460ff19169115159190911790556126c9565b6126c68460ff841685901c6126c1856001613b75565b61257d565b90505b9392505050565b6000816126de57600a6126e1565b60045b6126f29060ff1660f585901c6139ff565b156126fe57503361072c565b61012f5460405163267bff1560e01b8152609085901c60048201526000916001600160a01b03169063267bff1590602401602060405180830381865afa15801561274c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127709190613b9a565b90506001600160a01b0381166126c9573391505061072c565b6127a3828260405180602001604052806000815250612bca565b5050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6128033383612291565b6128695760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610839565b611fee84848484612bfd565b6001600160a01b0383166128d0576128cb81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b6128f3565b816001600160a01b0316836001600160a01b0316146128f3576128f38382612c30565b6001600160a01b03821661290a5761096f81612ccd565b826001600160a01b0316826001600160a01b03161461096f5761096f8282612d7c565b612935613194565b6000612946603261ffff85166139ff565b90508015612964576005811061295d576000612967565b6001612967565b60025b60ff16600281111561297b5761297b61358e565b8290600281111561298e5761298e61358e565b908160028111156129a1576129a161358e565b905250815160009060028111156129ba576129ba61358e565b6129c5906007613bb7565b60109490941c9390506129e661ffff85166129e1836000613b75565b612dc0565b604084015160ff91909116905260109390931c92612a0d61ffff85166129e1836001613b75565b604084015160ff9190911660209091015260109390931c92612a3861ffff85166129e1836002613b75565b60408481015160ff9290921691015260109390931c92612a6161ffff85166129e1836003613b75565b604084015160ff9190911660609091015260109390931c92612a8c61ffff85166129e1836004613b75565b604084015160ff9190911660809091015260109390931c92612ab761ffff85166129e1836005613b75565b604084015160ff9190911660a09091015260109390931c92612ae261ffff85166129e1836006613b75565b604084015160ff9190911660c09091015282516001906002811115612b0957612b0961358e565b1415612b2b576040830151805160ff1660c09091018190526020840152612b60565b600283516002811115612b4057612b4061358e565b1415612b6057604083015160208082015160ff1660c09092018290528401525b5050919050565b8051602080830151604080850151805181850151828401516060840151608085015160a086015160c090960151965160009a612bb29a90999896979596949593949293929101613be0565b60405160208183030381529060405261072c90613cad565b612bd48383612e9f565b612be16000848484612fed565b61096f5760405162461bcd60e51b815260040161083990613cd1565b612c08848484612388565b612c1484848484612fed565b611fee5760405162461bcd60e51b815260040161083990613cd1565b60006001612c3d84611933565b612c479190613b5e565b600083815260986020526040902054909150808214612c9a576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090612cdf90600190613b5e565b6000838152609a602052604081205460998054939450909284908110612d0757612d076138df565b906000526020600020015490508060998381548110612d2857612d286138df565b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480612d6057612d60613d23565b6001900381819060005260206000200160009055905550505050565b6000612d8783611933565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b6000806101308360ff16601d8110612dda57612dda6138df565b0154612de69085613d39565b90506101308360ff16601d8110612dff57612dff6138df565b018160ff1681548110612e1457612e146138df565b60009182526020918290209181049091015460ff601f9092166101000a90048116600886901c9091161015612e4a57905061072c565b61014d8360ff16601d8110612e6157612e616138df565b018160ff1681548110612e7657612e766138df565b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b038216612ef55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610839565b6000818152606760205260409020546001600160a01b031615612f5a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610839565b612f6660008383612875565b6001600160a01b0382166000908152606860205260408120805460019290612f8f9084906139d1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156130e057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613031903390899088908890600401613d5b565b6020604051808303816000875af192505050801561306c575060408051601f3d908101601f1916820190925261306991810190613d98565b60015b6130c6573d80801561309a576040519150601f19603f3d011682016040523d82523d6000602084013e61309f565b606091505b5080516130be5760405162461bcd60e51b815260040161083990613cd1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612380565b506001949350505050565b82805482825590600052602060002090601f016020900481019282156131845791602002820160005b8382111561315557833560ff1683826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302613114565b80156131825782816101000a81549060ff0219169055600101602081600001049283019260010302613155565b505b5061319092915061320c565b5090565b60408051606081018252600080825260208201529081016131b3613221565b905290565b6001830191839082156131845791602002820160005b8382111561315557835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026131ce565b5b80821115613190576000815560010161320d565b6040518060e001604052806007906020820280368337509192915050565b6001600160e01b031981168114610b5e57600080fd5b60006020828403121561326757600080fd5b81356126c98161323f565b60005b8381101561328d578181015183820152602001613275565b83811115611fee5750506000910152565b600081518084526132b6816020860160208601613272565b601f01601f19169290920160200192915050565b6020815260006126c9602083018461329e565b6000602082840312156132ef57600080fd5b5035919050565b6001600160a01b0381168114610b5e57600080fd5b6000806040838503121561331e57600080fd5b8235613329816132f6565b946020939093013593505050565b60008083601f84011261334957600080fd5b50813567ffffffffffffffff81111561336157600080fd5b6020830191508360208260051b850101111561337c57600080fd5b9250929050565b60008060008060006060868803121561339b57600080fd5b853560ff811681146133ac57600080fd5b9450602086013567ffffffffffffffff808211156133c957600080fd5b6133d589838a01613337565b909650945060408801359150808211156133ee57600080fd5b506133fb88828901613337565b969995985093965092949392505050565b60008060006060848603121561342157600080fd5b833561342c816132f6565b9250602084013561343c816132f6565b929592945050506040919091013590565b60006020828403121561345f57600080fd5b81356126c9816132f6565b803563ffffffff8116811461347e57600080fd5b919050565b8015158114610b5e57600080fd5b80356002811061347e57600080fd5b600080600080600080600060c0888a0312156134bb57600080fd5b6134c48861346a565b965060208801356134d481613483565b95506134e260408901613491565b94506134f06060890161346a565b93506080880135925060a088013567ffffffffffffffff8082111561351457600080fd5b818a0191508a601f83011261352857600080fd5b81358181111561353757600080fd5b8b602082850101111561354957600080fd5b60208301945080935050505092959891949750929550565b803561ffff8116811461347e57600080fd5b60006020828403121561358557600080fd5b6126c982613561565b634e487b7160e01b600052602160045260246000fd5b8151610120820190600381106135ca57634e487b7160e01b600052602160045260246000fd5b825260208381015160ff908116828501526040808601519190850160005b60078110156136075783518316825292840192908401906001016135e8565b505050505092915050565b600081518084526020808501945080840160005b8381101561364657815161ffff1687529582019590820190600101613626565b509495945050505050565b6020815260006126c96020830184613612565b6000806040838503121561367757600080fd5b8235613682816132f6565b915061369060208401613491565b90509250929050565b600080604083850312156136ac57600080fd5b6136b583613491565b915061369060208401613561565b6000806000606084860312156136d857600080fd5b83359250602084013561343c816132f6565b600080604083850312156136fd57600080fd5b8235613708816132f6565b9150602083013561371881613483565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561376257613762613723565b604052919050565b600067ffffffffffffffff82111561378457613784613723565b50601f01601f191660200190565b600080600080608085870312156137a857600080fd5b84356137b3816132f6565b935060208501356137c3816132f6565b925060408501359150606085013567ffffffffffffffff8111156137e657600080fd5b8501601f810187136137f757600080fd5b803561380a6138058261376a565b613739565b81815288602083850101111561381f57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561385457600080fd5b823561385f816132f6565b91506020830135613718816132f6565b600181811c9082168061388357607f821691505b602082108114156138a457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681851680830382111561392a5761392a6138f5565b01949350505050565b6001600160a01b038716815260ff8616602082015263ffffffff851660408201526060810184905260a0608082018190528101829052818360c0830137600081830160c090810191909152601f909201601f1916010195945050505050565b6000602082840312156139a457600080fd5b81516126c981613483565b600061ffff808316818114156139c7576139c76138f5565b6001019392505050565b600082198211156139e4576139e46138f5565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613a0e57613a0e6139e9565b500690565b600061ffff821680613a2757613a276138f5565b6000190192915050565b6001600160a01b03858116825284166020820152608060408201819052600090613a5d9083018561329e565b905061ffff8316606083015295945050505050565b606081526000613a85606083018661329e565b6001600160a01b039490941660208301525061ffff91909116604090910152919050565b600063ffffffff808316818114156139c7576139c76138f5565b6001600160a01b03831681526040602082018190526000906126c690830184613612565b600060208284031215613af957600080fd5b815167ffffffffffffffff811115613b1057600080fd5b8201601f81018413613b2157600080fd5b8051613b2f6138058261376a565b818152856020838501011115613b4457600080fd5b613b55826020830160208601613272565b95945050505050565b600082821015613b7057613b706138f5565b500390565b600060ff821660ff84168060ff03821115613b9257613b926138f5565b019392505050565b600060208284031215613bac57600080fd5b81516126c9816132f6565b600060ff821660ff84168160ff0481118215151615613bd857613bd86138f5565b029392505050565b600060038b10613c0057634e487b7160e01b600052602160045260246000fd5b60f88b811b83526001600160f81b03198b821b811660018501528a821b8116600285015289821b811660038501529088901b166004830152613c51600583018760f81b6001600160f81b0319169052565b613c6a600683018660f81b6001600160f81b0319169052565b613c83600783018560f81b6001600160f81b0319169052565b613c9c600883018460f81b6001600160f81b0319169052565b506009019998505050505050505050565b805160208083015191908110156138a45760001960209190910360031b1b16919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b600060ff831680613d4c57613d4c6139e9565b8060ff84160691505092915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d8e9083018461329e565b9695505050505050565b600060208284031215613daa57600080fd5b81516126c98161323f56fea264697066735822122051568d979c39ea91c6b44d79adce70221e0d4846708b693e085d1d8a5c7d7fa064736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106102255760003560e01c806368428a1b1161012357806395d89b41116100ab578063c87b56dd1161006f578063c87b56dd14610653578063e985e9c514610673578063eee38a79146106bc578063f2fde38b146106d1578063f47c84c5146106f157600080fd5b806395d89b41146105c8578063a20a25fe146105dd578063a22cb465146105fd578063ad789acb1461061d578063b88d4fde1461063357600080fd5b80637d8966e4116100f25780637d8966e4146105405780637d8dde41146105555780638129fc1c146105755780638da5cb5b1461058a57806393f8e8bc146105a857600080fd5b806368428a1b146104d057806370a08231146104eb578063715018a61461050b57806377ad7e3e1461052057600080fd5b8063405ebd4d116101b15780634f6ccce7116101755780634f6ccce7146104235780635a3f2672146104435780635b39e2b5146104705780635eabd84a146104905780636352211e146104b057600080fd5b8063405ebd4d1461036f57806340ff081d1461038f57806342842e0e146103a257806343e55e30146103c25780634f02c420146103ef57600080fd5b806310c9600a116101f857806310c9600a146102db57806318160ddd146102fb57806323b872dd1461031a5780632f745c591461033a5780633ccfd60b1461035a57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004613255565b610707565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610732565b60405161025691906132ca565b34801561028d57600080fd5b506102a161029c3660046132dd565b6107c4565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461330b565b61085e565b005b3480156102e757600080fd5b506102d96102f6366004613383565b610974565b34801561030757600080fd5b506099545b604051908152602001610256565b34801561032657600080fd5b506102d961033536600461340c565b6109f1565b34801561034657600080fd5b5061030c61035536600461330b565b610a65565b34801561036657600080fd5b506102d9610afb565b34801561037b57600080fd5b506102d961038a36600461344d565b610b61565b6102d961039d3660046134a0565b610bae565b3480156103ae57600080fd5b506102d96103bd36600461340c565b61165b565b3480156103ce57600080fd5b506103e26103dd366004613573565b611676565b60405161025691906135a4565b3480156103fb57600080fd5b5061012d5461041090610100900461ffff1681565b60405161ffff9091168152602001610256565b34801561042f57600080fd5b5061030c61043e3660046132dd565b611733565b34801561044f57600080fd5b5061046361045e36600461344d565b6117c6565b6040516102569190613651565b34801561047c57600080fd5b506102d961048b36600461344d565b61188e565b34801561049c57600080fd5b506102d96104ab36600461344d565b6118db565b3480156104bc57600080fd5b506102a16104cb3660046132dd565b611928565b3480156104dc57600080fd5b5061012d5461024a9060ff1681565b3480156104f757600080fd5b5061030c61050636600461344d565b611933565b34801561051757600080fd5b506102d96119ba565b34801561052c57600080fd5b5061030c61053b366004613664565b6119f0565b34801561054c57600080fd5b506102d9611a87565b34801561056157600080fd5b5061030c610570366004613699565b611aff565b34801561058157600080fd5b506102d9611bb4565b34801561059657600080fd5b5060c9546001600160a01b03166102a1565b3480156105b457600080fd5b506102d96105c336600461344d565b611c66565b3480156105d457600080fd5b50610274611cbd565b3480156105e957600080fd5b506102d96105f83660046136c3565b611ccc565b34801561060957600080fd5b506102d96106183660046136ea565b611f1d565b34801561062957600080fd5b5061041061271081565b34801561063f57600080fd5b506102d961064e366004613792565b611fe2565b34801561065f57600080fd5b5061027461066e3660046132dd565b611ff4565b34801561067f57600080fd5b5061024a61068e366004613841565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b3480156106c857600080fd5b50612710610410565b3480156106dd57600080fd5b506102d96106ec36600461344d565b6120c4565b3480156106fd57600080fd5b5061041061c35081565b60006001600160e01b0319821663780e9d6360e01b148061072c575061072c8261215c565b92915050565b6060606580546107419061386f565b80601f016020809104026020016040519081016040528092919081815260200182805461076d9061386f565b80156107ba5780601f1061078f576101008083540402835291602001916107ba565b820191906000526020600020905b81548152906001019060200180831161079d57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6000610869826121ac565b9050806001600160a01b0316836001600160a01b031614156108d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610839565b336001600160a01b03821614806108f357506108f3813361068e565b6109655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610839565b61096f8383612223565b505050565b60c9546001600160a01b0316331461099e5760405162461bcd60e51b8152600401610839906138aa565b83836101308760ff16601d81106109b7576109b76138df565b6109c3939101916130eb565b50818161014d8760ff16601d81106109dd576109dd6138df565b6109e9939101916130eb565b505050505050565b61012f546001600160a01b03163314610a5a57610a0e3382612291565b610a5a5760405162461bcd60e51b815260206004820152601f60248201527f7472616e73666572206e6f74206f776e6572206e6f7220617070726f766564006044820152606401610839565b61096f838383612388565b6000610a7083611933565b8210610ad25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610839565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60c9546001600160a01b03163314610b255760405162461bcd60e51b8152600401610839906138aa565b60c9546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b5e573d6000803e3d6000fd5b50565b60c9546001600160a01b03163314610b8b5760405162461bcd60e51b8152600401610839906138aa565b61012f80546001600160a01b0319166001600160a01b0392909216919091179055565b600260fb541415610c015760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b600260fb553360009081526101706020526040812090866001811115610c2957610c2961358e565b6001811115610c3a57610c3a61358e565b815260208101919091526040016000205463ffffffff858116911614610ca25760405162461bcd60e51b815260206004820152601860248201527f7365656420626c6f636b20646964206e6f74206d6174636800000000000000006044820152606401610839565b323314610cdc5760405162461bcd60e51b8152602060048201526008602482015267656f73206f6e6c7960c01b6044820152606401610839565b61012d5460ff16610d275760405162461bcd60e51b81526020600482015260156024820152746d696e74696e67206973206e6f742061637469766560581b6044820152606401610839565b61012d5461c35090610d43908990610100900461ffff1661390b565b63ffffffff161115610d845760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d1959081bdd5d60b21b6044820152606401610839565b60008763ffffffff16118015610da1575060148763ffffffff1611155b610de35760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610839565b3415610e295760405162461bcd60e51b81526020600482015260156024820152741bdb9b1e4818d85c9c9bdd1cc81c995c5d5a5c9959605a1b6044820152606401610839565b6000856001811115610e3d57610e3d61358e565b1480610e5a57506001856001811115610e5857610e5861358e565b145b610e965760405162461bcd60e51b815260206004820152600d60248201526c3ab735b737bbb7103a37b5b2b760991b6044820152606401610839565b61012f546001600160a01b031663f40b3b8033876001811115610ebb57610ebb61358e565b878787876040518763ffffffff1660e01b8152600401610ee096959493929190613933565b602060405180830381865afa158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f219190613992565b610f615760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610839565b61012f5460405163a36d499d60e01b81523360048201526000916001600160a01b03169063a36d499d90602401602060405180830381865afa158015610fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcf9190613992565b90506000866001811115610fe557610fe561358e565b141580610fef5750805b61103b5760405162461bcd60e51b815260206004820181905260248201527f434152524f54206d696e74696e6720726571756972657320612062617272656c6044820152606401610839565b33600090815261017060205260408120439188600181111561105f5761105f61358e565b60018111156110705761107061358e565b815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff160217905550600061012f60009054906101000a90046001600160a01b03166001600160a01b031663aacd4ae26040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111169190613992565b8015611120575081155b90506000808961113e57604080516000815260208101909152611188565b8a63ffffffff1667ffffffffffffffff81111561115d5761115d613723565b604051908082528060200260200182016040528015611186578160200160208202803683370190505b505b9050600080606060005b8e63ffffffff168163ffffffff1610156114e95761012d8054610100900461ffff169060016111c0836139af565b91906101000a81548161ffff021916908361ffff160217905550506111e58b82612533565b92506112028d61012d60019054906101000a900461ffff16611aff565b61120c90856139d1565b935060008d60018111156112225761122261358e565b14801561123c5750611239600a60e085901c6139ff565b15155b156112b15761012d8054610100900461ffff1690600161125b83613a13565b825461ffff9182166101009390930a9283029190920219909116179055506040513381527f334a0d82fe3fae2f6b05e0cd4da238f3a52759b483975871dbd5b596ba8ee3a29060200160405180910390a16114d7565b61012d546112ca90610100900461ffff1684600061257d565b51955061016d8660028111156112e2576112e261358e565b60ff16600381106112f5576112f56138df565b0180546113019061386f565b80601f016020809104026020016040519081016040528092919081815260200182805461132d9061386f565b801561137a5780601f1061134f5761010080835404028352916020019161137a565b820191906000526020600020905b81548152906001019060200180831161135d57829003601f168201915b50505050509150600061138d84896126d0565b90506001600160a01b03811633146114065761012d546113b7908290610100900461ffff16612789565b61012d546040517f190317d76faefaf237b7612256c9a9a8bb96cbc8092fdf344e38c8337c70e539916113f991849133918891610100900461ffff1690613a31565b60405180910390a16114d5565b8e156114705761012d60019054906101000a900461ffff16868363ffffffff1681518110611436576114366138df565b61ffff928316602091820292909201015261012f5461012d5461146b926001600160a01b039092169161010090910416612789565b611488565b61012d54611488903390610100900461ffff16612789565b7f7b609c9f4f77457dc3fdc7b402815c96115b20d86a5539d015dc363324030da8833361012d60019054906101000a900461ffff166040516114cc93929190613a72565b60405180910390a15b505b806114e181613aa9565b915050611192565b5060008c60018111156114fe576114fe61358e565b14156115745761012d54604051632770a7eb60e21b81523360048201526024810185905263010000009091046001600160a01b031690639dc29fac90604401600060405180830381600087803b15801561155757600080fd5b505af115801561156b573d6000803e3d6000fd5b505050506115da565b61017154604051632770a7eb60e21b8152336004820152602481018590526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b505050505b8c156116465761012f54604051639284937760e01b81526001600160a01b03909116906392849377906116139033908890600401613ac3565b600060405180830381600087803b15801561162d57600080fd5b505af1158015611641573d6000803e3d6000fd5b505050505b5050600160fb55505050505050505050505050565b61096f83838360405180602001604052806000815250611fe2565b61167e613194565b61ffff8216600090815261016a6020526040908190208151606081019092528054829060ff1660028111156116b5576116b561358e565b60028111156116c6576116c661358e565b81528154610100900460ff1660208201526040805160e081018083529190920191906001840190600790826000855b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116116f55790505050505050815250509050919050565b600061173e60995490565b82106117a15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610839565b609982815481106117b4576117b46138df565b90600052602060002001549050919050565b606060006117d383611933565b905060008163ffffffff1667ffffffffffffffff8111156117f6576117f6613723565b60405190808252806020026020018201604052801561181f578160200160208202803683370190505b50905060005b8263ffffffff168163ffffffff16101561188657611849858263ffffffff16610a65565b828263ffffffff1681518110611861576118616138df565b61ffff909216602092830291909101909101528061187e81613aa9565b915050611825565b509392505050565b60c9546001600160a01b031633146118b85760405162461bcd60e51b8152600401610839906138aa565b61017180546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146119055760405162461bcd60e51b8152600401610839906138aa565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600061072c826121ac565b60006001600160a01b03821661199e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610839565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146119e45760405162461bcd60e51b8152600401610839906138aa565b6119ee60006127a7565b565b6000323314611a2c5760405162461bcd60e51b8152602060048201526008602482015267656f73206f6e6c7960c01b6044820152606401610839565b6001600160a01b03831660009081526101706020526040812090836001811115611a5857611a5861358e565b6001811115611a6957611a6961358e565b815260208101919091526040016000205463ffffffff169392505050565b60c9546001600160a01b03163314611ab15760405162461bcd60e51b8152600401610839906138aa565b61012d805460ff8082161560ff1990921682179092556040519116151581527fe8a4303c22d8b575a6f175ea4803f56b0a4551ac9e22153304feb0ddfd6143559060200160405180910390a1565b600080836001811115611b1457611b1461358e565b1415611b6757614e208261ffff1611611b385750691969368974c05b00000061072c565b619c408261ffff1611611b565750691da56a4b0835bf80000061072c565b5069261dd1ce2f208880000061072c565b614e208261ffff1611611b85575069043c33c193756480000061072c565b619c408261ffff1611611ba35750690878678326eac900000061072c565b506910f0cf064dd59200000061072c565b600054610100900460ff1680611bcd575060005460ff16155b611c305760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610839565b600054610100900460ff16158015611c52576000805461ffff19166101011790555b8015610b5e576000805461ff001916905550565b60c9546001600160a01b03163314611c905760405162461bcd60e51b8152600401610839906138aa565b61012d80546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6060606680546107419061386f565b60c9546001600160a01b03163314611cf65760405162461bcd60e51b8152600401610839906138aa565b61012d5461c35090611d12908590610100900461ffff166139d1565b1115611d4d5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d1959081bdd5d60b21b6044820152606401610839565b60008311611d935760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610839565b60008060005b858163ffffffff1610156109e95761012d8054610100900461ffff16906001611dc1836139af565b825461ffff91821661010093840a908102908302199091161790925561012d54611df19350879291900416612533565b61012d54909250611e0d90610100900461ffff1683600061257d565b5161012d54909350611e29908690610100900461ffff16612789565b7f7b609c9f4f77457dc3fdc7b402815c96115b20d86a5539d015dc363324030da86000846002811115611e5e57611e5e61358e565b14611ec1576001846002811115611e7757611e7761358e565b14611ea05760405180604001604052806006815260200165242aa72a22a960d11b815250611ee1565b6040518060400160405280600381526020016208c9eb60eb1b815250611ee1565b6040518060400160405280600681526020016514905090925560d21b8152505b8661012d60019054906101000a900461ffff16604051611f0393929190613a72565b60405180910390a180611f1581613aa9565b915050611d99565b6001600160a01b038216331415611f765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610839565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611fee848484846127f9565b50505050565b6000818152606760205260409020546060906001600160a01b031661204f5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610839565b61012e54604051630375f61160e61b815261ffff841660048201526001600160a01b039091169063dd7d844090602401600060405180830381865afa15801561209c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261072c9190810190613ae7565b60c9546001600160a01b031633146120ee5760405162461bcd60e51b8152600401610839906138aa565b6001600160a01b0381166121535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610839565b610b5e816127a7565b60006001600160e01b031982166380ac58cd60e01b148061218d57506001600160e01b03198216635b5e139f60e01b145b8061072c57506301ffc9a760e01b6001600160e01b031983161461072c565b6000818152606760205260408120546001600160a01b03168061072c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610839565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612258826121ac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b031661230a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610839565b6000612315836121ac565b9050806001600160a01b0316846001600160a01b031614806123505750836001600160a01b0316612345846107c4565b6001600160a01b0316145b8061238057506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661239b826121ac565b6001600160a01b0316146124035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610839565b6001600160a01b0382166124655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610839565b612470838383612875565b61247b600082612223565b6001600160a01b03831660009081526068602052604081208054600192906124a4908490613b5e565b90915550506001600160a01b03821660009081526068602052604081208054600192906124d29084906139d1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828260405160200161255e92919091825260e01b6001600160e01b031916602082015260240190565b60408051601f1981840301815291905280516020909101209392505050565b612585613194565b60068260ff16106125d85760405162461bcd60e51b815260206004820181905260248201527f756e61626c6520746f2067656e657261746520756e69717565207472616974736044820152606401610839565b6125e18361292d565b905061016b60006125f183612b67565b815260208101919091526040016000205460ff166126ab5761ffff8416600090815261016a602052604090208151815483929190829060ff1916600183600281111561263f5761263f61358e565b02179055506020820151815460ff9091166101000261ff0019909116178155604082015161267390600183019060076131b8565b50905050600161016b600061268784612b67565b81526020810191909152604001600020805460ff19169115159190911790556126c9565b6126c68460ff841685901c6126c1856001613b75565b61257d565b90505b9392505050565b6000816126de57600a6126e1565b60045b6126f29060ff1660f585901c6139ff565b156126fe57503361072c565b61012f5460405163267bff1560e01b8152609085901c60048201526000916001600160a01b03169063267bff1590602401602060405180830381865afa15801561274c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127709190613b9a565b90506001600160a01b0381166126c9573391505061072c565b6127a3828260405180602001604052806000815250612bca565b5050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6128033383612291565b6128695760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610839565b611fee84848484612bfd565b6001600160a01b0383166128d0576128cb81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b6128f3565b816001600160a01b0316836001600160a01b0316146128f3576128f38382612c30565b6001600160a01b03821661290a5761096f81612ccd565b826001600160a01b0316826001600160a01b03161461096f5761096f8282612d7c565b612935613194565b6000612946603261ffff85166139ff565b90508015612964576005811061295d576000612967565b6001612967565b60025b60ff16600281111561297b5761297b61358e565b8290600281111561298e5761298e61358e565b908160028111156129a1576129a161358e565b905250815160009060028111156129ba576129ba61358e565b6129c5906007613bb7565b60109490941c9390506129e661ffff85166129e1836000613b75565b612dc0565b604084015160ff91909116905260109390931c92612a0d61ffff85166129e1836001613b75565b604084015160ff9190911660209091015260109390931c92612a3861ffff85166129e1836002613b75565b60408481015160ff9290921691015260109390931c92612a6161ffff85166129e1836003613b75565b604084015160ff9190911660609091015260109390931c92612a8c61ffff85166129e1836004613b75565b604084015160ff9190911660809091015260109390931c92612ab761ffff85166129e1836005613b75565b604084015160ff9190911660a09091015260109390931c92612ae261ffff85166129e1836006613b75565b604084015160ff9190911660c09091015282516001906002811115612b0957612b0961358e565b1415612b2b576040830151805160ff1660c09091018190526020840152612b60565b600283516002811115612b4057612b4061358e565b1415612b6057604083015160208082015160ff1660c09092018290528401525b5050919050565b8051602080830151604080850151805181850151828401516060840151608085015160a086015160c090960151965160009a612bb29a90999896979596949593949293929101613be0565b60405160208183030381529060405261072c90613cad565b612bd48383612e9f565b612be16000848484612fed565b61096f5760405162461bcd60e51b815260040161083990613cd1565b612c08848484612388565b612c1484848484612fed565b611fee5760405162461bcd60e51b815260040161083990613cd1565b60006001612c3d84611933565b612c479190613b5e565b600083815260986020526040902054909150808214612c9a576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090612cdf90600190613b5e565b6000838152609a602052604081205460998054939450909284908110612d0757612d076138df565b906000526020600020015490508060998381548110612d2857612d286138df565b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480612d6057612d60613d23565b6001900381819060005260206000200160009055905550505050565b6000612d8783611933565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b6000806101308360ff16601d8110612dda57612dda6138df565b0154612de69085613d39565b90506101308360ff16601d8110612dff57612dff6138df565b018160ff1681548110612e1457612e146138df565b60009182526020918290209181049091015460ff601f9092166101000a90048116600886901c9091161015612e4a57905061072c565b61014d8360ff16601d8110612e6157612e616138df565b018160ff1681548110612e7657612e766138df565b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b038216612ef55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610839565b6000818152606760205260409020546001600160a01b031615612f5a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610839565b612f6660008383612875565b6001600160a01b0382166000908152606860205260408120805460019290612f8f9084906139d1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156130e057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613031903390899088908890600401613d5b565b6020604051808303816000875af192505050801561306c575060408051601f3d908101601f1916820190925261306991810190613d98565b60015b6130c6573d80801561309a576040519150601f19603f3d011682016040523d82523d6000602084013e61309f565b606091505b5080516130be5760405162461bcd60e51b815260040161083990613cd1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612380565b506001949350505050565b82805482825590600052602060002090601f016020900481019282156131845791602002820160005b8382111561315557833560ff1683826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302613114565b80156131825782816101000a81549060ff0219169055600101602081600001049283019260010302613155565b505b5061319092915061320c565b5090565b60408051606081018252600080825260208201529081016131b3613221565b905290565b6001830191839082156131845791602002820160005b8382111561315557835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026131ce565b5b80821115613190576000815560010161320d565b6040518060e001604052806007906020820280368337509192915050565b6001600160e01b031981168114610b5e57600080fd5b60006020828403121561326757600080fd5b81356126c98161323f565b60005b8381101561328d578181015183820152602001613275565b83811115611fee5750506000910152565b600081518084526132b6816020860160208601613272565b601f01601f19169290920160200192915050565b6020815260006126c9602083018461329e565b6000602082840312156132ef57600080fd5b5035919050565b6001600160a01b0381168114610b5e57600080fd5b6000806040838503121561331e57600080fd5b8235613329816132f6565b946020939093013593505050565b60008083601f84011261334957600080fd5b50813567ffffffffffffffff81111561336157600080fd5b6020830191508360208260051b850101111561337c57600080fd5b9250929050565b60008060008060006060868803121561339b57600080fd5b853560ff811681146133ac57600080fd5b9450602086013567ffffffffffffffff808211156133c957600080fd5b6133d589838a01613337565b909650945060408801359150808211156133ee57600080fd5b506133fb88828901613337565b969995985093965092949392505050565b60008060006060848603121561342157600080fd5b833561342c816132f6565b9250602084013561343c816132f6565b929592945050506040919091013590565b60006020828403121561345f57600080fd5b81356126c9816132f6565b803563ffffffff8116811461347e57600080fd5b919050565b8015158114610b5e57600080fd5b80356002811061347e57600080fd5b600080600080600080600060c0888a0312156134bb57600080fd5b6134c48861346a565b965060208801356134d481613483565b95506134e260408901613491565b94506134f06060890161346a565b93506080880135925060a088013567ffffffffffffffff8082111561351457600080fd5b818a0191508a601f83011261352857600080fd5b81358181111561353757600080fd5b8b602082850101111561354957600080fd5b60208301945080935050505092959891949750929550565b803561ffff8116811461347e57600080fd5b60006020828403121561358557600080fd5b6126c982613561565b634e487b7160e01b600052602160045260246000fd5b8151610120820190600381106135ca57634e487b7160e01b600052602160045260246000fd5b825260208381015160ff908116828501526040808601519190850160005b60078110156136075783518316825292840192908401906001016135e8565b505050505092915050565b600081518084526020808501945080840160005b8381101561364657815161ffff1687529582019590820190600101613626565b509495945050505050565b6020815260006126c96020830184613612565b6000806040838503121561367757600080fd5b8235613682816132f6565b915061369060208401613491565b90509250929050565b600080604083850312156136ac57600080fd5b6136b583613491565b915061369060208401613561565b6000806000606084860312156136d857600080fd5b83359250602084013561343c816132f6565b600080604083850312156136fd57600080fd5b8235613708816132f6565b9150602083013561371881613483565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561376257613762613723565b604052919050565b600067ffffffffffffffff82111561378457613784613723565b50601f01601f191660200190565b600080600080608085870312156137a857600080fd5b84356137b3816132f6565b935060208501356137c3816132f6565b925060408501359150606085013567ffffffffffffffff8111156137e657600080fd5b8501601f810187136137f757600080fd5b803561380a6138058261376a565b613739565b81815288602083850101111561381f57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561385457600080fd5b823561385f816132f6565b91506020830135613718816132f6565b600181811c9082168061388357607f821691505b602082108114156138a457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681851680830382111561392a5761392a6138f5565b01949350505050565b6001600160a01b038716815260ff8616602082015263ffffffff851660408201526060810184905260a0608082018190528101829052818360c0830137600081830160c090810191909152601f909201601f1916010195945050505050565b6000602082840312156139a457600080fd5b81516126c981613483565b600061ffff808316818114156139c7576139c76138f5565b6001019392505050565b600082198211156139e4576139e46138f5565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613a0e57613a0e6139e9565b500690565b600061ffff821680613a2757613a276138f5565b6000190192915050565b6001600160a01b03858116825284166020820152608060408201819052600090613a5d9083018561329e565b905061ffff8316606083015295945050505050565b606081526000613a85606083018661329e565b6001600160a01b039490941660208301525061ffff91909116604090910152919050565b600063ffffffff808316818114156139c7576139c76138f5565b6001600160a01b03831681526040602082018190526000906126c690830184613612565b600060208284031215613af957600080fd5b815167ffffffffffffffff811115613b1057600080fd5b8201601f81018413613b2157600080fd5b8051613b2f6138058261376a565b818152856020838501011115613b4457600080fd5b613b55826020830160208601613272565b95945050505050565b600082821015613b7057613b706138f5565b500390565b600060ff821660ff84168060ff03821115613b9257613b926138f5565b019392505050565b600060208284031215613bac57600080fd5b81516126c9816132f6565b600060ff821660ff84168160ff0481118215151615613bd857613bd86138f5565b029392505050565b600060038b10613c0057634e487b7160e01b600052602160045260246000fd5b60f88b811b83526001600160f81b03198b821b811660018501528a821b8116600285015289821b811660038501529088901b166004830152613c51600583018760f81b6001600160f81b0319169052565b613c6a600683018660f81b6001600160f81b0319169052565b613c83600783018560f81b6001600160f81b0319169052565b613c9c600883018460f81b6001600160f81b0319169052565b506009019998505050505050505050565b805160208083015191908110156138a45760001960209190910360031b1b16919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b600060ff831680613d4c57613d4c6139e9565b8060ff84160691505092915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d8e9083018461329e565b9695505050505050565b600060208284031215613daa57600080fd5b81516126c98161323f56fea264697066735822122051568d979c39ea91c6b44d79adce70221e0d4846708b693e085d1d8a5c7d7fa064736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.