Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
4,966 GOTB1
Holders
2,215
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 GOTB1Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GoTPackSeriesI
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '../../NiftysERC721A.sol'; import '../../utils/NiftysDefaultOperators.sol'; /** _____ _______ _____ _ / ____| |__ __| | __ \ | | | | __ ___ | | | |__) |_ _ ___| | _____ | | |_ |/ _ \| | | ___/ _` |/ __| |/ / __| | |__| | (_) | | | | | (_| | (__| <\__ \ \_____|\___/|_| |_| \__,_|\___|_|\_\___/ */ contract GoTPackSeriesI is NiftysERC721A, NiftysDefaultOperators { constructor( string memory name, string memory symbol, string memory baseURI, address recipient, uint24 value, address admin, address operator, address relay ) NiftysERC721A(name, symbol, baseURI, baseURI, recipient, value, admin) { _setupDefaultOperator(operator); grantRole(MINTER, relay); } function globalRevokeDefaultOperator() public isAdmin { _globalRevokeDefaultOperator(); } function isApprovedForAll(address owner, address operator) public view override(ERC721A, IERC721A) returns (bool) { return (isDefaultOperatorFor(owner, operator) || super.isApprovedForAll(owner, operator)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './utils/NiftysMetadataERC721A.sol'; import './royalties/NiftysContractWideRoyalties.sol'; import './operatorFilter/DefaultOperatorFilterer.sol'; import './721ALib/ERC721A.sol'; import './721ALib/extensions/ERC721ABurnable.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; error MaxIssuanceSet(); error MaxIssuanceReached(); error NonceAlreadyUsed(); error MintAuthorizationExpired(); error ArrayLengthMismatch(); error Unauthorized(); abstract contract NiftysERC721A is ERC721A, ERC721ABurnable, NiftysMetadataERC721A, NiftysContractWideRoyalties, DefaultOperatorFilterer { using ECDSA for bytes32; uint256 public maxIssuance; mapping(bytes32 => bool) public nonces; constructor( string memory name, string memory symbol, string memory baseTokenURI, string memory contractURI, address royaltyrecipient, uint24 royaltyvalue, address owner ) ERC721A(name, symbol) DefaultOperatorFilterer(owner) { _setBaseURI(baseTokenURI); _setContractURI(contractURI); _setRoyalties(royaltyrecipient, royaltyvalue); } function setMaxIssuance(uint256 _maxIssuance) external isAdmin { if (maxIssuance > 0) revert MaxIssuanceSet(); maxIssuance = _maxIssuance; } function setRoyalties(address recipient, uint24 value) external isAdmin { _setRoyalties(recipient, value); } function setContractURI(string memory contractURI) external isAdmin { _setContractURI(contractURI); } function setBaseURI(string memory uri) external isAdmin { _setBaseURI(uri); } function setTokenURI(uint256 tokenId, string memory tokenURI_) external isAdmin { _setTokenURI(tokenId, tokenURI_); } function burn(uint256 tokenId) public override { if (_msgSender() != ownerOf(tokenId)) revert TransferFromIncorrectOwner(); _burn(tokenId); } function burnFrom(uint256 tokenId) public { _burn(tokenId, true); } function getContractHash() public view returns (bytes32) { return keccak256(abi.encode(block.chainid, address(this))); } function hashMintData( address to, uint256 quantity, bytes32 nonce, uint256 expires ) public view returns (bytes32) { return keccak256(abi.encode(getContractHash(), abi.encode(to, quantity, nonce, expires))); } function validateSignature( address to, uint256 quantity, bytes32 nonce, uint256 expires, bytes memory sig ) internal view returns (bool) { address signer = hashMintData(to, quantity, nonce, expires) .toEthSignedMessageHash() .recover(sig); return hasRole(SIGNER, signer); } function mint(address to, uint256 quantity) external isMinter whenNotPaused { _mint(to, quantity); } function mintBatch(address[] calldata tos, uint256[] calldata quantities) external isMinter whenNotPaused { if (tos.length != quantities.length) revert ArrayLengthMismatch(); unchecked { for (uint256 i = 0; i < tos.length; i++) { _mint(tos[i], quantities[i]); } } } function authorizedMint( address to, uint256 quantity, bytes32 nonce, uint256 expires, bytes memory sig ) external whenNotPaused { if (validateSignature(to, quantity, nonce, expires, sig) == false) revert Unauthorized(); if (expires < block.timestamp) revert MintAuthorizationExpired(); if (nonces[nonce]) revert NonceAlreadyUsed(); nonces[nonce] = true; _mint(to, quantity); } // Overides function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _mint(address to, uint256 quantity) internal virtual override { unchecked { uint256 totalIssuance = _totalMinted() + quantity; if (maxIssuance > 0 && totalIssuance > maxIssuance) revert MaxIssuanceReached(); } super._mint(to, quantity); } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A, NiftysMetadataERC721A) returns (string memory) { return super.tokenURI(tokenId); } function _baseURI() internal view virtual override(ERC721A, NiftysMetadataERC721A) returns (string memory) { return super._baseURI(); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A, NiftysContractWideRoyalties, NiftysAccessControl) returns (bool) { return interfaceId == type(NiftysContractWideRoyalties).interfaceId || interfaceId == type(NiftysMetadataERC721A).interfaceId || interfaceId == type(NiftysAccessControl).interfaceId || interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f || interfaceId == 0x2a55205a; } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/Context.sol'; abstract contract NiftysDefaultOperators is Context { address private _defaultOperator; error DefaultOperatorExists(); event DefaultOperatorRevoked(address operator, address user); // For each account, a mapping of its operators and revoked default operators. mapping(address => mapping(address => bool)) private _revokedDefaultOperators; /** * @dev Sets `_defaultOperator` to `account`. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the default operator for the system. * * Using this function in any other way is effectively circumventing the * security of the system * ==== */ function _setupDefaultOperator(address account) internal virtual { if (_defaultOperator != address(0)) revert DefaultOperatorExists(); _defaultOperator = account; } function _globalRevokeDefaultOperator() internal virtual { _defaultOperator = address(0); } function defaultOperator() public view virtual returns (address) { return _defaultOperator; } function isDefaultOperatorFor(address tokenHolder, address operator) public view virtual returns (bool) { return _defaultOperator == operator && !_revokedDefaultOperators[tokenHolder][operator]; } function revokeDefaultOperator() public virtual { _revokedDefaultOperators[_msgSender()][_defaultOperator] = true; emit DefaultOperatorRevoked(_defaultOperator, _msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '../721ALib/ERC721A.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; /** * @dev ERC721A token with storage based token URI management. */ abstract contract NiftysMetadataERC721A is ERC721A { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; string private _uri; string private _contractURI; function contractURI() public view virtual returns (string memory) { return _contractURI; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721URIStorage: URI query for nonexistent token'); string memory _tokenURI = _tokenURIs[tokenId]; // If token has optional URI mapping, return it if (bytes(_tokenURI).length > 0) return _tokenURI; return super.tokenURI(tokenId); } // INTERNAL FUNCTIONS /** * @dev Returns `_uri` for internal functions * */ function _baseURI() internal view virtual override returns (string memory) { return _uri; } /** * @dev Sets `_uri` as the uri * */ function _setBaseURI(string memory uri) internal virtual { _uri = uri; } /** * @dev Sets `_contractURI` as the contractURI * */ function _setContractURI(string memory contractURI_) internal virtual { _contractURI = contractURI_; } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), 'ERC721URIStorage: URI set of nonexistent token'); _tokenURIs[tokenId] = _tokenURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './ERC2981Base.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721, 721A, 1155 /// @dev This implementation has the same royalties for each and every tokens abstract contract NiftysContractWideRoyalties is ERC2981Base { uint256 public constant ROYALTY_FEE_DENOMINATOR = 100_000; RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (10000 = 10%, 0 = 0) function _setRoyalties(address recipient, uint24 value) internal { require(value <= ROYALTY_FEE_DENOMINATOR, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); emit RoyaltyFeeChanged(recipient, value); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / ROYALTY_FEE_DENOMINATOR; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981Base) returns (bool) { return interfaceId == type(ERC2981Base).interfaceId || super.supportsInterface(interfaceId); } function royaltyWallet() public view returns (address) { return _royalties.recipient; } function royaltyFee() public view returns (uint24) { return _royalties.amount; } event RoyaltyFeeChanged(address recipient, uint24 royalty); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from './OperatorFilterer.sol'; import '../utils/NiftysAccessControl.sol'; abstract contract DefaultOperatorFilterer is OperatorFilterer, NiftysAccessControl { address public DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor(address _owner) OperatorFilterer(DEFAULT_SUBSCRIPTION, true) NiftysAccessControl(_owner) {} function updateFilterRegistry(address _registry) public onlyOwner { _updateFilterRegistry(_registry); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (bytes4 retval) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol unchecked { 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; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed 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; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './IERC2981Royalties.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Base is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from './IOperatorFilterRegistry.sol'; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); //update this address by owner IOperatorFilterRegistry public operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); function _updateFilterRegistry(address _registry) internal { operatorFilterRegistry = IOperatorFilterRegistry(_registry); } constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe( address(this), subscriptionOrRegistrantToCopy ); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries( address(this), subscriptionOrRegistrantToCopy ); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !(operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from)) ) { revert OperatorNotAllowed(msg.sender); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/AccessControl.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; abstract contract NiftysAccessControl is AccessControl, Pausable { address private _owner; bytes32 public constant ADMIN = keccak256('ADMIN'); bytes32 public constant MINTER = keccak256('Minter'); bytes32 public constant SIGNER = keccak256('SIGNER'); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); modifier isAdmin() { require(hasRole(ADMIN, _msgSender()), 'sender must have the ADMIN role'); _; } modifier isMinter() { require(hasRole(MINTER, _msgSender()), 'sender must have the MINT role'); _; } modifier onlyOwner() { require(_msgSender() == _owner, 'sender must be owner'); _; } modifier isGlobalAdmin() { require( hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'sender must hae the DEFAULT ADMIN ROLE' ); _; } constructor(address globalAdmin) { if (_msgSender() != globalAdmin) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(ADMIN, _msgSender()); } _setupRole(DEFAULT_ADMIN_ROLE, globalAdmin); _setupRole(ADMIN, globalAdmin); _setOwner(_msgSender()); } function pause() public isGlobalAdmin { _pause(); } function unpause() public isGlobalAdmin { _unpause(); } /** * @dev Ownership is * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual isAdmin { require(newOwner != address(0), 'Ownable: new owner is the zero address'); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl) returns (bool) { return interfaceId == type(AccessControl).interfaceId || interfaceId == type(Pausable).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator( address registrant, address operator, bool filtered ) external; function updateOperators( address registrant, address[] calldata operators, bool filtered ) external; function updateCodeHash( address registrant, bytes32 codehash, bool filtered ) external; function updateCodeHashes( address registrant, bytes32[] calldata codeHashes, bool filtered ) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721ABurnable compliant contract. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"relay","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"DefaultOperatorExists","type":"error"},{"inputs":[],"name":"MaxIssuanceReached","type":"error"},{"inputs":[],"name":"MaxIssuanceSet","type":"error"},{"inputs":[],"name":"MintAuthorizationExpired","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","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":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"DefaultOperatorRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint24","name":"royalty","type":"uint24"}],"name":"RoyaltyFeeChanged","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_SUBSCRIPTION","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"authorizedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalRevokeDefaultOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"}],"name":"hashMintData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"tokenHolder","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isDefaultOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIssuance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeDefaultOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyWallet","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxIssuance","type":"uint256"}],"name":"setMaxIssuance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registry","type":"address"}],"name":"updateFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600b80546001600160a01b03199081166daaeb6d7670e522a718067333cd4e17909155600f8054909116733cc6cdda760b79bafa08df41ecfa224f810dceb61790553480156200005357600080fd5b5060405162003f1838038062003f18833981016040819052620000769162000988565b878787888888888080600f60009054906101000a90046001600160a01b031660018a8a8160029080519060200190620000b1929190620007d7565b508051620000c7906003906020840190620007d7565b5060016000555050600b546001600160a01b03163b15620002005780156200015757600b54604051633e9f1edf60e11b81523060048201526001600160a01b03848116602483015290911690637d3e3dbe906044015b600060405180830381600087803b1580156200013857600080fd5b505af11580156200014d573d6000803e3d6000fd5b5050505062000200565b6001600160a01b03821615620001a057600b5460405163a0af290360e01b81523060048201526001600160a01b0384811660248301529091169063a0af2903906044016200011d565b600b54604051632210724360e11b81523060048201526001600160a01b0390911690634420e48690602401600060405180830381600087803b158015620001e657600080fd5b505af1158015620001fb573d6000803e3d6000fd5b505050505b5050600e805460ff19169055336001600160a01b0382161462000245576200022a600033620002ef565b6200024560008051602062003ef883398151915233620002ef565b62000252600082620002ef565b6200026d60008051602062003ef883398151915282620002ef565b6200027833620002ff565b506200028690508562000359565b62000291846200036e565b6200029d838362000383565b50505050505050620002b5826200045a60201b60201c565b620002e17f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994082620004a7565b505050505050505062000be4565b620002fb8282620004d6565b5050565b600e80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620002fb906009906020840190620007d7565b8051620002fb90600a906020840190620007d7565b620186a08162ffffff161115620003e15760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064015b60405180910390fd5b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600c80546001600160b81b0319168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b6012546001600160a01b031615620004855760405163118f982160e21b815260040160405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600d6020526040902060010154620004c581336200057a565b620004d18383620004d6565b505050565b6000828152600d602090815260408083206001600160a01b038516845290915290205460ff16620002fb576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005363390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600d602090815260408083206001600160a01b038516845290915290205460ff16620002fb57620005c6816001600160a01b031660146200061760201b620017b91760201c565b620005dc836020620017b962000617821b17811c565b604051602001620005ef92919062000a77565b60408051601f198184030181529082905262461bcd60e51b8252620003d89160040162000af0565b606060006200062883600262000b3b565b6200063590600262000b5d565b6001600160401b038111156200064f576200064f6200087d565b6040519080825280601f01601f1916602001820160405280156200067a576020820181803683370190505b509050600360fc1b8160008151811062000698576200069862000b78565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620006ca57620006ca62000b78565b60200101906001600160f81b031916908160001a9053506000620006f084600262000b3b565b620006fd90600162000b5d565b90505b60018111156200077f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000735576200073562000b78565b1a60f81b8282815181106200074e576200074e62000b78565b60200101906001600160f81b031916908160001a90535060049490941c93620007778162000b8e565b905062000700565b508315620007d05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620003d8565b9392505050565b828054620007e59062000ba8565b90600052602060002090601f01602090048101928262000809576000855562000854565b82601f106200082457805160ff191683800117855562000854565b8280016001018555821562000854579182015b828111156200085457825182559160200191906001019062000837565b506200086292915062000866565b5090565b5b8082111562000862576000815560010162000867565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620008b057818101518382015260200162000896565b83811115620008c0576000848401525b50505050565b600082601f830112620008d857600080fd5b81516001600160401b0380821115620008f557620008f56200087d565b604051601f8301601f19908116603f011681019082821181831017156200092057620009206200087d565b816040528381528660208588010111156200093a57600080fd5b6200094d84602083016020890162000893565b9695505050505050565b80516001600160a01b03811681146200096f57600080fd5b919050565b805162ffffff811681146200096f57600080fd5b600080600080600080600080610100898b031215620009a657600080fd5b88516001600160401b0380821115620009be57600080fd5b620009cc8c838d01620008c6565b995060208b0151915080821115620009e357600080fd5b620009f18c838d01620008c6565b985060408b015191508082111562000a0857600080fd5b5062000a178b828c01620008c6565b96505062000a2860608a0162000957565b945062000a3860808a0162000974565b935062000a4860a08a0162000957565b925062000a5860c08a0162000957565b915062000a6860e08a0162000957565b90509295985092959890939650565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000ab181601785016020880162000893565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000ae481602884016020880162000893565b01602801949350505050565b602081526000825180602084015262000b1181604085016020870162000893565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562000b585762000b5862000b25565b500290565b6000821982111562000b735762000b7362000b25565b500190565b634e487b7160e01b600052603260045260246000fd5b60008162000ba05762000ba062000b25565b506000190190565b600181811c9082168062000bbd57607f821691505b60208210810362000bde57634e487b7160e01b600052602260045260246000fd5b50919050565b6133048062000bf46000396000f3fe608060405234801561001057600080fd5b50600436106103275760003560e01c8063781984db116101b8578063a22cb46511610104578063e1a8bf2c116100a2578063ee009c0c1161007c578063ee009c0c1461071b578063f2fde38b1461072e578063f9c0611c14610741578063fe6d81241461075457600080fd5b8063e1a8bf2c146106f6578063e8a3d48514610700578063e985e9c51461070857600080fd5b8063b8997a97116100de578063b8997a971461069a578063c6e6c871146106bd578063c87b56dd146106d0578063d547741f146106e357600080fd5b8063a22cb46514610661578063b0ccc31e14610674578063b88d4fde1461068757600080fd5b80638c53886a116101715780639415e9bf1161014b5780639415e9bf1461062557806395d89b411461062e5780639e317f1214610636578063a217fddf1461065957600080fd5b80638c53886a146105ec57806391d14854146105ff578063938e3d7b1461061257600080fd5b8063781984db146105925780637c88e3d9146105a557806380ca11fc146105b8578063840d4e55146105c95780638456cb59146105dc57806385c67c01146105e457600080fd5b80632f2ff15d1161027757806342966c6811610230578063582abd121161020a578063582abd121461053a5780635c975abb146105615780636352211e1461056c57806370a082311461057f57600080fd5b806342966c681461050157806351841ee21461051457806355f804b31461052757600080fd5b80632f2ff15d1461049c57806336568abe146104af5780633f0d2ec1146104c25780633f4ba83a146104d357806340c10f19146104db57806342842e0e146104ee57600080fd5b806318160ddd116102e4578063248a9ca3116102be578063248a9ca31461041f578063274ff7ce146104425780632a0acc6a146104555780632a55205a1461046a57600080fd5b806318160ddd146103f45780631b4566511461040457806323b872dd1461040c57600080fd5b806301ffc9a71461032c57806306fdde03146103545780630770e23814610369578063081812fc146103a1578063095ea7b3146103cc578063162094c4146103e1575b600080fd5b61033f61033a366004612ae6565b61077b565b60405190151581526020015b60405180910390f35b61035c610839565b60405161034b9190612b5b565b60408051466020808301919091523082840152825180830384018152606090920190925280519101205b60405190815260200161034b565b6103b46103af366004612b6e565b6108cb565b6040516001600160a01b03909116815260200161034b565b6103df6103da366004612ba3565b61090f565b005b6103df6103ef366004612c70565b6109e1565b6001546000540360001901610393565b6103df610a2c565b6103df61041a366004612cad565b610a9e565b61039361042d366004612b6e565b6000908152600d602052604090206001015490565b6103df610450366004612b6e565b610bef565b6103936000805160206132af83398151915281565b61047d610478366004612ce9565b610bfd565b604080516001600160a01b03909316835260208301919091520161034b565b6103df6104aa366004612d0b565b610c53565b6103df6104bd366004612d0b565b610c7e565b600c546001600160a01b03166103b4565b6103df610cf8565b6103df6104e9366004612ba3565b610d29565b6103df6104fc366004612cad565b610dcc565b6103df61050f366004612b6e565b610f12565b61033f610522366004612d37565b610f54565b6103df610535366004612d61565b610fa1565b6103937f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca4081565b600e5460ff1661033f565b6103b461057a366004612b6e565b610fde565b61039361058d366004612d96565b610fe9565b6103936105a0366004612db1565b611038565b6103df6105b3366004612e2f565b6110d2565b6012546001600160a01b03166103b4565b6103df6105d7366004612e9b565b6111ed565b6103df6112b1565b6103df6112e0565b6103df6105fa366004612d96565b611329565b61033f61060d366004612d0b565b6113a6565b6103df610620366004612d61565b6113d1565b61039360105481565b61035c61140e565b61033f610644366004612b6e565b60116020526000908152604090205460ff1681565b610393600081565b6103df61066f366004612f14565b61141d565b600b546103b4906001600160a01b031681565b6103df610695366004612f4b565b6114b2565b600c54600160a01b900462ffffff1660405162ffffff909116815260200161034b565b6103df6106cb366004612fb3565b6115ff565b61035c6106de366004612b6e565b61163d565b6103df6106f1366004612d0b565b611648565b610393620186a081565b61035c61166e565b61033f610716366004612d37565b61167d565b6103df610729366004612b6e565b6116bd565b6103df61073c366004612d96565b611717565b600f546103b4906001600160a01b031681565b6103937f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994081565b60006001600160e01b03198216634d96028760e01b14806107ac57506001600160e01b0319821663041b104b60e31b145b806107c757506001600160e01b0319821663c452b91360e01b145b806107e257506301ffc9a760e01b6001600160e01b03198316145b806107fd57506380ac58cd60e01b6001600160e01b03198316145b806108185750635b5e139f60e01b6001600160e01b03198316145b80610833575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461084890612fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461087490612fe7565b80156108c15780601f10610896576101008083540402835291602001916108c1565b820191906000526020600020905b8154815290600101906020018083116108a457829003601f168201915b5050505050905090565b60006108d682611955565b6108f3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061091a8261198a565b9050806001600160a01b0316836001600160a01b03160361094e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461098557610968813361167d565b610985576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109f96000805160206132af833981519152336113a6565b610a1e5760405162461bcd60e51b8152600401610a1590613021565b60405180910390fd5b610a2882826119f9565b5050565b336000818152601360209081526040808320601280546001600160a01b03908116865291845293829020805460ff191660011790559254815193168352908201929092527f92db19f37a099ae0849afbf906815a08d61e9bb57604cc75e3385b79bac3e48491015b60405180910390a1565b600b5483906001600160a01b03163b15610bde57336001600160a01b03821603610ad257610acd848484611a84565b610be9565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015610b20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b449190613058565b8015610bbf5750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf9190613058565b610bde57604051633b79c77360e21b8152336004820152602401610a15565b610be9848484611a84565b50505050565b610bfa816001611a8f565b50565b60408051808201909152600c546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091620186a090610c3f908661308b565b610c4991906130aa565b9150509250929050565b6000828152600d6020526040902060010154610c6f8133611be7565b610c798383611c4b565b505050565b6001600160a01b0381163314610cee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a15565b610a288282611cd1565b610d036000336113a6565b610d1f5760405162461bcd60e51b8152600401610a15906130cc565b610d27611d38565b565b610d537f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336113a6565b610d9f5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a15565b600e5460ff1615610dc25760405162461bcd60e51b8152600401610a1590613112565b610a288282611dc6565b600b5483906001600160a01b03163b15610f0757336001600160a01b03821603610dfb57610acd848484611e15565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015610e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6d9190613058565b8015610ee85750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015610ec4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee89190613058565b610f0757604051633b79c77360e21b8152336004820152602401610a15565b610be9848484611e15565b610f1b81610fde565b6001600160a01b0316336001600160a01b031614610f4b5760405162a1148160e81b815260040160405180910390fd5b610bfa81611e30565b6012546000906001600160a01b038381169116148015610f9a57506001600160a01b0380841660009081526013602090815260408083209386168352929052205460ff16155b9392505050565b610fb96000805160206132af833981519152336113a6565b610fd55760405162461bcd60e51b8152600401610a1590613021565b610bfa81611e3b565b60006108338261198a565b60006001600160a01b038216611012576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6000611069604080514660208083019190915230828401528251808303840181526060909201909252805191012090565b604080516001600160a01b0388166020820152908101869052606081018590526080810184905260a00160408051601f19818403018152908290526110b1929160200161313c565b6040516020818303038152906040528051906020012090505b949350505050565b6110fc7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336113a6565b6111485760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a15565b600e5460ff161561116b5760405162461bcd60e51b8152600401610a1590613112565b82811461118b5760405163512509d360e11b815260040160405180910390fd5b60005b838110156111e6576111de8585838181106111ab576111ab613155565b90506020020160208101906111c09190612d96565b8484848181106111d2576111d2613155565b90506020020135611dc6565b60010161118e565b5050505050565b600e5460ff16156112105760405162461bcd60e51b8152600401610a1590613112565b61121d8585858585611e4e565b151560000361123e576040516282b42960e81b815260040160405180910390fd5b4282101561125f576040516363d656ff60e01b815260040160405180910390fd5b60008381526011602052604090205460ff161561128e57604051623f613760e71b815260040160405180910390fd5b6000838152601160205260409020805460ff191660011790556111e68585611dc6565b6112bc6000336113a6565b6112d85760405162461bcd60e51b8152600401610a15906130cc565b610d27611ef4565b6112f86000805160206132af833981519152336113a6565b6113145760405162461bcd60e51b8152600401610a1590613021565b610d27601280546001600160a01b0319169055565b600e5461010090046001600160a01b0316336001600160a01b0316146113885760405162461bcd60e51b815260206004820152601460248201527339b2b73232b91036bab9ba1031329037bbb732b960611b6044820152606401610a15565b600b80546001600160a01b0319166001600160a01b03831617905550565b6000918252600d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6113e96000805160206132af833981519152336113a6565b6114055760405162461bcd60e51b8152600401610a1590613021565b610bfa81611f4c565b60606003805461084890612fe7565b336001600160a01b038316036114465760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b5484906001600160a01b03163b156115f357336001600160a01b038216036114e7576114e285858585611f5f565b6111e6565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015611535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115599190613058565b80156115d45750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190613058565b6115f357604051633b79c77360e21b8152336004820152602401610a15565b6111e685858585611f5f565b6116176000805160206132af833981519152336113a6565b6116335760405162461bcd60e51b8152600401610a1590613021565b610a288282611fa3565b606061083382612074565b6000828152600d60205260409020600101546116648133611be7565b610c798383611cd1565b6060600a805461084890612fe7565b60006116898383610f54565b80610f9a57506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16610f9a565b6116d56000805160206132af833981519152336113a6565b6116f15760405162461bcd60e51b8152600401610a1590613021565b6010541561171257604051637722de1f60e11b815260040160405180910390fd5b601055565b61172f6000805160206132af833981519152336113a6565b61174b5760405162461bcd60e51b8152600401610a1590613021565b6001600160a01b0381166117b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a15565b610bfa81612197565b606060006117c883600261308b565b6117d390600261316b565b67ffffffffffffffff8111156117eb576117eb612bcd565b6040519080825280601f01601f191660200182016040528015611815576020820181803683370190505b509050600360fc1b8160008151811061183057611830613155565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061185f5761185f613155565b60200101906001600160f81b031916908160001a905350600061188384600261308b565b61188e90600161316b565b90505b6001811115611906576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118c2576118c2613155565b1a60f81b8282815181106118d8576118d8613155565b60200101906001600160f81b031916908160001a90535060049490941c936118ff81613183565b9050611891565b508315610f9a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a15565b600081600111158015611969575060005482105b8015610833575050600090815260046020526040902054600160e01b161590565b600081806001116119e0576000548110156119e05760008181526004602052604081205490600160e01b821690036119de575b80600003610f9a5750600019016000818152600460205260409020546119bd565b505b604051636f96cda160e11b815260040160405180910390fd5b611a0282611955565b611a655760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a15565b60008281526008602090815260409091208251610c7992840190612a37565b610c798383836121f1565b6000611a9a8361198a565b9050808215611afe576000336001600160a01b0383161480611ac15750611ac1823361167d565b80611adc575033611ad1866108cb565b6001600160a01b0316145b905080611afc57604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611ba157600184016000818152600460205260408120549003611b9f576000548114611b9f5760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b611bf182826113a6565b610a2857611c09816001600160a01b031660146117b9565b611c148360206117b9565b604051602001611c2592919061319a565b60408051601f198184030181529082905262461bcd60e51b8252610a1591600401612b5b565b611c5582826113a6565b610a28576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c8d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611cdb82826113a6565b15610a28576000828152600d602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600e5460ff16611d815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a15565b600e805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610a94565b600081611dd66000546000190190565b0190506000601054118015611dec575060105481115b15611e0a5760405163230f165160e11b815260040160405180910390fd5b50610a288282612396565b610c79838383604051806020016040528060008152506114b2565b610bfa816000611a8f565b8051610a28906009906020840190612a37565b600080611ebd83611eb7611e648a8a8a8a611038565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612477565b9050611ee97f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca40826113a6565b979650505050505050565b600e5460ff1615611f175760405162461bcd60e51b8152600401610a1590613112565b600e805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dae3390565b8051610a2890600a906020840190612a37565b611f6a8484846121f1565b6001600160a01b0383163b15610be957611f868484848461249b565b610be9576040516368d2bf6b60e11b815260040160405180910390fd5b620186a08162ffffff161115611ffb5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610a15565b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600c80546001600160b81b0319168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b606061207f82611955565b6120e55760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a15565b600082815260086020526040812080546120fe90612fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461212a90612fe7565b80156121775780601f1061214c57610100808354040283529160200191612177565b820191906000526020600020905b81548152906001019060200180831161215a57829003601f168201915b5050505050905060008151111561218e5792915050565b610f9a83612583565b600e80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006121fc8261198a565b9050836001600160a01b0316816001600160a01b03161461222f5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061224d575061224d853361167d565b8061226857503361225d846108cb565b6001600160a01b0316145b90508061228857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166122af57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b87178117909155831690036123505760018301600081815260046020526040812054900361234e57600054811461234e5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111e6565b6000546001600160a01b0383166123bf57604051622e076360e81b815260040160405180910390fd5b816000036123e05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061242b5750600055505050565b60008060006124868585612606565b9150915061249381612674565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124d090339089908890889060040161320f565b6020604051808303816000875af192505050801561250b575060408051601f3d908101601f191682019092526125089181019061324c565b60015b612569573d808015612539576040519150601f19603f3d011682016040523d82523d6000602084013e61253e565b606091505b508051600003612561576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ca565b606061258e82611955565b6125ab57604051630a14c4b560e41b815260040160405180910390fd5b60006125b561282a565b905080516000036125d55760405180602001604052806000815250610f9a565b806125df84612839565b6040516020016125f0929190613269565b6040516020818303038152906040529392505050565b600080825160410361263c5760208301516040840151606085015160001a6126308782858561290c565b9450945050505061266d565b8251604003612665576020830151604084015161265a8683836129f9565b93509350505061266d565b506000905060025b9250929050565b600081600481111561268857612688613298565b036126905750565b60018160048111156126a4576126a4613298565b036126f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a15565b600281600481111561270557612705613298565b036127525760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a15565b600381600481111561276657612766613298565b036127be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a15565b60048160048111156127d2576127d2613298565b03610bfa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a15565b6060612834612a28565b905090565b6060816000036128605750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287857600101600a82049150612864565b60008167ffffffffffffffff81111561289357612893612bcd565b6040519080825280601f01601f1916602001820160405280156128bd576020820181803683370190505b5090505b84156110ca5760001990910190600a850660300160f81b8183815181106128ea576128ea613155565b60200101906001600160f81b031916908160001a905350600a850494506128c1565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561294357506000905060036129f0565b8460ff16601b1415801561295b57508460ff16601c14155b1561296c57506000905060046129f0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129c0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129e9576000600192509250506129f0565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a1a8782888561290c565b935093505050935093915050565b60606009805461084890612fe7565b828054612a4390612fe7565b90600052602060002090601f016020900481019282612a655760008555612aab565b82601f10612a7e57805160ff1916838001178555612aab565b82800160010185558215612aab579182015b82811115612aab578251825591602001919060010190612a90565b50612ab7929150612abb565b5090565b5b80821115612ab75760008155600101612abc565b6001600160e01b031981168114610bfa57600080fd5b600060208284031215612af857600080fd5b8135610f9a81612ad0565b60005b83811015612b1e578181015183820152602001612b06565b83811115610be95750506000910152565b60008151808452612b47816020860160208601612b03565b601f01601f19169290920160200192915050565b602081526000610f9a6020830184612b2f565b600060208284031215612b8057600080fd5b5035919050565b80356001600160a01b0381168114612b9e57600080fd5b919050565b60008060408385031215612bb657600080fd5b612bbf83612b87565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612bf457600080fd5b813567ffffffffffffffff80821115612c0f57612c0f612bcd565b604051601f8301601f19908116603f01168101908282118183101715612c3757612c37612bcd565b81604052838152866020858801011115612c5057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215612c8357600080fd5b82359150602083013567ffffffffffffffff811115612ca157600080fd5b610c4985828601612be3565b600080600060608486031215612cc257600080fd5b612ccb84612b87565b9250612cd960208501612b87565b9150604084013590509250925092565b60008060408385031215612cfc57600080fd5b50508035926020909101359150565b60008060408385031215612d1e57600080fd5b82359150612d2e60208401612b87565b90509250929050565b60008060408385031215612d4a57600080fd5b612d5383612b87565b9150612d2e60208401612b87565b600060208284031215612d7357600080fd5b813567ffffffffffffffff811115612d8a57600080fd5b6110ca84828501612be3565b600060208284031215612da857600080fd5b610f9a82612b87565b60008060008060808587031215612dc757600080fd5b612dd085612b87565b966020860135965060408601359560600135945092505050565b60008083601f840112612dfc57600080fd5b50813567ffffffffffffffff811115612e1457600080fd5b6020830191508360208260051b850101111561266d57600080fd5b60008060008060408587031215612e4557600080fd5b843567ffffffffffffffff80821115612e5d57600080fd5b612e6988838901612dea565b90965094506020870135915080821115612e8257600080fd5b50612e8f87828801612dea565b95989497509550505050565b600080600080600060a08688031215612eb357600080fd5b612ebc86612b87565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115612eed57600080fd5b612ef988828901612be3565b9150509295509295909350565b8015158114610bfa57600080fd5b60008060408385031215612f2757600080fd5b612f3083612b87565b91506020830135612f4081612f06565b809150509250929050565b60008060008060808587031215612f6157600080fd5b612f6a85612b87565b9350612f7860208601612b87565b925060408501359150606085013567ffffffffffffffff811115612f9b57600080fd5b612fa787828801612be3565b91505092959194509250565b60008060408385031215612fc657600080fd5b612fcf83612b87565b9150602083013562ffffff81168114612f4057600080fd5b600181811c90821680612ffb57607f821691505b60208210810361301b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f73656e646572206d7573742068617665207468652041444d494e20726f6c6500604082015260600190565b60006020828403121561306a57600080fd5b8151610f9a81612f06565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156130a5576130a5613075565b500290565b6000826130c757634e487b7160e01b600052601260045260246000fd5b500490565b60208082526026908201527f73656e646572206d75737420686165207468652044454641554c542041444d496040820152654e20524f4c4560d01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b8281526040602082015260006110ca6040830184612b2f565b634e487b7160e01b600052603260045260246000fd5b6000821982111561317e5761317e613075565b500190565b60008161319257613192613075565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516131d2816017850160208801612b03565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613203816028840160208801612b03565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324290830184612b2f565b9695505050505050565b60006020828403121561325e57600080fd5b8151610f9a81612ad0565b6000835161327b818460208801612b03565b83519083019061328f818360208801612b03565b01949350505050565b634e487b7160e01b600052602160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a264697066735822122013f12c9578716c44937202813630151d4b56f26318d5a80a8bd2921aab8611e564736f6c634300080d0033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec420000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000936a3ca363d96fde56c4d41e5be5479d5c62c6d3000000000000000000000000000000000000000000000000000000000000177000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50000000000000000000000000000000000000000000000000000000000000002c47616d65206f66205468726f6e65733a20546865204e6f727468205365726965732049204865726f20426f7800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005474f5442310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103275760003560e01c8063781984db116101b8578063a22cb46511610104578063e1a8bf2c116100a2578063ee009c0c1161007c578063ee009c0c1461071b578063f2fde38b1461072e578063f9c0611c14610741578063fe6d81241461075457600080fd5b8063e1a8bf2c146106f6578063e8a3d48514610700578063e985e9c51461070857600080fd5b8063b8997a97116100de578063b8997a971461069a578063c6e6c871146106bd578063c87b56dd146106d0578063d547741f146106e357600080fd5b8063a22cb46514610661578063b0ccc31e14610674578063b88d4fde1461068757600080fd5b80638c53886a116101715780639415e9bf1161014b5780639415e9bf1461062557806395d89b411461062e5780639e317f1214610636578063a217fddf1461065957600080fd5b80638c53886a146105ec57806391d14854146105ff578063938e3d7b1461061257600080fd5b8063781984db146105925780637c88e3d9146105a557806380ca11fc146105b8578063840d4e55146105c95780638456cb59146105dc57806385c67c01146105e457600080fd5b80632f2ff15d1161027757806342966c6811610230578063582abd121161020a578063582abd121461053a5780635c975abb146105615780636352211e1461056c57806370a082311461057f57600080fd5b806342966c681461050157806351841ee21461051457806355f804b31461052757600080fd5b80632f2ff15d1461049c57806336568abe146104af5780633f0d2ec1146104c25780633f4ba83a146104d357806340c10f19146104db57806342842e0e146104ee57600080fd5b806318160ddd116102e4578063248a9ca3116102be578063248a9ca31461041f578063274ff7ce146104425780632a0acc6a146104555780632a55205a1461046a57600080fd5b806318160ddd146103f45780631b4566511461040457806323b872dd1461040c57600080fd5b806301ffc9a71461032c57806306fdde03146103545780630770e23814610369578063081812fc146103a1578063095ea7b3146103cc578063162094c4146103e1575b600080fd5b61033f61033a366004612ae6565b61077b565b60405190151581526020015b60405180910390f35b61035c610839565b60405161034b9190612b5b565b60408051466020808301919091523082840152825180830384018152606090920190925280519101205b60405190815260200161034b565b6103b46103af366004612b6e565b6108cb565b6040516001600160a01b03909116815260200161034b565b6103df6103da366004612ba3565b61090f565b005b6103df6103ef366004612c70565b6109e1565b6001546000540360001901610393565b6103df610a2c565b6103df61041a366004612cad565b610a9e565b61039361042d366004612b6e565b6000908152600d602052604090206001015490565b6103df610450366004612b6e565b610bef565b6103936000805160206132af83398151915281565b61047d610478366004612ce9565b610bfd565b604080516001600160a01b03909316835260208301919091520161034b565b6103df6104aa366004612d0b565b610c53565b6103df6104bd366004612d0b565b610c7e565b600c546001600160a01b03166103b4565b6103df610cf8565b6103df6104e9366004612ba3565b610d29565b6103df6104fc366004612cad565b610dcc565b6103df61050f366004612b6e565b610f12565b61033f610522366004612d37565b610f54565b6103df610535366004612d61565b610fa1565b6103937f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca4081565b600e5460ff1661033f565b6103b461057a366004612b6e565b610fde565b61039361058d366004612d96565b610fe9565b6103936105a0366004612db1565b611038565b6103df6105b3366004612e2f565b6110d2565b6012546001600160a01b03166103b4565b6103df6105d7366004612e9b565b6111ed565b6103df6112b1565b6103df6112e0565b6103df6105fa366004612d96565b611329565b61033f61060d366004612d0b565b6113a6565b6103df610620366004612d61565b6113d1565b61039360105481565b61035c61140e565b61033f610644366004612b6e565b60116020526000908152604090205460ff1681565b610393600081565b6103df61066f366004612f14565b61141d565b600b546103b4906001600160a01b031681565b6103df610695366004612f4b565b6114b2565b600c54600160a01b900462ffffff1660405162ffffff909116815260200161034b565b6103df6106cb366004612fb3565b6115ff565b61035c6106de366004612b6e565b61163d565b6103df6106f1366004612d0b565b611648565b610393620186a081565b61035c61166e565b61033f610716366004612d37565b61167d565b6103df610729366004612b6e565b6116bd565b6103df61073c366004612d96565b611717565b600f546103b4906001600160a01b031681565b6103937f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994081565b60006001600160e01b03198216634d96028760e01b14806107ac57506001600160e01b0319821663041b104b60e31b145b806107c757506001600160e01b0319821663c452b91360e01b145b806107e257506301ffc9a760e01b6001600160e01b03198316145b806107fd57506380ac58cd60e01b6001600160e01b03198316145b806108185750635b5e139f60e01b6001600160e01b03198316145b80610833575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461084890612fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461087490612fe7565b80156108c15780601f10610896576101008083540402835291602001916108c1565b820191906000526020600020905b8154815290600101906020018083116108a457829003601f168201915b5050505050905090565b60006108d682611955565b6108f3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061091a8261198a565b9050806001600160a01b0316836001600160a01b03160361094e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461098557610968813361167d565b610985576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109f96000805160206132af833981519152336113a6565b610a1e5760405162461bcd60e51b8152600401610a1590613021565b60405180910390fd5b610a2882826119f9565b5050565b336000818152601360209081526040808320601280546001600160a01b03908116865291845293829020805460ff191660011790559254815193168352908201929092527f92db19f37a099ae0849afbf906815a08d61e9bb57604cc75e3385b79bac3e48491015b60405180910390a1565b600b5483906001600160a01b03163b15610bde57336001600160a01b03821603610ad257610acd848484611a84565b610be9565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015610b20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b449190613058565b8015610bbf5750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf9190613058565b610bde57604051633b79c77360e21b8152336004820152602401610a15565b610be9848484611a84565b50505050565b610bfa816001611a8f565b50565b60408051808201909152600c546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091620186a090610c3f908661308b565b610c4991906130aa565b9150509250929050565b6000828152600d6020526040902060010154610c6f8133611be7565b610c798383611c4b565b505050565b6001600160a01b0381163314610cee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a15565b610a288282611cd1565b610d036000336113a6565b610d1f5760405162461bcd60e51b8152600401610a15906130cc565b610d27611d38565b565b610d537f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336113a6565b610d9f5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a15565b600e5460ff1615610dc25760405162461bcd60e51b8152600401610a1590613112565b610a288282611dc6565b600b5483906001600160a01b03163b15610f0757336001600160a01b03821603610dfb57610acd848484611e15565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015610e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6d9190613058565b8015610ee85750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015610ec4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee89190613058565b610f0757604051633b79c77360e21b8152336004820152602401610a15565b610be9848484611e15565b610f1b81610fde565b6001600160a01b0316336001600160a01b031614610f4b5760405162a1148160e81b815260040160405180910390fd5b610bfa81611e30565b6012546000906001600160a01b038381169116148015610f9a57506001600160a01b0380841660009081526013602090815260408083209386168352929052205460ff16155b9392505050565b610fb96000805160206132af833981519152336113a6565b610fd55760405162461bcd60e51b8152600401610a1590613021565b610bfa81611e3b565b60006108338261198a565b60006001600160a01b038216611012576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6000611069604080514660208083019190915230828401528251808303840181526060909201909252805191012090565b604080516001600160a01b0388166020820152908101869052606081018590526080810184905260a00160408051601f19818403018152908290526110b1929160200161313c565b6040516020818303038152906040528051906020012090505b949350505050565b6110fc7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336113a6565b6111485760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a15565b600e5460ff161561116b5760405162461bcd60e51b8152600401610a1590613112565b82811461118b5760405163512509d360e11b815260040160405180910390fd5b60005b838110156111e6576111de8585838181106111ab576111ab613155565b90506020020160208101906111c09190612d96565b8484848181106111d2576111d2613155565b90506020020135611dc6565b60010161118e565b5050505050565b600e5460ff16156112105760405162461bcd60e51b8152600401610a1590613112565b61121d8585858585611e4e565b151560000361123e576040516282b42960e81b815260040160405180910390fd5b4282101561125f576040516363d656ff60e01b815260040160405180910390fd5b60008381526011602052604090205460ff161561128e57604051623f613760e71b815260040160405180910390fd5b6000838152601160205260409020805460ff191660011790556111e68585611dc6565b6112bc6000336113a6565b6112d85760405162461bcd60e51b8152600401610a15906130cc565b610d27611ef4565b6112f86000805160206132af833981519152336113a6565b6113145760405162461bcd60e51b8152600401610a1590613021565b610d27601280546001600160a01b0319169055565b600e5461010090046001600160a01b0316336001600160a01b0316146113885760405162461bcd60e51b815260206004820152601460248201527339b2b73232b91036bab9ba1031329037bbb732b960611b6044820152606401610a15565b600b80546001600160a01b0319166001600160a01b03831617905550565b6000918252600d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6113e96000805160206132af833981519152336113a6565b6114055760405162461bcd60e51b8152600401610a1590613021565b610bfa81611f4c565b60606003805461084890612fe7565b336001600160a01b038316036114465760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b5484906001600160a01b03163b156115f357336001600160a01b038216036114e7576114e285858585611f5f565b6111e6565b600b54604051633185c44d60e21b81523060048201523360248201526001600160a01b039091169063c617113490604401602060405180830381865afa158015611535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115599190613058565b80156115d45750600b54604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190613058565b6115f357604051633b79c77360e21b8152336004820152602401610a15565b6111e685858585611f5f565b6116176000805160206132af833981519152336113a6565b6116335760405162461bcd60e51b8152600401610a1590613021565b610a288282611fa3565b606061083382612074565b6000828152600d60205260409020600101546116648133611be7565b610c798383611cd1565b6060600a805461084890612fe7565b60006116898383610f54565b80610f9a57506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16610f9a565b6116d56000805160206132af833981519152336113a6565b6116f15760405162461bcd60e51b8152600401610a1590613021565b6010541561171257604051637722de1f60e11b815260040160405180910390fd5b601055565b61172f6000805160206132af833981519152336113a6565b61174b5760405162461bcd60e51b8152600401610a1590613021565b6001600160a01b0381166117b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a15565b610bfa81612197565b606060006117c883600261308b565b6117d390600261316b565b67ffffffffffffffff8111156117eb576117eb612bcd565b6040519080825280601f01601f191660200182016040528015611815576020820181803683370190505b509050600360fc1b8160008151811061183057611830613155565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061185f5761185f613155565b60200101906001600160f81b031916908160001a905350600061188384600261308b565b61188e90600161316b565b90505b6001811115611906576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118c2576118c2613155565b1a60f81b8282815181106118d8576118d8613155565b60200101906001600160f81b031916908160001a90535060049490941c936118ff81613183565b9050611891565b508315610f9a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a15565b600081600111158015611969575060005482105b8015610833575050600090815260046020526040902054600160e01b161590565b600081806001116119e0576000548110156119e05760008181526004602052604081205490600160e01b821690036119de575b80600003610f9a5750600019016000818152600460205260409020546119bd565b505b604051636f96cda160e11b815260040160405180910390fd5b611a0282611955565b611a655760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a15565b60008281526008602090815260409091208251610c7992840190612a37565b610c798383836121f1565b6000611a9a8361198a565b9050808215611afe576000336001600160a01b0383161480611ac15750611ac1823361167d565b80611adc575033611ad1866108cb565b6001600160a01b0316145b905080611afc57604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611ba157600184016000818152600460205260408120549003611b9f576000548114611b9f5760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b611bf182826113a6565b610a2857611c09816001600160a01b031660146117b9565b611c148360206117b9565b604051602001611c2592919061319a565b60408051601f198184030181529082905262461bcd60e51b8252610a1591600401612b5b565b611c5582826113a6565b610a28576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c8d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611cdb82826113a6565b15610a28576000828152600d602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600e5460ff16611d815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a15565b600e805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610a94565b600081611dd66000546000190190565b0190506000601054118015611dec575060105481115b15611e0a5760405163230f165160e11b815260040160405180910390fd5b50610a288282612396565b610c79838383604051806020016040528060008152506114b2565b610bfa816000611a8f565b8051610a28906009906020840190612a37565b600080611ebd83611eb7611e648a8a8a8a611038565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612477565b9050611ee97f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca40826113a6565b979650505050505050565b600e5460ff1615611f175760405162461bcd60e51b8152600401610a1590613112565b600e805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dae3390565b8051610a2890600a906020840190612a37565b611f6a8484846121f1565b6001600160a01b0383163b15610be957611f868484848461249b565b610be9576040516368d2bf6b60e11b815260040160405180910390fd5b620186a08162ffffff161115611ffb5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610a15565b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600c80546001600160b81b0319168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b606061207f82611955565b6120e55760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a15565b600082815260086020526040812080546120fe90612fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461212a90612fe7565b80156121775780601f1061214c57610100808354040283529160200191612177565b820191906000526020600020905b81548152906001019060200180831161215a57829003601f168201915b5050505050905060008151111561218e5792915050565b610f9a83612583565b600e80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006121fc8261198a565b9050836001600160a01b0316816001600160a01b03161461222f5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061224d575061224d853361167d565b8061226857503361225d846108cb565b6001600160a01b0316145b90508061228857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166122af57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b87178117909155831690036123505760018301600081815260046020526040812054900361234e57600054811461234e5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111e6565b6000546001600160a01b0383166123bf57604051622e076360e81b815260040160405180910390fd5b816000036123e05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061242b5750600055505050565b60008060006124868585612606565b9150915061249381612674565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124d090339089908890889060040161320f565b6020604051808303816000875af192505050801561250b575060408051601f3d908101601f191682019092526125089181019061324c565b60015b612569573d808015612539576040519150601f19603f3d011682016040523d82523d6000602084013e61253e565b606091505b508051600003612561576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ca565b606061258e82611955565b6125ab57604051630a14c4b560e41b815260040160405180910390fd5b60006125b561282a565b905080516000036125d55760405180602001604052806000815250610f9a565b806125df84612839565b6040516020016125f0929190613269565b6040516020818303038152906040529392505050565b600080825160410361263c5760208301516040840151606085015160001a6126308782858561290c565b9450945050505061266d565b8251604003612665576020830151604084015161265a8683836129f9565b93509350505061266d565b506000905060025b9250929050565b600081600481111561268857612688613298565b036126905750565b60018160048111156126a4576126a4613298565b036126f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a15565b600281600481111561270557612705613298565b036127525760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a15565b600381600481111561276657612766613298565b036127be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a15565b60048160048111156127d2576127d2613298565b03610bfa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a15565b6060612834612a28565b905090565b6060816000036128605750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287857600101600a82049150612864565b60008167ffffffffffffffff81111561289357612893612bcd565b6040519080825280601f01601f1916602001820160405280156128bd576020820181803683370190505b5090505b84156110ca5760001990910190600a850660300160f81b8183815181106128ea576128ea613155565b60200101906001600160f81b031916908160001a905350600a850494506128c1565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561294357506000905060036129f0565b8460ff16601b1415801561295b57508460ff16601c14155b1561296c57506000905060046129f0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129c0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129e9576000600192509250506129f0565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a1a8782888561290c565b935093505050935093915050565b60606009805461084890612fe7565b828054612a4390612fe7565b90600052602060002090601f016020900481019282612a655760008555612aab565b82601f10612a7e57805160ff1916838001178555612aab565b82800160010185558215612aab579182015b82811115612aab578251825591602001919060010190612a90565b50612ab7929150612abb565b5090565b5b80821115612ab75760008155600101612abc565b6001600160e01b031981168114610bfa57600080fd5b600060208284031215612af857600080fd5b8135610f9a81612ad0565b60005b83811015612b1e578181015183820152602001612b06565b83811115610be95750506000910152565b60008151808452612b47816020860160208601612b03565b601f01601f19169290920160200192915050565b602081526000610f9a6020830184612b2f565b600060208284031215612b8057600080fd5b5035919050565b80356001600160a01b0381168114612b9e57600080fd5b919050565b60008060408385031215612bb657600080fd5b612bbf83612b87565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612bf457600080fd5b813567ffffffffffffffff80821115612c0f57612c0f612bcd565b604051601f8301601f19908116603f01168101908282118183101715612c3757612c37612bcd565b81604052838152866020858801011115612c5057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215612c8357600080fd5b82359150602083013567ffffffffffffffff811115612ca157600080fd5b610c4985828601612be3565b600080600060608486031215612cc257600080fd5b612ccb84612b87565b9250612cd960208501612b87565b9150604084013590509250925092565b60008060408385031215612cfc57600080fd5b50508035926020909101359150565b60008060408385031215612d1e57600080fd5b82359150612d2e60208401612b87565b90509250929050565b60008060408385031215612d4a57600080fd5b612d5383612b87565b9150612d2e60208401612b87565b600060208284031215612d7357600080fd5b813567ffffffffffffffff811115612d8a57600080fd5b6110ca84828501612be3565b600060208284031215612da857600080fd5b610f9a82612b87565b60008060008060808587031215612dc757600080fd5b612dd085612b87565b966020860135965060408601359560600135945092505050565b60008083601f840112612dfc57600080fd5b50813567ffffffffffffffff811115612e1457600080fd5b6020830191508360208260051b850101111561266d57600080fd5b60008060008060408587031215612e4557600080fd5b843567ffffffffffffffff80821115612e5d57600080fd5b612e6988838901612dea565b90965094506020870135915080821115612e8257600080fd5b50612e8f87828801612dea565b95989497509550505050565b600080600080600060a08688031215612eb357600080fd5b612ebc86612b87565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115612eed57600080fd5b612ef988828901612be3565b9150509295509295909350565b8015158114610bfa57600080fd5b60008060408385031215612f2757600080fd5b612f3083612b87565b91506020830135612f4081612f06565b809150509250929050565b60008060008060808587031215612f6157600080fd5b612f6a85612b87565b9350612f7860208601612b87565b925060408501359150606085013567ffffffffffffffff811115612f9b57600080fd5b612fa787828801612be3565b91505092959194509250565b60008060408385031215612fc657600080fd5b612fcf83612b87565b9150602083013562ffffff81168114612f4057600080fd5b600181811c90821680612ffb57607f821691505b60208210810361301b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f73656e646572206d7573742068617665207468652041444d494e20726f6c6500604082015260600190565b60006020828403121561306a57600080fd5b8151610f9a81612f06565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156130a5576130a5613075565b500290565b6000826130c757634e487b7160e01b600052601260045260246000fd5b500490565b60208082526026908201527f73656e646572206d75737420686165207468652044454641554c542041444d496040820152654e20524f4c4560d01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b8281526040602082015260006110ca6040830184612b2f565b634e487b7160e01b600052603260045260246000fd5b6000821982111561317e5761317e613075565b500190565b60008161319257613192613075565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516131d2816017850160208801612b03565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613203816028840160208801612b03565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324290830184612b2f565b9695505050505050565b60006020828403121561325e57600080fd5b8151610f9a81612ad0565b6000835161327b818460208801612b03565b83519083019061328f818360208801612b03565b01949350505050565b634e487b7160e01b600052602160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a264697066735822122013f12c9578716c44937202813630151d4b56f26318d5a80a8bd2921aab8611e564736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000936a3ca363d96fde56c4d41e5be5479d5c62c6d3000000000000000000000000000000000000000000000000000000000000177000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50000000000000000000000000000000000000000000000000000000000000002c47616d65206f66205468726f6e65733a20546865204e6f727468205365726965732049204865726f20426f7800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005474f5442310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Game of Thrones: The North Series I Hero Box
Arg [1] : symbol (string): GOTB1
Arg [2] : baseURI (string):
Arg [3] : recipient (address): 0x936a3CA363d96FDE56C4D41e5Be5479D5C62C6D3
Arg [4] : value (uint24): 6000
Arg [5] : admin (address): 0x53232F9a89cDE9032491A4Dd70ecB60EDb8AA391
Arg [6] : operator (address): 0x5eacD383b4e8340D7F7F9c2Ff076217a7Ed89610
Arg [7] : relay (address): 0xA10fB482873638AF1E9034b1c29e16D1812f0C50
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 000000000000000000000000936a3ca363d96fde56c4d41e5be5479d5c62c6d3
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001770
Arg [5] : 00000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa391
Arg [6] : 0000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610
Arg [7] : 000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [9] : 47616d65206f66205468726f6e65733a20546865204e6f727468205365726965
Arg [10] : 732049204865726f20426f780000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 474f544231000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.