Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
248 GRANT
Holders
111
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GRANTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GrantrektHotel
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "erc721a/contracts/ERC721A.sol"; contract GrantrektHotel is ERC721A, Ownable { uint256 public immutable maxSupply; uint256 public immutable teamSupply; string public baseURI; uint32 public teamMinted; address private _signer; mapping(uint256 => uint256) private _usedNonces; constructor( string memory _name, string memory _symbol, uint256 _maxSupply, uint256 _teamSupply, string memory uri, address signer ) ERC721A(_name, _symbol) { maxSupply = _maxSupply; teamSupply = _teamSupply; setBaseURI(uri); _signer = signer; } function mint() external payable { require( _numberMinted(msg.sender) + 1 <= 1, "Wallet limit exceeded." ); require( totalSupply() + 1 + teamSupply - teamMinted <= maxSupply, "Max supply exceeded." ); _safeMint(msg.sender, 1); } function raffleMint( uint256 amount, uint256 nonce, bytes calldata signature ) public payable { require( _numberMinted(msg.sender) + amount <= 3, "Wallet limit exceeded." ); require( totalSupply() + amount + teamSupply - teamMinted <= maxSupply, "Max supply exceeded." ); require( _usedNonces[nonce] == 0, "Nonce already used." ); require( verifySignature(msg.sender, amount, nonce, signature) == _signer, "Not authorized to mint." ); _usedNonces[nonce] = 1; _safeMint(msg.sender, amount); } function verifySignature( address wallet, uint256 amount, uint256 nonce, bytes calldata signature ) public pure returns (address) { return ECDSA.recover( ECDSA.toEthSignedMessageHash( keccak256(abi.encode(wallet, amount, nonce)) ), signature ); } function devMint(address to, uint32 amount) external onlyOwner { require( teamMinted + amount <= teamSupply, "Max supply exceeded." ); teamMinted += amount; _safeMint(to, amount); } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function withdraw() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// 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 (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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 { _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 { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @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); // ============================== // IERC721Metadata // ============================== /** * @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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_teamSupply","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"raffleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","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":"teamMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verifySignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040516200417f3803806200417f833981810160405281019062000037919062000409565b8585816002908051906020019062000051929190620002b9565b5080600390805190602001906200006a929190620002b9565b506200007b6200011160201b60201c565b6000819055505050620000a3620000976200011660201b60201c565b6200011e60201b60201c565b83608081815250508260a08181525050620000c482620001e460201b60201c565b80600a60046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050506200074f565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001f46200011660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200021a6200028f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000273576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200026a9062000511565b60405180910390fd5b80600990805190602001906200028b929190620002b9565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620002c79062000617565b90600052602060002090601f016020900481019282620002eb576000855562000337565b82601f106200030657805160ff191683800117855562000337565b8280016001018555821562000337579182015b828111156200033657825182559160200191906001019062000319565b5b5090506200034691906200034a565b5090565b5b80821115620003655760008160009055506001016200034b565b5090565b6000620003806200037a846200055c565b62000533565b9050828152602081018484840111156200039957600080fd5b620003a6848285620005e1565b509392505050565b600081519050620003bf816200071b565b92915050565b600082601f830112620003d757600080fd5b8151620003e984826020860162000369565b91505092915050565b600081519050620004038162000735565b92915050565b60008060008060008060c087890312156200042357600080fd5b600087015167ffffffffffffffff8111156200043e57600080fd5b6200044c89828a01620003c5565b965050602087015167ffffffffffffffff8111156200046a57600080fd5b6200047889828a01620003c5565b95505060406200048b89828a01620003f2565b94505060606200049e89828a01620003f2565b935050608087015167ffffffffffffffff811115620004bc57600080fd5b620004ca89828a01620003c5565b92505060a0620004dd89828a01620003ae565b9150509295509295509295565b6000620004f960208362000592565b91506200050682620006f2565b602082019050919050565b600060208201905081810360008301526200052c81620004ea565b9050919050565b60006200053f62000552565b90506200054d82826200064d565b919050565b6000604051905090565b600067ffffffffffffffff8211156200057a5762000579620006b2565b5b6200058582620006e1565b9050602081019050919050565b600082825260208201905092915050565b6000620005b082620005b7565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000601578082015181840152602081019050620005e4565b8381111562000611576000848401525b50505050565b600060028204905060018216806200063057607f821691505b6020821081141562000647576200064662000683565b5b50919050565b6200065882620006e1565b810181811067ffffffffffffffff821117156200067a5762000679620006b2565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6200072681620005a3565b81146200073257600080fd5b50565b6200074081620005d7565b81146200074c57600080fd5b50565b60805160a0516139e76200079860003960008181610a1a01528181610b2d01528181610c2d015261103e0152600081816109e001528181611004015261152801526139e76000f3fe60806040526004361061019c5760003560e01c80636c0360eb116100ec578063b88d4fde1161008a578063e8b5498d11610064578063e8b5498d14610572578063e985e9c51461059d578063ec0e642f146105da578063f2fde38b146106175761019c565b8063b88d4fde146104e1578063c87b56dd1461050a578063d5abeb01146105475761019c565b8063836dbdd7116100c6578063836dbdd7146104465780638da5cb5b1461046257806395d89b411461048d578063a22cb465146104b85761019c565b80636c0360eb146103c757806370a08231146103f2578063715018a61461042f5761019c565b806318160ddd116101595780633ccfd60b116101335780633ccfd60b1461032157806342842e0e1461033857806355f804b3146103615780636352211e1461038a5761019c565b806318160ddd146102a257806323b872dd146102cd5780632cfac6ec146102f65761019c565b806301ffc9a7146101a157806306fdde03146101de578063081812fc14610209578063095ea7b3146102465780631249c58b1461026f57806317a5aced14610279575b600080fd5b3480156101ad57600080fd5b506101c860048036038101906101c39190612cf6565b610640565b6040516101d5919061319b565b60405180910390f35b3480156101ea57600080fd5b506101f36106d2565b60405161020091906131fb565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b9190612d89565b610764565b60405161023d91906130fd565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190612bfe565b6107e0565b005b610277610987565b005b34801561028557600080fd5b506102a0600480360381019061029b9190612cba565b610aaf565b005b3480156102ae57600080fd5b506102b7610c04565b6040516102c4919061335d565b60405180910390f35b3480156102d957600080fd5b506102f460048036038101906102ef9190612af8565b610c1b565b005b34801561030257600080fd5b5061030b610c2b565b604051610318919061335d565b60405180910390f35b34801561032d57600080fd5b50610336610c4f565b005b34801561034457600080fd5b5061035f600480360381019061035a9190612af8565b610d14565b005b34801561036d57600080fd5b5061038860048036038101906103839190612d48565b610d34565b005b34801561039657600080fd5b506103b160048036038101906103ac9190612d89565b610dca565b6040516103be91906130fd565b60405180910390f35b3480156103d357600080fd5b506103dc610ddc565b6040516103e991906131fb565b60405180910390f35b3480156103fe57600080fd5b5061041960048036038101906104149190612a93565b610e6a565b604051610426919061335d565b60405180910390f35b34801561043b57600080fd5b50610444610f23565b005b610460600480360381019061045b9190612db2565b610fab565b005b34801561046e57600080fd5b506104776111e0565b60405161048491906130fd565b60405180910390f35b34801561049957600080fd5b506104a261120a565b6040516104af91906131fb565b60405180910390f35b3480156104c457600080fd5b506104df60048036038101906104da9190612bc2565b61129c565b005b3480156104ed57600080fd5b5061050860048036038101906105039190612b47565b611414565b005b34801561051657600080fd5b50610531600480360381019061052c9190612d89565b611487565b60405161053e91906131fb565b60405180910390f35b34801561055357600080fd5b5061055c611526565b604051610569919061335d565b60405180910390f35b34801561057e57600080fd5b5061058761154a565b6040516105949190613378565b60405180910390f35b3480156105a957600080fd5b506105c460048036038101906105bf9190612abc565b611560565b6040516105d1919061319b565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190612c3a565b6115f4565b60405161060e91906130fd565b60405180910390f35b34801561062357600080fd5b5061063e60048036038101906106399190612a93565b611681565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106e1906135fe565b80601f016020809104026020016040519081016040528092919081815260200182805461070d906135fe565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b600061076f82611779565b6107a5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107eb826117d8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610853576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108726118a6565b73ffffffffffffffffffffffffffffffffffffffff16146108d55761089e816108996118a6565b611560565b6108d4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600180610993336118ae565b61099d919061345d565b11156109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d5906132fd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000600a60009054906101000a900463ffffffff1663ffffffff167f00000000000000000000000000000000000000000000000000000000000000006001610a43610c04565b610a4d919061345d565b610a57919061345d565b610a6191906134ed565b1115610aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a999061331d565b60405180910390fd5b610aad336001611905565b565b610ab7611923565b73ffffffffffffffffffffffffffffffffffffffff16610ad56111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b22906132dd565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081600a60009054906101000a900463ffffffff16610b6a91906134b3565b63ffffffff161115610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba89061331d565b60405180910390fd5b80600a60008282829054906101000a900463ffffffff16610bd291906134b3565b92506101000a81548163ffffffff021916908363ffffffff160217905550610c00828263ffffffff16611905565b5050565b6000610c0e61192b565b6001546000540303905090565b610c26838383611930565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610c57611923565b73ffffffffffffffffffffffffffffffffffffffff16610c756111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc2906132dd565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d11573d6000803e3d6000fd5b50565b610d2f83838360405180602001604052806000815250611414565b505050565b610d3c611923565b73ffffffffffffffffffffffffffffffffffffffff16610d5a6111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da7906132dd565b60405180910390fd5b8060099080519060200190610dc6929190612858565b5050565b6000610dd5826117d8565b9050919050565b60098054610de9906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e15906135fe565b8015610e625780601f10610e3757610100808354040283529160200191610e62565b820191906000526020600020905b815481529060010190602001808311610e4557829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ed2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f2b611923565b73ffffffffffffffffffffffffffffffffffffffff16610f496111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f96906132dd565b60405180910390fd5b610fa96000611cda565b565b600384610fb7336118ae565b610fc1919061345d565b1115611002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff9906132fd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000600a60009054906101000a900463ffffffff1663ffffffff167f000000000000000000000000000000000000000000000000000000000000000086611066610c04565b611070919061345d565b61107a919061345d565b61108491906134ed565b11156110c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bc9061331d565b60405180910390fd5b6000600b6000858152602001908152602001600020541461111b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111129061333d565b60405180910390fd5b600a60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661116133868686866115f4565b73ffffffffffffffffffffffffffffffffffffffff16146111b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ae9061325d565b60405180910390fd5b6001600b6000858152602001908152602001600020819055506111da3385611905565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611219906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611245906135fe565b80156112925780601f1061126757610100808354040283529160200191611292565b820191906000526020600020905b81548152906001019060200180831161127557829003601f168201915b5050505050905090565b6112a46118a6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611309576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006113166118a6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113c36118a6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611408919061319b565b60405180910390a35050565b61141f848484611930565b60008373ffffffffffffffffffffffffffffffffffffffff163b146114815761144a84848484611da0565b611480576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061149282611779565b6114c8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114d2611f00565b90506000815114156114f3576040518060200160405280600081525061151e565b806114fd84611f92565b60405160200161150e9291906130b3565b6040516020818303038152906040525b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a60009054906101000a900463ffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061167661162c87878760405160200161161193929190613164565b60405160208183030381529060405280519060200120611fec565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061201c565b905095945050505050565b611689611923565b73ffffffffffffffffffffffffffffffffffffffff166116a76111e0565b73ffffffffffffffffffffffffffffffffffffffff16146116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f4906132dd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561176d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117649061327d565b60405180910390fd5b61177681611cda565b50565b60008161178461192b565b11158015611793575060005482105b80156117d1575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806117e761192b565b1161186f5760005481101561186e5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561186c575b6000811415611862576004600083600190039350838152602001908152602001600020549050611837565b80925050506118a1565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b61191f828260405180602001604052806000815250612043565b5050565b600033905090565b600090565b600061193b826117d8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119a2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166119c36118a6565b73ffffffffffffffffffffffffffffffffffffffff1614806119f257506119f1856119ec6118a6565b611560565b5b80611a375750611a006118a6565b73ffffffffffffffffffffffffffffffffffffffff16611a1f84610764565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611a70576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ad7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ae485858560016122f8565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611be1866122fe565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415611c6b576000600184019050600060046000838152602001908152602001600020541415611c69576000548114611c68578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cd38585856001612308565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611dc66118a6565b8786866040518563ffffffff1660e01b8152600401611de89493929190613118565b602060405180830381600087803b158015611e0257600080fd5b505af1925050508015611e3357506040513d601f19601f82011682018060405250810190611e309190612d1f565b60015b611ead573d8060008114611e63576040519150601f19603f3d011682016040523d82523d6000602084013e611e68565b606091505b50600081511415611ea5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060098054611f0f906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3b906135fe565b8015611f885780601f10611f5d57610100808354040283529160200191611f88565b820191906000526020600020905b815481529060010190602001808311611f6b57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611fd857600183039250600a81066030018353600a81049050611fb8565b508181036020830392508083525050919050565b600081604051602001611fff91906130d7565b604051602081830303815290604052805190602001209050919050565b600080600061202b858561230e565b9150915061203881612391565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120b0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008314156120eb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120f860008583866122f8565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161215d600185146126e2565b901b60a042901b61216d866122fe565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14612271575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122216000878480600101955087611da0565b612257576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106121b257826000541461226c57600080fd5b6122dc565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612272575b8160008190555050506122f26000858386612308565b50505050565b50505050565b6000819050919050565b50505050565b6000806041835114156123505760008060006020860151925060408601519150606086015160001a9050612344878285856126ec565b9450945050505061238a565b6040835114156123815760008060208501519150604085015190506123768683836127f9565b93509350505061238a565b60006002915091505b9250929050565b600060048111156123cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612404577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561240f576126df565b60016004811115612449577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612482577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156124c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ba9061321d565b60405180910390fd5b600260048111156124fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612536577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e9061323d565b60405180910390fd5b600360048111156125b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156125ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561262b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126229061329d565b60405180910390fd5b600480811115612664577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561269d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156126de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d5906132bd565b60405180910390fd5b5b50565b6000819050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156127275760006003915091506127f0565b601b8560ff161415801561273f5750601c8560ff1614155b156127515760006004915091506127f0565b60006001878787876040516000815260200160405260405161277694939291906131b6565b6020604051602081039080840390855afa158015612798573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e7576000600192509250506127f0565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61283c919061345d565b905061284a878288856126ec565b935093505050935093915050565b828054612864906135fe565b90600052602060002090601f01602090048101928261288657600085556128cd565b82601f1061289f57805160ff19168380011785556128cd565b828001600101855582156128cd579182015b828111156128cc5782518255916020019190600101906128b1565b5b5090506128da91906128de565b5090565b5b808211156128f75760008160009055506001016128df565b5090565b600061290e612909846133b8565b613393565b90508281526020810184848401111561292657600080fd5b6129318482856135bc565b509392505050565b600061294c612947846133e9565b613393565b90508281526020810184848401111561296457600080fd5b61296f8482856135bc565b509392505050565b6000813590506129868161393e565b92915050565b60008135905061299b81613955565b92915050565b6000813590506129b08161396c565b92915050565b6000815190506129c58161396c565b92915050565b60008083601f8401126129dd57600080fd5b8235905067ffffffffffffffff8111156129f657600080fd5b602083019150836001820283011115612a0e57600080fd5b9250929050565b600082601f830112612a2657600080fd5b8135612a368482602086016128fb565b91505092915050565b600082601f830112612a5057600080fd5b8135612a60848260208601612939565b91505092915050565b600081359050612a7881613983565b92915050565b600081359050612a8d8161399a565b92915050565b600060208284031215612aa557600080fd5b6000612ab384828501612977565b91505092915050565b60008060408385031215612acf57600080fd5b6000612add85828601612977565b9250506020612aee85828601612977565b9150509250929050565b600080600060608486031215612b0d57600080fd5b6000612b1b86828701612977565b9350506020612b2c86828701612977565b9250506040612b3d86828701612a69565b9150509250925092565b60008060008060808587031215612b5d57600080fd5b6000612b6b87828801612977565b9450506020612b7c87828801612977565b9350506040612b8d87828801612a69565b925050606085013567ffffffffffffffff811115612baa57600080fd5b612bb687828801612a15565b91505092959194509250565b60008060408385031215612bd557600080fd5b6000612be385828601612977565b9250506020612bf48582860161298c565b9150509250929050565b60008060408385031215612c1157600080fd5b6000612c1f85828601612977565b9250506020612c3085828601612a69565b9150509250929050565b600080600080600060808688031215612c5257600080fd5b6000612c6088828901612977565b9550506020612c7188828901612a69565b9450506040612c8288828901612a69565b935050606086013567ffffffffffffffff811115612c9f57600080fd5b612cab888289016129cb565b92509250509295509295909350565b60008060408385031215612ccd57600080fd5b6000612cdb85828601612977565b9250506020612cec85828601612a7e565b9150509250929050565b600060208284031215612d0857600080fd5b6000612d16848285016129a1565b91505092915050565b600060208284031215612d3157600080fd5b6000612d3f848285016129b6565b91505092915050565b600060208284031215612d5a57600080fd5b600082013567ffffffffffffffff811115612d7457600080fd5b612d8084828501612a3f565b91505092915050565b600060208284031215612d9b57600080fd5b6000612da984828501612a69565b91505092915050565b60008060008060608587031215612dc857600080fd5b6000612dd687828801612a69565b9450506020612de787828801612a69565b935050604085013567ffffffffffffffff811115612e0457600080fd5b612e10878288016129cb565b925092505092959194509250565b612e2781613521565b82525050565b612e3681613533565b82525050565b612e458161353f565b82525050565b612e5c612e578261353f565b613661565b82525050565b6000612e6d8261341a565b612e778185613430565b9350612e878185602086016135cb565b612e90816136f8565b840191505092915050565b6000612ea682613425565b612eb08185613441565b9350612ec08185602086016135cb565b612ec9816136f8565b840191505092915050565b6000612edf82613425565b612ee98185613452565b9350612ef98185602086016135cb565b80840191505092915050565b6000612f12601883613441565b9150612f1d82613709565b602082019050919050565b6000612f35601f83613441565b9150612f4082613732565b602082019050919050565b6000612f58601c83613452565b9150612f638261375b565b601c82019050919050565b6000612f7b601783613441565b9150612f8682613784565b602082019050919050565b6000612f9e602683613441565b9150612fa9826137ad565b604082019050919050565b6000612fc1602283613441565b9150612fcc826137fc565b604082019050919050565b6000612fe4602283613441565b9150612fef8261384b565b604082019050919050565b6000613007602083613441565b91506130128261389a565b602082019050919050565b600061302a601683613441565b9150613035826138c3565b602082019050919050565b600061304d601483613441565b9150613058826138ec565b602082019050919050565b6000613070601383613441565b915061307b82613915565b602082019050919050565b61308f81613595565b82525050565b61309e8161359f565b82525050565b6130ad816135af565b82525050565b60006130bf8285612ed4565b91506130cb8284612ed4565b91508190509392505050565b60006130e282612f4b565b91506130ee8284612e4b565b60208201915081905092915050565b60006020820190506131126000830184612e1e565b92915050565b600060808201905061312d6000830187612e1e565b61313a6020830186612e1e565b6131476040830185613086565b81810360608301526131598184612e62565b905095945050505050565b60006060820190506131796000830186612e1e565b6131866020830185613086565b6131936040830184613086565b949350505050565b60006020820190506131b06000830184612e2d565b92915050565b60006080820190506131cb6000830187612e3c565b6131d860208301866130a4565b6131e56040830185612e3c565b6131f26060830184612e3c565b95945050505050565b600060208201905081810360008301526132158184612e9b565b905092915050565b6000602082019050818103600083015261323681612f05565b9050919050565b6000602082019050818103600083015261325681612f28565b9050919050565b6000602082019050818103600083015261327681612f6e565b9050919050565b6000602082019050818103600083015261329681612f91565b9050919050565b600060208201905081810360008301526132b681612fb4565b9050919050565b600060208201905081810360008301526132d681612fd7565b9050919050565b600060208201905081810360008301526132f681612ffa565b9050919050565b600060208201905081810360008301526133168161301d565b9050919050565b6000602082019050818103600083015261333681613040565b9050919050565b6000602082019050818103600083015261335681613063565b9050919050565b60006020820190506133726000830184613086565b92915050565b600060208201905061338d6000830184613095565b92915050565b600061339d6133ae565b90506133a98282613630565b919050565b6000604051905090565b600067ffffffffffffffff8211156133d3576133d26136c9565b5b6133dc826136f8565b9050602081019050919050565b600067ffffffffffffffff821115613404576134036136c9565b5b61340d826136f8565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061346882613595565b915061347383613595565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134a8576134a761366b565b5b828201905092915050565b60006134be8261359f565b91506134c98361359f565b92508263ffffffff038211156134e2576134e161366b565b5b828201905092915050565b60006134f882613595565b915061350383613595565b9250828210156135165761351561366b565b5b828203905092915050565b600061352c82613575565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156135e95780820151818401526020810190506135ce565b838111156135f8576000848401525b50505050565b6000600282049050600182168061361657607f821691505b6020821081141561362a5761362961369a565b5b50919050565b613639826136f8565b810181811067ffffffffffffffff82111715613658576136576136c9565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4e6f7420617574686f72697a656420746f206d696e742e000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f57616c6c6574206c696d69742065786365656465642e00000000000000000000600082015250565b7f4d617820737570706c792065786365656465642e000000000000000000000000600082015250565b7f4e6f6e636520616c726561647920757365642e00000000000000000000000000600082015250565b61394781613521565b811461395257600080fd5b50565b61395e81613533565b811461396957600080fd5b50565b61397581613549565b811461398057600080fd5b50565b61398c81613595565b811461399757600080fd5b50565b6139a38161359f565b81146139ae57600080fd5b5056fea264697066735822122039cc1351f9971cbb082fda410b6f9dbbdd22899e6c714d4d08e2fa6dd8a345ff64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001400000000000000000000000006e041105a890e406c5e76cde81ad83231f7661f9000000000000000000000000000000000000000000000000000000000000000e4772616e7472656b74486f74656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054752414e54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e6772616e7472656b74686f74656c2e7774662f00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061019c5760003560e01c80636c0360eb116100ec578063b88d4fde1161008a578063e8b5498d11610064578063e8b5498d14610572578063e985e9c51461059d578063ec0e642f146105da578063f2fde38b146106175761019c565b8063b88d4fde146104e1578063c87b56dd1461050a578063d5abeb01146105475761019c565b8063836dbdd7116100c6578063836dbdd7146104465780638da5cb5b1461046257806395d89b411461048d578063a22cb465146104b85761019c565b80636c0360eb146103c757806370a08231146103f2578063715018a61461042f5761019c565b806318160ddd116101595780633ccfd60b116101335780633ccfd60b1461032157806342842e0e1461033857806355f804b3146103615780636352211e1461038a5761019c565b806318160ddd146102a257806323b872dd146102cd5780632cfac6ec146102f65761019c565b806301ffc9a7146101a157806306fdde03146101de578063081812fc14610209578063095ea7b3146102465780631249c58b1461026f57806317a5aced14610279575b600080fd5b3480156101ad57600080fd5b506101c860048036038101906101c39190612cf6565b610640565b6040516101d5919061319b565b60405180910390f35b3480156101ea57600080fd5b506101f36106d2565b60405161020091906131fb565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b9190612d89565b610764565b60405161023d91906130fd565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190612bfe565b6107e0565b005b610277610987565b005b34801561028557600080fd5b506102a0600480360381019061029b9190612cba565b610aaf565b005b3480156102ae57600080fd5b506102b7610c04565b6040516102c4919061335d565b60405180910390f35b3480156102d957600080fd5b506102f460048036038101906102ef9190612af8565b610c1b565b005b34801561030257600080fd5b5061030b610c2b565b604051610318919061335d565b60405180910390f35b34801561032d57600080fd5b50610336610c4f565b005b34801561034457600080fd5b5061035f600480360381019061035a9190612af8565b610d14565b005b34801561036d57600080fd5b5061038860048036038101906103839190612d48565b610d34565b005b34801561039657600080fd5b506103b160048036038101906103ac9190612d89565b610dca565b6040516103be91906130fd565b60405180910390f35b3480156103d357600080fd5b506103dc610ddc565b6040516103e991906131fb565b60405180910390f35b3480156103fe57600080fd5b5061041960048036038101906104149190612a93565b610e6a565b604051610426919061335d565b60405180910390f35b34801561043b57600080fd5b50610444610f23565b005b610460600480360381019061045b9190612db2565b610fab565b005b34801561046e57600080fd5b506104776111e0565b60405161048491906130fd565b60405180910390f35b34801561049957600080fd5b506104a261120a565b6040516104af91906131fb565b60405180910390f35b3480156104c457600080fd5b506104df60048036038101906104da9190612bc2565b61129c565b005b3480156104ed57600080fd5b5061050860048036038101906105039190612b47565b611414565b005b34801561051657600080fd5b50610531600480360381019061052c9190612d89565b611487565b60405161053e91906131fb565b60405180910390f35b34801561055357600080fd5b5061055c611526565b604051610569919061335d565b60405180910390f35b34801561057e57600080fd5b5061058761154a565b6040516105949190613378565b60405180910390f35b3480156105a957600080fd5b506105c460048036038101906105bf9190612abc565b611560565b6040516105d1919061319b565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190612c3a565b6115f4565b60405161060e91906130fd565b60405180910390f35b34801561062357600080fd5b5061063e60048036038101906106399190612a93565b611681565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106e1906135fe565b80601f016020809104026020016040519081016040528092919081815260200182805461070d906135fe565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b600061076f82611779565b6107a5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107eb826117d8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610853576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108726118a6565b73ffffffffffffffffffffffffffffffffffffffff16146108d55761089e816108996118a6565b611560565b6108d4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600180610993336118ae565b61099d919061345d565b11156109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d5906132fd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000002710600a60009054906101000a900463ffffffff1663ffffffff167f00000000000000000000000000000000000000000000000000000000000003e86001610a43610c04565b610a4d919061345d565b610a57919061345d565b610a6191906134ed565b1115610aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a999061331d565b60405180910390fd5b610aad336001611905565b565b610ab7611923565b73ffffffffffffffffffffffffffffffffffffffff16610ad56111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b22906132dd565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e881600a60009054906101000a900463ffffffff16610b6a91906134b3565b63ffffffff161115610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba89061331d565b60405180910390fd5b80600a60008282829054906101000a900463ffffffff16610bd291906134b3565b92506101000a81548163ffffffff021916908363ffffffff160217905550610c00828263ffffffff16611905565b5050565b6000610c0e61192b565b6001546000540303905090565b610c26838383611930565b505050565b7f00000000000000000000000000000000000000000000000000000000000003e881565b610c57611923565b73ffffffffffffffffffffffffffffffffffffffff16610c756111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc2906132dd565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d11573d6000803e3d6000fd5b50565b610d2f83838360405180602001604052806000815250611414565b505050565b610d3c611923565b73ffffffffffffffffffffffffffffffffffffffff16610d5a6111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da7906132dd565b60405180910390fd5b8060099080519060200190610dc6929190612858565b5050565b6000610dd5826117d8565b9050919050565b60098054610de9906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e15906135fe565b8015610e625780601f10610e3757610100808354040283529160200191610e62565b820191906000526020600020905b815481529060010190602001808311610e4557829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ed2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f2b611923565b73ffffffffffffffffffffffffffffffffffffffff16610f496111e0565b73ffffffffffffffffffffffffffffffffffffffff1614610f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f96906132dd565b60405180910390fd5b610fa96000611cda565b565b600384610fb7336118ae565b610fc1919061345d565b1115611002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff9906132fd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000002710600a60009054906101000a900463ffffffff1663ffffffff167f00000000000000000000000000000000000000000000000000000000000003e886611066610c04565b611070919061345d565b61107a919061345d565b61108491906134ed565b11156110c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bc9061331d565b60405180910390fd5b6000600b6000858152602001908152602001600020541461111b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111129061333d565b60405180910390fd5b600a60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661116133868686866115f4565b73ffffffffffffffffffffffffffffffffffffffff16146111b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ae9061325d565b60405180910390fd5b6001600b6000858152602001908152602001600020819055506111da3385611905565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611219906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611245906135fe565b80156112925780601f1061126757610100808354040283529160200191611292565b820191906000526020600020905b81548152906001019060200180831161127557829003601f168201915b5050505050905090565b6112a46118a6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611309576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006113166118a6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113c36118a6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611408919061319b565b60405180910390a35050565b61141f848484611930565b60008373ffffffffffffffffffffffffffffffffffffffff163b146114815761144a84848484611da0565b611480576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061149282611779565b6114c8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114d2611f00565b90506000815114156114f3576040518060200160405280600081525061151e565b806114fd84611f92565b60405160200161150e9291906130b3565b6040516020818303038152906040525b915050919050565b7f000000000000000000000000000000000000000000000000000000000000271081565b600a60009054906101000a900463ffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061167661162c87878760405160200161161193929190613164565b60405160208183030381529060405280519060200120611fec565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061201c565b905095945050505050565b611689611923565b73ffffffffffffffffffffffffffffffffffffffff166116a76111e0565b73ffffffffffffffffffffffffffffffffffffffff16146116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f4906132dd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561176d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117649061327d565b60405180910390fd5b61177681611cda565b50565b60008161178461192b565b11158015611793575060005482105b80156117d1575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806117e761192b565b1161186f5760005481101561186e5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561186c575b6000811415611862576004600083600190039350838152602001908152602001600020549050611837565b80925050506118a1565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b61191f828260405180602001604052806000815250612043565b5050565b600033905090565b600090565b600061193b826117d8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119a2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166119c36118a6565b73ffffffffffffffffffffffffffffffffffffffff1614806119f257506119f1856119ec6118a6565b611560565b5b80611a375750611a006118a6565b73ffffffffffffffffffffffffffffffffffffffff16611a1f84610764565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611a70576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ad7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ae485858560016122f8565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611be1866122fe565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415611c6b576000600184019050600060046000838152602001908152602001600020541415611c69576000548114611c68578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cd38585856001612308565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611dc66118a6565b8786866040518563ffffffff1660e01b8152600401611de89493929190613118565b602060405180830381600087803b158015611e0257600080fd5b505af1925050508015611e3357506040513d601f19601f82011682018060405250810190611e309190612d1f565b60015b611ead573d8060008114611e63576040519150601f19603f3d011682016040523d82523d6000602084013e611e68565b606091505b50600081511415611ea5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060098054611f0f906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3b906135fe565b8015611f885780601f10611f5d57610100808354040283529160200191611f88565b820191906000526020600020905b815481529060010190602001808311611f6b57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611fd857600183039250600a81066030018353600a81049050611fb8565b508181036020830392508083525050919050565b600081604051602001611fff91906130d7565b604051602081830303815290604052805190602001209050919050565b600080600061202b858561230e565b9150915061203881612391565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120b0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008314156120eb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120f860008583866122f8565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161215d600185146126e2565b901b60a042901b61216d866122fe565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14612271575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122216000878480600101955087611da0565b612257576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106121b257826000541461226c57600080fd5b6122dc565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612272575b8160008190555050506122f26000858386612308565b50505050565b50505050565b6000819050919050565b50505050565b6000806041835114156123505760008060006020860151925060408601519150606086015160001a9050612344878285856126ec565b9450945050505061238a565b6040835114156123815760008060208501519150604085015190506123768683836127f9565b93509350505061238a565b60006002915091505b9250929050565b600060048111156123cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612404577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561240f576126df565b60016004811115612449577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612482577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156124c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ba9061321d565b60405180910390fd5b600260048111156124fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612536577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e9061323d565b60405180910390fd5b600360048111156125b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156125ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561262b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126229061329d565b60405180910390fd5b600480811115612664577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561269d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156126de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d5906132bd565b60405180910390fd5b5b50565b6000819050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156127275760006003915091506127f0565b601b8560ff161415801561273f5750601c8560ff1614155b156127515760006004915091506127f0565b60006001878787876040516000815260200160405260405161277694939291906131b6565b6020604051602081039080840390855afa158015612798573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e7576000600192509250506127f0565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61283c919061345d565b905061284a878288856126ec565b935093505050935093915050565b828054612864906135fe565b90600052602060002090601f01602090048101928261288657600085556128cd565b82601f1061289f57805160ff19168380011785556128cd565b828001600101855582156128cd579182015b828111156128cc5782518255916020019190600101906128b1565b5b5090506128da91906128de565b5090565b5b808211156128f75760008160009055506001016128df565b5090565b600061290e612909846133b8565b613393565b90508281526020810184848401111561292657600080fd5b6129318482856135bc565b509392505050565b600061294c612947846133e9565b613393565b90508281526020810184848401111561296457600080fd5b61296f8482856135bc565b509392505050565b6000813590506129868161393e565b92915050565b60008135905061299b81613955565b92915050565b6000813590506129b08161396c565b92915050565b6000815190506129c58161396c565b92915050565b60008083601f8401126129dd57600080fd5b8235905067ffffffffffffffff8111156129f657600080fd5b602083019150836001820283011115612a0e57600080fd5b9250929050565b600082601f830112612a2657600080fd5b8135612a368482602086016128fb565b91505092915050565b600082601f830112612a5057600080fd5b8135612a60848260208601612939565b91505092915050565b600081359050612a7881613983565b92915050565b600081359050612a8d8161399a565b92915050565b600060208284031215612aa557600080fd5b6000612ab384828501612977565b91505092915050565b60008060408385031215612acf57600080fd5b6000612add85828601612977565b9250506020612aee85828601612977565b9150509250929050565b600080600060608486031215612b0d57600080fd5b6000612b1b86828701612977565b9350506020612b2c86828701612977565b9250506040612b3d86828701612a69565b9150509250925092565b60008060008060808587031215612b5d57600080fd5b6000612b6b87828801612977565b9450506020612b7c87828801612977565b9350506040612b8d87828801612a69565b925050606085013567ffffffffffffffff811115612baa57600080fd5b612bb687828801612a15565b91505092959194509250565b60008060408385031215612bd557600080fd5b6000612be385828601612977565b9250506020612bf48582860161298c565b9150509250929050565b60008060408385031215612c1157600080fd5b6000612c1f85828601612977565b9250506020612c3085828601612a69565b9150509250929050565b600080600080600060808688031215612c5257600080fd5b6000612c6088828901612977565b9550506020612c7188828901612a69565b9450506040612c8288828901612a69565b935050606086013567ffffffffffffffff811115612c9f57600080fd5b612cab888289016129cb565b92509250509295509295909350565b60008060408385031215612ccd57600080fd5b6000612cdb85828601612977565b9250506020612cec85828601612a7e565b9150509250929050565b600060208284031215612d0857600080fd5b6000612d16848285016129a1565b91505092915050565b600060208284031215612d3157600080fd5b6000612d3f848285016129b6565b91505092915050565b600060208284031215612d5a57600080fd5b600082013567ffffffffffffffff811115612d7457600080fd5b612d8084828501612a3f565b91505092915050565b600060208284031215612d9b57600080fd5b6000612da984828501612a69565b91505092915050565b60008060008060608587031215612dc857600080fd5b6000612dd687828801612a69565b9450506020612de787828801612a69565b935050604085013567ffffffffffffffff811115612e0457600080fd5b612e10878288016129cb565b925092505092959194509250565b612e2781613521565b82525050565b612e3681613533565b82525050565b612e458161353f565b82525050565b612e5c612e578261353f565b613661565b82525050565b6000612e6d8261341a565b612e778185613430565b9350612e878185602086016135cb565b612e90816136f8565b840191505092915050565b6000612ea682613425565b612eb08185613441565b9350612ec08185602086016135cb565b612ec9816136f8565b840191505092915050565b6000612edf82613425565b612ee98185613452565b9350612ef98185602086016135cb565b80840191505092915050565b6000612f12601883613441565b9150612f1d82613709565b602082019050919050565b6000612f35601f83613441565b9150612f4082613732565b602082019050919050565b6000612f58601c83613452565b9150612f638261375b565b601c82019050919050565b6000612f7b601783613441565b9150612f8682613784565b602082019050919050565b6000612f9e602683613441565b9150612fa9826137ad565b604082019050919050565b6000612fc1602283613441565b9150612fcc826137fc565b604082019050919050565b6000612fe4602283613441565b9150612fef8261384b565b604082019050919050565b6000613007602083613441565b91506130128261389a565b602082019050919050565b600061302a601683613441565b9150613035826138c3565b602082019050919050565b600061304d601483613441565b9150613058826138ec565b602082019050919050565b6000613070601383613441565b915061307b82613915565b602082019050919050565b61308f81613595565b82525050565b61309e8161359f565b82525050565b6130ad816135af565b82525050565b60006130bf8285612ed4565b91506130cb8284612ed4565b91508190509392505050565b60006130e282612f4b565b91506130ee8284612e4b565b60208201915081905092915050565b60006020820190506131126000830184612e1e565b92915050565b600060808201905061312d6000830187612e1e565b61313a6020830186612e1e565b6131476040830185613086565b81810360608301526131598184612e62565b905095945050505050565b60006060820190506131796000830186612e1e565b6131866020830185613086565b6131936040830184613086565b949350505050565b60006020820190506131b06000830184612e2d565b92915050565b60006080820190506131cb6000830187612e3c565b6131d860208301866130a4565b6131e56040830185612e3c565b6131f26060830184612e3c565b95945050505050565b600060208201905081810360008301526132158184612e9b565b905092915050565b6000602082019050818103600083015261323681612f05565b9050919050565b6000602082019050818103600083015261325681612f28565b9050919050565b6000602082019050818103600083015261327681612f6e565b9050919050565b6000602082019050818103600083015261329681612f91565b9050919050565b600060208201905081810360008301526132b681612fb4565b9050919050565b600060208201905081810360008301526132d681612fd7565b9050919050565b600060208201905081810360008301526132f681612ffa565b9050919050565b600060208201905081810360008301526133168161301d565b9050919050565b6000602082019050818103600083015261333681613040565b9050919050565b6000602082019050818103600083015261335681613063565b9050919050565b60006020820190506133726000830184613086565b92915050565b600060208201905061338d6000830184613095565b92915050565b600061339d6133ae565b90506133a98282613630565b919050565b6000604051905090565b600067ffffffffffffffff8211156133d3576133d26136c9565b5b6133dc826136f8565b9050602081019050919050565b600067ffffffffffffffff821115613404576134036136c9565b5b61340d826136f8565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061346882613595565b915061347383613595565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134a8576134a761366b565b5b828201905092915050565b60006134be8261359f565b91506134c98361359f565b92508263ffffffff038211156134e2576134e161366b565b5b828201905092915050565b60006134f882613595565b915061350383613595565b9250828210156135165761351561366b565b5b828203905092915050565b600061352c82613575565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156135e95780820151818401526020810190506135ce565b838111156135f8576000848401525b50505050565b6000600282049050600182168061361657607f821691505b6020821081141561362a5761362961369a565b5b50919050565b613639826136f8565b810181811067ffffffffffffffff82111715613658576136576136c9565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4e6f7420617574686f72697a656420746f206d696e742e000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f57616c6c6574206c696d69742065786365656465642e00000000000000000000600082015250565b7f4d617820737570706c792065786365656465642e000000000000000000000000600082015250565b7f4e6f6e636520616c726561647920757365642e00000000000000000000000000600082015250565b61394781613521565b811461395257600080fd5b50565b61395e81613533565b811461396957600080fd5b50565b61397581613549565b811461398057600080fd5b50565b61398c81613595565b811461399757600080fd5b50565b6139a38161359f565b81146139ae57600080fd5b5056fea264697066735822122039cc1351f9971cbb082fda410b6f9dbbdd22899e6c714d4d08e2fa6dd8a345ff64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001400000000000000000000000006e041105a890e406c5e76cde81ad83231f7661f9000000000000000000000000000000000000000000000000000000000000000e4772616e7472656b74486f74656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054752414e54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e6772616e7472656b74686f74656c2e7774662f00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): GrantrektHotel
Arg [1] : _symbol (string): GRANT
Arg [2] : _maxSupply (uint256): 10000
Arg [3] : _teamSupply (uint256): 1000
Arg [4] : uri (string): https://metadata.grantrekthotel.wtf/
Arg [5] : signer (address): 0x6e041105a890E406c5e76Cde81Ad83231F7661F9
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000006e041105a890e406c5e76cde81ad83231f7661f9
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [7] : 4772616e7472656b74486f74656c000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 4752414e54000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [11] : 68747470733a2f2f6d657461646174612e6772616e7472656b74686f74656c2e
Arg [12] : 7774662f00000000000000000000000000000000000000000000000000000000
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.