Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1557
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Token
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4; import "./Utils/Ownable.sol"; import "./Utils/ECDSA.sol"; import "./ERC/ERC721A.sol"; import "./ERC/ERC2981.sol"; error PublicMintNotActive(); error WhitelistMintNotActive(); error SoldOut(); error LimitPerWalletExceeded(); error LimitPerTxnExceeded(); error InvalidSignature(); error IncorrectPrice(); error InvalidBatchMint(); error StakingNotOpen(); error AlreadyStaked(); error NotStaked(); error CannotTransferStakedToken(); error ZeroAddress(); error NotUser(); error NotAnTokenOwner(); error FailedToWithdrawEther(); contract Token is Ownable, ERC2981, ERC721A { bool public canStake; bool public publicMintActive; bool public whitelistMintActive; string public _baseTokenURI; /* MINT DETAILS */ uint256 public constant maxSupply = 1984; uint256 public constant RESERVED_ALLOWLIST = 838; uint256 public constant RESERVED_TEAM = 200; uint256 public publicMintPrice = 0.003 ether; uint96 public mintLimitPerTx = 2; uint96 public mintLimitPerWallet = 2; /* SIGNATURE */ using ECDSA for bytes32; address public signerAddress; mapping(uint256 => uint256) public tokensLastStakedAt; // tokenId => timestamp /* EVENT */ event Stake(uint256 indexed tokenId, address indexed by, uint256 stakedAt); event Unstake( uint256 indexed tokenId, address indexed by, uint256 stakedAt, uint256 unstakedAt ); event Minted(address indexed receiver, uint256 quantity); event PublicMintStateChange(bool active); event WhitelistMintStateChange(bool active); modifier isPublicMintActive() { if (msg.sender != tx.origin) revert NotUser(); if (!publicMintActive) revert PublicMintNotActive(); _; } modifier isWhitelistActive() { if (msg.sender != tx.origin) revert NotUser(); if (!whitelistMintActive) revert WhitelistMintNotActive(); _; } modifier onlyTokenOwner(uint256 tokenId) { if (msg.sender != ownerOf(tokenId)) revert NotAnTokenOwner(); _; } constructor( address _owner, address _signer, string memory _name, string memory _symbol, string memory _baseUri, address _royaltyReceiver, uint96 _royaltyFraction ) ERC721A(_name, _symbol) ERC2981(_royaltyReceiver, _royaltyFraction) Ownable(_owner) { setSignerAddress(_signer); _baseTokenURI = _baseUri; } function supportsInterface( bytes4 interfaceId ) public view override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /* ROYALTY */ function setRoyaltyInfo( address receiver, uint96 feeBasisPoints ) external onlyOwner { _setRoyaltyInfo(receiver, feeBasisPoints); } /* URI */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory baseURI) external onlyOwner { _baseTokenURI = baseURI; } /* STAKE */ function stake(uint256 tokenId) external onlyTokenOwner(tokenId) { if (canStake != true) revert StakingNotOpen(); if (tokensLastStakedAt[tokenId] != 0) revert AlreadyStaked(); tokensLastStakedAt[tokenId] = block.timestamp; emit Stake(tokenId, msg.sender, tokensLastStakedAt[tokenId]); } function unstake(uint256 tokenId) external onlyTokenOwner(tokenId) { if (tokensLastStakedAt[tokenId] == 0) revert NotStaked(); uint256 tokenLastStakedAt = tokensLastStakedAt[tokenId]; tokensLastStakedAt[tokenId] = 0; emit Unstake(tokenId, msg.sender, tokenLastStakedAt, block.timestamp); } function ownerUnstake(uint256 tokenId) external onlyOwner { if (tokensLastStakedAt[tokenId] == 0) revert NotStaked(); uint256 tokenLastStakedAt = tokensLastStakedAt[tokenId]; tokensLastStakedAt[tokenId] = 0; emit Unstake(tokenId, msg.sender, tokenLastStakedAt, block.timestamp); } function setCanStake(bool _canStake) external onlyOwner { canStake = _canStake; } /* MINT SETTINGS */ function setWhitelistMintActive(bool active) external onlyOwner { whitelistMintActive = active; emit WhitelistMintStateChange(active); } function setPublicMintActive(bool active) external onlyOwner { publicMintActive = active; emit PublicMintStateChange(active); } function setPublicMintPrice(uint256 price) external onlyOwner { publicMintPrice = price; } function setMintLimitPerWallet(uint96 limit) external onlyOwner { mintLimitPerWallet = limit; } function setMintLimitPerTx(uint96 limit) external onlyOwner { mintLimitPerTx = limit; } function setSignerAddress(address _signerAddress) public onlyOwner { if (_signerAddress == address(0)) revert ZeroAddress(); signerAddress = _signerAddress; } /* MINT */ function publicMint(uint256 quantity) external payable isPublicMintActive { if ( maxSupply - _totalMinted() - RESERVED_TEAM < quantity ) revert SoldOut(); if (_numberMinted(msg.sender) + quantity > mintLimitPerWallet) revert LimitPerWalletExceeded(); if (msg.value != quantity * publicMintPrice) revert IncorrectPrice(); if (quantity > mintLimitPerTx) revert LimitPerTxnExceeded(); _mint(msg.sender, quantity); emit Minted(msg.sender, quantity); } function whitelistMint( uint256 quantity, bytes calldata signature_ ) external payable isWhitelistActive { if ( maxSupply - _totalMinted() - RESERVED_ALLOWLIST - RESERVED_TEAM < quantity ) revert SoldOut(); if (!verifySignature(signature_, quantity, 0)) revert InvalidSignature(); if (_numberMinted(msg.sender) + quantity > mintLimitPerWallet) revert LimitPerWalletExceeded(); if (quantity > mintLimitPerTx) revert LimitPerTxnExceeded(); _mint(msg.sender, quantity); emit Minted(msg.sender, quantity); } function allowlistMint( uint256 quantity, bytes calldata signature_ ) external payable { if ( maxSupply - _totalMinted() - RESERVED_TEAM < quantity ) revert SoldOut(); if (!verifySignature(signature_, quantity, 1)) revert InvalidSignature(); if (_numberMinted(msg.sender) + quantity > mintLimitPerWallet) revert LimitPerWalletExceeded(); if (quantity > mintLimitPerTx) revert LimitPerTxnExceeded(); _mint(msg.sender, quantity); emit Minted(msg.sender, quantity); } function batchMint( uint64[] calldata quantities, address[] calldata recipients ) external onlyOwner { uint256 numRecipients = recipients.length; if (numRecipients != quantities.length) revert InvalidBatchMint(); for (uint256 i = 0; i < numRecipients; ) { if (_totalMinted() + quantities[i] > maxSupply) revert SoldOut(); _safeMint(recipients[i], quantities[i]); emit Minted(recipients[i], quantities[i]); unchecked { i++; } } } function verifySignature( bytes memory signature, uint256 mintQuantity, uint256 mintType ) internal view returns (bool) { return signerAddress == keccak256( abi.encodePacked( msg.sender, mintQuantity, _numberMinted(msg.sender), mintType, address(this) ) ).toEthSignedMessageHash().recover(signature); } function numberMinted(address account) external view returns (uint256) { return _numberMinted(account); } function totalMinted() external view virtual returns (uint256) { return _totalMinted(); } function transferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721A) { if (tokensLastStakedAt[tokenId] != 0) revert CannotTransferStakedToken(); super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable override(ERC721A) { if (tokensLastStakedAt[tokenId] != 0) revert CannotTransferStakedToken(); super.safeTransferFrom(from, to, tokenId, _data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "../Interfaces/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../Interfaces/IERC2981.sol"; import "./ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { address public royaltyReceiver; uint96 public royaltyFraction; constructor(address _royaltyReceiver, uint96 _royaltyFraction) { _setRoyaltyInfo(_royaltyReceiver, _royaltyFraction); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) public view virtual override returns (address, uint256) { uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator(); return (royaltyReceiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setRoyaltyInfo( address receiver, uint96 feeNumerator ) internal virtual { require( feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice" ); require(receiver != address(0), "ERC2981: invalid receiver"); royaltyReceiver = receiver; royaltyFraction = feeNumerator; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import "../Interfaces/IERC721A.sol"; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // 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 bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID 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` // - [232..255] `extraData` 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 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf( address owner ) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); 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 auxiliary 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 auxiliary 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 virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ 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: [ERC165](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. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); 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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf( uint256 tokenId ) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf( uint256 tokenId ) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt( uint256 index ) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf( uint256 tokenId ) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev 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; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData( address owner, uint256 flags ) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or( owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags) ) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag( uint256 quantity ) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve( address to, uint256 tokenId ) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved( uint256 tokenId ) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @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 ) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll( address owner, address operator ) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress( uint256 tokenId ) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if ( !_isSenderApprovedOrOwner( approvedAddress, from, _msgSenderERC721A() ) ) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // 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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns 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.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _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] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer( startTokenId, startTokenId + quantity - 1, address(0), to ); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, 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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if ( !_checkContractOnERC721Received( address(0), to, index++, _data ) ) { _revert( TransferToNonERC721ReceiverImplementer.selector ); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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)); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if ( !_isSenderApprovedOrOwner( approvedAddress, from, _msgSenderERC721A() ) ) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // 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++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @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 virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../Interfaces/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @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() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 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`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer( uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to ); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 // Deprecated in v4.8 } 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"); } } /** * @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) { 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. /// @solidity memory-safe-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 { 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 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 pragma solidity ^0.8.0; import "../Utils/Context.sol"; error NotAnOwner(); abstract contract Ownable is Context { address owner; constructor(address _owner) { owner = _owner; } function isOwner(address account) public view returns (bool) { return account == owner; } modifier onlyOwner() { if (isOwner(_msgSender()) != true) revert NotAnOwner(); _; } }
// SPDX-License-Identifier: MIT // taken from openzeppelin pragma solidity ^0.8.0; library Strings { function toString(uint256 value) internal pure returns (string memory) { 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); } }
{ "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":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyFraction","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyStaked","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotTransferStakedToken","type":"error"},{"inputs":[],"name":"IncorrectPrice","type":"error"},{"inputs":[],"name":"InvalidBatchMint","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"LimitPerTxnExceeded","type":"error"},{"inputs":[],"name":"LimitPerWalletExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotAnOwner","type":"error"},{"inputs":[],"name":"NotAnTokenOwner","type":"error"},{"inputs":[],"name":"NotStaked","type":"error"},{"inputs":[],"name":"NotUser","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PublicMintNotActive","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"StakingNotOpen","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"},{"inputs":[],"name":"WhitelistMintNotActive","type":"error"},{"inputs":[],"name":"ZeroAddress","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"PublicMintStateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAt","type":"uint256"}],"name":"Stake","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakedAt","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"WhitelistMintStateChange","type":"event"},{"inputs":[],"name":"RESERVED_ALLOWLIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_TEAM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"quantities","type":"uint64[]"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","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":"mintLimitPerTx","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimitPerWallet","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"ownerUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFraction","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_canStake","type":"bool"}],"name":"setCanStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"limit","type":"uint96"}],"name":"setMintLimitPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"limit","type":"uint96"}],"name":"setMintLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setWhitelistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensLastStakedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052660aa87bee538000600c556002600d60006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506002600d600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503480156200008057600080fd5b5060405162005407380380620054078339818101604052810190620000a6919062000750565b848483838a806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620000fe82826200018160201b60201c565b505081600490805190602001906200011892919062000455565b5080600590805190602001906200013192919062000455565b5062000142620002db60201b60201c565b60028190555050506200015b86620002e060201b60201c565b82600b90805190602001906200017392919062000455565b5050505050505050620009e0565b62000191620003ea60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620001f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e990620008e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000265576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200025c9062000959565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b600090565b6001151562000304620002f8620003f460201b60201c565b620003fc60201b60201c565b1515146200033e576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620003a6576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000612710905090565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b8280546200046390620009aa565b90600052602060002090601f016020900481019282620004875760008555620004d3565b82601f10620004a257805160ff1916838001178555620004d3565b82800160010185558215620004d3579182015b82811115620004d2578251825591602001919060010190620004b5565b5b509050620004e29190620004e6565b5090565b5b8082111562000501576000816000905550600101620004e7565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005468262000519565b9050919050565b620005588162000539565b81146200056457600080fd5b50565b60008151905062000578816200054d565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005d38262000588565b810181811067ffffffffffffffff82111715620005f557620005f462000599565b5b80604052505050565b60006200060a62000505565b9050620006188282620005c8565b919050565b600067ffffffffffffffff8211156200063b576200063a62000599565b5b620006468262000588565b9050602081019050919050565b60005b838110156200067357808201518184015260208101905062000656565b8381111562000683576000848401525b50505050565b6000620006a06200069a846200061d565b620005fe565b905082815260208101848484011115620006bf57620006be62000583565b5b620006cc84828562000653565b509392505050565b600082601f830112620006ec57620006eb6200057e565b5b8151620006fe84826020860162000689565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b6200072a8162000707565b81146200073657600080fd5b50565b6000815190506200074a816200071f565b92915050565b600080600080600080600060e0888a0312156200077257620007716200050f565b5b6000620007828a828b0162000567565b9750506020620007958a828b0162000567565b965050604088015167ffffffffffffffff811115620007b957620007b862000514565b5b620007c78a828b01620006d4565b955050606088015167ffffffffffffffff811115620007eb57620007ea62000514565b5b620007f98a828b01620006d4565b945050608088015167ffffffffffffffff8111156200081d576200081c62000514565b5b6200082b8a828b01620006d4565b93505060a06200083e8a828b0162000567565b92505060c0620008518a828b0162000739565b91505092959891949750929550565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620008cf602a8362000860565b9150620008dc8262000871565b604082019050919050565b600060208201905081810360008301526200090281620008c0565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200094160198362000860565b91506200094e8262000909565b602082019050919050565b60006020820190508181036000830152620009748162000932565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009c357607f821691505b60208210811415620009da57620009d96200097b565b5b50919050565b614a1780620009f06000396000f3fe6080604052600436106102935760003560e01c80636752656b1161015a578063b67c25a3116100c1578063dc53fd921161007a578063dc53fd92146109c6578063e0f9b479146109f1578063e7dee99f14610a1c578063e84329f214610a47578063e886718014610a72578063e985e9c514610a9b57610293565b8063b67c25a3146108af578063b88d4fde146108da578063c87b56dd146108f6578063cfc86f7b14610933578063d5abeb011461095e578063dc33e6811461098957610293565b80639e852f75116101135780639e852f75146107c05780639ed27809146107dc5780639fbc871314610807578063a22cb46514610832578063a2309ff81461085b578063a694fc3a1461088657610293565b80636752656b146106b257806370a08231146106db578063737e5b801461071857806392439fe51461074157806395d89b411461076a5780639c3491c21461079557610293565b80632b707c71116101fe57806342842e0e116101b757806342842e0e146105b157806355f804b3146105cd5780635b7633d0146105f65780635d82cf6e146106215780636352211e1461064a57806364de1e851461068757610293565b80632b707c71146104a05780632db11544146104c95780632e17de78146104e55780632f54bf6e1461050e57806335b504c51461054b5780633ad566a41461058857610293565b8063095ea7b311610250578063095ea7b3146103ba57806315c8f106146103d657806318160ddd146103f257806318bea1c41461041d57806323b872dd146104465780632a55205a1461046257610293565b806301ffc9a71461029857806302fa7c47146102d5578063046dc166146102fe578063068b2fec1461032757806306fdde0314610352578063081812fc1461037d575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906137a4565b610ad8565b6040516102cc91906137ec565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906138a9565b610afa565b005b34801561030a57600080fd5b50610325600480360381019061032091906138e9565b610b55565b005b34801561033357600080fd5b5061033c610c4d565b6040516103499190613925565b60405180910390f35b34801561035e57600080fd5b50610367610c6b565b60405161037491906139d9565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190613a31565b610cfd565b6040516103b19190613a6d565b60405180910390f35b6103d460048036038101906103cf9190613a88565b610d5b565b005b6103f060048036038101906103eb9190613b2d565b610d6b565b005b3480156103fe57600080fd5b50610407610f7f565b6040516104149190613b9c565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f9190613be3565b610f96565b005b610460600480360381019061045b9190613c10565b611037565b005b34801561046e57600080fd5b5061048960048036038101906104849190613c63565b611094565b604051610497929190613ca3565b60405180910390f35b3480156104ac57600080fd5b506104c760048036038101906104c29190613be3565b61111f565b005b6104e360048036038101906104de9190613a31565b6111c0565b005b3480156104f157600080fd5b5061050c60048036038101906105079190613a31565b61143d565b005b34801561051a57600080fd5b50610535600480360381019061053091906138e9565b611580565b60405161054291906137ec565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613a31565b6115d9565b60405161057f9190613b9c565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa9190613ccc565b6115f1565b005b6105cb60048036038101906105c69190613c10565b611672565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190613e29565b611692565b005b34801561060257600080fd5b5061060b6116f9565b6040516106189190613a6d565b60405180910390f35b34801561062d57600080fd5b5061064860048036038101906106439190613a31565b61171f565b005b34801561065657600080fd5b50610671600480360381019061066c9190613a31565b611776565b60405161067e9190613a6d565b60405180910390f35b34801561069357600080fd5b5061069c611788565b6040516106a991906137ec565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613f1e565b61179b565b005b3480156106e757600080fd5b5061070260048036038101906106fd91906138e9565b6119c9565b60405161070f9190613b9c565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613ccc565b611a61565b005b34801561074d57600080fd5b5061076860048036038101906107639190613a31565b611ae2565b005b34801561077657600080fd5b5061077f611c03565b60405161078c91906139d9565b60405180910390f35b3480156107a157600080fd5b506107aa611c95565b6040516107b79190613b9c565b60405180910390f35b6107da60048036038101906107d59190613b2d565b611c9a565b005b3480156107e857600080fd5b506107f1611f66565b6040516107fe91906137ec565b60405180910390f35b34801561081357600080fd5b5061081c611f79565b6040516108299190613a6d565b60405180910390f35b34801561083e57600080fd5b5061085960048036038101906108549190613f9f565b611f9f565b005b34801561086757600080fd5b506108706120aa565b60405161087d9190613b9c565b60405180910390f35b34801561089257600080fd5b506108ad60048036038101906108a89190613a31565b6120b9565b005b3480156108bb57600080fd5b506108c461223f565b6040516108d191906137ec565b60405180910390f35b6108f460048036038101906108ef9190614080565b612252565b005b34801561090257600080fd5b5061091d60048036038101906109189190613a31565b6122b1565b60405161092a91906139d9565b60405180910390f35b34801561093f57600080fd5b5061094861232f565b60405161095591906139d9565b60405180910390f35b34801561096a57600080fd5b506109736123bd565b6040516109809190613b9c565b60405180910390f35b34801561099557600080fd5b506109b060048036038101906109ab91906138e9565b6123c3565b6040516109bd9190613b9c565b60405180910390f35b3480156109d257600080fd5b506109db6123d5565b6040516109e89190613b9c565b60405180910390f35b3480156109fd57600080fd5b50610a066123db565b604051610a139190613925565b60405180910390f35b348015610a2857600080fd5b50610a316123f9565b604051610a3e9190613925565b60405180910390f35b348015610a5357600080fd5b50610a5c612417565b604051610a699190613b9c565b60405180910390f35b348015610a7e57600080fd5b50610a996004803603810190610a949190613be3565b61241d565b005b348015610aa757600080fd5b50610ac26004803603810190610abd9190614103565b612487565b604051610acf91906137ec565b60405180910390f35b6000610ae38261251b565b80610af35750610af2826125ad565b5b9050919050565b60011515610b0e610b09612627565b611580565b151514610b47576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b51828261262f565b5050565b60011515610b69610b64612627565b611580565b151514610ba2576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c09576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d60009054906101000a90046bffffffffffffffffffffffff1681565b606060048054610c7a90614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca690614172565b8015610cf35780601f10610cc857610100808354040283529160200191610cf3565b820191906000526020600020905b815481529060010190602001808311610cd657829003601f168201915b5050505050905090565b6000610d088261277b565b610d1d57610d1c63cf4700e460e01b6127da565b5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d67828260016127e4565b5050565b8260c8610d76612913565b6107c0610d8391906141d3565b610d8d91906141d3565b1015610dc5576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e1582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050846001612926565b610e4b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1683610e7e336129d2565b610e889190614207565b1115610ec0576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16831115610f22576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f2c3384612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe84604051610f729190613b9c565b60405180910390a2505050565b6000610f89612b90565b6003546002540303905090565b60011515610faa610fa5612627565b611580565b151514610fe3576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60026101000a81548160ff0219169083151502179055507f73e23f4520473d9a62637503ebeff2da7bfc80277791d24adc1e8b65524496968160405161102c91906137ec565b60405180910390a150565b6000600f60008381526020019081526020016000205414611084576040517f1577f91500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61108f838383612b95565b505050565b60008060006110a1612e59565b6bffffffffffffffffffffffff16600160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110e3919061425d565b6110ed91906142e6565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b6001151561113361112e612627565b611580565b15151461116c576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60016101000a81548160ff0219169083151502179055507faef4094647efd65fa9ec458cca07a4b14ab68c9b20c565dd2109184ee74281d2816040516111b591906137ec565b60405180910390a150565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611225576040517f7aafae9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60019054906101000a900460ff1661126b576040517fcd967e3500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060c8611276612913565b6107c061128391906141d3565b61128d91906141d3565b10156112c5576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16816112f8336129d2565b6113029190614207565b111561133a576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5481611348919061425d565b3414611380576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168111156113e2576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ec3382612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516114329190613b9c565b60405180910390a250565b8061144781611776565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114ab576040517f432208b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008481526020019081526020016000205414156114f9576040517f039f2e1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008481526020019081526020016000205490506000600f6000858152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16837fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c28342604051611573929190614317565b60405180910390a3505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b600f6020528060005260406000206000915090505481565b60011515611605611600612627565b611580565b15151461163e576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b61168d83838360405180602001604052806000815250612252565b505050565b600115156116a66116a1612627565b611580565b1515146116df576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b90805190602001906116f5929190613695565b5050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001151561173361172e612627565b611580565b15151461176c576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c8190555050565b600061178182612e63565b9050919050565b600a60029054906101000a900460ff1681565b600115156117af6117aa612627565b611580565b1515146117e8576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082829050905084849050811461182c576040517ffc6234ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156119c1576107c086868381811061184d5761184c614340565b5b905060200201602081019061186291906143af565b67ffffffffffffffff16611874612913565b61187e9190614207565b11156118b6576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119188484838181106118cc576118cb614340565b5b90506020020160208101906118e191906138e9565b8787848181106118f4576118f3614340565b5b905060200201602081019061190991906143af565b67ffffffffffffffff16612f26565b83838281811061192b5761192a614340565b5b905060200201602081019061194091906138e9565b73ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe87878481811061198a57611989614340565b5b905060200201602081019061199f91906143af565b6040516119ac9190614417565b60405180910390a2808060010191505061182f565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a1057611a0f638f4eb60460e01b6127da565b5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60011515611a75611a70612627565b611580565b151514611aae576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b60011515611af6611af1612627565b611580565b151514611b2f576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f6000838152602001908152602001600020541415611b7d576040517f039f2e1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008381526020019081526020016000205490506000600f6000848152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16827fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c28342604051611bf7929190614317565b60405180910390a35050565b606060058054611c1290614172565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3e90614172565b8015611c8b5780601f10611c6057610100808354040283529160200191611c8b565b820191906000526020600020905b815481529060010190602001808311611c6e57829003601f168201915b5050505050905090565b60c881565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cff576040517f7aafae9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60029054906101000a900460ff16611d45576040517fb980d98b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260c8610346611d53612913565b6107c0611d6091906141d3565b611d6a91906141d3565b611d7491906141d3565b1015611dac576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611dfc82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050846000612926565b611e32576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1683611e65336129d2565b611e6f9190614207565b1115611ea7576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16831115611f09576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f133384612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe84604051611f599190613b9c565b60405180910390a2505050565b600a60009054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8060096000611fac612f44565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612059612f44565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161209e91906137ec565b60405180910390a35050565b60006120b4612913565b905090565b806120c381611776565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612127576040517f432208b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600a60009054906101000a900460ff16151514612174576040517fe14162d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f600084815260200190815260200160002054146121c1576040517f0ae3514d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42600f6000848152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16827f02567b2553aeb44e4ddd5d68462774dc3de158cb0f2c2da1740e729b22086aff600f6000868152602001908152602001600020546040516122339190613b9c565b60405180910390a35050565b600a60019054906101000a900460ff1681565b6000600f6000848152602001908152602001600020541461229f576040517f1577f91500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122ab84848484612f4c565b50505050565b60606122bc8261277b565b6122d1576122d063a14c4b5060e01b6127da565b5b60006122db612f9e565b90506000815114156122fc5760405180602001604052806000815250612327565b8061230684613030565b60405160200161231792919061446e565b6040516020818303038152906040525b915050919050565b600b805461233c90614172565b80601f016020809104026020016040519081016040528092919081815260200182805461236890614172565b80156123b55780601f1061238a576101008083540402835291602001916123b5565b820191906000526020600020905b81548152906001019060200180831161239857829003601f168201915b505050505081565b6107c081565b60006123ce826129d2565b9050919050565b600c5481565b600d600c9054906101000a90046bffffffffffffffffffffffff1681565b600160149054906101000a90046bffffffffffffffffffffffff1681565b61034681565b6001151561243161242c612627565b611580565b15151461246a576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061257657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806125a65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612620575061261f82613089565b5b9050919050565b600033905090565b612637612e59565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268c90614504565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fc90614570565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b600081612786612b90565b11158015612795575060025482105b80156127d3575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b9050919050565b8060005260046000fd5b60006127ef83611776565b905081801561283157508073ffffffffffffffffffffffffffffffffffffffff16612818612f44565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561285d5761284781612842612f44565b612487565b61285c5761285b63cfb3b94260e01b6127da565b5b5b836008600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600061291d612b90565b60025403905090565b60006129798461296b338661293a336129d2565b87306040516020016129509594939291906145f9565b604051602081830303815290604052805190602001206130f3565b61312390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161490509392505050565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600060025490506000821415612a4a57612a4963b562e8dd60e01b6127da565b5b612a57600084838561314a565b612a7783612a686000866000613150565b612a7185613178565b17613188565b6006600083815260200190815260200160002081905550600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690506000811415612b3057612b2f632e07630060e01b6127da565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150811415612b3d5781600281905550505050612b8b60008483856131b3565b505050565b600090565b6000612ba082612e63565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612c1557612c1463a114810060e01b6127da565b5b600080612c21846131b9565b91509150612c378187612c32612f44565b6131e0565b612c6257612c4c86612c47612f44565b612487565b612c6157612c606359c896be60e01b6127da565b5b5b612c6f868686600161314a565b8015612c7a57600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612d4885612d24888887613150565b7c020000000000000000000000000000000000000000000000000000000017613188565b600660008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415612dd0576000600185019050600060066000838152602001908152602001600020541415612dce576002548114612dcd578360066000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46000811415612e4357612e4263ea553b3460e01b6127da565b5b612e5087878760016131b3565b50505050505050565b6000612710905090565b600081612e6e612b90565b11612f10576006600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612f0f576000811415612f0a576002548210612ed457612ed363df2d9b4260e01b6127da565b5b5b60066000836001900393508381526020019081526020016000205490506000811415612f0057612f05565b612f21565b612ed5565b612f21565b5b612f2063df2d9b4260e01b6127da565b5b919050565b612f40828260405180602001604052806000815250613224565b5050565b600033905090565b612f57848484611037565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f9857612f82848484846132aa565b612f9757612f9663d1a57ed660e01b6127da565b5b5b50505050565b6060600b8054612fad90614172565b80601f0160208091040260200160405190810160405280929190818152602001828054612fd990614172565b80156130265780601f10612ffb57610100808354040283529160200191613026565b820191906000526020600020905b81548152906001019060200180831161300957829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561307457600184039350600a81066030018453600a810490508061306f57613074565b613049565b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008160405160200161310691906146cf565b604051602081830303815290604052805190602001209050919050565b600080600061313285856133e9565b9150915061313f8161343b565b819250505092915050565b50505050565b60008060e883901c905060e86131678686846135a9565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61322e8383612a29565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132a55760006002549050600083820390505b61326f60008683806001019450866132aa565b6132845761328363d1a57ed660e01b6127da565b5b81811061325c5781600254146132a2576132a1600060e01b6127da565b5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132d0612f44565b8786866040518563ffffffff1660e01b81526004016132f2949392919061474a565b602060405180830381600087803b15801561330c57600080fd5b505af192505050801561333d57506040513d601f19601f8201168201806040525081019061333a91906147ab565b60015b613396573d806000811461336d576040519150601f19603f3d011682016040523d82523d6000602084013e613372565b606091505b5060008151141561338e5761338d63d1a57ed660e01b6127da565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008060418351141561342b5760008060006020860151925060408601519150606086015160001a905061341f878285856135b2565b94509450505050613434565b60006002915091505b9250929050565b6000600481111561344f5761344e6147d8565b5b816004811115613462576134616147d8565b5b141561346d576135a6565b60016004811115613481576134806147d8565b5b816004811115613494576134936147d8565b5b14156134d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134cc90614853565b60405180910390fd5b600260048111156134e9576134e86147d8565b5b8160048111156134fc576134fb6147d8565b5b141561353d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613534906148bf565b60405180910390fd5b60036004811115613551576135506147d8565b5b816004811115613564576135636147d8565b5b14156135a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359c90614951565b60405180910390fd5b5b50565b60009392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135ed57600060039150915061368c565b600060018787878760405160008152602001604052604051613612949392919061499c565b6020604051602081039080840390855afa158015613634573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156136835760006001925092505061368c565b80600092509250505b94509492505050565b8280546136a190614172565b90600052602060002090601f0160209004810192826136c3576000855561370a565b82601f106136dc57805160ff191683800117855561370a565b8280016001018555821561370a579182015b828111156137095782518255916020019190600101906136ee565b5b509050613717919061371b565b5090565b5b8082111561373457600081600090555060010161371c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137818161374c565b811461378c57600080fd5b50565b60008135905061379e81613778565b92915050565b6000602082840312156137ba576137b9613742565b5b60006137c88482850161378f565b91505092915050565b60008115159050919050565b6137e6816137d1565b82525050565b600060208201905061380160008301846137dd565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061383282613807565b9050919050565b61384281613827565b811461384d57600080fd5b50565b60008135905061385f81613839565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61388681613865565b811461389157600080fd5b50565b6000813590506138a38161387d565b92915050565b600080604083850312156138c0576138bf613742565b5b60006138ce85828601613850565b92505060206138df85828601613894565b9150509250929050565b6000602082840312156138ff576138fe613742565b5b600061390d84828501613850565b91505092915050565b61391f81613865565b82525050565b600060208201905061393a6000830184613916565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561397a57808201518184015260208101905061395f565b83811115613989576000848401525b50505050565b6000601f19601f8301169050919050565b60006139ab82613940565b6139b5818561394b565b93506139c581856020860161395c565b6139ce8161398f565b840191505092915050565b600060208201905081810360008301526139f381846139a0565b905092915050565b6000819050919050565b613a0e816139fb565b8114613a1957600080fd5b50565b600081359050613a2b81613a05565b92915050565b600060208284031215613a4757613a46613742565b5b6000613a5584828501613a1c565b91505092915050565b613a6781613827565b82525050565b6000602082019050613a826000830184613a5e565b92915050565b60008060408385031215613a9f57613a9e613742565b5b6000613aad85828601613850565b9250506020613abe85828601613a1c565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613aed57613aec613ac8565b5b8235905067ffffffffffffffff811115613b0a57613b09613acd565b5b602083019150836001820283011115613b2657613b25613ad2565b5b9250929050565b600080600060408486031215613b4657613b45613742565b5b6000613b5486828701613a1c565b935050602084013567ffffffffffffffff811115613b7557613b74613747565b5b613b8186828701613ad7565b92509250509250925092565b613b96816139fb565b82525050565b6000602082019050613bb16000830184613b8d565b92915050565b613bc0816137d1565b8114613bcb57600080fd5b50565b600081359050613bdd81613bb7565b92915050565b600060208284031215613bf957613bf8613742565b5b6000613c0784828501613bce565b91505092915050565b600080600060608486031215613c2957613c28613742565b5b6000613c3786828701613850565b9350506020613c4886828701613850565b9250506040613c5986828701613a1c565b9150509250925092565b60008060408385031215613c7a57613c79613742565b5b6000613c8885828601613a1c565b9250506020613c9985828601613a1c565b9150509250929050565b6000604082019050613cb86000830185613a5e565b613cc56020830184613b8d565b9392505050565b600060208284031215613ce257613ce1613742565b5b6000613cf084828501613894565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d368261398f565b810181811067ffffffffffffffff82111715613d5557613d54613cfe565b5b80604052505050565b6000613d68613738565b9050613d748282613d2d565b919050565b600067ffffffffffffffff821115613d9457613d93613cfe565b5b613d9d8261398f565b9050602081019050919050565b82818337600083830152505050565b6000613dcc613dc784613d79565b613d5e565b905082815260208101848484011115613de857613de7613cf9565b5b613df3848285613daa565b509392505050565b600082601f830112613e1057613e0f613ac8565b5b8135613e20848260208601613db9565b91505092915050565b600060208284031215613e3f57613e3e613742565b5b600082013567ffffffffffffffff811115613e5d57613e5c613747565b5b613e6984828501613dfb565b91505092915050565b60008083601f840112613e8857613e87613ac8565b5b8235905067ffffffffffffffff811115613ea557613ea4613acd565b5b602083019150836020820283011115613ec157613ec0613ad2565b5b9250929050565b60008083601f840112613ede57613edd613ac8565b5b8235905067ffffffffffffffff811115613efb57613efa613acd565b5b602083019150836020820283011115613f1757613f16613ad2565b5b9250929050565b60008060008060408587031215613f3857613f37613742565b5b600085013567ffffffffffffffff811115613f5657613f55613747565b5b613f6287828801613e72565b9450945050602085013567ffffffffffffffff811115613f8557613f84613747565b5b613f9187828801613ec8565b925092505092959194509250565b60008060408385031215613fb657613fb5613742565b5b6000613fc485828601613850565b9250506020613fd585828601613bce565b9150509250929050565b600067ffffffffffffffff821115613ffa57613ff9613cfe565b5b6140038261398f565b9050602081019050919050565b600061402361401e84613fdf565b613d5e565b90508281526020810184848401111561403f5761403e613cf9565b5b61404a848285613daa565b509392505050565b600082601f83011261406757614066613ac8565b5b8135614077848260208601614010565b91505092915050565b6000806000806080858703121561409a57614099613742565b5b60006140a887828801613850565b94505060206140b987828801613850565b93505060406140ca87828801613a1c565b925050606085013567ffffffffffffffff8111156140eb576140ea613747565b5b6140f787828801614052565b91505092959194509250565b6000806040838503121561411a57614119613742565b5b600061412885828601613850565b925050602061413985828601613850565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061418a57607f821691505b6020821081141561419e5761419d614143565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141de826139fb565b91506141e9836139fb565b9250828210156141fc576141fb6141a4565b5b828203905092915050565b6000614212826139fb565b915061421d836139fb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614252576142516141a4565b5b828201905092915050565b6000614268826139fb565b9150614273836139fb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142ac576142ab6141a4565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142f1826139fb565b91506142fc836139fb565b92508261430c5761430b6142b7565b5b828204905092915050565b600060408201905061432c6000830185613b8d565b6143396020830184613b8d565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600067ffffffffffffffff82169050919050565b61438c8161436f565b811461439757600080fd5b50565b6000813590506143a981614383565b92915050565b6000602082840312156143c5576143c4613742565b5b60006143d38482850161439a565b91505092915050565b6000819050919050565b60006144016143fc6143f78461436f565b6143dc565b6139fb565b9050919050565b614411816143e6565b82525050565b600060208201905061442c6000830184614408565b92915050565b600081905092915050565b600061444882613940565b6144528185614432565b935061446281856020860161395c565b80840191505092915050565b600061447a828561443d565b9150614486828461443d565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006144ee602a8361394b565b91506144f982614492565b604082019050919050565b6000602082019050818103600083015261451d816144e1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061455a60198361394b565b915061456582614524565b602082019050919050565b600060208201905081810360008301526145898161454d565b9050919050565b60008160601b9050919050565b60006145a882614590565b9050919050565b60006145ba8261459d565b9050919050565b6145d26145cd82613827565b6145af565b82525050565b6000819050919050565b6145f36145ee826139fb565b6145d8565b82525050565b600061460582886145c1565b60148201915061461582876145e2565b60208201915061462582866145e2565b60208201915061463582856145e2565b60208201915061464582846145c1565b6014820191508190509695505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061468e601c83614432565b915061469982614658565b601c82019050919050565b6000819050919050565b6000819050919050565b6146c96146c4826146a4565b6146ae565b82525050565b60006146da82614681565b91506146e682846146b8565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b600061471c826146f5565b6147268185614700565b935061473681856020860161395c565b61473f8161398f565b840191505092915050565b600060808201905061475f6000830187613a5e565b61476c6020830186613a5e565b6147796040830185613b8d565b818103606083015261478b8184614711565b905095945050505050565b6000815190506147a581613778565b92915050565b6000602082840312156147c1576147c0613742565b5b60006147cf84828501614796565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061483d60188361394b565b915061484882614807565b602082019050919050565b6000602082019050818103600083015261486c81614830565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006148a9601f8361394b565b91506148b482614873565b602082019050919050565b600060208201905081810360008301526148d88161489c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061493b60228361394b565b9150614946826148df565b604082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b61497a816146a4565b82525050565b600060ff82169050919050565b61499681614980565b82525050565b60006080820190506149b16000830187614971565b6149be602083018661498d565b6149cb6040830185614971565b6149d86060830184614971565b9594505050505056fea2646970667358221220ba89b1ab0a8d2a19ef6f255504e15244635ed0a5f39b52482596a4181b5aff6f64736f6c63430008090033000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d2700000000000000000000000075dbf70f34d06928651cd3ed847dbc0f64a60f7000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d27000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095448452042414c4c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003424c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e597a4e514e3163664661417331694d655044475134617243534441337439566f63345356467a626b596d622f00000000000000000000
Deployed Bytecode
0x6080604052600436106102935760003560e01c80636752656b1161015a578063b67c25a3116100c1578063dc53fd921161007a578063dc53fd92146109c6578063e0f9b479146109f1578063e7dee99f14610a1c578063e84329f214610a47578063e886718014610a72578063e985e9c514610a9b57610293565b8063b67c25a3146108af578063b88d4fde146108da578063c87b56dd146108f6578063cfc86f7b14610933578063d5abeb011461095e578063dc33e6811461098957610293565b80639e852f75116101135780639e852f75146107c05780639ed27809146107dc5780639fbc871314610807578063a22cb46514610832578063a2309ff81461085b578063a694fc3a1461088657610293565b80636752656b146106b257806370a08231146106db578063737e5b801461071857806392439fe51461074157806395d89b411461076a5780639c3491c21461079557610293565b80632b707c71116101fe57806342842e0e116101b757806342842e0e146105b157806355f804b3146105cd5780635b7633d0146105f65780635d82cf6e146106215780636352211e1461064a57806364de1e851461068757610293565b80632b707c71146104a05780632db11544146104c95780632e17de78146104e55780632f54bf6e1461050e57806335b504c51461054b5780633ad566a41461058857610293565b8063095ea7b311610250578063095ea7b3146103ba57806315c8f106146103d657806318160ddd146103f257806318bea1c41461041d57806323b872dd146104465780632a55205a1461046257610293565b806301ffc9a71461029857806302fa7c47146102d5578063046dc166146102fe578063068b2fec1461032757806306fdde0314610352578063081812fc1461037d575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906137a4565b610ad8565b6040516102cc91906137ec565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906138a9565b610afa565b005b34801561030a57600080fd5b50610325600480360381019061032091906138e9565b610b55565b005b34801561033357600080fd5b5061033c610c4d565b6040516103499190613925565b60405180910390f35b34801561035e57600080fd5b50610367610c6b565b60405161037491906139d9565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190613a31565b610cfd565b6040516103b19190613a6d565b60405180910390f35b6103d460048036038101906103cf9190613a88565b610d5b565b005b6103f060048036038101906103eb9190613b2d565b610d6b565b005b3480156103fe57600080fd5b50610407610f7f565b6040516104149190613b9c565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f9190613be3565b610f96565b005b610460600480360381019061045b9190613c10565b611037565b005b34801561046e57600080fd5b5061048960048036038101906104849190613c63565b611094565b604051610497929190613ca3565b60405180910390f35b3480156104ac57600080fd5b506104c760048036038101906104c29190613be3565b61111f565b005b6104e360048036038101906104de9190613a31565b6111c0565b005b3480156104f157600080fd5b5061050c60048036038101906105079190613a31565b61143d565b005b34801561051a57600080fd5b50610535600480360381019061053091906138e9565b611580565b60405161054291906137ec565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613a31565b6115d9565b60405161057f9190613b9c565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa9190613ccc565b6115f1565b005b6105cb60048036038101906105c69190613c10565b611672565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190613e29565b611692565b005b34801561060257600080fd5b5061060b6116f9565b6040516106189190613a6d565b60405180910390f35b34801561062d57600080fd5b5061064860048036038101906106439190613a31565b61171f565b005b34801561065657600080fd5b50610671600480360381019061066c9190613a31565b611776565b60405161067e9190613a6d565b60405180910390f35b34801561069357600080fd5b5061069c611788565b6040516106a991906137ec565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613f1e565b61179b565b005b3480156106e757600080fd5b5061070260048036038101906106fd91906138e9565b6119c9565b60405161070f9190613b9c565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613ccc565b611a61565b005b34801561074d57600080fd5b5061076860048036038101906107639190613a31565b611ae2565b005b34801561077657600080fd5b5061077f611c03565b60405161078c91906139d9565b60405180910390f35b3480156107a157600080fd5b506107aa611c95565b6040516107b79190613b9c565b60405180910390f35b6107da60048036038101906107d59190613b2d565b611c9a565b005b3480156107e857600080fd5b506107f1611f66565b6040516107fe91906137ec565b60405180910390f35b34801561081357600080fd5b5061081c611f79565b6040516108299190613a6d565b60405180910390f35b34801561083e57600080fd5b5061085960048036038101906108549190613f9f565b611f9f565b005b34801561086757600080fd5b506108706120aa565b60405161087d9190613b9c565b60405180910390f35b34801561089257600080fd5b506108ad60048036038101906108a89190613a31565b6120b9565b005b3480156108bb57600080fd5b506108c461223f565b6040516108d191906137ec565b60405180910390f35b6108f460048036038101906108ef9190614080565b612252565b005b34801561090257600080fd5b5061091d60048036038101906109189190613a31565b6122b1565b60405161092a91906139d9565b60405180910390f35b34801561093f57600080fd5b5061094861232f565b60405161095591906139d9565b60405180910390f35b34801561096a57600080fd5b506109736123bd565b6040516109809190613b9c565b60405180910390f35b34801561099557600080fd5b506109b060048036038101906109ab91906138e9565b6123c3565b6040516109bd9190613b9c565b60405180910390f35b3480156109d257600080fd5b506109db6123d5565b6040516109e89190613b9c565b60405180910390f35b3480156109fd57600080fd5b50610a066123db565b604051610a139190613925565b60405180910390f35b348015610a2857600080fd5b50610a316123f9565b604051610a3e9190613925565b60405180910390f35b348015610a5357600080fd5b50610a5c612417565b604051610a699190613b9c565b60405180910390f35b348015610a7e57600080fd5b50610a996004803603810190610a949190613be3565b61241d565b005b348015610aa757600080fd5b50610ac26004803603810190610abd9190614103565b612487565b604051610acf91906137ec565b60405180910390f35b6000610ae38261251b565b80610af35750610af2826125ad565b5b9050919050565b60011515610b0e610b09612627565b611580565b151514610b47576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b51828261262f565b5050565b60011515610b69610b64612627565b611580565b151514610ba2576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c09576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d60009054906101000a90046bffffffffffffffffffffffff1681565b606060048054610c7a90614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca690614172565b8015610cf35780601f10610cc857610100808354040283529160200191610cf3565b820191906000526020600020905b815481529060010190602001808311610cd657829003601f168201915b5050505050905090565b6000610d088261277b565b610d1d57610d1c63cf4700e460e01b6127da565b5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d67828260016127e4565b5050565b8260c8610d76612913565b6107c0610d8391906141d3565b610d8d91906141d3565b1015610dc5576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e1582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050846001612926565b610e4b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1683610e7e336129d2565b610e889190614207565b1115610ec0576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16831115610f22576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f2c3384612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe84604051610f729190613b9c565b60405180910390a2505050565b6000610f89612b90565b6003546002540303905090565b60011515610faa610fa5612627565b611580565b151514610fe3576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60026101000a81548160ff0219169083151502179055507f73e23f4520473d9a62637503ebeff2da7bfc80277791d24adc1e8b65524496968160405161102c91906137ec565b60405180910390a150565b6000600f60008381526020019081526020016000205414611084576040517f1577f91500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61108f838383612b95565b505050565b60008060006110a1612e59565b6bffffffffffffffffffffffff16600160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110e3919061425d565b6110ed91906142e6565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b6001151561113361112e612627565b611580565b15151461116c576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60016101000a81548160ff0219169083151502179055507faef4094647efd65fa9ec458cca07a4b14ab68c9b20c565dd2109184ee74281d2816040516111b591906137ec565b60405180910390a150565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611225576040517f7aafae9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60019054906101000a900460ff1661126b576040517fcd967e3500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060c8611276612913565b6107c061128391906141d3565b61128d91906141d3565b10156112c5576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16816112f8336129d2565b6113029190614207565b111561133a576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5481611348919061425d565b3414611380576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168111156113e2576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ec3382612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516114329190613b9c565b60405180910390a250565b8061144781611776565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114ab576040517f432208b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008481526020019081526020016000205414156114f9576040517f039f2e1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008481526020019081526020016000205490506000600f6000858152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16837fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c28342604051611573929190614317565b60405180910390a3505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b600f6020528060005260406000206000915090505481565b60011515611605611600612627565b611580565b15151461163e576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b61168d83838360405180602001604052806000815250612252565b505050565b600115156116a66116a1612627565b611580565b1515146116df576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b90805190602001906116f5929190613695565b5050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001151561173361172e612627565b611580565b15151461176c576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c8190555050565b600061178182612e63565b9050919050565b600a60029054906101000a900460ff1681565b600115156117af6117aa612627565b611580565b1515146117e8576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082829050905084849050811461182c576040517ffc6234ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156119c1576107c086868381811061184d5761184c614340565b5b905060200201602081019061186291906143af565b67ffffffffffffffff16611874612913565b61187e9190614207565b11156118b6576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119188484838181106118cc576118cb614340565b5b90506020020160208101906118e191906138e9565b8787848181106118f4576118f3614340565b5b905060200201602081019061190991906143af565b67ffffffffffffffff16612f26565b83838281811061192b5761192a614340565b5b905060200201602081019061194091906138e9565b73ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe87878481811061198a57611989614340565b5b905060200201602081019061199f91906143af565b6040516119ac9190614417565b60405180910390a2808060010191505061182f565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a1057611a0f638f4eb60460e01b6127da565b5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60011515611a75611a70612627565b611580565b151514611aae576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b60011515611af6611af1612627565b611580565b151514611b2f576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f6000838152602001908152602001600020541415611b7d576040517f039f2e1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60008381526020019081526020016000205490506000600f6000848152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16827fc1e00202ee2c06861d326fc6374026b751863ff64218ccbaa38c3e603a8e72c28342604051611bf7929190614317565b60405180910390a35050565b606060058054611c1290614172565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3e90614172565b8015611c8b5780601f10611c6057610100808354040283529160200191611c8b565b820191906000526020600020905b815481529060010190602001808311611c6e57829003601f168201915b5050505050905090565b60c881565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cff576040517f7aafae9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60029054906101000a900460ff16611d45576040517fb980d98b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260c8610346611d53612913565b6107c0611d6091906141d3565b611d6a91906141d3565b611d7491906141d3565b1015611dac576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611dfc82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050846000612926565b611e32576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1683611e65336129d2565b611e6f9190614207565b1115611ea7576040517f4fe6c97400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16831115611f09576040517f562fe6ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f133384612a29565b3373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe84604051611f599190613b9c565b60405180910390a2505050565b600a60009054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8060096000611fac612f44565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612059612f44565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161209e91906137ec565b60405180910390a35050565b60006120b4612913565b905090565b806120c381611776565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612127576040517f432208b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600a60009054906101000a900460ff16151514612174576040517fe14162d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f600084815260200190815260200160002054146121c1576040517f0ae3514d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42600f6000848152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16827f02567b2553aeb44e4ddd5d68462774dc3de158cb0f2c2da1740e729b22086aff600f6000868152602001908152602001600020546040516122339190613b9c565b60405180910390a35050565b600a60019054906101000a900460ff1681565b6000600f6000848152602001908152602001600020541461229f576040517f1577f91500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122ab84848484612f4c565b50505050565b60606122bc8261277b565b6122d1576122d063a14c4b5060e01b6127da565b5b60006122db612f9e565b90506000815114156122fc5760405180602001604052806000815250612327565b8061230684613030565b60405160200161231792919061446e565b6040516020818303038152906040525b915050919050565b600b805461233c90614172565b80601f016020809104026020016040519081016040528092919081815260200182805461236890614172565b80156123b55780601f1061238a576101008083540402835291602001916123b5565b820191906000526020600020905b81548152906001019060200180831161239857829003601f168201915b505050505081565b6107c081565b60006123ce826129d2565b9050919050565b600c5481565b600d600c9054906101000a90046bffffffffffffffffffffffff1681565b600160149054906101000a90046bffffffffffffffffffffffff1681565b61034681565b6001151561243161242c612627565b611580565b15151461246a576040517feea91ff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061257657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806125a65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612620575061261f82613089565b5b9050919050565b600033905090565b612637612e59565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268c90614504565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fc90614570565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b600081612786612b90565b11158015612795575060025482105b80156127d3575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b9050919050565b8060005260046000fd5b60006127ef83611776565b905081801561283157508073ffffffffffffffffffffffffffffffffffffffff16612818612f44565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561285d5761284781612842612f44565b612487565b61285c5761285b63cfb3b94260e01b6127da565b5b5b836008600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600061291d612b90565b60025403905090565b60006129798461296b338661293a336129d2565b87306040516020016129509594939291906145f9565b604051602081830303815290604052805190602001206130f3565b61312390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161490509392505050565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600060025490506000821415612a4a57612a4963b562e8dd60e01b6127da565b5b612a57600084838561314a565b612a7783612a686000866000613150565b612a7185613178565b17613188565b6006600083815260200190815260200160002081905550600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690506000811415612b3057612b2f632e07630060e01b6127da565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150811415612b3d5781600281905550505050612b8b60008483856131b3565b505050565b600090565b6000612ba082612e63565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612c1557612c1463a114810060e01b6127da565b5b600080612c21846131b9565b91509150612c378187612c32612f44565b6131e0565b612c6257612c4c86612c47612f44565b612487565b612c6157612c606359c896be60e01b6127da565b5b5b612c6f868686600161314a565b8015612c7a57600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612d4885612d24888887613150565b7c020000000000000000000000000000000000000000000000000000000017613188565b600660008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415612dd0576000600185019050600060066000838152602001908152602001600020541415612dce576002548114612dcd578360066000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46000811415612e4357612e4263ea553b3460e01b6127da565b5b612e5087878760016131b3565b50505050505050565b6000612710905090565b600081612e6e612b90565b11612f10576006600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612f0f576000811415612f0a576002548210612ed457612ed363df2d9b4260e01b6127da565b5b5b60066000836001900393508381526020019081526020016000205490506000811415612f0057612f05565b612f21565b612ed5565b612f21565b5b612f2063df2d9b4260e01b6127da565b5b919050565b612f40828260405180602001604052806000815250613224565b5050565b600033905090565b612f57848484611037565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f9857612f82848484846132aa565b612f9757612f9663d1a57ed660e01b6127da565b5b5b50505050565b6060600b8054612fad90614172565b80601f0160208091040260200160405190810160405280929190818152602001828054612fd990614172565b80156130265780601f10612ffb57610100808354040283529160200191613026565b820191906000526020600020905b81548152906001019060200180831161300957829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561307457600184039350600a81066030018453600a810490508061306f57613074565b613049565b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008160405160200161310691906146cf565b604051602081830303815290604052805190602001209050919050565b600080600061313285856133e9565b9150915061313f8161343b565b819250505092915050565b50505050565b60008060e883901c905060e86131678686846135a9565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61322e8383612a29565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132a55760006002549050600083820390505b61326f60008683806001019450866132aa565b6132845761328363d1a57ed660e01b6127da565b5b81811061325c5781600254146132a2576132a1600060e01b6127da565b5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132d0612f44565b8786866040518563ffffffff1660e01b81526004016132f2949392919061474a565b602060405180830381600087803b15801561330c57600080fd5b505af192505050801561333d57506040513d601f19601f8201168201806040525081019061333a91906147ab565b60015b613396573d806000811461336d576040519150601f19603f3d011682016040523d82523d6000602084013e613372565b606091505b5060008151141561338e5761338d63d1a57ed660e01b6127da565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008060418351141561342b5760008060006020860151925060408601519150606086015160001a905061341f878285856135b2565b94509450505050613434565b60006002915091505b9250929050565b6000600481111561344f5761344e6147d8565b5b816004811115613462576134616147d8565b5b141561346d576135a6565b60016004811115613481576134806147d8565b5b816004811115613494576134936147d8565b5b14156134d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134cc90614853565b60405180910390fd5b600260048111156134e9576134e86147d8565b5b8160048111156134fc576134fb6147d8565b5b141561353d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613534906148bf565b60405180910390fd5b60036004811115613551576135506147d8565b5b816004811115613564576135636147d8565b5b14156135a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359c90614951565b60405180910390fd5b5b50565b60009392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135ed57600060039150915061368c565b600060018787878760405160008152602001604052604051613612949392919061499c565b6020604051602081039080840390855afa158015613634573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156136835760006001925092505061368c565b80600092509250505b94509492505050565b8280546136a190614172565b90600052602060002090601f0160209004810192826136c3576000855561370a565b82601f106136dc57805160ff191683800117855561370a565b8280016001018555821561370a579182015b828111156137095782518255916020019190600101906136ee565b5b509050613717919061371b565b5090565b5b8082111561373457600081600090555060010161371c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137818161374c565b811461378c57600080fd5b50565b60008135905061379e81613778565b92915050565b6000602082840312156137ba576137b9613742565b5b60006137c88482850161378f565b91505092915050565b60008115159050919050565b6137e6816137d1565b82525050565b600060208201905061380160008301846137dd565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061383282613807565b9050919050565b61384281613827565b811461384d57600080fd5b50565b60008135905061385f81613839565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61388681613865565b811461389157600080fd5b50565b6000813590506138a38161387d565b92915050565b600080604083850312156138c0576138bf613742565b5b60006138ce85828601613850565b92505060206138df85828601613894565b9150509250929050565b6000602082840312156138ff576138fe613742565b5b600061390d84828501613850565b91505092915050565b61391f81613865565b82525050565b600060208201905061393a6000830184613916565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561397a57808201518184015260208101905061395f565b83811115613989576000848401525b50505050565b6000601f19601f8301169050919050565b60006139ab82613940565b6139b5818561394b565b93506139c581856020860161395c565b6139ce8161398f565b840191505092915050565b600060208201905081810360008301526139f381846139a0565b905092915050565b6000819050919050565b613a0e816139fb565b8114613a1957600080fd5b50565b600081359050613a2b81613a05565b92915050565b600060208284031215613a4757613a46613742565b5b6000613a5584828501613a1c565b91505092915050565b613a6781613827565b82525050565b6000602082019050613a826000830184613a5e565b92915050565b60008060408385031215613a9f57613a9e613742565b5b6000613aad85828601613850565b9250506020613abe85828601613a1c565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613aed57613aec613ac8565b5b8235905067ffffffffffffffff811115613b0a57613b09613acd565b5b602083019150836001820283011115613b2657613b25613ad2565b5b9250929050565b600080600060408486031215613b4657613b45613742565b5b6000613b5486828701613a1c565b935050602084013567ffffffffffffffff811115613b7557613b74613747565b5b613b8186828701613ad7565b92509250509250925092565b613b96816139fb565b82525050565b6000602082019050613bb16000830184613b8d565b92915050565b613bc0816137d1565b8114613bcb57600080fd5b50565b600081359050613bdd81613bb7565b92915050565b600060208284031215613bf957613bf8613742565b5b6000613c0784828501613bce565b91505092915050565b600080600060608486031215613c2957613c28613742565b5b6000613c3786828701613850565b9350506020613c4886828701613850565b9250506040613c5986828701613a1c565b9150509250925092565b60008060408385031215613c7a57613c79613742565b5b6000613c8885828601613a1c565b9250506020613c9985828601613a1c565b9150509250929050565b6000604082019050613cb86000830185613a5e565b613cc56020830184613b8d565b9392505050565b600060208284031215613ce257613ce1613742565b5b6000613cf084828501613894565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d368261398f565b810181811067ffffffffffffffff82111715613d5557613d54613cfe565b5b80604052505050565b6000613d68613738565b9050613d748282613d2d565b919050565b600067ffffffffffffffff821115613d9457613d93613cfe565b5b613d9d8261398f565b9050602081019050919050565b82818337600083830152505050565b6000613dcc613dc784613d79565b613d5e565b905082815260208101848484011115613de857613de7613cf9565b5b613df3848285613daa565b509392505050565b600082601f830112613e1057613e0f613ac8565b5b8135613e20848260208601613db9565b91505092915050565b600060208284031215613e3f57613e3e613742565b5b600082013567ffffffffffffffff811115613e5d57613e5c613747565b5b613e6984828501613dfb565b91505092915050565b60008083601f840112613e8857613e87613ac8565b5b8235905067ffffffffffffffff811115613ea557613ea4613acd565b5b602083019150836020820283011115613ec157613ec0613ad2565b5b9250929050565b60008083601f840112613ede57613edd613ac8565b5b8235905067ffffffffffffffff811115613efb57613efa613acd565b5b602083019150836020820283011115613f1757613f16613ad2565b5b9250929050565b60008060008060408587031215613f3857613f37613742565b5b600085013567ffffffffffffffff811115613f5657613f55613747565b5b613f6287828801613e72565b9450945050602085013567ffffffffffffffff811115613f8557613f84613747565b5b613f9187828801613ec8565b925092505092959194509250565b60008060408385031215613fb657613fb5613742565b5b6000613fc485828601613850565b9250506020613fd585828601613bce565b9150509250929050565b600067ffffffffffffffff821115613ffa57613ff9613cfe565b5b6140038261398f565b9050602081019050919050565b600061402361401e84613fdf565b613d5e565b90508281526020810184848401111561403f5761403e613cf9565b5b61404a848285613daa565b509392505050565b600082601f83011261406757614066613ac8565b5b8135614077848260208601614010565b91505092915050565b6000806000806080858703121561409a57614099613742565b5b60006140a887828801613850565b94505060206140b987828801613850565b93505060406140ca87828801613a1c565b925050606085013567ffffffffffffffff8111156140eb576140ea613747565b5b6140f787828801614052565b91505092959194509250565b6000806040838503121561411a57614119613742565b5b600061412885828601613850565b925050602061413985828601613850565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061418a57607f821691505b6020821081141561419e5761419d614143565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141de826139fb565b91506141e9836139fb565b9250828210156141fc576141fb6141a4565b5b828203905092915050565b6000614212826139fb565b915061421d836139fb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614252576142516141a4565b5b828201905092915050565b6000614268826139fb565b9150614273836139fb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142ac576142ab6141a4565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142f1826139fb565b91506142fc836139fb565b92508261430c5761430b6142b7565b5b828204905092915050565b600060408201905061432c6000830185613b8d565b6143396020830184613b8d565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600067ffffffffffffffff82169050919050565b61438c8161436f565b811461439757600080fd5b50565b6000813590506143a981614383565b92915050565b6000602082840312156143c5576143c4613742565b5b60006143d38482850161439a565b91505092915050565b6000819050919050565b60006144016143fc6143f78461436f565b6143dc565b6139fb565b9050919050565b614411816143e6565b82525050565b600060208201905061442c6000830184614408565b92915050565b600081905092915050565b600061444882613940565b6144528185614432565b935061446281856020860161395c565b80840191505092915050565b600061447a828561443d565b9150614486828461443d565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006144ee602a8361394b565b91506144f982614492565b604082019050919050565b6000602082019050818103600083015261451d816144e1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061455a60198361394b565b915061456582614524565b602082019050919050565b600060208201905081810360008301526145898161454d565b9050919050565b60008160601b9050919050565b60006145a882614590565b9050919050565b60006145ba8261459d565b9050919050565b6145d26145cd82613827565b6145af565b82525050565b6000819050919050565b6145f36145ee826139fb565b6145d8565b82525050565b600061460582886145c1565b60148201915061461582876145e2565b60208201915061462582866145e2565b60208201915061463582856145e2565b60208201915061464582846145c1565b6014820191508190509695505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061468e601c83614432565b915061469982614658565b601c82019050919050565b6000819050919050565b6000819050919050565b6146c96146c4826146a4565b6146ae565b82525050565b60006146da82614681565b91506146e682846146b8565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b600061471c826146f5565b6147268185614700565b935061473681856020860161395c565b61473f8161398f565b840191505092915050565b600060808201905061475f6000830187613a5e565b61476c6020830186613a5e565b6147796040830185613b8d565b818103606083015261478b8184614711565b905095945050505050565b6000815190506147a581613778565b92915050565b6000602082840312156147c1576147c0613742565b5b60006147cf84828501614796565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061483d60188361394b565b915061484882614807565b602082019050919050565b6000602082019050818103600083015261486c81614830565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006148a9601f8361394b565b91506148b482614873565b602082019050919050565b600060208201905081810360008301526148d88161489c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061493b60228361394b565b9150614946826148df565b604082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b61497a816146a4565b82525050565b600060ff82169050919050565b61499681614980565b82525050565b60006080820190506149b16000830187614971565b6149be602083018661498d565b6149cb6040830185614971565b6149d86060830184614971565b9594505050505056fea2646970667358221220ba89b1ab0a8d2a19ef6f255504e15244635ed0a5f39b52482596a4181b5aff6f64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d2700000000000000000000000075dbf70f34d06928651cd3ed847dbc0f64a60f7000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d27000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095448452042414c4c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003424c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e597a4e514e3163664661417331694d655044475134617243534441337439566f63345356467a626b596d622f00000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0xd7A0B7076eeB0E72B962BFE0Bd4c53Ed88E38d27
Arg [1] : _signer (address): 0x75DBf70f34d06928651CD3ED847Dbc0f64A60f70
Arg [2] : _name (string): THE BALLZ
Arg [3] : _symbol (string): BLZ
Arg [4] : _baseUri (string): ipfs://QmNYzNQN1cfFaAs1iMePDGQ4arCSDA3t9Voc4SVFzbkYmb/
Arg [5] : _royaltyReceiver (address): 0xd7A0B7076eeB0E72B962BFE0Bd4c53Ed88E38d27
Arg [6] : _royaltyFraction (uint96): 0
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d27
Arg [1] : 00000000000000000000000075dbf70f34d06928651cd3ed847dbc0f64a60f70
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [5] : 000000000000000000000000d7a0b7076eeb0e72b962bfe0bd4c53ed88e38d27
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 5448452042414c4c5a0000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 424c5a0000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [12] : 697066733a2f2f516d4e597a4e514e3163664661417331694d65504447513461
Arg [13] : 7243534441337439566f63345356467a626b596d622f00000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.