Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
334 Gen
Holders
134
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 GenLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Genkei
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; import "https://github.com/FrankNFT-labs/ERC721F/blob/v4.7.2/contracts/token/ERC721/ERC721F.sol"; import "https://github.com/FrankNFT-labs/ERC721F/blob/v4.7.2/contracts/utils/AllowList.sol"; import "https://github.com/FrankNFT-labs/ERC721F/blob/v4.7.2/contracts/token/ERC721/extensions/ERC721Payable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; /** * @title RDRPunks contract * @dev Extends ERC721F Non-Fungible Token Standard basic implementation. * Optimized to no longer use ERC721Enumarable , but still provide a totalSupply() implementation. * @author @FrankNFT.eth * */ contract Genkei is ERC721F, ERC721Payable, AllowList{ uint256 public tokenPrice = 0.032 ether; uint256 public tokenPreSalePrice = 0.022 ether; uint256 public constant MAX_TOKENS = 4747; uint256 public constant MAX_PUBLIC = 4700; uint public constant MAX_PURCHASE = 4; // set 1 to high to avoid some gas uint public constant MAX_PURCHASE_PUBLIC = 6; // set 1 to high to avoid some gas uint public constant MAX_RESERVE = 201; // set 1 to high to avoid some gas bool public saleIsActive; bool public preSaleIsActive; bool public unionIsActive; bytes32 public root; address private constant FRANK = 0xF40Fd88ac59A206D009A07F8c09828a01e2ACC0d; address private constant WALLET1 = 0x5292102537aA1A276869B30Ca41c9997fEA89299; address private constant WALLET2 = 0x5674b4F3F41C72ac724DCb84189FAd3E753C3efA; mapping(address => uint256) private balances; mapping(address => uint256) private balancesPreSale; mapping(address => bool) private unionMinted; event PriceChange(address _by, uint256 price); constructor() ERC721F("Genkei", "Gen") { setBaseTokenURI("ipfs://QmRSQo4QtifxFJctFaCN94NUsKRfHLYp3XEKWy5sSDWwZW/"); _mint(FRANK, 0); } /** * Mint Tokens to a wallet. */ function mint(address to,uint numberOfTokens) public onlyOwner { uint supply = totalSupply(); require(supply + numberOfTokens <= MAX_TOKENS, "Reserve would exceed max supply of Tokens"); require(numberOfTokens < MAX_RESERVE, "Can only mint 200 tokens at a time"); for (uint i = 0; i < numberOfTokens;) { _safeMint(to, supply + i); unchecked{ i++;} } } /** * Mint Tokens to the owners reserve. * */ function reserveTokens() external onlyOwner { mint(owner(),MAX_RESERVE-1); } /** * @notice Assigns `_root` to `root`, this changes the whitelisted accounts that have access to mintPreSale * @param _root Calculated roothash of merkle tree * @dev A new roothash can be calculated using the `scripts\merkle_tree.js` file */ function setRoot(bytes32 _root) external onlyOwner { root = _root; } /** * Changes the state of preSaleIsactive from true to false and false to true */ function flipPreSaleState() external onlyOwner { preSaleIsActive = !preSaleIsActive; if (preSaleIsActive) { unionIsActive = false; saleIsActive = false; } } /** * Changes the state of saleIsActive from true to false and false to true * @dev If saleIsActive becomes `true` sets preSaleIsActive to `false` */ function flipSaleState() external onlyOwner { saleIsActive = !saleIsActive; if (saleIsActive) { preSaleIsActive = false; unionIsActive = false; } } /** * Changes the state of UnionIsActive from true to false and false to true * @dev If saleIsActive becomes `true` sets preSaleIsActive to `false` */ function flipUnionSaleState() external onlyOwner { unionIsActive = !unionIsActive; if (unionIsActive) { preSaleIsActive = false; saleIsActive = false; } } /** * Set price */ function setPrice(uint256 price) external onlyOwner { tokenPrice = price; emit PriceChange(msg.sender, tokenPrice); } /** * Mint your tokens here. */ function mint(uint256 numberOfTokens) external payable{ require(saleIsActive,"Sale NOT active yet"); require(numberOfTokens*tokenPrice <= msg.value, "Ether value sent is not correct"); require(numberOfTokens != 0, "numberOfNfts cannot be 0"); require (balances[msg.sender]+numberOfTokens < MAX_PURCHASE_PUBLIC ,"You already made 5 tokens."); uint256 supply = totalSupply(); require(supply + numberOfTokens <= MAX_PUBLIC, "Purchase would exceed max supply of Tokens"); balances[msg.sender] = balances[msg.sender]+numberOfTokens; for(uint256 i; i < numberOfTokens;){ _safeMint( msg.sender, supply + i ); unchecked{ i++;} } } /** * @notice Mints a certain number of tokens * @param numberOfTokens Total tokens to be minted, must be larger than 0 and at most 30 * @param merkleProof Proof that an address is part of the whitelisted pre-sale addresses * @dev Uses MerkleProof to determine whether an address is allowed to mint during the pre-sale, non-mint name is due to hardhat being unable to handle function overloading */ function mintPreSale(uint256 numberOfTokens, bytes32[] calldata merkleProof) external payable { require(preSaleIsActive, "PreSale is not active yet"); require(numberOfTokens*tokenPreSalePrice <= msg.value, "Ether value sent is not correct"); uint256 supply = _totalMinted(); require( supply + numberOfTokens <= MAX_PUBLIC, "Purchase would exceed max supply of Tokens" ); require(checkValidity(merkleProof), "Invalid Merkle Proof"); require(numberOfTokens != 0, "numberOfNfts cannot be 0"); require (balancesPreSale[msg.sender]+numberOfTokens < MAX_PURCHASE ,"You already made 3 tokens."); balancesPreSale[msg.sender] = balancesPreSale[msg.sender]+numberOfTokens; for (uint256 i; i < numberOfTokens; ) { _safeMint(msg.sender, supply + i); unchecked { i++; } } } /** * Mint your tokens here. */ function freeMint() external onlyAllowList{ require(unionIsActive,"Union Sale NOT active yet"); require(! unionMinted[msg.sender],"You already minted"); uint256 supply = totalSupply(); require(supply + 1 <= MAX_TOKENS, "Purchase would exceed max supply of Tokens"); unionMinted[msg.sender]=true; _safeMint( msg.sender, supply); } function checkValidity(bytes32[] calldata merkleProof) internal view returns (bool) { bytes32 leafToCheck = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verify(merkleProof, root, leafToCheck); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Insufficent balance"); uint256 payout = balance/20; _withdraw(FRANK, payout); _withdraw(WALLET1, payout); _withdraw(WALLET2, payout); _withdraw(owner(), address(this).balance); } /** * exists function for the Royalty splitter */ function exists(uint256 tokenId) public view returns (bool){ return _exists(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; abstract contract ERC721Payable { /** * Helper method to allow ETH withdraws. */ function _withdraw(address _address, uint256 _amount) internal { (bool success, ) = _address.call{ value: _amount }(""); require(success, "Failed to withdraw Ether"); } // contract can recieve Ether receive() external payable { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract AllowList is Ownable { mapping(address => bool) private allowList; modifier onlyAllowList() { require(isAllowList(msg.sender), "Address is not within allowList"); _; } /** * @notice Adds an address to the allowList */ function allowAddress(address _address) public onlyOwner { allowList[_address] = true; } /** * @notice Adds an array of addresses to the allowList */ function allowAddresses(address[] calldata _addresses) external onlyOwner { uint length = _addresses.length; for (uint i; i < length; ) { allowAddress(_addresses[i]); unchecked { i++; } } } /** * @notice Removes an address off the allowList */ function disallowAddress(address _address) public onlyOwner { allowList[_address] = false; } /** * @notice Returns `true` if `_address` is in and `true` in the allowList */ function isAllowList(address _address) public view returns (bool) { return allowList[_address]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title ERC721F * @dev Extends ERC721 Non-Fungible Token Standard basic implementation. * Optimized to no longer use ERC721Enumerable , but still provide a totalSupply() and walletOfOwner(address _owner) implementation. * @author @FrankNFT.eth * */ contract ERC721F is Ownable, ERC721 { uint256 private _tokenSupply; uint256 private _burnCounter; // Base URI for Meta data string private _baseTokenURI; constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {} /** * @dev walletofOwner * @return tokens id owned by the given address * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function walletOfOwner(address _owner) external view virtual returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = _startTokenId(); uint256 ownedTokenIndex = 0; while ( ownedTokenIndex < ownerTokenCount && currentTokenId < _tokenSupply ) { if (ownerOf(currentTokenId) == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; unchecked { ownedTokenIndex++; } } unchecked { currentTokenId++; } } return ownedTokenIds; } /** * To change the starting tokenId, override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Set the base token URI */ function setBaseTokenURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } /** * * @dev Mints `tokenId` and transfers it to `to`. * */ function _mint(address to, uint256 tokenId) internal virtual override { super._mint(to, tokenId); unchecked { _tokenSupply++; } } /** * @dev See {ERC721-_burn} * Increases value of _burnCounter */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); unchecked { _burnCounter++; } } /** * @dev Gets the total amount of existing tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view virtual returns (uint256) { return _tokenSupply - _burnCounter; } /** * @dev Gets total amount of tokens minted by the contract */ function _totalMinted() internal view virtual returns (uint256) { return _tokenSupply; } /** * @dev Gets total amount of burned tokens */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PriceChange","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_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PURCHASE_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"allowAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"allowAddresses","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_address","type":"address"}],"name":"disallowAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipUnionSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","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":"_address","type":"address"}],"name":"isAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPreSale","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","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":"string","name":"baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","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":"tokenPreSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unionIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526671afd498d00000600b55664e28e2290f0000600c553480156200002757600080fd5b506040518060400160405280600681526020016547656e6b656960d01b8152506040518060400160405280600381526020016223b2b760e91b81525081816200007f62000079620000ec60201b60201c565b620000f0565b60016200008d8382620003d3565b5060026200009c8282620003d3565b5050505050620000c5604051806060016040528060368152602001620031216036913962000140565b620000e673f40fd88ac59a206d009a07f8c09828a01e2acc0d60006200015c565b620004c7565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200014a62000180565b6009620001588282620003d3565b5050565b620001738282620001e260201b620019e31760201c565b5050600780546001019055565b6000546001600160a01b03163314620001e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6001600160a01b0382166200023a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001d7565b6000818152600360205260409020546001600160a01b031615620002a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001d7565b6001600160a01b0382166000908152600460205260408120805460019290620002cc9084906200049f565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035a57607f821691505b6020821081036200037b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032a57600081815260208120601f850160051c81016020861015620003aa5750805b601f850160051c820191505b81811015620003cb57828155600101620003b6565b505050505050565b81516001600160401b03811115620003ef57620003ef6200032f565b620004078162000400845462000345565b8462000381565b602080601f8311600181146200043f5760008415620004265750858301515b600019600386901b1c1916600185901b178555620003cb565b600085815260208120601f198616915b8281101562000470578886015182559484019460019091019084016200044f565b50858210156200048f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620004c157634e487b7160e01b600052601160045260246000fd5b92915050565b612c4a80620004d76000396000f3fe6080604052600436106103015760003560e01c80637289d6a81161018f578063b88d4fde116100e1578063ebf0c7171161008a578063f2fde38b11610064578063f2fde38b14610813578063f47c84c514610833578063f5964e081461084957600080fd5b8063ebf0c717146107d3578063eff31e9e146107e9578063f0325549146107fe57600080fd5b8063de49ae98116100bb578063de49ae981461075b578063e985e9c514610770578063eb8d2444146107b957600080fd5b8063b88d4fde146106fb578063c87b56dd1461071b578063dab5f3401461073b57600080fd5b806395d89b4111610143578063a0712d681161011d578063a0712d68146106a8578063a22cb465146106bb578063b7c58d7a146106db57600080fd5b806395d89b411461066a5780639753eac01461067f5780639e6b2c5b1461069557600080fd5b80637ff9b596116101745780637ff9b596146106165780638da5cb5b1461062c57806391b7f5ed1461064a57600080fd5b80637289d6a8146105eb578063775cf6c71461060057600080fd5b806334918dfd116102535780634f558e79116101fc57806370a08231116101d657806370a08231146105a15780637146bd08146105c1578063715018a6146105d657600080fd5b80634f558e791461054c5780635b70ea9f1461056c5780636352211e1461058157600080fd5b806340c10f191161022d57806340c10f19146104df57806342842e0e146104ff578063438b63001461051f57600080fd5b806334918dfd146104955780633863b1f5146104aa5780633ccfd60b146104ca57600080fd5b806318160ddd116102b557806327ac36c41161028f57806327ac36c41461044057806328715b391461045557806330176e131461047557600080fd5b806318160ddd146103de5780631f0234d81461040157806323b872dd1461042057600080fd5b8063081812fc116102e6578063081812fc1461036457806308af4d881461039c578063095ea7b3146103be57600080fd5b806301ffc9a71461030d57806306fdde031461034257600080fd5b3661030857005b600080fd5b34801561031957600080fd5b5061032d610328366004612570565b610882565b60405190151581526020015b60405180910390f35b34801561034e57600080fd5b5061035761091f565b60405161033991906125dd565b34801561037057600080fd5b5061038461037f3660046125f0565b6109b1565b6040516001600160a01b039091168152602001610339565b3480156103a857600080fd5b506103bc6103b7366004612625565b6109d8565b005b3480156103ca57600080fd5b506103bc6103d9366004612640565b610a04565b3480156103ea57600080fd5b506103f3610b58565b604051908152602001610339565b34801561040d57600080fd5b50600d5461032d90610100900460ff1681565b34801561042c57600080fd5b506103bc61043b36600461266a565b610b6f565b34801561044c57600080fd5b506103bc610bf6565b34801561046157600080fd5b50600d5461032d9062010000900460ff1681565b34801561048157600080fd5b506103bc610490366004612732565b610c21565b3480156104a157600080fd5b506103bc610c39565b3480156104b657600080fd5b506103bc6104c53660046127c7565b610c6a565b3480156104d657600080fd5b506103bc610cb6565b3480156104eb57600080fd5b506103bc6104fa366004612640565b610d90565b34801561050b57600080fd5b506103bc61051a36600461266a565b610ec1565b34801561052b57600080fd5b5061053f61053a366004612625565b610edc565b6040516103399190612809565b34801561055857600080fd5b5061032d6105673660046125f0565b610fa3565b34801561057857600080fd5b506103bc610fc2565b34801561058d57600080fd5b5061038461059c3660046125f0565b61117b565b3480156105ad57600080fd5b506103f36105bc366004612625565b6111e0565b3480156105cd57600080fd5b506103f3600481565b3480156105e257600080fd5b506103bc61127a565b3480156105f757600080fd5b506103bc61128c565b34801561060c57600080fd5b506103f3600c5481565b34801561062257600080fd5b506103f3600b5481565b34801561063857600080fd5b506000546001600160a01b0316610384565b34801561065657600080fd5b506103bc6106653660046125f0565b6112cb565b34801561067657600080fd5b50610357611314565b34801561068b57600080fd5b506103f361125c81565b6103bc6106a336600461284d565b611323565b6103bc6106b63660046125f0565b6115b7565b3480156106c757600080fd5b506103bc6106d6366004612899565b6117e8565b3480156106e757600080fd5b506103bc6106f6366004612625565b6117f3565b34801561070757600080fd5b506103bc6107163660046128d5565b61181c565b34801561072757600080fd5b506103576107363660046125f0565b6118a4565b34801561074757600080fd5b506103bc6107563660046125f0565b61190b565b34801561076757600080fd5b506103f3600681565b34801561077c57600080fd5b5061032d61078b366004612951565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107c557600080fd5b50600d5461032d9060ff1681565b3480156107df57600080fd5b506103f3600e5481565b3480156107f557600080fd5b506103f360c981565b34801561080a57600080fd5b506103bc611918565b34801561081f57600080fd5b506103bc61082e366004612625565b611956565b34801561083f57600080fd5b506103f361128b81565b34801561085557600080fd5b5061032d610864366004612625565b6001600160a01b03166000908152600a602052604090205460ff1690565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108e557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061091957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461092e90612984565b80601f016020809104026020016040519081016040528092919081815260200182805461095a90612984565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc82611b32565b506000908152600560205260409020546001600160a01b031690565b6109e0611b96565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6000610a0f8261117b565b9050806001600160a01b0316836001600160a01b031603610a9d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610ad757506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610b495760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a94565b610b538383611bf0565b505050565b6000600854600754610b6a91906129d4565b905090565b610b793382611c6b565b610beb5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a94565b610b53838383611cea565b610bfe611b96565b610c1f610c136000546001600160a01b031690565b6104fa600160c96129d4565b565b610c29611b96565b6009610c358282612a35565b5050565b610c41611b96565b600d805460ff19811660ff918216159081179092551615610c1f57600d805462ffff0019169055565b610c72611b96565b8060005b81811015610cb057610ca8848483818110610c9357610c93612af5565b90506020020160208101906103b79190612625565b600101610c76565b50505050565b610cbe611b96565b4780610d0c5760405162461bcd60e51b815260206004820152601360248201527f496e737566666963656e742062616c616e6365000000000000000000000000006044820152606401610a94565b6000610d19601483612b21565b9050610d3973f40fd88ac59a206d009a07f8c09828a01e2acc0d82611ec4565b610d57735292102537aa1a276869b30ca41c9997fea8929982611ec4565b610d75735674b4f3f41c72ac724dcb84189fad3e753c3efa82611ec4565b610c35610d8a6000546001600160a01b031690565b47611ec4565b610d98611b96565b6000610da2610b58565b905061128b610db18383612b35565b1115610e255760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c792060448201527f6f6620546f6b656e7300000000000000000000000000000000000000000000006064820152608401610a94565b60c98210610e9b5760405162461bcd60e51b815260206004820152602260248201527f43616e206f6e6c79206d696e742032303020746f6b656e73206174206120746960448201527f6d650000000000000000000000000000000000000000000000000000000000006064820152608401610a94565b60005b82811015610cb057610eb984610eb48385612b35565b611f67565b600101610e9e565b610b538383836040518060200160405280600081525061181c565b60606000610ee9836111e0565b905060008167ffffffffffffffff811115610f0657610f066126a6565b604051908082528060200260200182016040528015610f2f578160200160208202803683370190505b5090506000805b8381108015610f46575060075482105b15610f9957856001600160a01b0316610f5e8361117b565b6001600160a01b031603610f8e5781838281518110610f7f57610f7f612af5565b60209081029190910101526001015b600190910190610f36565b5090949350505050565b6000818152600360205260408120546001600160a01b03161515610919565b336000908152600a602052604090205460ff166110215760405162461bcd60e51b815260206004820152601f60248201527f41646472657373206973206e6f742077697468696e20616c6c6f774c697374006044820152606401610a94565b600d5462010000900460ff166110795760405162461bcd60e51b815260206004820152601960248201527f556e696f6e2053616c65204e4f542061637469766520796574000000000000006044820152606401610a94565b3360009081526011602052604090205460ff16156110d95760405162461bcd60e51b815260206004820152601260248201527f596f7520616c7265616479206d696e74656400000000000000000000000000006044820152606401610a94565b60006110e3610b58565b905061128b6110f3826001612b35565b11156111545760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b336000818152601160205260409020805460ff191660011790556111789082611f67565b50565b6000818152600360205260408120546001600160a01b0316806109195760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a94565b60006001600160a01b03821661125e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610a94565b506001600160a01b031660009081526004602052604090205490565b611282611b96565b610c1f6000611f81565b611294611b96565b600d805460ff62010000808304821615810262ff000019909316929092179283905591041615610c1f57600d805461ffff19169055565b6112d3611b96565b600b81905560408051338152602081018390527ffb97d390102d99a2a0210c7da4d6e15528ca897324a726106755393058ae2719910160405180910390a150565b60606002805461092e90612984565b600d54610100900460ff1661137a5760405162461bcd60e51b815260206004820152601960248201527f50726553616c65206973206e6f742061637469766520796574000000000000006044820152606401610a94565b34600c54846113899190612b48565b11156113d75760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a94565b60006113e260075490565b905061125c6113f18583612b35565b11156114525760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b61145c8383611fde565b6114a85760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610a94565b836000036114f85760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610a94565b33600090815260106020526040902054600490611516908690612b35565b106115635760405162461bcd60e51b815260206004820152601a60248201527f596f7520616c7265616479206d616465203320746f6b656e732e0000000000006044820152606401610a94565b3360009081526010602052604090205461157e908590612b35565b336000908152601060205260408120919091555b848110156115b0576115a833610eb48385612b35565b600101611592565b5050505050565b600d5460ff166116095760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f542061637469766520796574000000000000000000000000006044820152606401610a94565b34600b54826116189190612b48565b11156116665760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a94565b806000036116b65760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610a94565b336000908152600f60205260409020546006906116d4908390612b35565b106117215760405162461bcd60e51b815260206004820152601a60248201527f596f7520616c7265616479206d616465203520746f6b656e732e0000000000006044820152606401610a94565b600061172b610b58565b905061125c61173a8383612b35565b111561179b5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b336000908152600f60205260409020546117b6908390612b35565b336000908152600f60205260408120919091555b82811015610b53576117e033610eb48385612b35565b6001016117ca565b610c3533838361205a565b6117fb611b96565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6118263383611c6b565b6118985760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a94565b610cb084848484612128565b60606118af82611b32565b60006118b96121a6565b905060008151116118d95760405180602001604052806000815250611904565b806118e3846121b5565b6040516020016118f4929190612b5f565b6040516020818303038152906040525b9392505050565b611913611b96565b600e55565b611920611b96565b600d805460ff610100808304821615810261ff0019909316929092179283905591041615610c1f57600d805462ff00ff19169055565b61195e611b96565b6001600160a01b0381166119da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a94565b61117881611f81565b6001600160a01b038216611a395760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a94565b6000818152600360205260409020546001600160a01b031615611a9e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a94565b6001600160a01b0382166000908152600460205260408120805460019290611ac7908490612b35565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600360205260409020546001600160a01b03166111785760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a94565b6000546001600160a01b03163314610c1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a94565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611c328261117b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c778361117b565b9050806001600160a01b0316846001600160a01b03161480611cbe57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611ce25750836001600160a01b0316611cd7846109b1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611cfd8261117b565b6001600160a01b031614611d795760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a94565b6001600160a01b038216611df45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a94565b611dff600082611bf0565b6001600160a01b0383166000908152600460205260408120805460019290611e289084906129d4565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e56908490612b35565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f11576040519150601f19603f3d011682016040523d82523d6000602084013e611f16565b606091505b5050905080610b535760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610a94565b610c358282604051806020016040528060008152506122ea565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050611ce284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150849050612368565b816001600160a01b0316836001600160a01b0316036120bb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a94565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612133848484611cea565b61213f8484848461237e565b610cb05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b60606009805461092e90612984565b6060816000036121f857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612222578061220c81612b8e565b915061221b9050600a83612b21565b91506121fc565b60008167ffffffffffffffff81111561223d5761223d6126a6565b6040519080825280601f01601f191660200182016040528015612267576020820181803683370190505b5090505b8415611ce25761227c6001836129d4565b9150612289600a86612ba7565b612294906030612b35565b60f81b8183815181106122a9576122a9612af5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122e3600a86612b21565b945061226b565b6122f483836124ca565b612301600084848461237e565b610b535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b60008261237585846124e1565b14949350505050565b60006001600160a01b0384163b156124bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123c2903390899088908890600401612bbb565b6020604051808303816000875af19250505080156123fd575060408051601f3d908101601f191682019092526123fa91810190612bf7565b60015b6124a5573d80801561242b576040519150601f19603f3d011682016040523d82523d6000602084013e612430565b606091505b50805160000361249d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ce2565b506001949350505050565b6124d482826119e3565b5050600780546001019055565b600081815b8451811015612526576125128286838151811061250557612505612af5565b602002602001015161252e565b91508061251e81612b8e565b9150506124e6565b509392505050565b600081831061254a576000828152602084905260409020611904565b5060009182526020526040902090565b6001600160e01b03198116811461117857600080fd5b60006020828403121561258257600080fd5b81356119048161255a565b60005b838110156125a8578181015183820152602001612590565b50506000910152565b600081518084526125c981602086016020860161258d565b601f01601f19169290920160200192915050565b60208152600061190460208301846125b1565b60006020828403121561260257600080fd5b5035919050565b80356001600160a01b038116811461262057600080fd5b919050565b60006020828403121561263757600080fd5b61190482612609565b6000806040838503121561265357600080fd5b61265c83612609565b946020939093013593505050565b60008060006060848603121561267f57600080fd5b61268884612609565b925061269660208501612609565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156126d7576126d76126a6565b604051601f8501601f19908116603f011681019082821181831017156126ff576126ff6126a6565b8160405280935085815286868601111561271857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561274457600080fd5b813567ffffffffffffffff81111561275b57600080fd5b8201601f8101841361276c57600080fd5b611ce2848235602084016126bc565b60008083601f84011261278d57600080fd5b50813567ffffffffffffffff8111156127a557600080fd5b6020830191508360208260051b85010111156127c057600080fd5b9250929050565b600080602083850312156127da57600080fd5b823567ffffffffffffffff8111156127f157600080fd5b6127fd8582860161277b565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b8181101561284157835183529284019291840191600101612825565b50909695505050505050565b60008060006040848603121561286257600080fd5b83359250602084013567ffffffffffffffff81111561288057600080fd5b61288c8682870161277b565b9497909650939450505050565b600080604083850312156128ac57600080fd5b6128b583612609565b9150602083013580151581146128ca57600080fd5b809150509250929050565b600080600080608085870312156128eb57600080fd5b6128f485612609565b935061290260208601612609565b925060408501359150606085013567ffffffffffffffff81111561292557600080fd5b8501601f8101871361293657600080fd5b612945878235602084016126bc565b91505092959194509250565b6000806040838503121561296457600080fd5b61296d83612609565b915061297b60208401612609565b90509250929050565b600181811c9082168061299857607f821691505b6020821081036129b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610919576109196129be565b601f821115610b5357600081815260208120601f850160051c81016020861015612a0e5750805b601f850160051c820191505b81811015612a2d57828155600101612a1a565b505050505050565b815167ffffffffffffffff811115612a4f57612a4f6126a6565b612a6381612a5d8454612984565b846129e7565b602080601f831160018114612a985760008415612a805750858301515b600019600386901b1c1916600185901b178555612a2d565b600085815260208120601f198616915b82811015612ac757888601518255948401946001909101908401612aa8565b5085821015612ae55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612b3057612b30612b0b565b500490565b80820180821115610919576109196129be565b8082028115828204841417610919576109196129be565b60008351612b7181846020880161258d565b835190830190612b8581836020880161258d565b01949350505050565b600060018201612ba057612ba06129be565b5060010190565b600082612bb657612bb6612b0b565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612bed60808301846125b1565b9695505050505050565b600060208284031215612c0957600080fd5b81516119048161255a56fea264697066735822122068ba6320d6f154483dedd314a20a1f59615f12dc72f98e92998a0b3ccf387c5664736f6c63430008110033697066733a2f2f516d5253516f345174696678464a63744661434e39344e55734b5266484c59703358454b57793573534457775a572f
Deployed Bytecode
0x6080604052600436106103015760003560e01c80637289d6a81161018f578063b88d4fde116100e1578063ebf0c7171161008a578063f2fde38b11610064578063f2fde38b14610813578063f47c84c514610833578063f5964e081461084957600080fd5b8063ebf0c717146107d3578063eff31e9e146107e9578063f0325549146107fe57600080fd5b8063de49ae98116100bb578063de49ae981461075b578063e985e9c514610770578063eb8d2444146107b957600080fd5b8063b88d4fde146106fb578063c87b56dd1461071b578063dab5f3401461073b57600080fd5b806395d89b4111610143578063a0712d681161011d578063a0712d68146106a8578063a22cb465146106bb578063b7c58d7a146106db57600080fd5b806395d89b411461066a5780639753eac01461067f5780639e6b2c5b1461069557600080fd5b80637ff9b596116101745780637ff9b596146106165780638da5cb5b1461062c57806391b7f5ed1461064a57600080fd5b80637289d6a8146105eb578063775cf6c71461060057600080fd5b806334918dfd116102535780634f558e79116101fc57806370a08231116101d657806370a08231146105a15780637146bd08146105c1578063715018a6146105d657600080fd5b80634f558e791461054c5780635b70ea9f1461056c5780636352211e1461058157600080fd5b806340c10f191161022d57806340c10f19146104df57806342842e0e146104ff578063438b63001461051f57600080fd5b806334918dfd146104955780633863b1f5146104aa5780633ccfd60b146104ca57600080fd5b806318160ddd116102b557806327ac36c41161028f57806327ac36c41461044057806328715b391461045557806330176e131461047557600080fd5b806318160ddd146103de5780631f0234d81461040157806323b872dd1461042057600080fd5b8063081812fc116102e6578063081812fc1461036457806308af4d881461039c578063095ea7b3146103be57600080fd5b806301ffc9a71461030d57806306fdde031461034257600080fd5b3661030857005b600080fd5b34801561031957600080fd5b5061032d610328366004612570565b610882565b60405190151581526020015b60405180910390f35b34801561034e57600080fd5b5061035761091f565b60405161033991906125dd565b34801561037057600080fd5b5061038461037f3660046125f0565b6109b1565b6040516001600160a01b039091168152602001610339565b3480156103a857600080fd5b506103bc6103b7366004612625565b6109d8565b005b3480156103ca57600080fd5b506103bc6103d9366004612640565b610a04565b3480156103ea57600080fd5b506103f3610b58565b604051908152602001610339565b34801561040d57600080fd5b50600d5461032d90610100900460ff1681565b34801561042c57600080fd5b506103bc61043b36600461266a565b610b6f565b34801561044c57600080fd5b506103bc610bf6565b34801561046157600080fd5b50600d5461032d9062010000900460ff1681565b34801561048157600080fd5b506103bc610490366004612732565b610c21565b3480156104a157600080fd5b506103bc610c39565b3480156104b657600080fd5b506103bc6104c53660046127c7565b610c6a565b3480156104d657600080fd5b506103bc610cb6565b3480156104eb57600080fd5b506103bc6104fa366004612640565b610d90565b34801561050b57600080fd5b506103bc61051a36600461266a565b610ec1565b34801561052b57600080fd5b5061053f61053a366004612625565b610edc565b6040516103399190612809565b34801561055857600080fd5b5061032d6105673660046125f0565b610fa3565b34801561057857600080fd5b506103bc610fc2565b34801561058d57600080fd5b5061038461059c3660046125f0565b61117b565b3480156105ad57600080fd5b506103f36105bc366004612625565b6111e0565b3480156105cd57600080fd5b506103f3600481565b3480156105e257600080fd5b506103bc61127a565b3480156105f757600080fd5b506103bc61128c565b34801561060c57600080fd5b506103f3600c5481565b34801561062257600080fd5b506103f3600b5481565b34801561063857600080fd5b506000546001600160a01b0316610384565b34801561065657600080fd5b506103bc6106653660046125f0565b6112cb565b34801561067657600080fd5b50610357611314565b34801561068b57600080fd5b506103f361125c81565b6103bc6106a336600461284d565b611323565b6103bc6106b63660046125f0565b6115b7565b3480156106c757600080fd5b506103bc6106d6366004612899565b6117e8565b3480156106e757600080fd5b506103bc6106f6366004612625565b6117f3565b34801561070757600080fd5b506103bc6107163660046128d5565b61181c565b34801561072757600080fd5b506103576107363660046125f0565b6118a4565b34801561074757600080fd5b506103bc6107563660046125f0565b61190b565b34801561076757600080fd5b506103f3600681565b34801561077c57600080fd5b5061032d61078b366004612951565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107c557600080fd5b50600d5461032d9060ff1681565b3480156107df57600080fd5b506103f3600e5481565b3480156107f557600080fd5b506103f360c981565b34801561080a57600080fd5b506103bc611918565b34801561081f57600080fd5b506103bc61082e366004612625565b611956565b34801561083f57600080fd5b506103f361128b81565b34801561085557600080fd5b5061032d610864366004612625565b6001600160a01b03166000908152600a602052604090205460ff1690565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108e557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061091957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461092e90612984565b80601f016020809104026020016040519081016040528092919081815260200182805461095a90612984565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc82611b32565b506000908152600560205260409020546001600160a01b031690565b6109e0611b96565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6000610a0f8261117b565b9050806001600160a01b0316836001600160a01b031603610a9d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610ad757506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610b495760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a94565b610b538383611bf0565b505050565b6000600854600754610b6a91906129d4565b905090565b610b793382611c6b565b610beb5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a94565b610b53838383611cea565b610bfe611b96565b610c1f610c136000546001600160a01b031690565b6104fa600160c96129d4565b565b610c29611b96565b6009610c358282612a35565b5050565b610c41611b96565b600d805460ff19811660ff918216159081179092551615610c1f57600d805462ffff0019169055565b610c72611b96565b8060005b81811015610cb057610ca8848483818110610c9357610c93612af5565b90506020020160208101906103b79190612625565b600101610c76565b50505050565b610cbe611b96565b4780610d0c5760405162461bcd60e51b815260206004820152601360248201527f496e737566666963656e742062616c616e6365000000000000000000000000006044820152606401610a94565b6000610d19601483612b21565b9050610d3973f40fd88ac59a206d009a07f8c09828a01e2acc0d82611ec4565b610d57735292102537aa1a276869b30ca41c9997fea8929982611ec4565b610d75735674b4f3f41c72ac724dcb84189fad3e753c3efa82611ec4565b610c35610d8a6000546001600160a01b031690565b47611ec4565b610d98611b96565b6000610da2610b58565b905061128b610db18383612b35565b1115610e255760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c792060448201527f6f6620546f6b656e7300000000000000000000000000000000000000000000006064820152608401610a94565b60c98210610e9b5760405162461bcd60e51b815260206004820152602260248201527f43616e206f6e6c79206d696e742032303020746f6b656e73206174206120746960448201527f6d650000000000000000000000000000000000000000000000000000000000006064820152608401610a94565b60005b82811015610cb057610eb984610eb48385612b35565b611f67565b600101610e9e565b610b538383836040518060200160405280600081525061181c565b60606000610ee9836111e0565b905060008167ffffffffffffffff811115610f0657610f066126a6565b604051908082528060200260200182016040528015610f2f578160200160208202803683370190505b5090506000805b8381108015610f46575060075482105b15610f9957856001600160a01b0316610f5e8361117b565b6001600160a01b031603610f8e5781838281518110610f7f57610f7f612af5565b60209081029190910101526001015b600190910190610f36565b5090949350505050565b6000818152600360205260408120546001600160a01b03161515610919565b336000908152600a602052604090205460ff166110215760405162461bcd60e51b815260206004820152601f60248201527f41646472657373206973206e6f742077697468696e20616c6c6f774c697374006044820152606401610a94565b600d5462010000900460ff166110795760405162461bcd60e51b815260206004820152601960248201527f556e696f6e2053616c65204e4f542061637469766520796574000000000000006044820152606401610a94565b3360009081526011602052604090205460ff16156110d95760405162461bcd60e51b815260206004820152601260248201527f596f7520616c7265616479206d696e74656400000000000000000000000000006044820152606401610a94565b60006110e3610b58565b905061128b6110f3826001612b35565b11156111545760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b336000818152601160205260409020805460ff191660011790556111789082611f67565b50565b6000818152600360205260408120546001600160a01b0316806109195760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a94565b60006001600160a01b03821661125e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610a94565b506001600160a01b031660009081526004602052604090205490565b611282611b96565b610c1f6000611f81565b611294611b96565b600d805460ff62010000808304821615810262ff000019909316929092179283905591041615610c1f57600d805461ffff19169055565b6112d3611b96565b600b81905560408051338152602081018390527ffb97d390102d99a2a0210c7da4d6e15528ca897324a726106755393058ae2719910160405180910390a150565b60606002805461092e90612984565b600d54610100900460ff1661137a5760405162461bcd60e51b815260206004820152601960248201527f50726553616c65206973206e6f742061637469766520796574000000000000006044820152606401610a94565b34600c54846113899190612b48565b11156113d75760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a94565b60006113e260075490565b905061125c6113f18583612b35565b11156114525760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b61145c8383611fde565b6114a85760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610a94565b836000036114f85760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610a94565b33600090815260106020526040902054600490611516908690612b35565b106115635760405162461bcd60e51b815260206004820152601a60248201527f596f7520616c7265616479206d616465203320746f6b656e732e0000000000006044820152606401610a94565b3360009081526010602052604090205461157e908590612b35565b336000908152601060205260408120919091555b848110156115b0576115a833610eb48385612b35565b600101611592565b5050505050565b600d5460ff166116095760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f542061637469766520796574000000000000000000000000006044820152606401610a94565b34600b54826116189190612b48565b11156116665760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a94565b806000036116b65760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610a94565b336000908152600f60205260409020546006906116d4908390612b35565b106117215760405162461bcd60e51b815260206004820152601a60248201527f596f7520616c7265616479206d616465203520746f6b656e732e0000000000006044820152606401610a94565b600061172b610b58565b905061125c61173a8383612b35565b111561179b5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610a94565b336000908152600f60205260409020546117b6908390612b35565b336000908152600f60205260408120919091555b82811015610b53576117e033610eb48385612b35565b6001016117ca565b610c3533838361205a565b6117fb611b96565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6118263383611c6b565b6118985760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a94565b610cb084848484612128565b60606118af82611b32565b60006118b96121a6565b905060008151116118d95760405180602001604052806000815250611904565b806118e3846121b5565b6040516020016118f4929190612b5f565b6040516020818303038152906040525b9392505050565b611913611b96565b600e55565b611920611b96565b600d805460ff610100808304821615810261ff0019909316929092179283905591041615610c1f57600d805462ff00ff19169055565b61195e611b96565b6001600160a01b0381166119da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a94565b61117881611f81565b6001600160a01b038216611a395760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a94565b6000818152600360205260409020546001600160a01b031615611a9e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a94565b6001600160a01b0382166000908152600460205260408120805460019290611ac7908490612b35565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600360205260409020546001600160a01b03166111785760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a94565b6000546001600160a01b03163314610c1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a94565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611c328261117b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c778361117b565b9050806001600160a01b0316846001600160a01b03161480611cbe57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611ce25750836001600160a01b0316611cd7846109b1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611cfd8261117b565b6001600160a01b031614611d795760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a94565b6001600160a01b038216611df45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a94565b611dff600082611bf0565b6001600160a01b0383166000908152600460205260408120805460019290611e289084906129d4565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e56908490612b35565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f11576040519150601f19603f3d011682016040523d82523d6000602084013e611f16565b606091505b5050905080610b535760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610a94565b610c358282604051806020016040528060008152506122ea565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050611ce284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150849050612368565b816001600160a01b0316836001600160a01b0316036120bb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a94565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612133848484611cea565b61213f8484848461237e565b610cb05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b60606009805461092e90612984565b6060816000036121f857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612222578061220c81612b8e565b915061221b9050600a83612b21565b91506121fc565b60008167ffffffffffffffff81111561223d5761223d6126a6565b6040519080825280601f01601f191660200182016040528015612267576020820181803683370190505b5090505b8415611ce25761227c6001836129d4565b9150612289600a86612ba7565b612294906030612b35565b60f81b8183815181106122a9576122a9612af5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122e3600a86612b21565b945061226b565b6122f483836124ca565b612301600084848461237e565b610b535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b60008261237585846124e1565b14949350505050565b60006001600160a01b0384163b156124bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123c2903390899088908890600401612bbb565b6020604051808303816000875af19250505080156123fd575060408051601f3d908101601f191682019092526123fa91810190612bf7565b60015b6124a5573d80801561242b576040519150601f19603f3d011682016040523d82523d6000602084013e612430565b606091505b50805160000361249d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a94565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ce2565b506001949350505050565b6124d482826119e3565b5050600780546001019055565b600081815b8451811015612526576125128286838151811061250557612505612af5565b602002602001015161252e565b91508061251e81612b8e565b9150506124e6565b509392505050565b600081831061254a576000828152602084905260409020611904565b5060009182526020526040902090565b6001600160e01b03198116811461117857600080fd5b60006020828403121561258257600080fd5b81356119048161255a565b60005b838110156125a8578181015183820152602001612590565b50506000910152565b600081518084526125c981602086016020860161258d565b601f01601f19169290920160200192915050565b60208152600061190460208301846125b1565b60006020828403121561260257600080fd5b5035919050565b80356001600160a01b038116811461262057600080fd5b919050565b60006020828403121561263757600080fd5b61190482612609565b6000806040838503121561265357600080fd5b61265c83612609565b946020939093013593505050565b60008060006060848603121561267f57600080fd5b61268884612609565b925061269660208501612609565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156126d7576126d76126a6565b604051601f8501601f19908116603f011681019082821181831017156126ff576126ff6126a6565b8160405280935085815286868601111561271857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561274457600080fd5b813567ffffffffffffffff81111561275b57600080fd5b8201601f8101841361276c57600080fd5b611ce2848235602084016126bc565b60008083601f84011261278d57600080fd5b50813567ffffffffffffffff8111156127a557600080fd5b6020830191508360208260051b85010111156127c057600080fd5b9250929050565b600080602083850312156127da57600080fd5b823567ffffffffffffffff8111156127f157600080fd5b6127fd8582860161277b565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b8181101561284157835183529284019291840191600101612825565b50909695505050505050565b60008060006040848603121561286257600080fd5b83359250602084013567ffffffffffffffff81111561288057600080fd5b61288c8682870161277b565b9497909650939450505050565b600080604083850312156128ac57600080fd5b6128b583612609565b9150602083013580151581146128ca57600080fd5b809150509250929050565b600080600080608085870312156128eb57600080fd5b6128f485612609565b935061290260208601612609565b925060408501359150606085013567ffffffffffffffff81111561292557600080fd5b8501601f8101871361293657600080fd5b612945878235602084016126bc565b91505092959194509250565b6000806040838503121561296457600080fd5b61296d83612609565b915061297b60208401612609565b90509250929050565b600181811c9082168061299857607f821691505b6020821081036129b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610919576109196129be565b601f821115610b5357600081815260208120601f850160051c81016020861015612a0e5750805b601f850160051c820191505b81811015612a2d57828155600101612a1a565b505050505050565b815167ffffffffffffffff811115612a4f57612a4f6126a6565b612a6381612a5d8454612984565b846129e7565b602080601f831160018114612a985760008415612a805750858301515b600019600386901b1c1916600185901b178555612a2d565b600085815260208120601f198616915b82811015612ac757888601518255948401946001909101908401612aa8565b5085821015612ae55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612b3057612b30612b0b565b500490565b80820180821115610919576109196129be565b8082028115828204841417610919576109196129be565b60008351612b7181846020880161258d565b835190830190612b8581836020880161258d565b01949350505050565b600060018201612ba057612ba06129be565b5060010190565b600082612bb657612bb6612b0b565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612bed60808301846125b1565b9695505050505050565b600060208284031215612c0957600080fd5b81516119048161255a56fea264697066735822122068ba6320d6f154483dedd314a20a1f59615f12dc72f98e92998a0b3ccf387c5664736f6c63430008110033
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.