ERC-721
NFT
Overview
Max Total Supply
3,000 GRD
Holders
191
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
42 GRDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
token
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; import "../token/LockableRevealERC721EnumerableToken.sol"; contract token is LockableRevealERC721EnumerableToken { constructor() LockableRevealERC721EnumerableToken( 1, // _projectID 9000, // _maxSupply "Girls, Robots, Dragons", // _name "GRD", // _symbol "https://ether-cards.mypinata.cloud/ipfs/QmSFpNVrszpEHpHRJVJnCzKcyr5fsK48KZ9kC5Qz3bjNMx", // _tokenPreRevealURI "https://metadata.grd.fan/", // _tokenRevealURI false, // _transferLocked 300, // _reservedSupply 300, // _giveawaySupply "https://metadata.grd.fan/api/contract" // contractURI ) { } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; import "./IToken.sol"; import "../interfaces/IRegistryConsumer.sol"; import "../interfaces/IRandomNumberProvider.sol"; import "../interfaces/IRandomNumberRequester.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract LockableRevealERC721EnumerableToken is IToken, ERC721Enumerable, Ownable { using Strings for uint256; IRegistryConsumer immutable public TheRegistry = IRegistryConsumer(0x1e8150050A7a4715aad42b905C08df76883f396F); string constant public REGISTRY_KEY_RANDOM_CONTRACT = "RANDOMV1"; uint256 immutable public projectID; uint256 immutable public maxSupply; uint256 public mintedSupply; // minted incrementally uint256 public mintedReserve; uint256 immutable public reservedSupply; // includes giveaway supply uint256 immutable public giveawaySupply; string public tokenPreRevealURI; string public tokenRevealURI; bool public transferLocked; bool public lastRevealRequested; mapping (address => bool) public permitted; mapping(uint16 => revealStruct) public reveals; string public revealURI; uint16 public currentRevealCount; string public contractURI; event Allowed(address, bool); event Locked(bool); event RandomProcessed(uint256 stage, uint256 randNumber, uint256 _shiftsBy, uint256 _start, uint256 _end); event ContractURIset(string contractURI); constructor( uint256 _projectID, uint256 _maxSupply, string memory _name, string memory _symbol, string memory _tokenPreRevealURI, string memory _tokenRevealURI, bool _transferLocked, uint256 _reservedSupply, uint256 _giveawaySupply, string memory _contractURI ) ERC721(_name, _symbol) { projectID = _projectID; tokenPreRevealURI = _tokenPreRevealURI; tokenRevealURI = _tokenRevealURI; maxSupply = _maxSupply; transferLocked = _transferLocked; reservedSupply = _reservedSupply; giveawaySupply = _giveawaySupply; contractURI = _contractURI; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. */ function _beforeTokenTransfer( address from, address to, uint256 _tokenId ) internal override { require(!transferLocked, "Token: Transfers are not enabled"); super._beforeTokenTransfer(from, to, _tokenId); } /** * @dev Sale: mint cards. */ function mintIncrementalCards(uint256 numberOfCards, address recipient) external onlyAllowed { require(!lastRevealRequested, "Token: Cannot mint after last reveal"); require(mintedSupply + numberOfCards <= maxSupply - reservedSupply, "Token: This would exceed the number of cards available"); for (uint j = 0; j < numberOfCards; j++) { _mint(recipient, ++mintedSupply); } } /** * @dev Admin: mint reserved cards. * Should only mint reserved AFTER the sale is over. */ function mintReservedCards(uint256 numberOfCards, address recipient) external onlyAllowed { require(lastRevealRequested, "Token: Last reveal must be requested first"); require(mintedReserve + numberOfCards <= reservedSupply - giveawaySupply, "Token: This would exceed the number of cards reserved cards available"); for (uint j = 0; j < numberOfCards; j++) { _mint(recipient, mintedSupply+ ++mintedReserve); } } /** * @dev DropRegistry util */ function getFirstGiveawayCardId() public view returns (uint256) { return mintedSupply + reservedSupply - giveawaySupply + 1; } /** * @dev OpenSea will refuse to display tokens that never had a "Transfer" event. * To get around this, we can call this method * * Notes: * ** Does not increase collection supply ( that only happens when we actually mint ) * ** Listing has no owner * * Will most likely never get used. */ function OpenSeaHackForGiveawayCards(uint256 _start, uint256 _count) external onlyAllowed { require(lastRevealRequested, "Token: Last reveal must be requested first"); require(mintedReserve == reservedSupply - giveawaySupply, "Token: Must mint reserved cards first"); uint256 firstIndex = getFirstGiveawayCardId(); uint256 lastIndex = firstIndex + giveawaySupply; require( _start >= firstIndex, "Token: _start must be higher or equal to firstIndex" ); require( _start + _count <= lastIndex, "Token: _end must be lower or equal to lastIndex" ); for(uint256 i = _start; i < _start + _count; i++) { emit Transfer(address(0), address(this), i); } } /** * @dev DropRegistry: mint specific giveaway card. * Can only mint after reserve has been minted. */ function mintGiveawayCard(uint256 _index, address _recipient) external onlyAllowed { require(lastRevealRequested, "Token: Last reveal must be requested first"); require(mintedReserve == reservedSupply - giveawaySupply, "Token: Must mint reserved cards first"); uint256 firstIndex = getFirstGiveawayCardId(); require( _index >= firstIndex && _index < firstIndex + giveawaySupply, "Token: Card id not in range"); _mint(_recipient, _index); } /** * @dev Admin: set PreRevealURI */ function setPreRevealURI(string calldata _tokenPreRevealURI) external onlyAllowed { tokenPreRevealURI = _tokenPreRevealURI; } /** * @dev Admin: set RevealURI */ function setRevealURI(string calldata _tokenRevealURI) external onlyAllowed { tokenRevealURI = _tokenRevealURI; } /** * @dev Admin: reveal tokens starting at prev range end to current supply */ function revealAtCurrentSupply() public onlyAllowed { require(!lastRevealRequested, "Token: Last reveal already requested"); require(reveals[currentRevealCount].RANGE_END < mintedSupply, "Token: Reveal request already exists"); revealStruct storage currentReveal = reveals[++currentRevealCount]; currentReveal.RANGE_END = mintedSupply; currentReveal.REQUEST_ID = IRandomNumberProvider(TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT)).requestRandomNumberWithCallback(); } /** * @dev Admin: reveal tokens starting at prev range end to max supply */ function lastReveal() public onlyAllowed { require(!lastRevealRequested, "Token: Last reveal already requested"); require(reveals[currentRevealCount].RANGE_END < maxSupply, "Token: Reveal request already exists"); lastRevealRequested = true; revealStruct storage currentReveal = reveals[++currentRevealCount]; currentReveal.RANGE_END = mintedSupply + reservedSupply; currentReveal.REQUEST_ID = IRandomNumberProvider(TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT)).requestRandomNumberWithCallback(); } /** * @dev Chainlink VRF callback */ function process(uint256 _random, bytes32 _requestId) external { require(msg.sender == TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT), "Token: process() Unauthorised caller"); revealStruct storage currentReveal = reveals[currentRevealCount]; if(currentReveal.REQUEST_ID == _requestId) { currentReveal.RANDOM_NUM = _random / 2; // Set msb to zero currentReveal.RANGE_START = reveals[currentRevealCount-1].RANGE_END; currentReveal.SHIFT = currentReveal.RANDOM_NUM % ( currentReveal.RANGE_END - currentReveal.RANGE_START ); // in the very rare case where the shifting result is 0, do it again but divide by 3 if(currentReveal.SHIFT == 0) { currentReveal.RANDOM_NUM = currentReveal.RANDOM_NUM / 3; currentReveal.SHIFT = currentReveal.RANDOM_NUM % ( currentReveal.RANGE_END - currentReveal.RANGE_START ); } emit RandomProcessed( currentRevealCount, currentReveal.RANDOM_NUM, currentReveal.SHIFT, currentReveal.RANGE_START, currentReveal.RANGE_END ); } else revert("Token: Incorrect requestId received"); } function findRevealRangeForN(uint256 n) public view returns (uint16) { for(uint16 i = 1; i <= currentRevealCount; i++) { if(n <= reveals[i].RANGE_END) { return i; } } return 0; } function uri(uint256 n) public view returns (uint256) { uint16 rangeId = findRevealRangeForN(n); // outside ranges if(rangeId == 0) { return n; } revealStruct memory currentReveal = reveals[rangeId]; uint256 shiftedN = n + currentReveal.SHIFT; if (shiftedN <= currentReveal.RANGE_END) { return shiftedN; } return currentReveal.RANGE_START + shiftedN - currentReveal.RANGE_END; } /** * @dev Reserved are always at the end of current minted */ function _reserved(uint256 _tokenId) public view returns (bool) { if(_tokenId > mintedSupply + mintedReserve && _tokenId <= mintedSupply + reservedSupply) { return true; } return false; } /** * @dev Get metadata server url for tokenId */ function tokenURI(uint256 _tokenId) public view override(IToken, ERC721) returns (string memory) { require(_exists(_tokenId) || _reserved(_tokenId), 'Token: Token does not exist'); uint16 rangeId = findRevealRangeForN(_tokenId); // outside ranges if(rangeId == 0) { return tokenPreRevealURI; } revealStruct memory currentReveal = reveals[rangeId]; // if random number was not set, return pre reveal // TODO: most likely remove this.. as we never get here.. we're already outside range if(currentReveal.RANDOM_NUM == 0) { return tokenPreRevealURI; } uint256 newTokenId = uri(_tokenId); string memory folder = (newTokenId % 100).toString(); string memory file = newTokenId.toString(); string memory slash = "/"; return string(abi.encodePacked(tokenRevealURI, folder, slash, file)); } /** * @dev Admin: Lock / Unlock transfers */ function setTransferLock(bool _locked) external onlyAllowed { transferLocked = _locked; emit Locked(_locked); } /** * @dev Admin: Allow / Dissalow addresses */ function setAllowed(address _addr, bool _state) external onlyOwner { permitted[_addr] = _state; emit Allowed(_addr, _state); } function isAllowed(address _addr) public view returns(bool) { return permitted[_addr] || _addr == owner(); } modifier onlyAllowed() { require(isAllowed(msg.sender), "Token: Unauthorised"); _; } function tellEverything() external view returns (TokenInfo memory) { revealStruct[] memory _reveals = new revealStruct[](currentRevealCount); for(uint16 i = 1; i <= currentRevealCount; i++) { _reveals[i - 1] = reveals[i]; } return TokenInfo( name(), symbol(), projectID, maxSupply, mintedSupply, mintedReserve, reservedSupply, giveawaySupply, tokenPreRevealURI, tokenRevealURI, transferLocked, lastRevealRequested, totalSupply(), _reveals ); } function getTokenInfoForSale() external view returns (TokenInfoForSale memory) { return TokenInfoForSale( projectID, maxSupply, reservedSupply ); } function setContractURI(string memory _contractURI) external onlyAllowed { contractURI = _contractURI; emit ContractURIset(_contractURI); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; struct revealStruct { bytes32 REQUEST_ID; uint256 RANDOM_NUM; uint256 SHIFT; uint256 RANGE_START; uint256 RANGE_END; } struct TokenInfoForSale { uint256 _projectID; uint256 _maxSupply; uint256 _reservedSupply; } struct TokenInfo { string _name; string _symbol; uint256 _projectID; uint256 _maxSupply; uint256 _mintedSupply; uint256 _mintedReserve; uint256 _reservedSupply; uint256 _giveawaySupply; string _tokenPreRevealURI; string _tokenRevealURI; bool _transferLocked; bool _lastRevealRequested; uint256 _totalSupply; revealStruct[] _reveals; } interface IToken { function mintIncrementalCards(uint256, address) external; function mintReservedCards(uint256, address) external; function mintGiveawayCard(uint256, address) external; function setPreRevealURI(string calldata) external; function setRevealURI(string calldata) external; function revealAtCurrentSupply() external; function lastReveal() external; function process(uint256, bytes32) external; function uri(uint256) external view returns (uint256); function tokenURI(uint256) external view returns (string memory); function setTransferLock(bool) external; function setAllowed(address, bool) external; function isAllowed(address) external view returns(bool); function getFirstGiveawayCardId() external view returns (uint256); function tellEverything() external view returns (TokenInfo memory); function getTokenInfoForSale() external view returns (TokenInfoForSale memory); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; interface IRegistryConsumer { function getRegistryAddress(string memory key) external view returns (address) ; function getRegistryBool(string memory key) external view returns (bool); function getRegistryUINT(string memory key) external view returns (uint256) ; function getRegistryString(string memory key) external view returns (string memory) ; function isAdmin(address user) external view returns (bool) ; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; interface IRandomNumberProvider { function requestRandomNumber() external returns (bytes32 requestId); function requestRandomNumberWithCallback() external returns (bytes32); function isRequestComplete(bytes32 requestId) external view returns (bool isCompleted); function randomNumber(bytes32 requestId) external view returns (uint256 randomNum); function setAuth(address user, bool grant) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; interface IRandomNumberRequester { function process(uint256 rand, bytes32 requestId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"Allowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractURIset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"Locked","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":"uint256","name":"stage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"randNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_shiftsBy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"}],"name":"RandomProcessed","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":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"OpenSeaHackForGiveawayCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"REGISTRY_KEY_RANDOM_CONTRACT","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TheRegistry","outputs":[{"internalType":"contract IRegistryConsumer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_reserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRevealCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"findRevealRangeForN","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFirstGiveawayCardId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenInfoForSale","outputs":[{"components":[{"internalType":"uint256","name":"_projectID","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_reservedSupply","type":"uint256"}],"internalType":"struct TokenInfoForSale","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveawaySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRevealRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"mintGiveawayCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintIncrementalCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintReservedCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"permitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_random","type":"uint256"},{"internalType":"bytes32","name":"_requestId","type":"bytes32"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"projectID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealAtCurrentSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"reveals","outputs":[{"internalType":"bytes32","name":"REQUEST_ID","type":"bytes32"},{"internalType":"uint256","name":"RANDOM_NUM","type":"uint256"},{"internalType":"uint256","name":"SHIFT","type":"uint256"},{"internalType":"uint256","name":"RANGE_START","type":"uint256"},{"internalType":"uint256","name":"RANGE_END","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenPreRevealURI","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenRevealURI","type":"string"}],"name":"setRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setTransferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tellEverything","outputs":[{"components":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_projectID","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintedSupply","type":"uint256"},{"internalType":"uint256","name":"_mintedReserve","type":"uint256"},{"internalType":"uint256","name":"_reservedSupply","type":"uint256"},{"internalType":"uint256","name":"_giveawaySupply","type":"uint256"},{"internalType":"string","name":"_tokenPreRevealURI","type":"string"},{"internalType":"string","name":"_tokenRevealURI","type":"string"},{"internalType":"bool","name":"_transferLocked","type":"bool"},{"internalType":"bool","name":"_lastRevealRequested","type":"bool"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"components":[{"internalType":"bytes32","name":"REQUEST_ID","type":"bytes32"},{"internalType":"uint256","name":"RANDOM_NUM","type":"uint256"},{"internalType":"uint256","name":"SHIFT","type":"uint256"},{"internalType":"uint256","name":"RANGE_START","type":"uint256"},{"internalType":"uint256","name":"RANGE_END","type":"uint256"}],"internalType":"struct revealStruct[]","name":"_reveals","type":"tuple[]"}],"internalType":"struct TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPreRevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenRevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"transferLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"uri","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
610120604052731e8150050a7a4715aad42b905c08df76883f396f6080523480156200002a57600080fd5b5060016123286040518060400160405280601681526020017f4769726c732c20526f626f74732c20447261676f6e73000000000000000000008152506040518060400160405280600381526020016211d49160ea1b815250604051806080016040528060568152602001620040da605691396040518060400160405280601981526020017f68747470733a2f2f6d657461646174612e6772642e66616e2f00000000000000815250600061012c80604051806060016040528060258152602001620040b5602591398751889088906200010b90600090602085019062000209565b5080516200012190600190602084019062000209565b5050506200013e62000138620001b360201b60201c565b620001b7565b60a08a905285516200015890600d90602089019062000209565b5084516200016e90600e90602088019062000209565b5060c0899052600f805460ff191685151517905560e08390526101008290528051620001a290601490602084019062000209565b5050505050505050505050620002eb565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021790620002af565b90600052602060002090601f0160209004810192826200023b576000855562000286565b82601f106200025657805160ff191683800117855562000286565b8280016001018555821562000286579182015b828111156200028657825182559160200191906001019062000269565b506200029492915062000298565b5090565b5b8082111562000294576000815560010162000299565b600181811c90821680620002c457607f821691505b602082108103620002e557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051613cd6620003df6000396000818161079701528181610f24015281816113fb01528181611f5a01528181611fd2015281816121820152818161220301526123830152600081816104c201528181610c3001528181610efe0152818161141c0152818161168701528181611a1601528181611f7b015281816121a3015281816122fe01526123a401526000818161074901528181610ec8015281816116a80152818161197c01526122d801526000818161066701528181610ea201526122b20152600081816107700152818161116701528181611a7f015261257f0152613cd66000f3fe608060405234801561001057600080fd5b506004361061035d5760003560e01c806377d4b504116101d3578063bff3561811610104578063e288e733116100a2578063e94193251161007c578063e9419325146107eb578063e985e9c5146107fe578063ea9d68241461083a578063f2fde38b1461084257600080fd5b8063e288e73314610792578063e7713baa146107b9578063e8a3d485146107e357600080fd5b8063cd158260116100de578063cd1582601461071e578063d255fe0314610731578063d5abeb0114610744578063db7394481461076b57600080fd5b8063bff35618146106ef578063c1bd8cf914610702578063c87b56dd1461070b57600080fd5b80639c30ea5111610171578063afa88e551161014b578063afa88e55146106af578063b88d4fde146106c1578063babcc539146106d4578063bcc0f725146106e757600080fd5b80639c30ea5114610662578063a22cb46514610689578063a811a37b1461069c57600080fd5b8063938e3d7b116101ad578063938e3d7b146105da57806395d89b41146105ed5780639871d6fa146105f557806398f5b238146105fd57600080fd5b806377d4b504146105955780637f72f036146105b65780638da5cb5b146105c957600080fd5b80632f151b76116102ad5780634cf292581161024b57806369b2b9a71161022557806369b2b9a7146105445780636cc301e31461055757806370a082311461057a578063715018a61461058d57600080fd5b80634cf29258146104f75780634f6ccce71461051e5780636352211e1461053157600080fd5b806342842e0e1161028757806342842e0e146104a2578063432e2006146104b557806344d19d2b146104bd5780634697f05d146104e457600080fd5b80632f151b76146104675780632f745c591461047c5780633d64ac9b1461048f57600080fd5b806310d51dd91161031a57806318160ddd116102f457806318160ddd146104265780631f4bc79d1461042e57806323b872dd146104415780632a85db551461045457600080fd5b806310d51dd91461040957806312686aae14610411578063160fba561461041e57600080fd5b806301ffc9a7146103625780630677ef811461038a57806306fdde03146103a1578063081812fc146103b6578063095ea7b3146103e15780630e89341c146103f6575b600080fd5b61037561037036600461324c565b610855565b60405190151581526020015b60405180910390f35b610393600c5481565b604051908152602001610381565b6103a9610880565b60405161038191906132c8565b6103c96103c43660046132db565b610912565b6040516001600160a01b039091168152602001610381565b6103f46103ef366004613309565b6109ac565b005b6103936104043660046132db565b610ac1565b6103a9610b78565b600f546103759060ff1681565b6103a9610c06565b600854610393565b61037561043c3660046132db565b610c13565b6103f461044f366004613335565b610c75565b6103f4610462366004613376565b610ca6565b61046f610cd7565b604051610381919061344d565b61039361048a366004613309565b61109d565b6103f461049d366004613567565b611133565b6103f46104b0366004613335565b6113dc565b6103936113f7565b6103937f000000000000000000000000000000000000000000000000000000000000000081565b6103f46104f236600461359e565b611462565b6103a96040518060400160405280600881526020016752414e444f4d563160c01b81525081565b61039361052c3660046132db565b6114ef565b6103c961053f3660046132db565b611582565b6103f46105523660046135d3565b6115f9565b610375610565366004613603565b60106020526000908152604090205460ff1681565b610393610588366004613603565b611781565b6103f4611808565b6013546105a39061ffff1681565b60405161ffff9091168152602001610381565b6105a36105c43660046132db565b61183e565b600a546001600160a01b03166103c9565b6103f46105e83660046136ac565b611892565b6103a9611905565b6103f4611914565b61063a61060b3660046136f5565b601160205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610381565b6103937f000000000000000000000000000000000000000000000000000000000000000081565b6103f461069736600461359e565b611b5a565b6103f46106aa366004613376565b611b69565b600f5461037590610100900460ff1681565b6103f46106cf366004613719565b611b9a565b6103756106e2366004613603565b611bd2565b6103a9611c09565b6103f46106fd366004613799565b611c16565b610393600b5481565b6103a96107193660046132db565b611c7c565b6103f461072c366004613567565b611f09565b6103f461073f3660046135d3565b612131565b6103937f000000000000000000000000000000000000000000000000000000000000000081565b6103c97f000000000000000000000000000000000000000000000000000000000000000081565b6103937f000000000000000000000000000000000000000000000000000000000000000081565b6107c1612281565b6040805182518152602080840151908201529181015190820152606001610381565b6103a9612325565b6103f46107f93660046135d3565b612332565b61037561080c3660046137b4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103f461249f565b6103f4610850366004613603565b6125e9565b60006001600160e01b0319821663780e9d6360e01b148061087a575061087a82612684565b92915050565b60606000805461088f906137e2565b80601f01602080910402602001604051908101604052809291908181526020018280546108bb906137e2565b80156109085780601f106108dd57610100808354040283529160200191610908565b820191906000526020600020905b8154815290600101906020018083116108eb57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109b782611582565b9050806001600160a01b0316836001600160a01b031603610a245760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610987565b336001600160a01b0382161480610a405750610a40813361080c565b610ab25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610987565b610abc83836126d4565b505050565b600080610acd8361183e565b90508061ffff16600003610ae2575090919050565b61ffff81166000908152601160209081526040808320815160a08101835281548152600182015493810193909352600281015491830182905260038101546060840152600401546080830152909190610b3b9086613832565b905081608001518111610b5057949350505050565b8160800151818360600151610b659190613832565b610b6f919061384a565b95945050505050565b600e8054610b85906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb1906137e2565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b505050505081565b60128054610b85906137e2565b6000600c54600b54610c259190613832565b82118015610c6057507f0000000000000000000000000000000000000000000000000000000000000000600b54610c5c9190613832565b8211155b15610c6d57506001919050565b506000919050565b610c7f3382612742565b610c9b5760405162461bcd60e51b815260040161098790613861565b610abc838383612839565b610caf33611bd2565b610ccb5760405162461bcd60e51b8152600401610987906138b2565b610abc600d8383613129565b610d4d604051806101c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160001515815260200160001515815260200160008152602001606081525090565b60135460009061ffff1667ffffffffffffffff811115610d6f57610d6f613620565b604051908082528060200260200182016040528015610dd557816020015b610dc26040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b815260200190600190039081610d8d5790505b50905060015b60135461ffff90811690821611610e795761ffff8116600090815260116020908152604091829020825160a0810184528154815260018083015493820193909352600282015493810193909352600381015460608401526004015460808301528390610e4790846138df565b61ffff1681518110610e5b57610e5b613902565b60200260200101819052508080610e7190613918565b915050610ddb565b50604051806101c00160405280610e8e610880565b8152602001610e9b611905565b81526020017f000000000000000000000000000000000000000000000000000000000000000081526020017f00000000000000000000000000000000000000000000000000000000000000008152602001600b548152602001600c5481526020017f000000000000000000000000000000000000000000000000000000000000000081526020017f00000000000000000000000000000000000000000000000000000000000000008152602001600d8054610f55906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f81906137e2565b8015610fce5780601f10610fa357610100808354040283529160200191610fce565b820191906000526020600020905b815481529060010190602001808311610fb157829003601f168201915b50505050508152602001600e8054610fe5906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611011906137e2565b801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b5050509183525050600f5460ff80821615156020840152610100909104161515604082015260600161108f60085490565b815260200191909152919050565b60006110a883611781565b821061110a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610987565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b604080518082018252600881526752414e444f4d563160c01b60208201529051631d2e660b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916374b9982c9161119b91906004016132c8565b602060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dc9190613939565b6001600160a01b0316336001600160a01b0316146112485760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2070726f63657373282920556e617574686f7269736564206361604482015263363632b960e11b6064820152608401610987565b60135461ffff16600090815260116020526040902080548290036113885761127160028461396c565b600180830191909155601354601191600091611291919061ffff166138df565b61ffff168152602081019190915260400160002060049081015460038301819055908201546112c0919061384a565b81600101546112cf9190613980565b6002820181905560000361131c57600381600101546112ee919061396c565b600182015560038101546004820154611307919061384a565b81600101546113169190613980565b60028201555b60135460018201546002830154600384015460048501546040805161ffff909616865260208601949094528484019290925260608401526080830152517f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39181900360a00190a1505050565b60405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20496e636f7272656374207265717565737449642072656365696044820152621d995960ea1b6064820152608401610987565b610abc83838360405180602001604052806000815250611b9a565b60007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600b546114489190613832565b611452919061384a565b61145d906001613832565b905090565b600a546001600160a01b0316331461148c5760405162461bcd60e51b815260040161098790613994565b6001600160a01b038216600081815260106020908152604091829020805460ff19168515159081179091558251938452908301527f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb910160405180910390a15050565b60006114fa60085490565b821061155d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610987565b6008828154811061157057611570613902565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061087a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610987565b61160233611bd2565b61161e5760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156116825760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2043616e6e6f74206d696e74206166746572206c6173742072656044820152631d99585b60e21b6064820152608401610987565b6116cc7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061384a565b82600b546116da9190613832565b11156117475760405162461bcd60e51b815260206004820152603660248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d604482015275626572206f6620636172647320617661696c61626c6560501b6064820152608401610987565b60005b82811015610abc5761176f82600b60008154611765906139c9565b91829055506129e0565b80611779816139c9565b91505061174a565b60006001600160a01b0382166117ec5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610987565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146118325760405162461bcd60e51b815260040161098790613994565b61183c6000612b2e565b565b600060015b60135461ffff908116908216116118895761ffff811660009081526011602052604090206004015483116118775792915050565b8061188181613918565b915050611843565b50600092915050565b61189b33611bd2565b6118b75760405162461bcd60e51b8152600401610987906138b2565b80516118ca9060149060208401906131ad565b507f74c497646a57fa0eeedc14ff6eec2da957c18c9c77881fe1aff368249b52b5c1816040516118fa91906132c8565b60405180910390a150565b60606001805461088f906137e2565b61191d33611bd2565b6119395760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156119615760405162461bcd60e51b8152600401610987906139e2565b60135461ffff166000908152601160205260409020600401547f0000000000000000000000000000000000000000000000000000000000000000116119b85760405162461bcd60e51b815260040161098790613a26565b600f805461ff0019166101001790556013805460009160119183919082906119e39061ffff16613918565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff16815260200190815260200160002090507f0000000000000000000000000000000000000000000000000000000000000000600b54611a429190613832565b600480830191909155604080518082018252600881526752414e444f4d563160c01b60208201529051631d2e660b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926374b9982c92611ab2929091016132c8565b602060405180830381865afa158015611acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af39190613939565b6001600160a01b031663c532bbac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b569190613a6a565b9055565b611b65338383612b80565b5050565b611b7233611bd2565b611b8e5760405162461bcd60e51b8152600401610987906138b2565b610abc600e8383613129565b611ba43383612742565b611bc05760405162461bcd60e51b815260040161098790613861565b611bcc84848484612c4e565b50505050565b6001600160a01b03811660009081526010602052604081205460ff168061087a575050600a546001600160a01b0391821691161490565b600d8054610b85906137e2565b611c1f33611bd2565b611c3b5760405162461bcd60e51b8152600401610987906138b2565b600f805460ff19168215159081179091556040519081527fe3f0ec9c4af57e69d5aeff78a5912ca25733e4458710bab2b55d0985e98aeb5e906020016118fa565b6000818152600260205260409020546060906001600160a01b0316151580611ca85750611ca882610c13565b611cf45760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a20546f6b656e20646f6573206e6f7420657869737400000000006044820152606401610987565b6000611cff8361183e565b90508061ffff16600003611da057600d8054611d1a906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d46906137e2565b8015611d935780601f10611d6857610100808354040283529160200191611d93565b820191906000526020600020905b815481529060010190602001808311611d7657829003601f168201915b5050505050915050919050565b61ffff81166000908152601160209081526040808320815160a081018352815481526001820154938101849052600282015492810192909252600381015460608301526004015460808201529103611e8657600d8054611dff906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b906137e2565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b505050505092505050919050565b6000611e9185610ac1565b90506000611ea8611ea3606484613980565b612c81565b90506000611eb583612c81565b90506000604051806040016040528060018152602001602f60f81b8152509050600e838284604051602001611eed9493929190613a9f565b6040516020818303038152906040529650505050505050919050565b611f1233611bd2565b611f2e5760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16611f555760405162461bcd60e51b815260040161098790613b59565b611f9f7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061384a565b600c5414611fbf5760405162461bcd60e51b815260040161098790613ba3565b6000611fc96113f7565b90506000611ff77f000000000000000000000000000000000000000000000000000000000000000083613832565b9050818410156120655760405162461bcd60e51b815260206004820152603360248201527f546f6b656e3a205f7374617274206d75737420626520686967686572206f72206044820152720cae2eac2d840e8de40ccd2e4e6e892dcc8caf606b1b6064820152608401610987565b806120708486613832565b11156120d65760405162461bcd60e51b815260206004820152602f60248201527f546f6b656e3a205f656e64206d757374206265206c6f776572206f722065717560448201526e0c2d840e8de40d8c2e6e892dcc8caf608b1b6064820152608401610987565b835b6120e28486613832565b81101561212a57604051819030906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612122816139c9565b9150506120d8565b5050505050565b61213a33611bd2565b6121565760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff1661217d5760405162461bcd60e51b815260040161098790613b59565b6121c77f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061384a565b600c54146121e75760405162461bcd60e51b815260040161098790613ba3565b60006121f16113f7565b905080831015801561222b57506122287f000000000000000000000000000000000000000000000000000000000000000082613832565b83105b6122775760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a2043617264206964206e6f7420696e2072616e676500000000006044820152606401610987565b610abc82846129e0565b6122a560405180606001604052806000815260200160008152602001600081525090565b60405180606001604052807f000000000000000000000000000000000000000000000000000000000000000081526020017f000000000000000000000000000000000000000000000000000000000000000081526020017f0000000000000000000000000000000000000000000000000000000000000000815250905090565b60148054610b85906137e2565b61233b33611bd2565b6123575760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff1661237e5760405162461bcd60e51b815260040161098790613b59565b6123c87f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061384a565b82600c546123d69190613832565b11156124585760405162461bcd60e51b815260206004820152604560248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d60448201527f626572206f6620636172647320726573657276656420636172647320617661696064820152646c61626c6560d81b608482015260a401610987565b60005b82811015610abc5761248d82600c60008154612476906139c9565b9182905550600b546124889190613832565b6129e0565b80612497816139c9565b91505061245b565b6124a833611bd2565b6124c45760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156124ec5760405162461bcd60e51b8152600401610987906139e2565b600b5460135461ffff16600090815260116020526040902060040154106125255760405162461bcd60e51b815260040161098790613a26565b6013805460009160119183919082906125419061ffff16613918565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff1681526020019081526020016000209050600b5481600401819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374b9982c6040518060400160405280600881526020016752414e444f4d563160c01b8152506040518263ffffffff1660e01b8152600401611ab291906132c8565b600a546001600160a01b031633146126135760405162461bcd60e51b815260040161098790613994565b6001600160a01b0381166126785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610987565b61268181612b2e565b50565b60006001600160e01b031982166380ac58cd60e01b14806126b557506001600160e01b03198216635b5e139f60e01b145b8061087a57506301ffc9a760e01b6001600160e01b031983161461087a565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061270982611582565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166127bb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610987565b60006127c683611582565b9050806001600160a01b0316846001600160a01b0316148061280d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806128315750836001600160a01b031661282684610912565b6001600160a01b0316145b949350505050565b826001600160a01b031661284c82611582565b6001600160a01b0316146128b05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610987565b6001600160a01b0382166129125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610987565b61291d838383612d82565b6129286000826126d4565b6001600160a01b038316600090815260036020526040812080546001929061295190849061384a565b90915550506001600160a01b038216600090815260036020526040812080546001929061297f908490613832565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216612a365760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610987565b6000818152600260205260409020546001600160a01b031615612a9b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610987565b612aa760008383612d82565b6001600160a01b0382166000908152600360205260408120805460019290612ad0908490613832565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612be15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610987565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c59848484612839565b612c6584848484612de0565b611bcc5760405162461bcd60e51b815260040161098790613be8565b606081600003612ca85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612cd25780612cbc816139c9565b9150612ccb9050600a8361396c565b9150612cac565b60008167ffffffffffffffff811115612ced57612ced613620565b6040519080825280601f01601f191660200182016040528015612d17576020820181803683370190505b5090505b841561283157612d2c60018361384a565b9150612d39600a86613980565b612d44906030613832565b60f81b818381518110612d5957612d59613902565b60200101906001600160f81b031916908160001a905350612d7b600a8661396c565b9450612d1b565b600f5460ff1615612dd55760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a205472616e736665727320617265206e6f7420656e61626c65646044820152606401610987565b610abc838383612ee1565b60006001600160a01b0384163b15612ed657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e24903390899088908890600401613c3a565b6020604051808303816000875af1925050508015612e5f575060408051601f3d908101601f19168201909252612e5c91810190613c6d565b60015b612ebc573d808015612e8d576040519150601f19603f3d011682016040523d82523d6000602084013e612e92565b606091505b508051600003612eb45760405162461bcd60e51b815260040161098790613be8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612831565b506001949350505050565b6001600160a01b038316612f3c57612f3781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f5f565b816001600160a01b0316836001600160a01b031614612f5f57612f5f8382612f99565b6001600160a01b038216612f7657610abc81613036565b826001600160a01b0316826001600160a01b031614610abc57610abc82826130e5565b60006001612fa684611781565b612fb0919061384a565b600083815260076020526040902054909150808214613003576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130489060019061384a565b6000838152600960205260408120546008805493945090928490811061307057613070613902565b90600052602060002001549050806008838154811061309157613091613902565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130c9576130c9613c8a565b6001900381819060005260206000200160009055905550505050565b60006130f083611781565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613135906137e2565b90600052602060002090601f016020900481019282613157576000855561319d565b82601f106131705782800160ff1982351617855561319d565b8280016001018555821561319d579182015b8281111561319d578235825591602001919060010190613182565b506131a9929150613221565b5090565b8280546131b9906137e2565b90600052602060002090601f0160209004810192826131db576000855561319d565b82601f106131f457805160ff191683800117855561319d565b8280016001018555821561319d579182015b8281111561319d578251825591602001919060010190613206565b5b808211156131a95760008155600101613222565b6001600160e01b03198116811461268157600080fd5b60006020828403121561325e57600080fd5b813561326981613236565b9392505050565b60005b8381101561328b578181015183820152602001613273565b83811115611bcc5750506000910152565b600081518084526132b4816020860160208601613270565b601f01601f19169290920160200192915050565b602081526000613269602083018461329c565b6000602082840312156132ed57600080fd5b5035919050565b6001600160a01b038116811461268157600080fd5b6000806040838503121561331c57600080fd5b8235613327816132f4565b946020939093013593505050565b60008060006060848603121561334a57600080fd5b8335613355816132f4565b92506020840135613365816132f4565b929592945050506040919091013590565b6000806020838503121561338957600080fd5b823567ffffffffffffffff808211156133a157600080fd5b818501915085601f8301126133b557600080fd5b8135818111156133c457600080fd5b8660208285010111156133d657600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b8381101561344257815180518852838101518489015260408082015190890152606080820151908901526080908101519088015260a090960195908201906001016133fc565b509495945050505050565b60208152600082516101c080602085015261346c6101e085018361329c565b91506020850151601f198086850301604087015261348a848361329c565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c087015160e087015260e087015191506101008281880152808801519250506101208187860301818801526134ea858461329c565b945080880151925050610140818786030181880152613509858461329c565b9450808801519250506101606135228188018415159052565b87015191506101806135378782018415159052565b8701516101a08781019190915287015186850390910183870152905061355d83826133e8565b9695505050505050565b6000806040838503121561357a57600080fd5b50508035926020909101359150565b8035801515811461359957600080fd5b919050565b600080604083850312156135b157600080fd5b82356135bc816132f4565b91506135ca60208401613589565b90509250929050565b600080604083850312156135e657600080fd5b8235915060208301356135f8816132f4565b809150509250929050565b60006020828403121561361557600080fd5b8135613269816132f4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561365157613651613620565b604051601f8501601f19908116603f0116810190828211818310171561367957613679613620565b8160405280935085815286868601111561369257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156136be57600080fd5b813567ffffffffffffffff8111156136d557600080fd5b8201601f810184136136e657600080fd5b61283184823560208401613636565b60006020828403121561370757600080fd5b813561ffff8116811461326957600080fd5b6000806000806080858703121561372f57600080fd5b843561373a816132f4565b9350602085013561374a816132f4565b925060408501359150606085013567ffffffffffffffff81111561376d57600080fd5b8501601f8101871361377e57600080fd5b61378d87823560208401613636565b91505092959194509250565b6000602082840312156137ab57600080fd5b61326982613589565b600080604083850312156137c757600080fd5b82356137d2816132f4565b915060208301356135f8816132f4565b600181811c908216806137f657607f821691505b60208210810361381657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156138455761384561381c565b500190565b60008282101561385c5761385c61381c565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260139082015272151bdad95b8e88155b985d5d1a1bdc9a5cd959606a1b604082015260600190565b600061ffff838116908316818110156138fa576138fa61381c565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681810361392f5761392f61381c565b6001019392505050565b60006020828403121561394b57600080fd5b8151613269816132f4565b634e487b7160e01b600052601260045260246000fd5b60008261397b5761397b613956565b500490565b60008261398f5761398f613956565b500690565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000600182016139db576139db61381c565b5060010190565b60208082526024908201527f546f6b656e3a204c6173742072657665616c20616c72656164792072657175656040820152631cdd195960e21b606082015260800190565b60208082526024908201527f546f6b656e3a2052657665616c207265717565737420616c72656164792065786040820152636973747360e01b606082015260800190565b600060208284031215613a7c57600080fd5b5051919050565b60008151613a95818560208601613270565b9290920192915050565b600080865481600182811c915080831680613abb57607f831692505b60208084108203613ada57634e487b7160e01b86526022600452602486fd5b818015613aee5760018114613aff57613b2c565b60ff19861689528489019650613b2c565b60008d81526020902060005b86811015613b245781548b820152908501908301613b0b565b505084890196505b505050505050613b4e613b48613b428389613a83565b87613a83565b85613a83565b979650505050505050565b6020808252602a908201527f546f6b656e3a204c6173742072657665616c206d7573742062652072657175656040820152691cdd195908199a5c9cdd60b21b606082015260800190565b60208082526025908201527f546f6b656e3a204d757374206d696e7420726573657276656420636172647320604082015264199a5c9cdd60da1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061355d9083018461329c565b600060208284031215613c7f57600080fd5b815161326981613236565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208d88cfd0d11c77f29ab4ac36751e5c7abf2d6b21d0de155cc1da0d3d121d0e8164736f6c634300080d003368747470733a2f2f6d657461646174612e6772642e66616e2f6170692f636f6e747261637468747470733a2f2f65746865722d63617264732e6d7970696e6174612e636c6f75642f697066732f516d5346704e5672737a7045487048524a564a6e437a4b6379723566734b34384b5a396b4335517a33626a4e4d78
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061035d5760003560e01c806377d4b504116101d3578063bff3561811610104578063e288e733116100a2578063e94193251161007c578063e9419325146107eb578063e985e9c5146107fe578063ea9d68241461083a578063f2fde38b1461084257600080fd5b8063e288e73314610792578063e7713baa146107b9578063e8a3d485146107e357600080fd5b8063cd158260116100de578063cd1582601461071e578063d255fe0314610731578063d5abeb0114610744578063db7394481461076b57600080fd5b8063bff35618146106ef578063c1bd8cf914610702578063c87b56dd1461070b57600080fd5b80639c30ea5111610171578063afa88e551161014b578063afa88e55146106af578063b88d4fde146106c1578063babcc539146106d4578063bcc0f725146106e757600080fd5b80639c30ea5114610662578063a22cb46514610689578063a811a37b1461069c57600080fd5b8063938e3d7b116101ad578063938e3d7b146105da57806395d89b41146105ed5780639871d6fa146105f557806398f5b238146105fd57600080fd5b806377d4b504146105955780637f72f036146105b65780638da5cb5b146105c957600080fd5b80632f151b76116102ad5780634cf292581161024b57806369b2b9a71161022557806369b2b9a7146105445780636cc301e31461055757806370a082311461057a578063715018a61461058d57600080fd5b80634cf29258146104f75780634f6ccce71461051e5780636352211e1461053157600080fd5b806342842e0e1161028757806342842e0e146104a2578063432e2006146104b557806344d19d2b146104bd5780634697f05d146104e457600080fd5b80632f151b76146104675780632f745c591461047c5780633d64ac9b1461048f57600080fd5b806310d51dd91161031a57806318160ddd116102f457806318160ddd146104265780631f4bc79d1461042e57806323b872dd146104415780632a85db551461045457600080fd5b806310d51dd91461040957806312686aae14610411578063160fba561461041e57600080fd5b806301ffc9a7146103625780630677ef811461038a57806306fdde03146103a1578063081812fc146103b6578063095ea7b3146103e15780630e89341c146103f6575b600080fd5b61037561037036600461324c565b610855565b60405190151581526020015b60405180910390f35b610393600c5481565b604051908152602001610381565b6103a9610880565b60405161038191906132c8565b6103c96103c43660046132db565b610912565b6040516001600160a01b039091168152602001610381565b6103f46103ef366004613309565b6109ac565b005b6103936104043660046132db565b610ac1565b6103a9610b78565b600f546103759060ff1681565b6103a9610c06565b600854610393565b61037561043c3660046132db565b610c13565b6103f461044f366004613335565b610c75565b6103f4610462366004613376565b610ca6565b61046f610cd7565b604051610381919061344d565b61039361048a366004613309565b61109d565b6103f461049d366004613567565b611133565b6103f46104b0366004613335565b6113dc565b6103936113f7565b6103937f000000000000000000000000000000000000000000000000000000000000012c81565b6103f46104f236600461359e565b611462565b6103a96040518060400160405280600881526020016752414e444f4d563160c01b81525081565b61039361052c3660046132db565b6114ef565b6103c961053f3660046132db565b611582565b6103f46105523660046135d3565b6115f9565b610375610565366004613603565b60106020526000908152604090205460ff1681565b610393610588366004613603565b611781565b6103f4611808565b6013546105a39061ffff1681565b60405161ffff9091168152602001610381565b6105a36105c43660046132db565b61183e565b600a546001600160a01b03166103c9565b6103f46105e83660046136ac565b611892565b6103a9611905565b6103f4611914565b61063a61060b3660046136f5565b601160205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610381565b6103937f000000000000000000000000000000000000000000000000000000000000000181565b6103f461069736600461359e565b611b5a565b6103f46106aa366004613376565b611b69565b600f5461037590610100900460ff1681565b6103f46106cf366004613719565b611b9a565b6103756106e2366004613603565b611bd2565b6103a9611c09565b6103f46106fd366004613799565b611c16565b610393600b5481565b6103a96107193660046132db565b611c7c565b6103f461072c366004613567565b611f09565b6103f461073f3660046135d3565b612131565b6103937f000000000000000000000000000000000000000000000000000000000000232881565b6103c97f0000000000000000000000001e8150050a7a4715aad42b905c08df76883f396f81565b6103937f000000000000000000000000000000000000000000000000000000000000012c81565b6107c1612281565b6040805182518152602080840151908201529181015190820152606001610381565b6103a9612325565b6103f46107f93660046135d3565b612332565b61037561080c3660046137b4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103f461249f565b6103f4610850366004613603565b6125e9565b60006001600160e01b0319821663780e9d6360e01b148061087a575061087a82612684565b92915050565b60606000805461088f906137e2565b80601f01602080910402602001604051908101604052809291908181526020018280546108bb906137e2565b80156109085780601f106108dd57610100808354040283529160200191610908565b820191906000526020600020905b8154815290600101906020018083116108eb57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109b782611582565b9050806001600160a01b0316836001600160a01b031603610a245760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610987565b336001600160a01b0382161480610a405750610a40813361080c565b610ab25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610987565b610abc83836126d4565b505050565b600080610acd8361183e565b90508061ffff16600003610ae2575090919050565b61ffff81166000908152601160209081526040808320815160a08101835281548152600182015493810193909352600281015491830182905260038101546060840152600401546080830152909190610b3b9086613832565b905081608001518111610b5057949350505050565b8160800151818360600151610b659190613832565b610b6f919061384a565b95945050505050565b600e8054610b85906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb1906137e2565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b505050505081565b60128054610b85906137e2565b6000600c54600b54610c259190613832565b82118015610c6057507f000000000000000000000000000000000000000000000000000000000000012c600b54610c5c9190613832565b8211155b15610c6d57506001919050565b506000919050565b610c7f3382612742565b610c9b5760405162461bcd60e51b815260040161098790613861565b610abc838383612839565b610caf33611bd2565b610ccb5760405162461bcd60e51b8152600401610987906138b2565b610abc600d8383613129565b610d4d604051806101c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160001515815260200160001515815260200160008152602001606081525090565b60135460009061ffff1667ffffffffffffffff811115610d6f57610d6f613620565b604051908082528060200260200182016040528015610dd557816020015b610dc26040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b815260200190600190039081610d8d5790505b50905060015b60135461ffff90811690821611610e795761ffff8116600090815260116020908152604091829020825160a0810184528154815260018083015493820193909352600282015493810193909352600381015460608401526004015460808301528390610e4790846138df565b61ffff1681518110610e5b57610e5b613902565b60200260200101819052508080610e7190613918565b915050610ddb565b50604051806101c00160405280610e8e610880565b8152602001610e9b611905565b81526020017f000000000000000000000000000000000000000000000000000000000000000181526020017f00000000000000000000000000000000000000000000000000000000000023288152602001600b548152602001600c5481526020017f000000000000000000000000000000000000000000000000000000000000012c81526020017f000000000000000000000000000000000000000000000000000000000000012c8152602001600d8054610f55906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f81906137e2565b8015610fce5780601f10610fa357610100808354040283529160200191610fce565b820191906000526020600020905b815481529060010190602001808311610fb157829003601f168201915b50505050508152602001600e8054610fe5906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611011906137e2565b801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b5050509183525050600f5460ff80821615156020840152610100909104161515604082015260600161108f60085490565b815260200191909152919050565b60006110a883611781565b821061110a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610987565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b604080518082018252600881526752414e444f4d563160c01b60208201529051631d2e660b60e21b81526001600160a01b037f0000000000000000000000001e8150050a7a4715aad42b905c08df76883f396f16916374b9982c9161119b91906004016132c8565b602060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dc9190613939565b6001600160a01b0316336001600160a01b0316146112485760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2070726f63657373282920556e617574686f7269736564206361604482015263363632b960e11b6064820152608401610987565b60135461ffff16600090815260116020526040902080548290036113885761127160028461396c565b600180830191909155601354601191600091611291919061ffff166138df565b61ffff168152602081019190915260400160002060049081015460038301819055908201546112c0919061384a565b81600101546112cf9190613980565b6002820181905560000361131c57600381600101546112ee919061396c565b600182015560038101546004820154611307919061384a565b81600101546113169190613980565b60028201555b60135460018201546002830154600384015460048501546040805161ffff909616865260208601949094528484019290925260608401526080830152517f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39181900360a00190a1505050565b60405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20496e636f7272656374207265717565737449642072656365696044820152621d995960ea1b6064820152608401610987565b610abc83838360405180602001604052806000815250611b9a565b60007f000000000000000000000000000000000000000000000000000000000000012c7f000000000000000000000000000000000000000000000000000000000000012c600b546114489190613832565b611452919061384a565b61145d906001613832565b905090565b600a546001600160a01b0316331461148c5760405162461bcd60e51b815260040161098790613994565b6001600160a01b038216600081815260106020908152604091829020805460ff19168515159081179091558251938452908301527f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb910160405180910390a15050565b60006114fa60085490565b821061155d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610987565b6008828154811061157057611570613902565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061087a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610987565b61160233611bd2565b61161e5760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156116825760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2043616e6e6f74206d696e74206166746572206c6173742072656044820152631d99585b60e21b6064820152608401610987565b6116cc7f000000000000000000000000000000000000000000000000000000000000012c7f000000000000000000000000000000000000000000000000000000000000232861384a565b82600b546116da9190613832565b11156117475760405162461bcd60e51b815260206004820152603660248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d604482015275626572206f6620636172647320617661696c61626c6560501b6064820152608401610987565b60005b82811015610abc5761176f82600b60008154611765906139c9565b91829055506129e0565b80611779816139c9565b91505061174a565b60006001600160a01b0382166117ec5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610987565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146118325760405162461bcd60e51b815260040161098790613994565b61183c6000612b2e565b565b600060015b60135461ffff908116908216116118895761ffff811660009081526011602052604090206004015483116118775792915050565b8061188181613918565b915050611843565b50600092915050565b61189b33611bd2565b6118b75760405162461bcd60e51b8152600401610987906138b2565b80516118ca9060149060208401906131ad565b507f74c497646a57fa0eeedc14ff6eec2da957c18c9c77881fe1aff368249b52b5c1816040516118fa91906132c8565b60405180910390a150565b60606001805461088f906137e2565b61191d33611bd2565b6119395760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156119615760405162461bcd60e51b8152600401610987906139e2565b60135461ffff166000908152601160205260409020600401547f0000000000000000000000000000000000000000000000000000000000002328116119b85760405162461bcd60e51b815260040161098790613a26565b600f805461ff0019166101001790556013805460009160119183919082906119e39061ffff16613918565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff16815260200190815260200160002090507f000000000000000000000000000000000000000000000000000000000000012c600b54611a429190613832565b600480830191909155604080518082018252600881526752414e444f4d563160c01b60208201529051631d2e660b60e21b81526001600160a01b037f0000000000000000000000001e8150050a7a4715aad42b905c08df76883f396f16926374b9982c92611ab2929091016132c8565b602060405180830381865afa158015611acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af39190613939565b6001600160a01b031663c532bbac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b569190613a6a565b9055565b611b65338383612b80565b5050565b611b7233611bd2565b611b8e5760405162461bcd60e51b8152600401610987906138b2565b610abc600e8383613129565b611ba43383612742565b611bc05760405162461bcd60e51b815260040161098790613861565b611bcc84848484612c4e565b50505050565b6001600160a01b03811660009081526010602052604081205460ff168061087a575050600a546001600160a01b0391821691161490565b600d8054610b85906137e2565b611c1f33611bd2565b611c3b5760405162461bcd60e51b8152600401610987906138b2565b600f805460ff19168215159081179091556040519081527fe3f0ec9c4af57e69d5aeff78a5912ca25733e4458710bab2b55d0985e98aeb5e906020016118fa565b6000818152600260205260409020546060906001600160a01b0316151580611ca85750611ca882610c13565b611cf45760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a20546f6b656e20646f6573206e6f7420657869737400000000006044820152606401610987565b6000611cff8361183e565b90508061ffff16600003611da057600d8054611d1a906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d46906137e2565b8015611d935780601f10611d6857610100808354040283529160200191611d93565b820191906000526020600020905b815481529060010190602001808311611d7657829003601f168201915b5050505050915050919050565b61ffff81166000908152601160209081526040808320815160a081018352815481526001820154938101849052600282015492810192909252600381015460608301526004015460808201529103611e8657600d8054611dff906137e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b906137e2565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b505050505092505050919050565b6000611e9185610ac1565b90506000611ea8611ea3606484613980565b612c81565b90506000611eb583612c81565b90506000604051806040016040528060018152602001602f60f81b8152509050600e838284604051602001611eed9493929190613a9f565b6040516020818303038152906040529650505050505050919050565b611f1233611bd2565b611f2e5760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16611f555760405162461bcd60e51b815260040161098790613b59565b611f9f7f000000000000000000000000000000000000000000000000000000000000012c7f000000000000000000000000000000000000000000000000000000000000012c61384a565b600c5414611fbf5760405162461bcd60e51b815260040161098790613ba3565b6000611fc96113f7565b90506000611ff77f000000000000000000000000000000000000000000000000000000000000012c83613832565b9050818410156120655760405162461bcd60e51b815260206004820152603360248201527f546f6b656e3a205f7374617274206d75737420626520686967686572206f72206044820152720cae2eac2d840e8de40ccd2e4e6e892dcc8caf606b1b6064820152608401610987565b806120708486613832565b11156120d65760405162461bcd60e51b815260206004820152602f60248201527f546f6b656e3a205f656e64206d757374206265206c6f776572206f722065717560448201526e0c2d840e8de40d8c2e6e892dcc8caf608b1b6064820152608401610987565b835b6120e28486613832565b81101561212a57604051819030906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612122816139c9565b9150506120d8565b5050505050565b61213a33611bd2565b6121565760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff1661217d5760405162461bcd60e51b815260040161098790613b59565b6121c77f000000000000000000000000000000000000000000000000000000000000012c7f000000000000000000000000000000000000000000000000000000000000012c61384a565b600c54146121e75760405162461bcd60e51b815260040161098790613ba3565b60006121f16113f7565b905080831015801561222b57506122287f000000000000000000000000000000000000000000000000000000000000012c82613832565b83105b6122775760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a2043617264206964206e6f7420696e2072616e676500000000006044820152606401610987565b610abc82846129e0565b6122a560405180606001604052806000815260200160008152602001600081525090565b60405180606001604052807f000000000000000000000000000000000000000000000000000000000000000181526020017f000000000000000000000000000000000000000000000000000000000000232881526020017f000000000000000000000000000000000000000000000000000000000000012c815250905090565b60148054610b85906137e2565b61233b33611bd2565b6123575760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff1661237e5760405162461bcd60e51b815260040161098790613b59565b6123c87f000000000000000000000000000000000000000000000000000000000000012c7f000000000000000000000000000000000000000000000000000000000000012c61384a565b82600c546123d69190613832565b11156124585760405162461bcd60e51b815260206004820152604560248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d60448201527f626572206f6620636172647320726573657276656420636172647320617661696064820152646c61626c6560d81b608482015260a401610987565b60005b82811015610abc5761248d82600c60008154612476906139c9565b9182905550600b546124889190613832565b6129e0565b80612497816139c9565b91505061245b565b6124a833611bd2565b6124c45760405162461bcd60e51b8152600401610987906138b2565b600f54610100900460ff16156124ec5760405162461bcd60e51b8152600401610987906139e2565b600b5460135461ffff16600090815260116020526040902060040154106125255760405162461bcd60e51b815260040161098790613a26565b6013805460009160119183919082906125419061ffff16613918565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff1681526020019081526020016000209050600b5481600401819055507f0000000000000000000000001e8150050a7a4715aad42b905c08df76883f396f6001600160a01b03166374b9982c6040518060400160405280600881526020016752414e444f4d563160c01b8152506040518263ffffffff1660e01b8152600401611ab291906132c8565b600a546001600160a01b031633146126135760405162461bcd60e51b815260040161098790613994565b6001600160a01b0381166126785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610987565b61268181612b2e565b50565b60006001600160e01b031982166380ac58cd60e01b14806126b557506001600160e01b03198216635b5e139f60e01b145b8061087a57506301ffc9a760e01b6001600160e01b031983161461087a565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061270982611582565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166127bb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610987565b60006127c683611582565b9050806001600160a01b0316846001600160a01b0316148061280d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806128315750836001600160a01b031661282684610912565b6001600160a01b0316145b949350505050565b826001600160a01b031661284c82611582565b6001600160a01b0316146128b05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610987565b6001600160a01b0382166129125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610987565b61291d838383612d82565b6129286000826126d4565b6001600160a01b038316600090815260036020526040812080546001929061295190849061384a565b90915550506001600160a01b038216600090815260036020526040812080546001929061297f908490613832565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216612a365760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610987565b6000818152600260205260409020546001600160a01b031615612a9b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610987565b612aa760008383612d82565b6001600160a01b0382166000908152600360205260408120805460019290612ad0908490613832565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612be15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610987565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c59848484612839565b612c6584848484612de0565b611bcc5760405162461bcd60e51b815260040161098790613be8565b606081600003612ca85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612cd25780612cbc816139c9565b9150612ccb9050600a8361396c565b9150612cac565b60008167ffffffffffffffff811115612ced57612ced613620565b6040519080825280601f01601f191660200182016040528015612d17576020820181803683370190505b5090505b841561283157612d2c60018361384a565b9150612d39600a86613980565b612d44906030613832565b60f81b818381518110612d5957612d59613902565b60200101906001600160f81b031916908160001a905350612d7b600a8661396c565b9450612d1b565b600f5460ff1615612dd55760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a205472616e736665727320617265206e6f7420656e61626c65646044820152606401610987565b610abc838383612ee1565b60006001600160a01b0384163b15612ed657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e24903390899088908890600401613c3a565b6020604051808303816000875af1925050508015612e5f575060408051601f3d908101601f19168201909252612e5c91810190613c6d565b60015b612ebc573d808015612e8d576040519150601f19603f3d011682016040523d82523d6000602084013e612e92565b606091505b508051600003612eb45760405162461bcd60e51b815260040161098790613be8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612831565b506001949350505050565b6001600160a01b038316612f3c57612f3781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f5f565b816001600160a01b0316836001600160a01b031614612f5f57612f5f8382612f99565b6001600160a01b038216612f7657610abc81613036565b826001600160a01b0316826001600160a01b031614610abc57610abc82826130e5565b60006001612fa684611781565b612fb0919061384a565b600083815260076020526040902054909150808214613003576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130489060019061384a565b6000838152600960205260408120546008805493945090928490811061307057613070613902565b90600052602060002001549050806008838154811061309157613091613902565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130c9576130c9613c8a565b6001900381819060005260206000200160009055905550505050565b60006130f083611781565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613135906137e2565b90600052602060002090601f016020900481019282613157576000855561319d565b82601f106131705782800160ff1982351617855561319d565b8280016001018555821561319d579182015b8281111561319d578235825591602001919060010190613182565b506131a9929150613221565b5090565b8280546131b9906137e2565b90600052602060002090601f0160209004810192826131db576000855561319d565b82601f106131f457805160ff191683800117855561319d565b8280016001018555821561319d579182015b8281111561319d578251825591602001919060010190613206565b5b808211156131a95760008155600101613222565b6001600160e01b03198116811461268157600080fd5b60006020828403121561325e57600080fd5b813561326981613236565b9392505050565b60005b8381101561328b578181015183820152602001613273565b83811115611bcc5750506000910152565b600081518084526132b4816020860160208601613270565b601f01601f19169290920160200192915050565b602081526000613269602083018461329c565b6000602082840312156132ed57600080fd5b5035919050565b6001600160a01b038116811461268157600080fd5b6000806040838503121561331c57600080fd5b8235613327816132f4565b946020939093013593505050565b60008060006060848603121561334a57600080fd5b8335613355816132f4565b92506020840135613365816132f4565b929592945050506040919091013590565b6000806020838503121561338957600080fd5b823567ffffffffffffffff808211156133a157600080fd5b818501915085601f8301126133b557600080fd5b8135818111156133c457600080fd5b8660208285010111156133d657600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b8381101561344257815180518852838101518489015260408082015190890152606080820151908901526080908101519088015260a090960195908201906001016133fc565b509495945050505050565b60208152600082516101c080602085015261346c6101e085018361329c565b91506020850151601f198086850301604087015261348a848361329c565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c087015160e087015260e087015191506101008281880152808801519250506101208187860301818801526134ea858461329c565b945080880151925050610140818786030181880152613509858461329c565b9450808801519250506101606135228188018415159052565b87015191506101806135378782018415159052565b8701516101a08781019190915287015186850390910183870152905061355d83826133e8565b9695505050505050565b6000806040838503121561357a57600080fd5b50508035926020909101359150565b8035801515811461359957600080fd5b919050565b600080604083850312156135b157600080fd5b82356135bc816132f4565b91506135ca60208401613589565b90509250929050565b600080604083850312156135e657600080fd5b8235915060208301356135f8816132f4565b809150509250929050565b60006020828403121561361557600080fd5b8135613269816132f4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561365157613651613620565b604051601f8501601f19908116603f0116810190828211818310171561367957613679613620565b8160405280935085815286868601111561369257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156136be57600080fd5b813567ffffffffffffffff8111156136d557600080fd5b8201601f810184136136e657600080fd5b61283184823560208401613636565b60006020828403121561370757600080fd5b813561ffff8116811461326957600080fd5b6000806000806080858703121561372f57600080fd5b843561373a816132f4565b9350602085013561374a816132f4565b925060408501359150606085013567ffffffffffffffff81111561376d57600080fd5b8501601f8101871361377e57600080fd5b61378d87823560208401613636565b91505092959194509250565b6000602082840312156137ab57600080fd5b61326982613589565b600080604083850312156137c757600080fd5b82356137d2816132f4565b915060208301356135f8816132f4565b600181811c908216806137f657607f821691505b60208210810361381657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156138455761384561381c565b500190565b60008282101561385c5761385c61381c565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260139082015272151bdad95b8e88155b985d5d1a1bdc9a5cd959606a1b604082015260600190565b600061ffff838116908316818110156138fa576138fa61381c565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681810361392f5761392f61381c565b6001019392505050565b60006020828403121561394b57600080fd5b8151613269816132f4565b634e487b7160e01b600052601260045260246000fd5b60008261397b5761397b613956565b500490565b60008261398f5761398f613956565b500690565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000600182016139db576139db61381c565b5060010190565b60208082526024908201527f546f6b656e3a204c6173742072657665616c20616c72656164792072657175656040820152631cdd195960e21b606082015260800190565b60208082526024908201527f546f6b656e3a2052657665616c207265717565737420616c72656164792065786040820152636973747360e01b606082015260800190565b600060208284031215613a7c57600080fd5b5051919050565b60008151613a95818560208601613270565b9290920192915050565b600080865481600182811c915080831680613abb57607f831692505b60208084108203613ada57634e487b7160e01b86526022600452602486fd5b818015613aee5760018114613aff57613b2c565b60ff19861689528489019650613b2c565b60008d81526020902060005b86811015613b245781548b820152908501908301613b0b565b505084890196505b505050505050613b4e613b48613b428389613a83565b87613a83565b85613a83565b979650505050505050565b6020808252602a908201527f546f6b656e3a204c6173742072657665616c206d7573742062652072657175656040820152691cdd195908199a5c9cdd60b21b606082015260800190565b60208082526025908201527f546f6b656e3a204d757374206d696e7420726573657276656420636172647320604082015264199a5c9cdd60da1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061355d9083018461329c565b600060208284031215613c7f57600080fd5b815161326981613236565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208d88cfd0d11c77f29ab4ac36751e5c7abf2d6b21d0de155cc1da0d3d121d0e8164736f6c634300080d0033
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.