Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,200 TGC
Holders
114
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 TGCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GambitClubNFT
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * _____ _ ____ _ _ _ ____ _ _ * |_ _| |__ ___ / ___| __ _ _ __ ___ | |__ (_) |_ / ___| |_ _| |__ * | | | '_ \ / _ \ | | _ / _` | '_ ` _ \| '_ \| | __| | | | | | | | '_ \ * | | | | | | __/ | |_| | (_| | | | | | | |_) | | |_ | |___| | |_| | |_) | * |_| |_| |_|\___| \____|\__,_|_| |_| |_|_.__/|_|\__| \____|_|\__,_|_.__/ */ import "./IGambitClubNFT.sol"; import "./token/ERC721Enumerable.sol"; import "./token/ERC2981ContractWideRoyalties.sol"; import "./token/TokenRescuer.sol"; import "./utils/MerkleProof.sol"; /// @title The Gambit Club /// @author Aaron Hanson <[email protected]> @CoffeeConverter contract GambitClubNFT is IGambitClubNFT, ERC721Enumerable, ERC2981ContractWideRoyalties, TokenRescuer { /// The maximum token supply. uint256 public constant MAX_SUPPLY = 3200; /// The maximum number of token mints per transaction. uint256 public constant MAX_MINT_PER_TX = 25; /// The maximum number of presale+whitelist token mints per address. uint256 public constant MAX_PRESALE_PER_ADDRESS = 5; /// The price per token mint. uint256 public constant PRICE = 0.08 ether; /// The maximum ERC-2981 royalties percentage (two decimals). uint256 public constant MAX_ROYALTIES_PCT = 1000; // 10% /// The base URI for token metadata. string public baseURI; /// The contract URI for contract-level metadata. string public contractURI; /// The provenance hash summarizing token order and content. bytes32 public provenanceHash; /// Whether the provenance hash has been locked forever. bool public provenanceIsLocked; /// Whether the tokenURI() method returns fully revealed tokenURIs bool public isRevealed; /// The token sale state (0=Paused, 1=Whitelist, 2=Presale, 3=Public). SaleState public saleState; /// The address of the OpenSea proxy registry contract. address public proxyRegistry; /// The merkle root summarizing all whitelisted addresses. bytes32 public whitelistMerkleRoot; /// The merkle root summarizing all presale addresses. bytes32 public presaleMerkleRoot; /// Whether an address has revoked the automatic OpenSea proxy approval. mapping(address => bool) public userRevokedRegistryApproval; /// Whether a project proxy contract has been granted automatic approval. mapping(address => bool) public projectProxy; /// The total tokens minted by an address in presale and whitelist phases. mapping(address => uint256) public presaleMinted; /// Reverts if the current sale state is not `_saleState`. modifier onlyInSaleState(SaleState _saleState) { if (saleState != _saleState) revert SalePhaseNotActive(); _; } constructor( string memory _name, string memory _symbol, uint256 _startingTokenID, string memory _contractURI, string memory _baseURI, bytes32 _provenanceHash, bytes32 _whitelistMerkleRoot, bytes32 _presaleMerkleRoot, address _proxyRegistry ) ERC721(_name, _symbol, _startingTokenID) { contractURI = _contractURI; baseURI = _baseURI; provenanceHash = _provenanceHash; whitelistMerkleRoot = _whitelistMerkleRoot; presaleMerkleRoot = _presaleMerkleRoot; proxyRegistry = _proxyRegistry; } /// @notice Mints a single token to the caller if the proof is valid. /// @param _proof The caller's whitelist merkle proof. function mintWhitelist( bytes32[] calldata _proof ) external payable onlyInSaleState(SaleState.Whitelist) { if (!isValidMerkleProof(_proof, whitelistMerkleRoot, _msgSender())) revert InvalidMerkleProof(); if (msg.value != PRICE) revert IncorrectPaymentAmount(); if (presaleMinted[_msgSender()] != 0) revert ExceedsMintPhaseAllocation(); uint256 totalSupply = _owners.length; if (totalSupply == MAX_SUPPLY) revert ExceedsMaxSupply(); presaleMinted[_msgSender()] = 1; _mint(_msgSender(), totalSupply); } /// @notice Mints `_mintAmount` tokens to the caller if the proof is valid. /// @param _mintAmount The number of tokens to mint (1-5). /// @param _proof The caller's presale merkle proof. function mintPresale( uint256 _mintAmount, bytes32[] calldata _proof ) external payable onlyInSaleState(SaleState.Presale) { if (!isValidMerkleProof(_proof, presaleMerkleRoot, _msgSender())) revert InvalidMerkleProof(); uint256 totalSupply = _owners.length; unchecked { if (totalSupply + _mintAmount > MAX_SUPPLY) revert ExceedsMaxSupply(); if (msg.value != _mintAmount * PRICE) revert IncorrectPaymentAmount(); presaleMinted[_msgSender()] += _mintAmount; if (presaleMinted[_msgSender()] > MAX_PRESALE_PER_ADDRESS) revert ExceedsMintPhaseAllocation(); for(uint256 i; i < _mintAmount; i++) { _mint(_msgSender(), totalSupply + i); } } } /// @notice Mints `_mintAmount` tokens to the caller. /// @param _mintAmount The number of tokens to mint (1-25). function mintPublic( uint256 _mintAmount ) external payable onlyInSaleState(SaleState.Public) { if (_mintAmount > MAX_MINT_PER_TX) revert ExceedsMaxMintPerTransaction(); uint256 totalSupply = _owners.length; unchecked { if (totalSupply + _mintAmount > MAX_SUPPLY) revert ExceedsMaxSupply(); if (msg.value != _mintAmount * PRICE) revert IncorrectPaymentAmount(); for(uint256 i; i < _mintAmount; i++) { _mint(_msgSender(), totalSupply + i); } } } /// @notice Revokes the automatic approval of the caller's OpenSea proxy. function revokeRegistryApproval() external { if (userRevokedRegistryApproval[_msgSender()] == true) revert AlreadyRevokedRegistryApproval(); userRevokedRegistryApproval[_msgSender()] = true; } /// @notice (only owner) Mints `_mintAmount` free tokens to the caller. /// @param _mintAmount The number of tokens to mint. function mintPromo( uint256 _mintAmount ) external onlyOwner { uint256 totalSupply = _owners.length; if (totalSupply + _mintAmount > MAX_SUPPLY) revert ExceedsMaxSupply(); unchecked { for(uint256 i; i < _mintAmount; i++) { _mint(_msgSender(), totalSupply + i); } } } /// @notice (only owner) Sets the saleState to `_newSaleState`. /// @param _newSaleState The new sale state /// (0=Paused, 1=Whitelist, 2=Presale, 3=Public). function setSaleState( SaleState _newSaleState ) external onlyOwner { saleState = _newSaleState; emit SaleStateChanged(_newSaleState); } /// @notice (only owner) Sets the OpenSea proxy registry contract address. /// @param _newProxyRegistry The OpenSea proxy registry contract address. function setProxyRegistry( address _newProxyRegistry ) external onlyOwner { proxyRegistry = _newProxyRegistry; } /// @notice (only owner) Toggles the state of a project proxy address. /// @param _proxy The project proxy address to toggle true/false. function toggleProjectProxy( address _proxy ) external onlyOwner { projectProxy[_proxy] = !projectProxy[_proxy]; } /// @notice (only owner) Sets the whitelist merkle root. /// @param _newMerkleRoot The new whitelist merkle root. function setWhitelistMerkleRoot( bytes32 _newMerkleRoot ) external onlyOwner { whitelistMerkleRoot = _newMerkleRoot; } /// @notice (only owner) Sets the presale merkle root. /// @param _newMerkleRoot The new presale merkle root. function setPresaleMerkleRoot( bytes32 _newMerkleRoot ) external onlyOwner { presaleMerkleRoot = _newMerkleRoot; } /// @notice (only owner) Sets the contract URI for contract metadata. /// @param _newContractURI The new contract URI. function setContractURI( string calldata _newContractURI ) external onlyOwner { contractURI = _newContractURI; } /// @notice (only owner) Sets the base URI for token metadata. /// @param _newBaseURI The new base URI. /// @param _doReveal If true, this reveals the full tokenURIs. function setBaseURI( string calldata _newBaseURI, bool _doReveal ) external onlyOwner { baseURI = _newBaseURI; isRevealed = _doReveal; } /// @notice (only owner) Sets the provenance hash, optionally locking it. /// @param _newProvenanceHash The new provenance hash. /// @param _lockForever Whether to lock this new provenance hash forever. function setProvenanceHash( bytes32 _newProvenanceHash, bool _lockForever ) external onlyOwner { if (provenanceIsLocked) revert ProvenanceHashAlreadyLocked(); provenanceHash = _newProvenanceHash; if (_lockForever) provenanceIsLocked = true; } /// @notice (only owner) Withdraws `_weiAmount` wei to the caller. /// @param _weiAmount The amount of ether (in wei) to withdraw. function withdraw( uint256 _weiAmount ) external onlyOwner { withdrawTo(_weiAmount, payable(_msgSender())); } /// @notice (only owner) Withdraws `_weiAmount` wei to `_to`. /// @param _weiAmount The amount of ether (in wei) to withdraw. /// @param _to The address to which to withdraw ether. function withdrawTo( uint256 _weiAmount, address payable _to ) public onlyOwner { (bool success, ) = _to.call{value: _weiAmount}(""); if (!success) revert FailedToWithdraw(); } /// @notice (only owner) Sets ERC-2981 royalties recipient and percentage. /// @param _recipient The address to which to send royalties. /// @param _value The royalties percentage (two decimals, e.g. 1000 = 10%). function setRoyalties( address _recipient, uint256 _value ) external onlyOwner { if(_value > MAX_ROYALTIES_PCT) revert ExceedsMaxRoyaltiesPercentage(); _setRoyalties( _recipient, _value ); } /// @notice Transfers multiple tokens from `_from` to `_to`. /// @param _from The address from which to transfer tokens. /// @param _to The address to which to transfer tokens. /// @param _tokenIDs An array of token IDs to transfer. function batchTransferFrom( address _from, address _to, uint256[] calldata _tokenIDs ) external { unchecked { for (uint256 i = 0; i < _tokenIDs.length; i++) { transferFrom(_from, _to, _tokenIDs[i]); } } } /// @notice Safely transfers multiple tokens from `_from` to `_to`. /// @param _from The address from which to transfer tokens. /// @param _to The address to which to transfer tokens. /// @param _tokenIDs An array of token IDs to transfer. function batchSafeTransferFrom( address _from, address _to, uint256[] calldata _tokenIDs, bytes calldata _data ) external { unchecked { for (uint256 i = 0; i < _tokenIDs.length; i++) { safeTransferFrom(_from, _to, _tokenIDs[i], _data); } } } /// @notice Determines whether `_account` owns all token IDs `_tokenIDs`. /// @param _account The account to be checked for token ownership. /// @param _tokenIDs An array of token IDs to be checked for ownership. /// @return True if `_account` owns all token IDs `_tokenIDs`, else false. function isOwnerOf( address _account, uint256[] calldata _tokenIDs ) external view returns (bool) { unchecked { for (uint256 i; i < _tokenIDs.length; ++i) { if (ownerOf(_tokenIDs[i]) != _account) return false; } } return true; } /// @notice Returns an array of all token IDs owned by `_owner`. /// @param _owner The address for which to return all owned token IDs. /// @return An array of all token IDs owned by `_owner`. function walletOfOwner( address _owner ) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) return new uint256[](0); uint256[] memory tokenIDs = new uint256[](tokenCount); unchecked { for (uint256 i; i < tokenCount; i++) { tokenIDs[i] = tokenOfOwnerByIndex(_owner, i); } } return tokenIDs; } /// @notice Checks if `_operator` can transfer tokens owned by `_owner`. /// @param _owner The address that may own tokens. /// @param _operator The address that may be able to transfer tokens of `_owner`. /// @return True if `_operator` can transfer tokens of `_owner`, else false. function isApprovedForAll( address _owner, address _operator ) public view override (ERC721, IERC721) returns (bool) { if (projectProxy[_operator]) return true; if (!userRevokedRegistryApproval[_owner]) { OpenSeaProxyRegistry registry = OpenSeaProxyRegistry(proxyRegistry); if (address(registry.proxies(_owner)) == _operator) return true; } return super.isApprovedForAll(_owner, _operator); } /// @notice Returns the token metadata URI for token ID `_tokenID`. /// @param _tokenID The token ID whose metadata URI should be returned. /// @return The metadata URI for token ID `_tokenID`. function tokenURI( uint256 _tokenID ) public view override returns (string memory) { if (!_exists(_tokenID)) revert TokenDoesNotExist(); if (!isRevealed) return baseURI; return string(abi.encodePacked(baseURI, Strings.toString(_tokenID), ".json")); } /// @inheritdoc ERC165 function supportsInterface( bytes4 _interfaceId ) public view override (ERC721Enumerable, ERC2981Base) returns (bool) { return super.supportsInterface(_interfaceId); } /// @notice Checks whether the merkle proof `_proof` is valid for `_sender`. /// @param _proof The merkle proof. /// @param _root The merkle root. /// @param _sender The sender address for which to validate the proof/root. /// @return True if the proof is valid for the sender/root, else false. function isValidMerkleProof( bytes32[] calldata _proof, bytes32 _root, address _sender ) public pure returns (bool) { bytes32 leaf; bytes20 addr = bytes20(_sender); assembly { mstore(0x00, addr) leaf := keccak256(0x00, 0x14) } return MerkleProof.verify( _proof, _root, leaf ); } /// @notice Mints internal token ID `_tokenID` to `_to`, emits actual token ID. /// @dev Must be a sequential mint starting at internal token ID 0. function _mint( address _to, uint256 _tokenID ) internal override { _owners.push(_to); emit Transfer(address(0), _to, _startingTokenID + _tokenID); } } /// Stub for OpenSea's per-user-address proxy contract. contract OwnableDelegateProxy {} /// Stub for OpenSea's proxy registry contract. contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; interface IGambitClubNFT { enum SaleState { Paused, // 0 Whitelist, // 1 Presale, // 2 Public // 3 } event SaleStateChanged( SaleState newSaleState ); error SalePhaseNotActive(); error InvalidMerkleProof(); error IncorrectPaymentAmount(); error ExceedsMintPhaseAllocation(); error ExceedsMaxSupply(); error ExceedsMaxMintPerTransaction(); error FailedToWithdraw(); error TokenDoesNotExist(); error AlreadyRevokedRegistryApproval(); error ExceedsMaxRoyaltiesPercentage(); error ProvenanceHashAlreadyLocked(); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex( uint256 index ) public view virtual override returns (uint256) { require( index < _owners.length, "ERC721Enumerable: global index out of bounds" ); return index + _startingTokenID; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex( address owner, uint256 index ) public view virtual override returns (uint256 tokenId) { require( index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds" ); uint count; unchecked { for (uint i; i < _owners.length; i++) { if (owner == _owners[i]) { if (count == index) return _startingTokenID + i; else count++; } } } revert("ERC721Enumerable: owner index out of bounds"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./ERC2981Base.sol"; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 /// @dev This implementation has the same royalties for each and every tokens abstract contract ERC2981ContractWideRoyalties is ERC2981Base { RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param _recipient recipient of the royalties /// @param _value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties( address _recipient, uint256 _value ) internal { // unneeded since the derived contract has a lower _value limit // require(_value <= 10000, "ERC2981Royalties: Too high"); _royalties = RoyaltyInfo(_recipient, uint24(_value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo( uint256, uint256 _value ) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (_value * royalties.amount) / 10000; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./IStuckTokens.sol"; import "./SafeERC20.sol"; import "../utils/Ownable.sol"; error ArrayLengthMismatch(); contract TokenRescuer is Ownable { using SafeERC20 for IStuckERC20; function rescueBatchERC20( address _token, address[] calldata _receivers, uint256[] calldata _amounts ) external onlyOwner { if (_receivers.length != _amounts.length) revert ArrayLengthMismatch(); unchecked { for (uint i; i < _receivers.length; i += 1) { _rescueERC20(_token, _receivers[i], _amounts[i]); } } } function rescueERC20( address _token, address _receiver, uint256 _amount ) external onlyOwner { _rescueERC20(_token, _receiver, _amount); } function rescueBatchERC721( address _token, address[] calldata _receivers, uint256[][] calldata _tokenIDs ) external onlyOwner { if (_receivers.length != _tokenIDs.length) revert ArrayLengthMismatch(); unchecked { for (uint i; i < _receivers.length; i += 1) { uint256[] memory tokenIDs = _tokenIDs[i]; for (uint j; j < tokenIDs.length; j += 1) { _rescueERC721(_token, _receivers[i], tokenIDs[j]); } } } } function rescueERC721( address _token, address _receiver, uint256 _tokenID ) external onlyOwner { _rescueERC721(_token, _receiver, _tokenID); } function _rescueERC20( address _token, address _receiver, uint256 _amount ) private { IStuckERC20(_token).safeTransfer(_receiver, _amount); } function _rescueERC721( address _token, address _receiver, uint256 _tokenID ) private { IStuckERC721(_token).safeTransferFrom( address(this), _receiver, _tokenID ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "../utils/Context.sol"; import "../utils/Address.sol"; abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; uint256 internal immutable _startingTokenID; // Mapping from token ID to owner address address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; 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_, uint256 startingTokenID_ ) { _name = name_; _symbol = symbol_; _startingTokenID = startingTokenID_; } function _internalTokenID( uint256 externalTokenID_ ) private view returns (uint256) { require( externalTokenID_ >= _startingTokenID, "ERC721: owner query for nonexistent token" ); unchecked { return externalTokenID_ - _startingTokenID; } } /** * @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 (uint) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count; for(uint i; i < _owners.length; ++i) { if(owner == _owners[i]) ++count; } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[_internalTokenID(tokenId)]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { if (tokenId < _startingTokenID) return false; uint256 internalID = _internalTokenID(tokenId); return internalID < _owners.length && _owners[internalID] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[_internalTokenID(tokenId)] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[_internalTokenID(tokenId)] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address /*from*/, address /*to*/, uint256 /*tokenId*/ ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; library Address { function isContract(address account) internal view returns (bool) { return account.code.length > 0; } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } 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"); } 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); } function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC2981Royalties.sol"; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Base is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty /// is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; interface IStuckERC20 { function transfer( address to, uint256 amount ) external returns (bool); } interface IStuckERC721 { function safeTransferFrom( address from, address to, uint256 tokenId ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "./IStuckTokens.sol"; import "./../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IStuckERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IStuckERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // Based on OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) // With renounceOwnership() removed pragma solidity ^0.8.12; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev 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); } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_startingTokenID","type":"uint256"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"},{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_presaleMerkleRoot","type":"bytes32"},{"internalType":"address","name":"_proxyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRevokedRegistryApproval","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"ExceedsMaxMintPerTransaction","type":"error"},{"inputs":[],"name":"ExceedsMaxRoyaltiesPercentage","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsMintPhaseAllocation","type":"error"},{"inputs":[],"name":"FailedToWithdraw","type":"error"},{"inputs":[],"name":"IncorrectPaymentAmount","type":"error"},{"inputs":[],"name":"InvalidMerkleProof","type":"error"},{"inputs":[],"name":"ProvenanceHashAlreadyLocked","type":"error"},{"inputs":[],"name":"SalePhaseNotActive","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"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":"enum IGambitClubNFT.SaleState","name":"newSaleState","type":"uint8"}],"name":"SaleStateChanged","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_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ROYALTIES_PCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isValidMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPromo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintWhitelist","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":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"rescueBatchERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[][]","name":"_tokenIDs","type":"uint256[][]"}],"name":"rescueBatchERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeRegistryApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum IGambitClubNFT.SaleState","name":"","type":"uint8"}],"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":"_newBaseURI","type":"string"},{"internalType":"bool","name":"_doReveal","type":"bool"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newProvenanceHash","type":"bytes32"},{"internalType":"bool","name":"_lockForever","type":"bool"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyRegistry","type":"address"}],"name":"setProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IGambitClubNFT.SaleState","name":"_newSaleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"}],"name":"toggleProjectProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRevokedRegistryApproval","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":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_weiAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_weiAmount","type":"uint256"},{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620047a6380380620047a68339810160408190526200003491620002ca565b88888882600090805190602001906200004f9291906200013a565b508151620000659060019060208501906200013a565b506080525062000077905033620000e8565b85516200008c9060089060208901906200013a565b508451620000a29060079060208801906200013a565b50600993909355600b91909155600c55600a80546001600160a01b039092166301000000026301000000600160b81b031990921691909117905550620003fa9350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014890620003bd565b90600052602060002090601f0160209004810192826200016c5760008555620001b7565b82601f106200018757805160ff1916838001178555620001b7565b82800160010185558215620001b7579182015b82811115620001b75782518255916020019190600101906200019a565b50620001c5929150620001c9565b5090565b5b80821115620001c55760008155600101620001ca565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020857600080fd5b81516001600160401b0380821115620002255762000225620001e0565b604051601f8301601f19908116603f01168101908282118183101715620002505762000250620001e0565b816040528381526020925086838588010111156200026d57600080fd5b600091505b8382101562000291578582018301518183018401529082019062000272565b83821115620002a35760008385830101525b9695505050505050565b80516001600160a01b0381168114620002c557600080fd5b919050565b60008060008060008060008060006101208a8c031215620002ea57600080fd5b89516001600160401b03808211156200030257600080fd5b620003108d838e01620001f6565b9a5060208c01519150808211156200032757600080fd5b620003358d838e01620001f6565b995060408c0151985060608c01519150808211156200035357600080fd5b620003618d838e01620001f6565b975060808c01519150808211156200037857600080fd5b50620003878c828d01620001f6565b95505060a08a0151935060c08a0151925060e08a01519150620003ae6101008b01620002ad565b90509295985092959850929598565b600181811c90821680620003d257607f821691505b60208210811415620003f457634e487b7160e01b600052602260045260246000fd5b50919050565b60805161436d62000439600039600081816111c40152818161159e015281816128ff01528181612a7201528181612d4a0152612de1015261436d6000f3fe6080604052600436106103a25760003560e01c80637df325e1116101e7578063b88d4fde1161010d578063e79433f5116100a0578063efd0cbf91161006f578063efd0cbf914610ac9578063f02678e914610adc578063f2fde38b14610afc578063f3993d1114610b1c57600080fd5b8063e79433f514610a5e578063e8a3d48514610a7e578063e985e9c514610a93578063ede9dddd14610ab357600080fd5b8063c6ab67a3116100dc578063c6ab67a3146109f3578063c86283c814610a09578063c87b56dd14610a29578063cfcf6d9114610a4957600080fd5b8063b88d4fde14610966578063bc660cac14610986578063bd32fb66146109b3578063c2abf329146109d357600080fd5b806395d89b4111610185578063adfdeef911610154578063adfdeef9146108df578063b2118a8d146108ff578063b50cbd9f1461091f578063b64b21ca1461094657600080fd5b806395d89b4114610864578063a22cb46514610879578063a9c68c6d14610899578063aa98e0c6146108c957600080fd5b80638d859f3e116101c15780638d859f3e146107f55780638da5cb5b146108115780638ecad7211461082f578063938e3d7b1461084457600080fd5b80637df325e11461079b578063857e087d146107bb5780638c7ea24b146107d557600080fd5b806344d84381116102cc5780635bab26e21161026a5780636352211e116102395780636352211e146107265780636c0360eb1461074657806370a082311461075b5780637312808b1461077b57600080fd5b80635bab26e2146106945780635c1ee1a2146106c45780635fbf0cd8146106d9578063603f4d52146106f957600080fd5b806351d3f610116102a657806351d3f6101461061557806354214f69146106355780635a4fee30146106545780635a67de071461067457600080fd5b806344d84381146105c25780634d44660c146105d55780634f6ccce7146105f557600080fd5b806323b872dd116103445780632f745c59116103135780632f745c591461053f57806332cb6b0c1461055f57806342842e0e14610575578063438b63001461059557600080fd5b806323b872dd146104a057806328d7b276146104c05780632a55205a146104e05780632e1a7d4d1461051f57600080fd5b8063095ea7b311610380578063095ea7b3146104365780630c0a6b5e1461045857806318160ddd1461046b57806322212e2b1461048a57600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613768565b610b3c565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b4d565b6040516103d391906137fb565b34801561040a57600080fd5b5061041e61041936600461380e565b610bdf565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b5061045661045136600461383c565b610c7d565b005b6104566104663660046138b4565b610daf565b34801561047757600080fd5b506002545b6040519081526020016103d3565b34801561049657600080fd5b5061047c600c5481565b3480156104ac57600080fd5b506104566104bb366004613900565b610f48565b3480156104cc57600080fd5b506104566104db36600461380e565b610fcf565b3480156104ec57600080fd5b506105006104fb366004613941565b61102e565b604080516001600160a01b0390931683526020830191909152016103d3565b34801561052b57600080fd5b5061045661053a36600461380e565b611094565b34801561054b57600080fd5b5061047c61055a36600461383c565b6110fb565b34801561056b57600080fd5b5061047c610c8081565b34801561058157600080fd5b50610456610590366004613900565b61126b565b3480156105a157600080fd5b506105b56105b0366004613963565b611286565b6040516103d39190613980565b6104566105d03660046139c4565b611335565b3480156105e157600080fd5b506103c76105f0366004613a06565b6114bb565b34801561060157600080fd5b5061047c61061036600461380e565b61151f565b34801561062157600080fd5b50610456610630366004613a50565b6115c3565b34801561064157600080fd5b50600a546103c790610100900460ff1681565b34801561066057600080fd5b5061045661066f366004613ac2565b611677565b34801561068057600080fd5b5061045661068f366004613b57565b6116ed565b3480156106a057600080fd5b506103c76106af366004613963565b600e6020526000908152604090205460ff1681565b3480156106d057600080fd5b5061047c600581565b3480156106e557600080fd5b506104566106f4366004613963565b6117c5565b34801561070557600080fd5b50600a546107199062010000900460ff1681565b6040516103d39190613ba7565b34801561073257600080fd5b5061041e61074136600461380e565b611848565b34801561075257600080fd5b506103f16118f0565b34801561076757600080fd5b5061047c610776366004613963565b61197e565b34801561078757600080fd5b50610456610796366004613be8565b611a5f565b3480156107a757600080fd5b506104566107b6366004613900565b611b4e565b3480156107c757600080fd5b50600a546103c79060ff1681565b3480156107e157600080fd5b506104566107f036600461383c565b611bb3565b34801561080157600080fd5b5061047c67011c37937e08000081565b34801561081d57600080fd5b506006546001600160a01b031661041e565b34801561083b57600080fd5b5061047c601981565b34801561085057600080fd5b5061045661085f366004613c6b565b611cba565b34801561087057600080fd5b506103f1611d20565b34801561088557600080fd5b50610456610894366004613ca1565b611d2f565b3480156108a557600080fd5b506103c76108b4366004613963565b600d6020526000908152604090205460ff1681565b3480156108d557600080fd5b5061047c600b5481565b3480156108eb57600080fd5b506104566108fa366004613963565b611df4565b34801561090b57600080fd5b5061045661091a366004613900565b611e8f565b34801561092b57600080fd5b50600a5461041e90630100000090046001600160a01b031681565b34801561095257600080fd5b50610456610961366004613ccf565b611ef4565b34801561097257600080fd5b50610456610981366004613d55565b611f94565b34801561099257600080fd5b5061047c6109a1366004613963565b600f6020526000908152604090205481565b3480156109bf57600080fd5b506104566109ce36600461380e565b61201c565b3480156109df57600080fd5b506103c76109ee366004613e53565b61207b565b3480156109ff57600080fd5b5061047c60095481565b348015610a1557600080fd5b50610456610a24366004613eb2565b6120a4565b348015610a3557600080fd5b506103f1610a4436600461380e565b61218b565b348015610a5557600080fd5b5061045661229f565b348015610a6a57600080fd5b50610456610a7936600461380e565b61230a565b348015610a8a57600080fd5b506103f16123c8565b348015610a9f57600080fd5b506103c7610aae366004613ed7565b6123d5565b348015610abf57600080fd5b5061047c6103e881565b610456610ad736600461380e565b6124fa565b348015610ae857600080fd5b50610456610af7366004613be8565b61262c565b348015610b0857600080fd5b50610456610b17366004613963565b612789565b348015610b2857600080fd5b50610456610b37366004613f05565b612868565b6000610b47826128a5565b92915050565b606060008054610b5c90613f6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8890613f6a565b8015610bd55780601f10610baa57610100808354040283529160200191610bd5565b820191906000526020600020905b815481529060010190602001808311610bb857829003601f168201915b5050505050905090565b6000610bea826128fb565b610c615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c8882611848565b9050806001600160a01b0316836001600160a01b03161415610d125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c58565b336001600160a01b0382161480610d2e5750610d2e81336123d5565b610da05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c58565b610daa8383612983565b505050565b600280600a5462010000900460ff166003811115610dcf57610dcf613b78565b14610e06576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e158383600c546109ee3390565b610e4b576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c808582011115610e8c576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e08000085023414610ecf576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f60205260409020805486019081905560051015610f20576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b85811015610f4057610f38335b828401612a09565b600101610f23565b505050505050565b610f523382612ad0565b610fc45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c58565b610daa838383612ba3565b6006546001600160a01b031633146110295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600c55565b604080518082019091526005546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff16602083018190529091600091612710906110809086613fed565b61108a9190614059565b9150509250929050565b6006546001600160a01b031633146110ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6110f881336120a4565b50565b60006111068361197e565b821061117a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c58565b6000805b6002548110156111fc576002818154811061119b5761119b61406d565b6000918252602090912001546001600160a01b03868116911614156111f457838214156111ed577f0000000000000000000000000000000000000000000000000000000000000000019150610b479050565b6001909101905b60010161117e565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c58565b610daa83838360405180602001604052806000815250611f94565b606060006112938361197e565b9050806112b45760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156112cf576112cf613d26565b6040519080825280602002602001820160405280156112f8578160200160208202803683370190505b50905060005b828110156112ac5761131085826110fb565b8282815181106113225761132261406d565b60209081029190910101526001016112fe565b600180600a5462010000900460ff16600381111561135557611355613b78565b1461138c576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61139b8383600b546109ee3390565b6113d1576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e0800003414611412576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f602052604090205415611459576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c80811415611498576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600f60205260409020600190556114b59082612a09565b50505050565b6000805b8281101561151257846001600160a01b03166114f28585848181106114e6576114e661406d565b90506020020135611848565b6001600160a01b03161461150a576000915050611518565b6001016114bf565b50600190505b9392505050565b60025460009082106115995760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c58565b610b477f00000000000000000000000000000000000000000000000000000000000000008361409c565b6006546001600160a01b0316331461161d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a5460ff161561165a576040517f7bbf047e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009829055801561167357600a805460ff191660011790555b5050565b60005b838110156116e4576116dc87878787858181106116995761169961406d565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f9492505050565b60010161167a565b50505050505050565b6006546001600160a01b031633146117475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000083600381111561178657611786613b78565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee1816040516117ba9190613ba7565b60405180910390a150565b6006546001600160a01b0316331461181f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6001600160a01b03166000908152600e60205260409020805460ff19811660ff90911615179055565b600080600261185684612d46565b815481106118665761186661406d565b6000918252602090912001546001600160a01b0316905080610b475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c58565b600780546118fd90613f6a565b80601f016020809104026020016040519081016040528092919081815260200182805461192990613f6a565b80156119765780601f1061194b57610100808354040283529160200191611976565b820191906000526020600020905b81548152906001019060200180831161195957829003601f168201915b505050505081565b60006001600160a01b0382166119fc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c58565b6000805b600254811015611a585760028181548110611a1d57611a1d61406d565b6000918252602090912001546001600160a01b0385811691161415611a4857611a45826140b4565b91505b611a51816140b4565b9050611a00565b5092915050565b6006546001600160a01b03163314611ab95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b828114611af2576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610f4057611b4686868684818110611b1357611b1361406d565b9050602002016020810190611b289190613963565b858585818110611b3a57611b3a61406d565b90506020020135612e05565b600101611af5565b6006546001600160a01b03163314611ba85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa838383612e19565b6006546001600160a01b03163314611c0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6103e8811115611c49576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600580547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6006546001600160a01b03163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa600883836136a1565b606060018054610b5c90613f6a565b6001600160a01b038216331415611d885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c58565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611e4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b6006546001600160a01b03163314611ee95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa838383612e05565b6006546001600160a01b03163314611f4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b611f5a600784846136a1565b50600a8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b611f9e3383612ad0565b6120105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c58565b6114b584848484612e96565b6006546001600160a01b031633146120765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600b55565b606081901b600081815260148120909161209787878785612f1f565b925050505b949350505050565b6006546001600160a01b031633146120fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6000816001600160a01b03168360405160006040518083038185875af1925050503d806000811461214b576040519150601f19603f3d011682016040523d82523d6000602084013e612150565b606091505b5050905080610daa576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060612196826128fb565b6121cc576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54610100900460ff1661226d57600780546121e890613f6a565b80601f016020809104026020016040519081016040528092919081815260200182805461221490613f6a565b80156122615780601f1061223657610100808354040283529160200191612261565b820191906000526020600020905b81548152906001019060200180831161224457829003601f168201915b50505050509050919050565b600761227883612f37565b604051602001612289929190614109565b6040516020818303038152906040529050919050565b336000908152600d602052604090205460ff161515600114156122ee576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600d60205260409020805460ff19166001179055565b6006546001600160a01b031633146123645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600254610c80612374838361409c565b11156123ac576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610daa576123c033610f30565b6001016123af565b600880546118fd90613f6a565b6001600160a01b0381166000908152600e602052604081205460ff16156123fe57506001610b47565b6001600160a01b0383166000908152600d602052604090205460ff166124cc57600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526301000000909204821691841690829063c455279190602401602060405180830381865afa15801561248d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b191906141f5565b6001600160a01b031614156124ca576001915050610b47565b505b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff16611518565b600380600a5462010000900460ff16600381111561251a5761251a613b78565b14612551576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601982111561258c576040517fba3a0a9b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c8083820111156125cd576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e08000083023414612610576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156114b55761262433610f30565b600101612613565b6006546001600160a01b031633146126865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b8281146126bf576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610f405760008383838181106126de576126de61406d565b90506020028101906126f09190614212565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b815181101561277f57612777888888868181106127435761274361406d565b90506020020160208101906127589190613963565b84848151811061276a5761276a61406d565b6020026020010151612e19565b600101612724565b50506001016126c2565b6006546001600160a01b031633146127e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6001600160a01b03811661285f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c58565b6110f881613069565b60005b8181101561289e57612896858585858581811061288a5761288a61406d565b90506020020135610f48565b60010161286b565b5050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610b475750610b47826130d3565b60007f000000000000000000000000000000000000000000000000000000000000000082101561292d57506000919050565b600061293883612d46565b60025490915081108015611518575060006001600160a01b0316600282815481106129655761296561406d565b6000918252602090912001546001600160a01b031614159392505050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906129d082611848565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416179055612a96817f000000000000000000000000000000000000000000000000000000000000000061409c565b6040516001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612adb826128fb565b612b4d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c58565b6000612b5883611848565b9050806001600160a01b0316846001600160a01b03161480612b935750836001600160a01b0316612b8884610bdf565b6001600160a01b0316145b8061209c575061209c81856123d5565b826001600160a01b0316612bb682611848565b6001600160a01b031614612c325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c58565b6001600160a01b038216612cad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c58565b612cb8600082612983565b816002612cc483612d46565b81548110612cd457612cd461406d565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60007f0000000000000000000000000000000000000000000000000000000000000000821015612dde5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c58565b507f0000000000000000000000000000000000000000000000000000000000000000900390565b610daa6001600160a01b0384168383613129565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b158015612e8257600080fd5b505af11580156116e4573d6000803e3d6000fd5b612ea1848484612ba3565b612ead848484846131a9565b6114b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c58565b600082612f2d868685613362565b1495945050505050565b606081612f7757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612fa15780612f8b816140b4565b9150612f9a9050600a83614059565b9150612f7b565b60008167ffffffffffffffff811115612fbc57612fbc613d26565b6040519080825280601f01601f191660200182016040528015612fe6576020820181803683370190505b5090505b841561209c57612ffb60018361427a565b9150613008600a86614291565b61301390603061409c565b60f81b8183815181106130285761302861406d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613062600a86614059565b9450612fea565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b475750610b47826133d5565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610daa9084906134b8565b60006001600160a01b0384163b1561335a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906132069033908990889088906004016142a5565b6020604051808303816000875af192505050801561325f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261325c918101906142e1565b60015b61330f573d80801561328d576040519150601f19603f3d011682016040523d82523d6000602084013e613292565b606091505b5080516133075760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c58565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061209c565b50600161209c565b600081815b848110156133cc5760008686838181106133835761338361406d565b9050602002013590508083116133a857600083815260208290526040902092506133b9565b600081815260208490526040902092505b50806133c4816140b4565b915050613367565b50949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061346857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b4757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b47565b600061350d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661359d9092919063ffffffff16565b805190915015610daa578080602001905181019061352b91906142fe565b610daa5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c58565b606061209c8484600085856001600160a01b0385163b6135ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c58565b600080866001600160a01b0316858760405161361b919061431b565b60006040518083038185875af1925050503d8060008114613658576040519150601f19603f3d011682016040523d82523d6000602084013e61365d565b606091505b509150915061209782828660608315613677575081611518565b8251156136875782518084602001fd5b8160405162461bcd60e51b8152600401610c5891906137fb565b8280546136ad90613f6a565b90600052602060002090601f0160209004810192826136cf5760008555613715565b82601f106136e85782800160ff19823516178555613715565b82800160010185558215613715579182015b828111156137155782358255916020019190600101906136fa565b50613721929150613725565b5090565b5b808211156137215760008155600101613726565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146110f857600080fd5b60006020828403121561377a57600080fd5b81356115188161373a565b60005b838110156137a0578181015183820152602001613788565b838111156114b55750506000910152565b600081518084526137c9816020860160208601613785565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061151860208301846137b1565b60006020828403121561382057600080fd5b5035919050565b6001600160a01b03811681146110f857600080fd5b6000806040838503121561384f57600080fd5b823561385a81613827565b946020939093013593505050565b60008083601f84011261387a57600080fd5b50813567ffffffffffffffff81111561389257600080fd5b6020830191508360208260051b85010111156138ad57600080fd5b9250929050565b6000806000604084860312156138c957600080fd5b83359250602084013567ffffffffffffffff8111156138e757600080fd5b6138f386828701613868565b9497909650939450505050565b60008060006060848603121561391557600080fd5b833561392081613827565b9250602084013561393081613827565b929592945050506040919091013590565b6000806040838503121561395457600080fd5b50508035926020909101359150565b60006020828403121561397557600080fd5b813561151881613827565b6020808252825182820181905260009190848201906040850190845b818110156139b85783518352928401929184019160010161399c565b50909695505050505050565b600080602083850312156139d757600080fd5b823567ffffffffffffffff8111156139ee57600080fd5b6139fa85828601613868565b90969095509350505050565b600080600060408486031215613a1b57600080fd5b8335613a2681613827565b9250602084013567ffffffffffffffff8111156138e757600080fd5b80151581146110f857600080fd5b60008060408385031215613a6357600080fd5b823591506020830135613a7581613a42565b809150509250929050565b60008083601f840112613a9257600080fd5b50813567ffffffffffffffff811115613aaa57600080fd5b6020830191508360208285010111156138ad57600080fd5b60008060008060008060808789031215613adb57600080fd5b8635613ae681613827565b95506020870135613af681613827565b9450604087013567ffffffffffffffff80821115613b1357600080fd5b613b1f8a838b01613868565b90965094506060890135915080821115613b3857600080fd5b50613b4589828a01613a80565b979a9699509497509295939492505050565b600060208284031215613b6957600080fd5b81356004811061151857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613be2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600080600060608688031215613c0057600080fd5b8535613c0b81613827565b9450602086013567ffffffffffffffff80821115613c2857600080fd5b613c3489838a01613868565b90965094506040880135915080821115613c4d57600080fd5b50613c5a88828901613868565b969995985093965092949392505050565b60008060208385031215613c7e57600080fd5b823567ffffffffffffffff811115613c9557600080fd5b6139fa85828601613a80565b60008060408385031215613cb457600080fd5b8235613cbf81613827565b91506020830135613a7581613a42565b600080600060408486031215613ce457600080fd5b833567ffffffffffffffff811115613cfb57600080fd5b613d0786828701613a80565b9094509250506020840135613d1b81613a42565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613d6b57600080fd5b8435613d7681613827565b93506020850135613d8681613827565b925060408501359150606085013567ffffffffffffffff80821115613daa57600080fd5b818701915087601f830112613dbe57600080fd5b813581811115613dd057613dd0613d26565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613e1657613e16613d26565b816040528281528a6020848701011115613e2f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613e6957600080fd5b843567ffffffffffffffff811115613e8057600080fd5b613e8c87828801613868565b909550935050602085013591506040850135613ea781613827565b939692955090935050565b60008060408385031215613ec557600080fd5b823591506020830135613a7581613827565b60008060408385031215613eea57600080fd5b8235613ef581613827565b91506020830135613a7581613827565b60008060008060608587031215613f1b57600080fd5b8435613f2681613827565b93506020850135613f3681613827565b9250604085013567ffffffffffffffff811115613f5257600080fd5b613f5e87828801613868565b95989497509550505050565b600181811c90821680613f7e57607f821691505b60208210811415613fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561402557614025613fbe565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826140685761406861402a565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082198211156140af576140af613fbe565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140e6576140e6613fbe565b5060010190565b600081516140ff818560208601613785565b9290920192915050565b600080845481600182811c91508083168061412557607f831692505b602080841082141561415e577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156141725760018114614183576141b0565b60ff198616895284890196506141b0565b60008b81526020902060005b868110156141a85781548b82015290850190830161418f565b505084890196505b5050505050506141ec6141c382866140ed565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561420757600080fd5b815161151881613827565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261424757600080fd5b83018035915067ffffffffffffffff82111561426257600080fd5b6020019150600581901b36038213156138ad57600080fd5b60008282101561428c5761428c613fbe565b500390565b6000826142a0576142a061402a565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142d760808301846137b1565b9695505050505050565b6000602082840312156142f357600080fd5b81516115188161373a565b60006020828403121561431057600080fd5b815161151881613a42565b6000825161432d818460208701613785565b919091019291505056fea26469706673582212201b5afd67571526b900bf2676d142780ea42e7ebc36cec1998f3aa4ab0e103a0264736f6c634300080c003300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200394de20747a8aed2338fc3952428806ca8d7df08885fb689689bfcf76588e91cea7f80fdefa7b7e31d3c73aed4582eef8eae3fa99224ce1e86c773a63958ea195b3652e048ebbb3c3da40d2af0f20d3a85bb6b92eeedf8651100a62bc8a02596000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000f5468652047616d62697420436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6337687a4e47695a763354766b39756b576f417964574b4c6347593455767a73794e377755765a437031486a00000000000000000000000000000000000000000000000000000000000000000000000000000000000045697066733a2f2f516d6463527047534e466b59465948794c546866644631363962314168324a4773506678767a64504831457233362f756e72657665616c65642e6a736f6e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103a25760003560e01c80637df325e1116101e7578063b88d4fde1161010d578063e79433f5116100a0578063efd0cbf91161006f578063efd0cbf914610ac9578063f02678e914610adc578063f2fde38b14610afc578063f3993d1114610b1c57600080fd5b8063e79433f514610a5e578063e8a3d48514610a7e578063e985e9c514610a93578063ede9dddd14610ab357600080fd5b8063c6ab67a3116100dc578063c6ab67a3146109f3578063c86283c814610a09578063c87b56dd14610a29578063cfcf6d9114610a4957600080fd5b8063b88d4fde14610966578063bc660cac14610986578063bd32fb66146109b3578063c2abf329146109d357600080fd5b806395d89b4111610185578063adfdeef911610154578063adfdeef9146108df578063b2118a8d146108ff578063b50cbd9f1461091f578063b64b21ca1461094657600080fd5b806395d89b4114610864578063a22cb46514610879578063a9c68c6d14610899578063aa98e0c6146108c957600080fd5b80638d859f3e116101c15780638d859f3e146107f55780638da5cb5b146108115780638ecad7211461082f578063938e3d7b1461084457600080fd5b80637df325e11461079b578063857e087d146107bb5780638c7ea24b146107d557600080fd5b806344d84381116102cc5780635bab26e21161026a5780636352211e116102395780636352211e146107265780636c0360eb1461074657806370a082311461075b5780637312808b1461077b57600080fd5b80635bab26e2146106945780635c1ee1a2146106c45780635fbf0cd8146106d9578063603f4d52146106f957600080fd5b806351d3f610116102a657806351d3f6101461061557806354214f69146106355780635a4fee30146106545780635a67de071461067457600080fd5b806344d84381146105c25780634d44660c146105d55780634f6ccce7146105f557600080fd5b806323b872dd116103445780632f745c59116103135780632f745c591461053f57806332cb6b0c1461055f57806342842e0e14610575578063438b63001461059557600080fd5b806323b872dd146104a057806328d7b276146104c05780632a55205a146104e05780632e1a7d4d1461051f57600080fd5b8063095ea7b311610380578063095ea7b3146104365780630c0a6b5e1461045857806318160ddd1461046b57806322212e2b1461048a57600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613768565b610b3c565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b4d565b6040516103d391906137fb565b34801561040a57600080fd5b5061041e61041936600461380e565b610bdf565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b5061045661045136600461383c565b610c7d565b005b6104566104663660046138b4565b610daf565b34801561047757600080fd5b506002545b6040519081526020016103d3565b34801561049657600080fd5b5061047c600c5481565b3480156104ac57600080fd5b506104566104bb366004613900565b610f48565b3480156104cc57600080fd5b506104566104db36600461380e565b610fcf565b3480156104ec57600080fd5b506105006104fb366004613941565b61102e565b604080516001600160a01b0390931683526020830191909152016103d3565b34801561052b57600080fd5b5061045661053a36600461380e565b611094565b34801561054b57600080fd5b5061047c61055a36600461383c565b6110fb565b34801561056b57600080fd5b5061047c610c8081565b34801561058157600080fd5b50610456610590366004613900565b61126b565b3480156105a157600080fd5b506105b56105b0366004613963565b611286565b6040516103d39190613980565b6104566105d03660046139c4565b611335565b3480156105e157600080fd5b506103c76105f0366004613a06565b6114bb565b34801561060157600080fd5b5061047c61061036600461380e565b61151f565b34801561062157600080fd5b50610456610630366004613a50565b6115c3565b34801561064157600080fd5b50600a546103c790610100900460ff1681565b34801561066057600080fd5b5061045661066f366004613ac2565b611677565b34801561068057600080fd5b5061045661068f366004613b57565b6116ed565b3480156106a057600080fd5b506103c76106af366004613963565b600e6020526000908152604090205460ff1681565b3480156106d057600080fd5b5061047c600581565b3480156106e557600080fd5b506104566106f4366004613963565b6117c5565b34801561070557600080fd5b50600a546107199062010000900460ff1681565b6040516103d39190613ba7565b34801561073257600080fd5b5061041e61074136600461380e565b611848565b34801561075257600080fd5b506103f16118f0565b34801561076757600080fd5b5061047c610776366004613963565b61197e565b34801561078757600080fd5b50610456610796366004613be8565b611a5f565b3480156107a757600080fd5b506104566107b6366004613900565b611b4e565b3480156107c757600080fd5b50600a546103c79060ff1681565b3480156107e157600080fd5b506104566107f036600461383c565b611bb3565b34801561080157600080fd5b5061047c67011c37937e08000081565b34801561081d57600080fd5b506006546001600160a01b031661041e565b34801561083b57600080fd5b5061047c601981565b34801561085057600080fd5b5061045661085f366004613c6b565b611cba565b34801561087057600080fd5b506103f1611d20565b34801561088557600080fd5b50610456610894366004613ca1565b611d2f565b3480156108a557600080fd5b506103c76108b4366004613963565b600d6020526000908152604090205460ff1681565b3480156108d557600080fd5b5061047c600b5481565b3480156108eb57600080fd5b506104566108fa366004613963565b611df4565b34801561090b57600080fd5b5061045661091a366004613900565b611e8f565b34801561092b57600080fd5b50600a5461041e90630100000090046001600160a01b031681565b34801561095257600080fd5b50610456610961366004613ccf565b611ef4565b34801561097257600080fd5b50610456610981366004613d55565b611f94565b34801561099257600080fd5b5061047c6109a1366004613963565b600f6020526000908152604090205481565b3480156109bf57600080fd5b506104566109ce36600461380e565b61201c565b3480156109df57600080fd5b506103c76109ee366004613e53565b61207b565b3480156109ff57600080fd5b5061047c60095481565b348015610a1557600080fd5b50610456610a24366004613eb2565b6120a4565b348015610a3557600080fd5b506103f1610a4436600461380e565b61218b565b348015610a5557600080fd5b5061045661229f565b348015610a6a57600080fd5b50610456610a7936600461380e565b61230a565b348015610a8a57600080fd5b506103f16123c8565b348015610a9f57600080fd5b506103c7610aae366004613ed7565b6123d5565b348015610abf57600080fd5b5061047c6103e881565b610456610ad736600461380e565b6124fa565b348015610ae857600080fd5b50610456610af7366004613be8565b61262c565b348015610b0857600080fd5b50610456610b17366004613963565b612789565b348015610b2857600080fd5b50610456610b37366004613f05565b612868565b6000610b47826128a5565b92915050565b606060008054610b5c90613f6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8890613f6a565b8015610bd55780601f10610baa57610100808354040283529160200191610bd5565b820191906000526020600020905b815481529060010190602001808311610bb857829003601f168201915b5050505050905090565b6000610bea826128fb565b610c615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c8882611848565b9050806001600160a01b0316836001600160a01b03161415610d125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c58565b336001600160a01b0382161480610d2e5750610d2e81336123d5565b610da05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c58565b610daa8383612983565b505050565b600280600a5462010000900460ff166003811115610dcf57610dcf613b78565b14610e06576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e158383600c546109ee3390565b610e4b576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c808582011115610e8c576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e08000085023414610ecf576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f60205260409020805486019081905560051015610f20576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b85811015610f4057610f38335b828401612a09565b600101610f23565b505050505050565b610f523382612ad0565b610fc45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c58565b610daa838383612ba3565b6006546001600160a01b031633146110295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600c55565b604080518082019091526005546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff16602083018190529091600091612710906110809086613fed565b61108a9190614059565b9150509250929050565b6006546001600160a01b031633146110ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6110f881336120a4565b50565b60006111068361197e565b821061117a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c58565b6000805b6002548110156111fc576002818154811061119b5761119b61406d565b6000918252602090912001546001600160a01b03868116911614156111f457838214156111ed577f0000000000000000000000000000000000000000000000000000000000000001019150610b479050565b6001909101905b60010161117e565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c58565b610daa83838360405180602001604052806000815250611f94565b606060006112938361197e565b9050806112b45760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156112cf576112cf613d26565b6040519080825280602002602001820160405280156112f8578160200160208202803683370190505b50905060005b828110156112ac5761131085826110fb565b8282815181106113225761132261406d565b60209081029190910101526001016112fe565b600180600a5462010000900460ff16600381111561135557611355613b78565b1461138c576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61139b8383600b546109ee3390565b6113d1576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e0800003414611412576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f602052604090205415611459576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c80811415611498576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600f60205260409020600190556114b59082612a09565b50505050565b6000805b8281101561151257846001600160a01b03166114f28585848181106114e6576114e661406d565b90506020020135611848565b6001600160a01b03161461150a576000915050611518565b6001016114bf565b50600190505b9392505050565b60025460009082106115995760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c58565b610b477f00000000000000000000000000000000000000000000000000000000000000018361409c565b6006546001600160a01b0316331461161d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a5460ff161561165a576040517f7bbf047e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009829055801561167357600a805460ff191660011790555b5050565b60005b838110156116e4576116dc87878787858181106116995761169961406d565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f9492505050565b60010161167a565b50505050505050565b6006546001600160a01b031633146117475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000083600381111561178657611786613b78565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee1816040516117ba9190613ba7565b60405180910390a150565b6006546001600160a01b0316331461181f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6001600160a01b03166000908152600e60205260409020805460ff19811660ff90911615179055565b600080600261185684612d46565b815481106118665761186661406d565b6000918252602090912001546001600160a01b0316905080610b475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c58565b600780546118fd90613f6a565b80601f016020809104026020016040519081016040528092919081815260200182805461192990613f6a565b80156119765780601f1061194b57610100808354040283529160200191611976565b820191906000526020600020905b81548152906001019060200180831161195957829003601f168201915b505050505081565b60006001600160a01b0382166119fc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c58565b6000805b600254811015611a585760028181548110611a1d57611a1d61406d565b6000918252602090912001546001600160a01b0385811691161415611a4857611a45826140b4565b91505b611a51816140b4565b9050611a00565b5092915050565b6006546001600160a01b03163314611ab95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b828114611af2576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610f4057611b4686868684818110611b1357611b1361406d565b9050602002016020810190611b289190613963565b858585818110611b3a57611b3a61406d565b90506020020135612e05565b600101611af5565b6006546001600160a01b03163314611ba85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa838383612e19565b6006546001600160a01b03163314611c0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6103e8811115611c49576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600580547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6006546001600160a01b03163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa600883836136a1565b606060018054610b5c90613f6a565b6001600160a01b038216331415611d885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c58565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611e4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600a80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b6006546001600160a01b03163314611ee95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b610daa838383612e05565b6006546001600160a01b03163314611f4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b611f5a600784846136a1565b50600a8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b611f9e3383612ad0565b6120105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c58565b6114b584848484612e96565b6006546001600160a01b031633146120765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600b55565b606081901b600081815260148120909161209787878785612f1f565b925050505b949350505050565b6006546001600160a01b031633146120fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6000816001600160a01b03168360405160006040518083038185875af1925050503d806000811461214b576040519150601f19603f3d011682016040523d82523d6000602084013e612150565b606091505b5050905080610daa576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060612196826128fb565b6121cc576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54610100900460ff1661226d57600780546121e890613f6a565b80601f016020809104026020016040519081016040528092919081815260200182805461221490613f6a565b80156122615780601f1061223657610100808354040283529160200191612261565b820191906000526020600020905b81548152906001019060200180831161224457829003601f168201915b50505050509050919050565b600761227883612f37565b604051602001612289929190614109565b6040516020818303038152906040529050919050565b336000908152600d602052604090205460ff161515600114156122ee576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600d60205260409020805460ff19166001179055565b6006546001600160a01b031633146123645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b600254610c80612374838361409c565b11156123ac576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610daa576123c033610f30565b6001016123af565b600880546118fd90613f6a565b6001600160a01b0381166000908152600e602052604081205460ff16156123fe57506001610b47565b6001600160a01b0383166000908152600d602052604090205460ff166124cc57600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526301000000909204821691841690829063c455279190602401602060405180830381865afa15801561248d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b191906141f5565b6001600160a01b031614156124ca576001915050610b47565b505b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff16611518565b600380600a5462010000900460ff16600381111561251a5761251a613b78565b14612551576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601982111561258c576040517fba3a0a9b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254610c8083820111156125cd576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67011c37937e08000083023414612610576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156114b55761262433610f30565b600101612613565b6006546001600160a01b031633146126865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b8281146126bf576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610f405760008383838181106126de576126de61406d565b90506020028101906126f09190614212565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b815181101561277f57612777888888868181106127435761274361406d565b90506020020160208101906127589190613963565b84848151811061276a5761276a61406d565b6020026020010151612e19565b600101612724565b50506001016126c2565b6006546001600160a01b031633146127e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c58565b6001600160a01b03811661285f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c58565b6110f881613069565b60005b8181101561289e57612896858585858581811061288a5761288a61406d565b90506020020135610f48565b60010161286b565b5050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610b475750610b47826130d3565b60007f000000000000000000000000000000000000000000000000000000000000000182101561292d57506000919050565b600061293883612d46565b60025490915081108015611518575060006001600160a01b0316600282815481106129655761296561406d565b6000918252602090912001546001600160a01b031614159392505050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906129d082611848565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416179055612a96817f000000000000000000000000000000000000000000000000000000000000000161409c565b6040516001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612adb826128fb565b612b4d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c58565b6000612b5883611848565b9050806001600160a01b0316846001600160a01b03161480612b935750836001600160a01b0316612b8884610bdf565b6001600160a01b0316145b8061209c575061209c81856123d5565b826001600160a01b0316612bb682611848565b6001600160a01b031614612c325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c58565b6001600160a01b038216612cad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c58565b612cb8600082612983565b816002612cc483612d46565b81548110612cd457612cd461406d565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60007f0000000000000000000000000000000000000000000000000000000000000001821015612dde5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c58565b507f0000000000000000000000000000000000000000000000000000000000000001900390565b610daa6001600160a01b0384168383613129565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b158015612e8257600080fd5b505af11580156116e4573d6000803e3d6000fd5b612ea1848484612ba3565b612ead848484846131a9565b6114b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c58565b600082612f2d868685613362565b1495945050505050565b606081612f7757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612fa15780612f8b816140b4565b9150612f9a9050600a83614059565b9150612f7b565b60008167ffffffffffffffff811115612fbc57612fbc613d26565b6040519080825280601f01601f191660200182016040528015612fe6576020820181803683370190505b5090505b841561209c57612ffb60018361427a565b9150613008600a86614291565b61301390603061409c565b60f81b8183815181106130285761302861406d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613062600a86614059565b9450612fea565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b475750610b47826133d5565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610daa9084906134b8565b60006001600160a01b0384163b1561335a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906132069033908990889088906004016142a5565b6020604051808303816000875af192505050801561325f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261325c918101906142e1565b60015b61330f573d80801561328d576040519150601f19603f3d011682016040523d82523d6000602084013e613292565b606091505b5080516133075760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c58565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061209c565b50600161209c565b600081815b848110156133cc5760008686838181106133835761338361406d565b9050602002013590508083116133a857600083815260208290526040902092506133b9565b600081815260208490526040902092505b50806133c4816140b4565b915050613367565b50949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061346857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b4757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b47565b600061350d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661359d9092919063ffffffff16565b805190915015610daa578080602001905181019061352b91906142fe565b610daa5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c58565b606061209c8484600085856001600160a01b0385163b6135ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c58565b600080866001600160a01b0316858760405161361b919061431b565b60006040518083038185875af1925050503d8060008114613658576040519150601f19603f3d011682016040523d82523d6000602084013e61365d565b606091505b509150915061209782828660608315613677575081611518565b8251156136875782518084602001fd5b8160405162461bcd60e51b8152600401610c5891906137fb565b8280546136ad90613f6a565b90600052602060002090601f0160209004810192826136cf5760008555613715565b82601f106136e85782800160ff19823516178555613715565b82800160010185558215613715579182015b828111156137155782358255916020019190600101906136fa565b50613721929150613725565b5090565b5b808211156137215760008155600101613726565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146110f857600080fd5b60006020828403121561377a57600080fd5b81356115188161373a565b60005b838110156137a0578181015183820152602001613788565b838111156114b55750506000910152565b600081518084526137c9816020860160208601613785565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061151860208301846137b1565b60006020828403121561382057600080fd5b5035919050565b6001600160a01b03811681146110f857600080fd5b6000806040838503121561384f57600080fd5b823561385a81613827565b946020939093013593505050565b60008083601f84011261387a57600080fd5b50813567ffffffffffffffff81111561389257600080fd5b6020830191508360208260051b85010111156138ad57600080fd5b9250929050565b6000806000604084860312156138c957600080fd5b83359250602084013567ffffffffffffffff8111156138e757600080fd5b6138f386828701613868565b9497909650939450505050565b60008060006060848603121561391557600080fd5b833561392081613827565b9250602084013561393081613827565b929592945050506040919091013590565b6000806040838503121561395457600080fd5b50508035926020909101359150565b60006020828403121561397557600080fd5b813561151881613827565b6020808252825182820181905260009190848201906040850190845b818110156139b85783518352928401929184019160010161399c565b50909695505050505050565b600080602083850312156139d757600080fd5b823567ffffffffffffffff8111156139ee57600080fd5b6139fa85828601613868565b90969095509350505050565b600080600060408486031215613a1b57600080fd5b8335613a2681613827565b9250602084013567ffffffffffffffff8111156138e757600080fd5b80151581146110f857600080fd5b60008060408385031215613a6357600080fd5b823591506020830135613a7581613a42565b809150509250929050565b60008083601f840112613a9257600080fd5b50813567ffffffffffffffff811115613aaa57600080fd5b6020830191508360208285010111156138ad57600080fd5b60008060008060008060808789031215613adb57600080fd5b8635613ae681613827565b95506020870135613af681613827565b9450604087013567ffffffffffffffff80821115613b1357600080fd5b613b1f8a838b01613868565b90965094506060890135915080821115613b3857600080fd5b50613b4589828a01613a80565b979a9699509497509295939492505050565b600060208284031215613b6957600080fd5b81356004811061151857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613be2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600080600060608688031215613c0057600080fd5b8535613c0b81613827565b9450602086013567ffffffffffffffff80821115613c2857600080fd5b613c3489838a01613868565b90965094506040880135915080821115613c4d57600080fd5b50613c5a88828901613868565b969995985093965092949392505050565b60008060208385031215613c7e57600080fd5b823567ffffffffffffffff811115613c9557600080fd5b6139fa85828601613a80565b60008060408385031215613cb457600080fd5b8235613cbf81613827565b91506020830135613a7581613a42565b600080600060408486031215613ce457600080fd5b833567ffffffffffffffff811115613cfb57600080fd5b613d0786828701613a80565b9094509250506020840135613d1b81613a42565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613d6b57600080fd5b8435613d7681613827565b93506020850135613d8681613827565b925060408501359150606085013567ffffffffffffffff80821115613daa57600080fd5b818701915087601f830112613dbe57600080fd5b813581811115613dd057613dd0613d26565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613e1657613e16613d26565b816040528281528a6020848701011115613e2f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613e6957600080fd5b843567ffffffffffffffff811115613e8057600080fd5b613e8c87828801613868565b909550935050602085013591506040850135613ea781613827565b939692955090935050565b60008060408385031215613ec557600080fd5b823591506020830135613a7581613827565b60008060408385031215613eea57600080fd5b8235613ef581613827565b91506020830135613a7581613827565b60008060008060608587031215613f1b57600080fd5b8435613f2681613827565b93506020850135613f3681613827565b9250604085013567ffffffffffffffff811115613f5257600080fd5b613f5e87828801613868565b95989497509550505050565b600181811c90821680613f7e57607f821691505b60208210811415613fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561402557614025613fbe565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826140685761406861402a565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082198211156140af576140af613fbe565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140e6576140e6613fbe565b5060010190565b600081516140ff818560208601613785565b9290920192915050565b600080845481600182811c91508083168061412557607f831692505b602080841082141561415e577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156141725760018114614183576141b0565b60ff198616895284890196506141b0565b60008b81526020902060005b868110156141a85781548b82015290850190830161418f565b505084890196505b5050505050506141ec6141c382866140ed565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561420757600080fd5b815161151881613827565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261424757600080fd5b83018035915067ffffffffffffffff82111561426257600080fd5b6020019150600581901b36038213156138ad57600080fd5b60008282101561428c5761428c613fbe565b500390565b6000826142a0576142a061402a565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142d760808301846137b1565b9695505050505050565b6000602082840312156142f357600080fd5b81516115188161373a565b60006020828403121561431057600080fd5b815161151881613a42565b6000825161432d818460208701613785565b919091019291505056fea26469706673582212201b5afd67571526b900bf2676d142780ea42e7ebc36cec1998f3aa4ab0e103a0264736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200394de20747a8aed2338fc3952428806ca8d7df08885fb689689bfcf76588e91cea7f80fdefa7b7e31d3c73aed4582eef8eae3fa99224ce1e86c773a63958ea195b3652e048ebbb3c3da40d2af0f20d3a85bb6b92eeedf8651100a62bc8a02596000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000f5468652047616d62697420436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6337687a4e47695a763354766b39756b576f417964574b4c6347593455767a73794e377755765a437031486a00000000000000000000000000000000000000000000000000000000000000000000000000000000000045697066733a2f2f516d6463527047534e466b59465948794c546866644631363962314168324a4773506678767a64504831457233362f756e72657665616c65642e6a736f6e000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): The Gambit Club
Arg [1] : _symbol (string): TGC
Arg [2] : _startingTokenID (uint256): 1
Arg [3] : _contractURI (string): ipfs://Qmc7hzNGiZv3Tvk9ukWoAydWKLcGY4UvzsyN7wUvZCp1Hj
Arg [4] : _baseURI (string): ipfs://QmdcRpGSNFkYFYHyLThfdF169b1Ah2JGsPfxvzdPH1Er36/unrevealed.json
Arg [5] : _provenanceHash (bytes32): 0x394de20747a8aed2338fc3952428806ca8d7df08885fb689689bfcf76588e91c
Arg [6] : _whitelistMerkleRoot (bytes32): 0xea7f80fdefa7b7e31d3c73aed4582eef8eae3fa99224ce1e86c773a63958ea19
Arg [7] : _presaleMerkleRoot (bytes32): 0x5b3652e048ebbb3c3da40d2af0f20d3a85bb6b92eeedf8651100a62bc8a02596
Arg [8] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 394de20747a8aed2338fc3952428806ca8d7df08885fb689689bfcf76588e91c
Arg [6] : ea7f80fdefa7b7e31d3c73aed4582eef8eae3fa99224ce1e86c773a63958ea19
Arg [7] : 5b3652e048ebbb3c3da40d2af0f20d3a85bb6b92eeedf8651100a62bc8a02596
Arg [8] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [10] : 5468652047616d62697420436c75620000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 5447430000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [14] : 697066733a2f2f516d6337687a4e47695a763354766b39756b576f417964574b
Arg [15] : 4c6347593455767a73794e377755765a437031486a0000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [17] : 697066733a2f2f516d6463527047534e466b59465948794c5468666446313639
Arg [18] : 62314168324a4773506678767a64504831457233362f756e72657665616c6564
Arg [19] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
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.