More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 18320473 | 497 days ago | IN | 0 ETH | 0.00116818 | ||||
Buy | 17265972 | 645 days ago | IN | 55 ETH | 0.0153371 | ||||
Set Dates | 17265628 | 645 days ago | IN | 0 ETH | 0.00318466 | ||||
Set Allow Buy | 17265627 | 645 days ago | IN | 0 ETH | 0.00178853 | ||||
Set Token Config | 17264550 | 645 days ago | IN | 0 ETH | 0.00177683 | ||||
Set Allow Buy | 17046766 | 676 days ago | IN | 0 ETH | 0.00106295 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
HyperMintERC721A_2_2_0
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/interfaces/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import './Ownable_1_0_0.sol'; import './Interfaces/IHyperMintERC721A_2_2_0.sol'; import 'erc721a/contracts/extensions/ERC721ABurnable.sol'; import './opensea-operator-filter/OperatorFilterer.sol'; contract HyperMintERC721A_2_2_0 is IHyperMintERC721A_2_2_0, ERC721ABurnable, Ownable, OperatorFilterer { using SafeERC20 for IERC20; /* ================= STATE VARIABLES ================= */ // ========= Immutable Storage ========= uint256 internal constant BASIS_POINTS = 10000; // ========== Mutable Storage ========== string public constant version = '2.2.0'; GeneralConfig public generalConfig; TokenConfig public tokenConfig; Addresses public addresses; /* =================== CONSTRUCTOR =================== */ /// @param _generalConfig settings for the contract /// @param _tokenConfig settings for tokens minted by the contract /// @param _addresses a collection of addresses constructor( GeneralConfig memory _generalConfig, TokenConfig memory _tokenConfig, Addresses memory _addresses ) ERC721A('', '') OperatorFilterer( address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6), // default filter by OS true // subscribe to the filter list ) { _transferOwnership(_addresses.collectionOwnerAddress); generalConfig = _generalConfig; tokenConfig = _tokenConfig; addresses = _addresses; } /* ====================== Views ====================== */ function name() public view override(IHyperMintERC721A_2_2_0, ERC721A) returns (string memory collectionName) { collectionName = generalConfig.name; } function symbol() public view override(IHyperMintERC721A_2_2_0, ERC721A) returns (string memory collectionSymbol) { collectionSymbol = generalConfig.symbol; } function supply() external view override returns (uint256 _supply) { _supply = _totalMinted(); } function totalMinted( address addr ) external view override returns (uint256 numMinted) { numMinted = _numberMinted(addr); } function contractURI() public view override returns (string memory uri) { uri = generalConfig.contractMetadataUrl; } function tokenURI( uint256 _tokenId ) public view override(IHyperMintERC721A_2_2_0, ERC721A) returns (string memory uri) { if (!_exists(_tokenId)) revert NonExistentToken(); uri = string( abi.encodePacked( generalConfig.tokenMetadataUrl, _toString(_tokenId) ) ); } function royaltyInfo( uint256 _tokenId, uint256 _salePrice ) external view override returns (address royaltyAddress, uint256 royaltyAmount) { /// @dev secondary royalty to be paid out by the marketplace /// to the splitter contract royaltyAddress = addresses.secondaryRoyaltyAddress; royaltyAmount = (_salePrice * generalConfig.secondaryRoyaltyFee) / BASIS_POINTS; } function supportsInterface( bytes4 _interfaceId ) public view override(IHyperMintERC721A_2_2_0, ERC721A) returns (bool result) { result = (_interfaceId == type(IERC2981).interfaceId || _interfaceId == bytes4(0x49064906) || super.supportsInterface(_interfaceId)); } /* ================ MUTATIVE FUNCTIONS ================ */ // ============ Restricted ============= function setNameAndSymbol( string calldata _newName, string calldata _newSymbol ) external override onlyContractManager { generalConfig.name = _newName; generalConfig.symbol = _newSymbol; } function setMetadataURIs( string calldata _contractURI, string calldata _tokenURI ) external override onlyContractManager { generalConfig.contractMetadataUrl = _contractURI; generalConfig.tokenMetadataUrl = _tokenURI; /// @dev trigger a metadata refresh of all tokens /// minted so far, starting with tokenId 1 if (totalSupply() != 0) { emit BatchMetadataUpdate(1, _nextTokenId() - 1); } } function setDates( uint256 _publicSale, uint256 _saleClosed ) external override onlyContractManager { generalConfig.publicSaleDate = _publicSale; generalConfig.saleCloseDate = _saleClosed; } function setTokenConfig( uint256 _price, uint256 _maxSupply, uint256 _maxPerTransaction ) external override onlyContractManager { if (totalSupply() > _maxSupply) revert NewSupplyTooLow(); tokenConfig.price = _price; tokenConfig.maxSupply = _maxSupply; tokenConfig.maxPerTransaction = _maxPerTransaction; } function setAddresses( Addresses calldata _addresses ) external override onlyContractManager { if (_addresses.recoveryAddress != addresses.recoveryAddress) revert ImmutableRecoveryAddress(); if ( addresses.collectionOwnerAddress != _addresses.collectionOwnerAddress ) { _transferOwnership(_addresses.collectionOwnerAddress); } addresses = _addresses; } function setAllowBuy(bool _allowBuy) external override onlyContractManager { generalConfig.allowBuy = _allowBuy; } function setAllowPublicTransfer( bool _allowPublicTransfer ) external override onlyContractManager { generalConfig.allowPublicTransfer = _allowPublicTransfer; } function setEnableOpenSeaOperatorFilterRegistry( bool _enable ) external override onlyContractManager { generalConfig.enableOpenSeaOperatorFilterRegistry = _enable; } function setRoyalty( uint256 _primaryFee, uint256 _secondaryFee ) external override onlyContractManager { generalConfig.primaryRoyaltyFee = _primaryFee; generalConfig.secondaryRoyaltyFee = _secondaryFee; } // ============== Minting ============== function mintBatch( address[] calldata _accounts, uint256[] calldata _amounts ) external override onlyContractManager nonContract { uint256 length = _accounts.length; for (uint256 i = 0; i < length; ) { address account = _accounts[i]; uint256 amount = _amounts[i]; if (_totalMinted() + amount > tokenConfig.maxSupply) revert MaxSupplyExceeded(); _mint(account, amount); unchecked { i += 1; } } } // ================ Buy ================ function buyAuthorised( uint256 _amount, uint256 _totalPrice, uint256 _maxPerAddress, uint256 _expires, bytes calldata _signature ) external payable override buyAllowed nonContract { if (block.timestamp >= _expires) revert SignatureExpired(); bytes32 hash = keccak256( abi.encodePacked( address(this), msg.sender, _amount, _totalPrice, _maxPerAddress, _expires ) ); bytes32 message = ECDSA.toEthSignedMessageHash(hash); if ( ECDSA.recover(message, _signature) != addresses.authorisationAddress ) revert NotAuthorised(); if (_maxPerAddress != 0) { if (_numberMinted(msg.sender) + _amount > _maxPerAddress) revert MaxPerAddressExceeded(); } _buy(_amount, _totalPrice); } function buy( uint256 _amount ) external payable override buyAllowed nonContract { if ( generalConfig.publicSaleDate == 0 || block.timestamp < generalConfig.publicSaleDate ) revert PublicSaleClosed(); uint256 totalPrice = tokenConfig.price * _amount; _buy(_amount, totalPrice); } function _buy(uint256 _amount, uint256 _totalPrice) internal { if (generalConfig.saleCloseDate != 0) { if (block.timestamp >= generalConfig.saleCloseDate) revert SaleClosed(); } if (_totalMinted() + _amount > tokenConfig.maxSupply) revert MaxSupplyExceeded(); if (tokenConfig.maxPerTransaction != 0) { if (_amount > tokenConfig.maxPerTransaction) revert MaxPerTransactionExceeded(); } uint256 royaltyAmount = (_totalPrice * generalConfig.primaryRoyaltyFee) / BASIS_POINTS; if (addresses.purchaseTokenAddress != address(0)) { IERC20 token = IERC20(addresses.purchaseTokenAddress); /// @dev primary royalty cut for HyperMint if (royaltyAmount != 0) { // only transfer if royaltyAmount is non-zero so we don't waste gas token.safeTransferFrom( msg.sender, addresses.managerPrimaryRoyaltyAddress, royaltyAmount ); } /// @dev primary sale (i.e. minting revenue) for customer (or its payees) token.safeTransferFrom( msg.sender, addresses.customerPrimaryRoyaltyAddress, _totalPrice - royaltyAmount ); } else { if (msg.value < _totalPrice) revert InsufficientPaymentValue(); /// @dev primary royalty cut for HyperMint if (royaltyAmount != 0) { // only transfer if royaltyAmount is non-zero so we don't waste gas (bool successManager, ) = addresses .managerPrimaryRoyaltyAddress .call{value: royaltyAmount}(''); if (!successManager) revert PayoutToManagerFailed(); } /// @dev primary sale (i.e. minting revenue) for customer (or its payees) (bool successCustomer, ) = addresses .customerPrimaryRoyaltyAddress .call{value: _totalPrice - royaltyAmount}(''); if (!successCustomer) revert PayoutToCustomerFailed(); } /// @dev mint tokens _mint(msg.sender, _amount); } // ================ Transfers ================ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override transferAllowed(from, to) onlyAllowedOperator( from, generalConfig.enableOpenSeaOperatorFilterRegistry ) { super._beforeTokenTransfers(from, to, startTokenId, quantity); } function transferAuthorised( address _from, address _to, uint256 _tokenId, uint256 _expires, bytes calldata _signature ) external override nonContract { if (block.timestamp >= _expires) revert SignatureExpired(); bytes32 hash = keccak256( abi.encodePacked( address(this), msg.sender, _from, _to, _tokenId, _expires ) ); bytes32 message = ECDSA.toEthSignedMessageHash(hash); if ( ECDSA.recover(message, _signature) != addresses.authorisationAddress ) revert NotAuthorised(); super.safeTransferFrom(_from, _to, _tokenId); } // ============= Ownership ============= function recoverContract() external { if (msg.sender != addresses.recoveryAddress) revert NotAuthorised(); _transferContractManager(addresses.recoveryAddress); } function _startTokenId() internal pure override returns (uint256 tokenId) { tokenId = 1; } /* ==================== MODIFIERS ===================== */ modifier buyAllowed() { if (!generalConfig.allowBuy) revert BuyDisabled(); _; } /// @dev this eliminates the possibility of being called /// from a contract modifier nonContract() { if (tx.origin != msg.sender) revert ContractCallBlocked(); _; } modifier transferAllowed(address from, address to) { bool isMinting = from == address(0); bool isBurning = to == address(0); bool isContractManager = from == this.contractManager(); bool isTransferAuthorised = msg.sig == this.transferAuthorised.selector; if ( !isMinting && !isContractManager && !isBurning && !isTransferAuthorised ) { if (!generalConfig.allowPublicTransfer) revert TransfersDisabled(); } _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.4; import '@openzeppelin/contracts/utils/Context.sol'; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; address private _contractManager; event ContractManagerTransferred( address indexed previousContractManager, address indexed newContractManager ); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferContractManager(msg.sender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), 'Ownable: caller is not the owner'); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), 'Ownable: new owner is the zero address' ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev Returns the manager of the contract */ function contractManager() public view virtual returns (address) { return _contractManager; } /** * @dev Throws if called by any account other than the Contract Manager. */ modifier onlyContractManager() { require( _msgSender() == _contractManager, 'Ownable: caller is not the contract manager' ); _; } /** * @dev Transfers manager of the contract to a new account (`newContractManager`). * Can only be called by the current _contractManager. */ function transferContractManager( address newContractManager ) public virtual onlyContractManager { require( newContractManager != address(0), 'Ownable: new contract owner is the zero address' ); _transferContractManager(newContractManager); } /** * @dev Transfers management of the contract to a new account (`newContractManager`). * Internal function without access restriction. */ function _transferContractManager( address newContractManager ) internal virtual { address oldContractManager = _contractManager; _contractManager = newContractManager; emit ContractManagerTransferred(oldContractManager, newContractManager); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import 'erc721a/contracts/interfaces/IERC721A.sol'; import './IERC4906.sol'; // ============== Structs ============== struct GeneralConfig { string name; string symbol; string contractMetadataUrl; string tokenMetadataUrl; bool allowBuy; bool allowPublicTransfer; bool enableOpenSeaOperatorFilterRegistry; uint256 publicSaleDate; uint256 saleCloseDate; uint256 primaryRoyaltyFee; uint256 secondaryRoyaltyFee; } struct TokenConfig { uint256 price; uint256 maxSupply; uint256 maxPerTransaction; } struct Addresses { address recoveryAddress; address collectionOwnerAddress; address authorisationAddress; address purchaseTokenAddress; address managerPrimaryRoyaltyAddress; address customerPrimaryRoyaltyAddress; address secondaryRoyaltyAddress; } interface IHyperMintERC721A_2_2_0 is IERC4906 { /* ================= CUSTOM ERRORS ================= */ error NewSupplyTooLow(); error MaxSupplyExceeded(); error SignatureExpired(); error NotAuthorised(); error BuyDisabled(); error InsufficientPaymentValue(); error PublicSaleClosed(); error SaleClosed(); error MaxPerAddressExceeded(); error MaxPerTransactionExceeded(); error NonExistentToken(); error ContractCallBlocked(); error ImmutableRecoveryAddress(); error TransfersDisabled(); error PayoutToManagerFailed(); error PayoutToCustomerFailed(); /* ====================== Views ====================== */ function name() external view returns (string memory collectionName); function symbol() external view returns (string memory collectionSymbol); function supply() external view returns (uint256 _supply); function totalMinted( address _addr ) external view returns (uint256 numMinted); function contractURI() external view returns (string memory uri); function tokenURI( uint256 _tokenId ) external view returns (string memory uri); function royaltyInfo( uint256 _tokenId, uint256 _salePrice ) external view returns (address royaltyAddress, uint256 royaltyAmount); function supportsInterface( bytes4 _interfaceId ) external view returns (bool result); /* ================ MUTATIVE FUNCTIONS ================ */ // ============ Restricted ============= function setNameAndSymbol( string calldata _name, string calldata _symbol ) external; function setMetadataURIs( string calldata _contractUri, string calldata _tokenUri ) external; function setDates(uint256 _publicSale, uint256 _saleClosed) external; function setTokenConfig( uint256 _price, uint256 _maxSupply, uint256 _maxPerTransaction ) external; function setAddresses(Addresses calldata _addresses) external; function setAllowBuy(bool allowBuy) external; function setAllowPublicTransfer(bool _allowPublicTransfer) external; function setEnableOpenSeaOperatorFilterRegistry(bool _enable) external; function setRoyalty(uint256 primaryFee, uint256 secondaryFee) external; // ============== Minting ============== function mintBatch( address[] calldata _accounts, uint256[] calldata _amounts ) external; // ================ Buy ================ function buyAuthorised( uint256 _amount, uint256 _totalPrice, uint256 _maxPerAddress, uint256 _expires, bytes calldata _signature ) external payable; function buy(uint256 _amount) external payable; // ================ Transfers ================ function transferAuthorised( address _from, address _to, uint256 _tokenId, uint256 _expires, bytes calldata _signature ) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @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.4; import {IOperatorFilterRegistry} from './IOperatorFilterRegistry.sol'; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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, bool switchedOn) virtual { // return back out if toggle is off if (!switchedOn) { _; return; } // 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol';
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import '@openzeppelin/contracts/interfaces/IERC165.sol'; import 'erc721a/contracts/interfaces/IERC721A.sol'; interface IERC4906 is IERC165, IERC721A { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); /// @dev See {IERC165-supportsInterface}. function supportsInterface( bytes4 interfaceId ) external view override(IERC165, IERC721A) returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ 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; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { 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 initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * 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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; 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 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); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": true, "runs": 1000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"contractMetadataUrl","type":"string"},{"internalType":"string","name":"tokenMetadataUrl","type":"string"},{"internalType":"bool","name":"allowBuy","type":"bool"},{"internalType":"bool","name":"allowPublicTransfer","type":"bool"},{"internalType":"bool","name":"enableOpenSeaOperatorFilterRegistry","type":"bool"},{"internalType":"uint256","name":"publicSaleDate","type":"uint256"},{"internalType":"uint256","name":"saleCloseDate","type":"uint256"},{"internalType":"uint256","name":"primaryRoyaltyFee","type":"uint256"},{"internalType":"uint256","name":"secondaryRoyaltyFee","type":"uint256"}],"internalType":"struct GeneralConfig","name":"_generalConfig","type":"tuple"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerTransaction","type":"uint256"}],"internalType":"struct TokenConfig","name":"_tokenConfig","type":"tuple"},{"components":[{"internalType":"address","name":"recoveryAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"internalType":"struct Addresses","name":"_addresses","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BuyDisabled","type":"error"},{"inputs":[],"name":"ContractCallBlocked","type":"error"},{"inputs":[],"name":"ImmutableRecoveryAddress","type":"error"},{"inputs":[],"name":"InsufficientPaymentValue","type":"error"},{"inputs":[],"name":"MaxPerAddressExceeded","type":"error"},{"inputs":[],"name":"MaxPerTransactionExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewSupplyTooLow","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotAuthorised","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PayoutToCustomerFailed","type":"error"},{"inputs":[],"name":"PayoutToManagerFailed","type":"error"},{"inputs":[],"name":"PublicSaleClosed","type":"error"},{"inputs":[],"name":"SaleClosed","type":"error"},{"inputs":[],"name":"SignatureExpired","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"TransfersDisabled","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousContractManager","type":"address"},{"indexed":true,"internalType":"address","name":"newContractManager","type":"address"}],"name":"ContractManagerTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"addresses","outputs":[{"internalType":"address","name":"recoveryAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_totalPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"_expires","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"buyAuthorised","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generalConfig","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"contractMetadataUrl","type":"string"},{"internalType":"string","name":"tokenMetadataUrl","type":"string"},{"internalType":"bool","name":"allowBuy","type":"bool"},{"internalType":"bool","name":"allowPublicTransfer","type":"bool"},{"internalType":"bool","name":"enableOpenSeaOperatorFilterRegistry","type":"bool"},{"internalType":"uint256","name":"publicSaleDate","type":"uint256"},{"internalType":"uint256","name":"saleCloseDate","type":"uint256"},{"internalType":"uint256","name":"primaryRoyaltyFee","type":"uint256"},{"internalType":"uint256","name":"secondaryRoyaltyFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"collectionName","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"royaltyAddress","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recoveryAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"internalType":"struct Addresses","name":"_addresses","type":"tuple"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowBuy","type":"bool"}],"name":"setAllowBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowPublicTransfer","type":"bool"}],"name":"setAllowPublicTransfer","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":"uint256","name":"_publicSale","type":"uint256"},{"internalType":"uint256","name":"_saleClosed","type":"uint256"}],"name":"setDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enable","type":"bool"}],"name":"setEnableOpenSeaOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setMetadataURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newName","type":"string"},{"internalType":"string","name":"_newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_primaryFee","type":"uint256"},{"internalType":"uint256","name":"_secondaryFee","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPerTransaction","type":"uint256"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"collectionSymbol","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenConfig","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerTransaction","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"numMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_expires","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"transferAuthorised","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContractManager","type":"address"}],"name":"transferContractManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200440f3803806200440f833981016040819052620000349162000740565b604080516020808201808452600080845284519283019094529281528151733cc6cdda760b79bafa08df41ecfa224f810dceb69360019392916200007b916002916200043f565b508051620000919060039060208401906200043f565b5050600160005550620000a4336200039b565b6daaeb6d7670e522a718067333cd4e3b15620001e95780156200013757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011857600080fd5b505af11580156200012d573d6000803e3d6000fd5b50505050620001e9565b6001600160a01b03821615620001885760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000fd565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001cf57600080fd5b505af1158015620001e4573d6000803e3d6000fd5b505050505b50506020810151620001fb90620003ed565b825180518491600a91620002179183916020909101906200043f565b5060208281015180516200023292600185019201906200043f565b5060408201518051620002509160028401916020909101906200043f565b50606082015180516200026e9160038401916020909101906200043f565b5060808281015160048301805460a08087015160c08089015161ffff1990941695151561ff0019169590951761010091151582021762ff0000191662010000931515939093029290921790925560e08601516005860155850151600685015561012085015160078501556101409094015160089093019290925584516013556020808601516014556040958601516015558451601680546001600160a01b03199081166001600160a01b03938416179091559186015160178054841691831691909117905595850151601880548316918816919091179055606085015160198054831691881691909117905590840151601a8054831691871691909117905591830151601b805484169186169190911790559190910151601c8054909216921691909117905550620008f4565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f5fb4f5c581870540f90f9705018e944972197c5be2aa889f6bb847b6cd2236e190600090a35050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200044d90620008b7565b90600052602060002090601f016020900481019282620004715760008555620004bc565b82601f106200048c57805160ff1916838001178555620004bc565b82800160010185558215620004bc579182015b82811115620004bc5782518255916020019190600101906200049f565b50620004ca929150620004ce565b5090565b5b80821115620004ca5760008155600101620004cf565b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b0381118282101715620005215762000521620004e5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620005525762000552620004e5565b604052919050565b600082601f8301126200056c57600080fd5b81516001600160401b03811115620005885762000588620004e5565b60206200059e601f8301601f1916820162000527565b8281528582848701011115620005b357600080fd5b60005b83811015620005d3578581018301518282018401528201620005b6565b83811115620005e55760008385840101525b5095945050505050565b805180151581146200060057600080fd5b919050565b6000606082840312156200061857600080fd5b604051606081016001600160401b03811182821017156200063d576200063d620004e5565b80604052508091508251815260208301516020820152604083015160408201525092915050565b80516001600160a01b03811681146200060057600080fd5b600060e082840312156200068f57600080fd5b60405160e081016001600160401b0381118282101715620006b457620006b4620004e5565b604052905080620006c58362000664565b8152620006d56020840162000664565b6020820152620006e86040840162000664565b6040820152620006fb6060840162000664565b60608201526200070e6080840162000664565b60808201526200072160a0840162000664565b60a08201526200073460c0840162000664565b60c08201525092915050565b60008060006101608085870312156200075857600080fd5b84516001600160401b03808211156200077057600080fd5b81870191508282890312156200078557600080fd5b6200078f620004fb565b9250815181811115620007a157600080fd5b620007af898285016200055a565b845250602082015181811115620007c557600080fd5b620007d3898285016200055a565b602085015250604082015181811115620007ec57600080fd5b620007fa898285016200055a565b6040850152506060820151818111156200081357600080fd5b62000821898285016200055a565b606085015250506200083660808201620005ef565b60808301526200084960a08201620005ef565b60a08301526200085c60c08201620005ef565b60c083015260e0818101519083015261010080820151908301526101208082015190830152610140908101519082015292506200089d856020860162000605565b9150620008ae85608086016200067c565b90509250925092565b600181811c90821680620008cc57607f821691505b60208210811415620008ee57634e487b7160e01b600052602260045260246000fd5b50919050565b613b0b80620009046000396000f3fe6080604052600436106102d05760003560e01c806382875f7911610179578063b39e12cf116100d6578063d96a094a1161008a578063e8a3d48511610064578063e8a3d48514610853578063e985e9c514610868578063f2fde38b146108b157600080fd5b8063d96a094a14610792578063da0321cd146107a5578063dedf141e1461083357600080fd5b8063ba9341c0116100bb578063ba9341c014610718578063c87b56dd14610752578063d60468361461077257600080fd5b8063b39e12cf146106e7578063b88d4fde1461070557600080fd5b806395d89b411161012d578063ae0aa35b11610112578063ae0aa35b14610687578063aeb2de35146106a7578063b375d492146106c757600080fd5b806395d89b4114610652578063a22cb4651461066757600080fd5b80638da5cb5b1161015e5780638da5cb5b146105e8578063927a97a114610606578063933a6f0d1461063257600080fd5b806382875f79146105c05780638bc3bdec146105d557600080fd5b80632843e3441161023257806358939061116101e657806370a08231116101c057806370a082311461056b578063715018a61461058b5780637c88e3d9146105a057600080fd5b8063589390611461050b5780635a4462151461052b5780636352211e1461054b57600080fd5b806342842e0e1161021757806342842e0e1461048f57806342966c68146104a257806354fd4d50146104c257600080fd5b80632843e344146104305780632a55205a1461045057600080fd5b8063095ea7b31161028957806318160ddd1161026e57806318160ddd146103e057806323b872dd146103fd5780632541b0911461041057600080fd5b8063095ea7b3146103ab578063166d44ea146103c057600080fd5b8063047fc9aa116102ba578063047fc9aa1461033857806306fdde0314610351578063081812fc1461037357600080fd5b80623d4790146102d557806301ffc9a714610308575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613154565b6108d1565b6040519081526020015b60405180910390f35b34801561031457600080fd5b50610328610323366004613187565b6108fe565b60405190151581526020016102ff565b34801561034457600080fd5b50600054600019016102f5565b34801561035d57600080fd5b50610366610970565b6040516102ff91906131fc565b34801561037f57600080fd5b5061039361038e36600461320f565b610a05565b6040516001600160a01b0390911681526020016102ff565b6103be6103b9366004613228565b610a62565b005b3480156103cc57600080fd5b506103be6103db366004613262565b610b1b565b3480156103ec57600080fd5b5060015460005403600019016102f5565b6103be61040b36600461327f565b610b9f565b34801561041c57600080fd5b506103be61042b366004613302565b610d7b565b34801561043c57600080fd5b506103be61044b36600461337e565b610ef9565b34801561045c57600080fd5b5061047061046b3660046133aa565b610fb2565b604080516001600160a01b0390931683526020830191909152016102ff565b6103be61049d36600461327f565b610fe8565b3480156104ae57600080fd5b506103be6104bd36600461320f565b611008565b3480156104ce57600080fd5b506103666040518060400160405280600581526020017f322e322e3000000000000000000000000000000000000000000000000000000081525081565b34801561051757600080fd5b506103be610526366004613262565b611016565b34801561053757600080fd5b506103be6105463660046133cc565b611097565b34801561055757600080fd5b5061039361056636600461320f565b61111c565b34801561057757600080fd5b506102f5610586366004613154565b611127565b34801561059757600080fd5b506103be61118f565b3480156105ac57600080fd5b506103be6105bb36600461347d565b6111f5565b3480156105cc57600080fd5b506103be61131f565b6103be6105e33660046134dd565b61135f565b3480156105f457600080fd5b506008546001600160a01b0316610393565b34801561061257600080fd5b5061061b611558565b6040516102ff9b9a99989796959493929190613529565b34801561063e57600080fd5b506103be61064d3660046133aa565b6117c5565b34801561065e57600080fd5b50610366611835565b34801561067357600080fd5b506103be6106823660046135b6565b611847565b34801561069357600080fd5b506103be6106a2366004613154565b6118b3565b3480156106b357600080fd5b506103be6106c23660046133cc565b61199d565b3480156106d357600080fd5b506103be6106e23660046135ef565b611a82565b3480156106f357600080fd5b506009546001600160a01b0316610393565b6103be61071336600461361d565b611b8a565b34801561072457600080fd5b5060135460145460155461073792919083565b604080519384526020840192909252908201526060016102ff565b34801561075e57600080fd5b5061036661076d36600461320f565b611bce565b34801561077e57600080fd5b506103be61078d366004613262565b611c41565b6103be6107a036600461320f565b611cb9565b3480156107b157600080fd5b50601654601754601854601954601a54601b54601c546107ea966001600160a01b03908116968116958116948116938116928116911687565b604080516001600160a01b039889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e0016102ff565b34801561083f57600080fd5b506103be61084e3660046133aa565b611d64565b34801561085f57600080fd5b50610366611dd4565b34801561087457600080fd5b506103286108833660046136fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108bd57600080fd5b506103be6108cc366004613154565b611de6565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c165b92915050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061096157506001600160e01b031982167f4906490600000000000000000000000000000000000000000000000000000000145b806108f857506108f882611ec5565b6060600a60000180546109829061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae9061372b565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a1082611f5e565b610a46576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a6d8261111c565b9050336001600160a01b03821614610abf57610a898133610883565b610abf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6009546001600160a01b0316336001600160a01b031614610b855760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b60648201526084015b60405180910390fd5b600e80549115156101000261ff0019909216919091179055565b6000610baa82611f93565b9050836001600160a01b0316816001600160a01b031614610bf7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610c238187335b6001600160a01b039081169116811491141790565b610c4e57610c318633610883565b610c4e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c9b868686600161201c565b8015610ca657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610d315760018401600081815260046020526040902054610d2f576000548114610d2f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b323314610d9b57604051633ebb273b60e21b815260040160405180910390fd5b824210610dbb57604051630819bdcd60e01b815260040160405180910390fd5b6040805130606090811b6bffffffffffffffffffffffff1990811660208085019190915233831b821660348501528a831b821660488501529189901b16605c8301526070820187905260908083018790528351808403909101815260b0830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060d084015260ec8084018290528451808503909101815261010c9093019093528151910120600090601854604080516020601f88018190048102820181019092528681529293506001600160a01b0390911691610ebd9184919088908890819084018382808284376000920191909152506122d392505050565b6001600160a01b031614610ee457604051631648fd0160e01b815260040160405180910390fd5b610eef888888610fe8565b5050505050505050565b6009546001600160a01b0316336001600160a01b031614610f5e5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b60015460005483919003600019011115610fa4576040517f1d77a89900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601392909255601455601555565b601c546012546001600160a01b039091169060009061271090610fd59085613776565b610fdf9190613795565b90509250929050565b61100383838360405180602001604052806000815250611b8a565b505050565b6110138160016122f7565b50565b6009546001600160a01b0316336001600160a01b03161461107b5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600e8054911515620100000262ff000019909216919091179055565b6009546001600160a01b0316336001600160a01b0316146110fc5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b611108600a85856130a6565b50611115600b83836130a6565b5050505050565b60006108f882611f93565b60006001600160a01b038216611169576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146111e95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7c565b6111f36000612461565b565b6009546001600160a01b0316336001600160a01b03161461125a5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b32331461127a57604051633ebb273b60e21b815260040160405180910390fd5b8260005b81811015610d7357600086868381811061129a5761129a6137b7565b90506020020160208101906112af9190613154565b905060008585848181106112c5576112c56137b7565b905060200201359050601360010154816112e26000546000190190565b6112ec91906137cd565b111561130b57604051638a164f6360e01b815260040160405180910390fd5b61131582826124b3565b505060010161127e565b6016546001600160a01b0316331461134a57604051631648fd0160e01b815260040160405180910390fd5b6016546111f3906001600160a01b03166125ea565b600e5460ff1661138257604051639d7da54560e01b815260040160405180910390fd5b3233146113a257604051633ebb273b60e21b815260040160405180910390fd5b8242106113c257604051630819bdcd60e01b815260040160405180910390fd5b6040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b16603483015260488201899052606882018890526088820187905260a88083018790528351808403909101815260c8830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060e8840152610104808401829052845180850390910181526101249093019093528151910120600090601854604080516020601f88018190048102820181019092528681529293506001600160a01b03909116916114bf9184919088908890819084018382808284376000920191909152506122d392505050565b6001600160a01b0316146114e657604051631648fd0160e01b815260040160405180910390fd5b851561154e573360009081526005602052604090819020548791611516918b911c67ffffffffffffffff166137cd565b111561154e576040517f550ffa9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eef888861263c565b600a805481906115679061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546115939061372b565b80156115e05780601f106115b5576101008083540402835291602001916115e0565b820191906000526020600020905b8154815290600101906020018083116115c357829003601f168201915b5050505050908060010180546115f59061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546116219061372b565b801561166e5780601f106116435761010080835404028352916020019161166e565b820191906000526020600020905b81548152906001019060200180831161165157829003601f168201915b5050505050908060020180546116839061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546116af9061372b565b80156116fc5780601f106116d1576101008083540402835291602001916116fc565b820191906000526020600020905b8154815290600101906020018083116116df57829003601f168201915b5050505050908060030180546117119061372b565b80601f016020809104026020016040519081016040528092919081815260200182805461173d9061372b565b801561178a5780601f1061175f5761010080835404028352916020019161178a565b820191906000526020600020905b81548152906001019060200180831161176d57829003601f168201915b505050506004830154600584015460068501546007860154600890960154949560ff808516966101008604821696506201000090950416938b565b6009546001600160a01b0316336001600160a01b03161461182a5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b601191909155601255565b6060600a60010180546109829061372b565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b0316336001600160a01b0316146119185760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602f60248201527f4f776e61626c653a206e657720636f6e7472616374206f776e6572206973207460448201527f6865207a65726f206164647265737300000000000000000000000000000000006064820152608401610b7c565b611013816125ea565b6009546001600160a01b0316336001600160a01b031614611a025760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b611a0e600c85856130a6565b50611a1b600d83836130a6565b50600154600054036000190115611a7c577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c600180611a5960005490565b611a6391906137e5565b6040805192835260208301919091520160405180910390a15b50505050565b6009546001600160a01b0316336001600160a01b031614611ae75760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b6016546001600160a01b0316611b006020830183613154565b6001600160a01b031614611b40576040517f9598453c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b506040820160208301613154565b6017546001600160a01b03908116911614611b7d57611b7d611b786040830160208401613154565b612461565b80601661100382826137fc565b611b95848484610b9f565b6001600160a01b0383163b15611a7c57611bb184848484612901565b611a7c576040516368d2bf6b60e11b815260040160405180910390fd5b6060611bd982611f5e565b611c0f576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d611c1a836129e9565b604051602001611c2b929190613949565b6040516020818303038152906040529050919050565b6009546001600160a01b0316336001600160a01b031614611ca65760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600e805460ff1916911515919091179055565b600e5460ff16611cdc57604051639d7da54560e01b815260040160405180910390fd5b323314611cfc57604051633ebb273b60e21b815260040160405180910390fd5b600f541580611d0c5750600f5442105b15611d43576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601354600090611d54908390613776565b9050611d60828261263c565b5050565b6009546001600160a01b0316336001600160a01b031614611dc95760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600f91909155601055565b6060600a60020180546109829061372b565b6008546001600160a01b03163314611e405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7c565b6001600160a01b038116611ebc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7c565b61101381612461565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161480611f2857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108f85750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b600081600111158015611f72575060005482105b80156108f8575050600090815260046020526040902054600160e01b161590565b60008180600111611fea57600054811015611fea57600081815260046020526040902054600160e01b8116611fe8575b80611fe1575060001901600081815260046020526040902054611fc3565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517fb39e12cf0000000000000000000000000000000000000000000000000000000081529051859185916001600160a01b0380851615929084161591600091309163b39e12cf916004808201926020929091908290030181865afa15801561208b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120af91906139f0565b6001600160a01b0386811691161490506000356001600160e01b0319167f2541b0910000000000000000000000000000000000000000000000000000000014831580156120fa575081155b8015612104575082155b801561210e575080155b1561215457600e54610100900460ff16612154576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e548a9062010000900460ff168061216c576122c5565b6daaeb6d7670e522a718067333cd4e3b156122c5576001600160a01b038216331415612197576122c5565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156121e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220a9190613a0d565b801561228d5750604051633185c44d60e21b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228d9190613a0d565b6122c5576040517fede71dcc000000000000000000000000000000000000000000000000000000008152336004820152602401610b7c565b505050505050505050505050565b60008060006122e28585612a37565b915091506122ef81612aa7565b509392505050565b600061230283611f93565b90508060008061232086600090815260066020526040902080549091565b91509150841561236057612335818433610c0e565b612360576123438333610883565b61236057604051632ce44b5f60e11b815260040160405180910390fd5b61236e83600088600161201c565b801561237957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040902055600160e11b841661241957600186016000818152600460205260409020546124175760005481146124175760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054816124ed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124fa600084838561201c565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146125a957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612571565b50816125e1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f5fb4f5c581870540f90f9705018e944972197c5be2aa889f6bb847b6cd2236e190600090a35050565b6010541561267f57601054421061267f576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454826126906000546000190190565b61269a91906137cd565b11156126b957604051638a164f6360e01b815260040160405180910390fd5b601554156126fd576015548211156126fd576040517f9782cdff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601154600090612710906127119084613776565b61271b9190613795565b6019549091506001600160a01b031615612791576019546001600160a01b0316811561275d57601a5461275d906001600160a01b038381169133911685612c62565b601b5461278b9033906001600160a01b031661277985876137e5565b6001600160a01b038516929190612c62565b506128f7565b813410156127cb576040517f7e6fc84600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561286057601a546040516000916001600160a01b03169083908381818185875af1925050503d806000811461281e576040519150601f19603f3d011682016040523d82523d6000602084013e612823565b606091505b505090508061285e576040517ff1fc694900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b601b546000906001600160a01b031661287983856137e5565b604051600081818185875af1925050503d80600081146128b5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ba565b606091505b50509050806128f5576040517f475c941300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61100333846124b3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612936903390899088908890600401613a2a565b6020604051808303816000875af1925050508015612971575060408051601f3d908101601f1916820190925261296e91810190613a66565b60015b6129cc573d80801561299f576040519150601f19603f3d011682016040523d82523d6000602084013e6129a4565b606091505b5080516129c4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612a2057612a25565b612a03565b50819003601f19909101908152919050565b600080825160411415612a6e5760208301516040840151606085015160001a612a6287828585612cea565b94509450505050612aa0565b825160401415612a985760208301516040840151612a8d868383612dd7565b935093505050612aa0565b506000905060025b9250929050565b6000816004811115612abb57612abb613a83565b1415612ac45750565b6001816004811115612ad857612ad8613a83565b1415612b265760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b7c565b6002816004811115612b3a57612b3a613a83565b1415612b885760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b7c565b6003816004811115612b9c57612b9c613a83565b1415612bf55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b7c565b6004816004811115612c0957612c09613a83565b14156110135760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b7c565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611a7c908590612e29565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d215750600090506003612dce565b8460ff16601b14158015612d3957508460ff16601c14155b15612d4a5750600090506004612dce565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d9e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612dc757600060019250925050612dce565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612e0d60ff86901c601b6137cd565b9050612e1b87828885612cea565b935093505050935093915050565b6000612e7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f0e9092919063ffffffff16565b8051909150156110035780806020019051810190612e9c9190613a0d565b6110035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b7c565b6060612f1d8484600085612f25565b949350505050565b606082471015612f9d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b7c565b6001600160a01b0385163b612ff45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b7c565b600080866001600160a01b031685876040516130109190613a99565b60006040518083038185875af1925050503d806000811461304d576040519150601f19603f3d011682016040523d82523d6000602084013e613052565b606091505b509150915061306282828661306d565b979650505050505050565b6060831561307c575081611fe1565b82511561308c5782518084602001fd5b8160405162461bcd60e51b8152600401610b7c91906131fc565b8280546130b29061372b565b90600052602060002090601f0160209004810192826130d4576000855561311a565b82601f106130ed5782800160ff1982351617855561311a565b8280016001018555821561311a579182015b8281111561311a5782358255916020019190600101906130ff565b5061312692915061312a565b5090565b5b80821115613126576000815560010161312b565b6001600160a01b038116811461101357600080fd5b60006020828403121561316657600080fd5b8135611fe18161313f565b6001600160e01b03198116811461101357600080fd5b60006020828403121561319957600080fd5b8135611fe181613171565b60005b838110156131bf5781810151838201526020016131a7565b83811115611a7c5750506000910152565b600081518084526131e88160208601602086016131a4565b601f01601f19169290920160200192915050565b602081526000611fe160208301846131d0565b60006020828403121561322157600080fd5b5035919050565b6000806040838503121561323b57600080fd5b82356132468161313f565b946020939093013593505050565b801515811461101357600080fd5b60006020828403121561327457600080fd5b8135611fe181613254565b60008060006060848603121561329457600080fd5b833561329f8161313f565b925060208401356132af8161313f565b929592945050506040919091013590565b60008083601f8401126132d257600080fd5b50813567ffffffffffffffff8111156132ea57600080fd5b602083019150836020828501011115612aa057600080fd5b60008060008060008060a0878903121561331b57600080fd5b86356133268161313f565b955060208701356133368161313f565b94506040870135935060608701359250608087013567ffffffffffffffff81111561336057600080fd5b61336c89828a016132c0565b979a9699509497509295939492505050565b60008060006060848603121561339357600080fd5b505081359360208301359350604090920135919050565b600080604083850312156133bd57600080fd5b50508035926020909101359150565b600080600080604085870312156133e257600080fd5b843567ffffffffffffffff808211156133fa57600080fd5b613406888389016132c0565b9096509450602087013591508082111561341f57600080fd5b5061342c878288016132c0565b95989497509550505050565b60008083601f84011261344a57600080fd5b50813567ffffffffffffffff81111561346257600080fd5b6020830191508360208260051b8501011115612aa057600080fd5b6000806000806040858703121561349357600080fd5b843567ffffffffffffffff808211156134ab57600080fd5b6134b788838901613438565b909650945060208701359150808211156134d057600080fd5b5061342c87828801613438565b60008060008060008060a087890312156134f657600080fd5b86359550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561336057600080fd5b600061016080835261353d8184018f6131d0565b90508281036020840152613551818e6131d0565b90508281036040840152613565818d6131d0565b90508281036060840152613579818c6131d0565b9915156080840152505095151560a087015293151560c086015260e085019290925261010084015261012083015261014090910152949350505050565b600080604083850312156135c957600080fd5b82356135d48161313f565b915060208301356135e481613254565b809150509250929050565b600060e0828403121561360157600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561363357600080fd5b843561363e8161313f565b9350602085013561364e8161313f565b925060408501359150606085013567ffffffffffffffff8082111561367257600080fd5b818701915087601f83011261368657600080fd5b81358181111561369857613698613607565b604051601f8201601f19908116603f011681019083821181831017156136c0576136c0613607565b816040528281528a60208487010111156136d957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561371057600080fd5b823561371b8161313f565b915060208301356135e48161313f565b600181811c9082168061373f57607f821691505b6020821081141561360157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561379057613790613760565b500290565b6000826137b257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156137e0576137e0613760565b500190565b6000828210156137f7576137f7613760565b500390565b81356138078161313f565b81546001600160a01b0319166001600160a01b03821617825550602082013561382f8161313f565b6001820180546001600160a01b0319166001600160a01b03831617905550604082013561385b8161313f565b6002820180546001600160a01b0319166001600160a01b0383161790555060608201356138878161313f565b6003820180546001600160a01b0319166001600160a01b0383161790555060808201356138b38161313f565b6004820180546001600160a01b0319166001600160a01b0383161790555060a08201356138df8161313f565b6005820180546001600160a01b0319166001600160a01b0383161790555060c082013561390b8161313f565b6006820180546001600160a01b0319166001600160a01b038316179055505050565b6000815161393f8185602086016131a4565b9290920192915050565b600080845481600182811c91508083168061396557607f831692505b602080841082141561398557634e487b7160e01b86526022600452602486fd5b81801561399957600181146139aa576139d7565b60ff198616895284890196506139d7565b60008b81526020902060005b868110156139cf5781548b8201529085019083016139b6565b505084890196505b5050505050506139e7818561392d565b95945050505050565b600060208284031215613a0257600080fd5b8151611fe18161313f565b600060208284031215613a1f57600080fd5b8151611fe181613254565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613a5c60808301846131d0565b9695505050505050565b600060208284031215613a7857600080fd5b8151611fe181613171565b634e487b7160e01b600052602160045260246000fd5b60008251613aab8184602087016131a4565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f742074686520636f6e7472a26469706673582212208d4fb2c1266ee8f99d0d8671861e7d89cd97b722364fba01738db2eaa583a0fe64736f6c634300080a003300000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb3574922000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb35749220000000000000000000000004214753bc439054dbceb70d459c271a21e611428000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b00000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d100000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d1000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000c526573757272656374696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004494c484e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004768747470733a2f2f6170692e68797065726d696e742e636f6d2f6d657461646174612f64623863326633662d613536372d343862312d623165632d36336630363335333035663900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004868747470733a2f2f6170692e68797065726d696e742e636f6d2f6d657461646174612f64623863326633662d613536372d343862312d623165632d3633663036333533303566392f000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102d05760003560e01c806382875f7911610179578063b39e12cf116100d6578063d96a094a1161008a578063e8a3d48511610064578063e8a3d48514610853578063e985e9c514610868578063f2fde38b146108b157600080fd5b8063d96a094a14610792578063da0321cd146107a5578063dedf141e1461083357600080fd5b8063ba9341c0116100bb578063ba9341c014610718578063c87b56dd14610752578063d60468361461077257600080fd5b8063b39e12cf146106e7578063b88d4fde1461070557600080fd5b806395d89b411161012d578063ae0aa35b11610112578063ae0aa35b14610687578063aeb2de35146106a7578063b375d492146106c757600080fd5b806395d89b4114610652578063a22cb4651461066757600080fd5b80638da5cb5b1161015e5780638da5cb5b146105e8578063927a97a114610606578063933a6f0d1461063257600080fd5b806382875f79146105c05780638bc3bdec146105d557600080fd5b80632843e3441161023257806358939061116101e657806370a08231116101c057806370a082311461056b578063715018a61461058b5780637c88e3d9146105a057600080fd5b8063589390611461050b5780635a4462151461052b5780636352211e1461054b57600080fd5b806342842e0e1161021757806342842e0e1461048f57806342966c68146104a257806354fd4d50146104c257600080fd5b80632843e344146104305780632a55205a1461045057600080fd5b8063095ea7b31161028957806318160ddd1161026e57806318160ddd146103e057806323b872dd146103fd5780632541b0911461041057600080fd5b8063095ea7b3146103ab578063166d44ea146103c057600080fd5b8063047fc9aa116102ba578063047fc9aa1461033857806306fdde0314610351578063081812fc1461037357600080fd5b80623d4790146102d557806301ffc9a714610308575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613154565b6108d1565b6040519081526020015b60405180910390f35b34801561031457600080fd5b50610328610323366004613187565b6108fe565b60405190151581526020016102ff565b34801561034457600080fd5b50600054600019016102f5565b34801561035d57600080fd5b50610366610970565b6040516102ff91906131fc565b34801561037f57600080fd5b5061039361038e36600461320f565b610a05565b6040516001600160a01b0390911681526020016102ff565b6103be6103b9366004613228565b610a62565b005b3480156103cc57600080fd5b506103be6103db366004613262565b610b1b565b3480156103ec57600080fd5b5060015460005403600019016102f5565b6103be61040b36600461327f565b610b9f565b34801561041c57600080fd5b506103be61042b366004613302565b610d7b565b34801561043c57600080fd5b506103be61044b36600461337e565b610ef9565b34801561045c57600080fd5b5061047061046b3660046133aa565b610fb2565b604080516001600160a01b0390931683526020830191909152016102ff565b6103be61049d36600461327f565b610fe8565b3480156104ae57600080fd5b506103be6104bd36600461320f565b611008565b3480156104ce57600080fd5b506103666040518060400160405280600581526020017f322e322e3000000000000000000000000000000000000000000000000000000081525081565b34801561051757600080fd5b506103be610526366004613262565b611016565b34801561053757600080fd5b506103be6105463660046133cc565b611097565b34801561055757600080fd5b5061039361056636600461320f565b61111c565b34801561057757600080fd5b506102f5610586366004613154565b611127565b34801561059757600080fd5b506103be61118f565b3480156105ac57600080fd5b506103be6105bb36600461347d565b6111f5565b3480156105cc57600080fd5b506103be61131f565b6103be6105e33660046134dd565b61135f565b3480156105f457600080fd5b506008546001600160a01b0316610393565b34801561061257600080fd5b5061061b611558565b6040516102ff9b9a99989796959493929190613529565b34801561063e57600080fd5b506103be61064d3660046133aa565b6117c5565b34801561065e57600080fd5b50610366611835565b34801561067357600080fd5b506103be6106823660046135b6565b611847565b34801561069357600080fd5b506103be6106a2366004613154565b6118b3565b3480156106b357600080fd5b506103be6106c23660046133cc565b61199d565b3480156106d357600080fd5b506103be6106e23660046135ef565b611a82565b3480156106f357600080fd5b506009546001600160a01b0316610393565b6103be61071336600461361d565b611b8a565b34801561072457600080fd5b5060135460145460155461073792919083565b604080519384526020840192909252908201526060016102ff565b34801561075e57600080fd5b5061036661076d36600461320f565b611bce565b34801561077e57600080fd5b506103be61078d366004613262565b611c41565b6103be6107a036600461320f565b611cb9565b3480156107b157600080fd5b50601654601754601854601954601a54601b54601c546107ea966001600160a01b03908116968116958116948116938116928116911687565b604080516001600160a01b039889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e0016102ff565b34801561083f57600080fd5b506103be61084e3660046133aa565b611d64565b34801561085f57600080fd5b50610366611dd4565b34801561087457600080fd5b506103286108833660046136fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108bd57600080fd5b506103be6108cc366004613154565b611de6565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c165b92915050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061096157506001600160e01b031982167f4906490600000000000000000000000000000000000000000000000000000000145b806108f857506108f882611ec5565b6060600a60000180546109829061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae9061372b565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a1082611f5e565b610a46576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a6d8261111c565b9050336001600160a01b03821614610abf57610a898133610883565b610abf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6009546001600160a01b0316336001600160a01b031614610b855760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b60648201526084015b60405180910390fd5b600e80549115156101000261ff0019909216919091179055565b6000610baa82611f93565b9050836001600160a01b0316816001600160a01b031614610bf7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610c238187335b6001600160a01b039081169116811491141790565b610c4e57610c318633610883565b610c4e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c9b868686600161201c565b8015610ca657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610d315760018401600081815260046020526040902054610d2f576000548114610d2f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b323314610d9b57604051633ebb273b60e21b815260040160405180910390fd5b824210610dbb57604051630819bdcd60e01b815260040160405180910390fd5b6040805130606090811b6bffffffffffffffffffffffff1990811660208085019190915233831b821660348501528a831b821660488501529189901b16605c8301526070820187905260908083018790528351808403909101815260b0830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060d084015260ec8084018290528451808503909101815261010c9093019093528151910120600090601854604080516020601f88018190048102820181019092528681529293506001600160a01b0390911691610ebd9184919088908890819084018382808284376000920191909152506122d392505050565b6001600160a01b031614610ee457604051631648fd0160e01b815260040160405180910390fd5b610eef888888610fe8565b5050505050505050565b6009546001600160a01b0316336001600160a01b031614610f5e5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b60015460005483919003600019011115610fa4576040517f1d77a89900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601392909255601455601555565b601c546012546001600160a01b039091169060009061271090610fd59085613776565b610fdf9190613795565b90509250929050565b61100383838360405180602001604052806000815250611b8a565b505050565b6110138160016122f7565b50565b6009546001600160a01b0316336001600160a01b03161461107b5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600e8054911515620100000262ff000019909216919091179055565b6009546001600160a01b0316336001600160a01b0316146110fc5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b611108600a85856130a6565b50611115600b83836130a6565b5050505050565b60006108f882611f93565b60006001600160a01b038216611169576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146111e95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7c565b6111f36000612461565b565b6009546001600160a01b0316336001600160a01b03161461125a5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b32331461127a57604051633ebb273b60e21b815260040160405180910390fd5b8260005b81811015610d7357600086868381811061129a5761129a6137b7565b90506020020160208101906112af9190613154565b905060008585848181106112c5576112c56137b7565b905060200201359050601360010154816112e26000546000190190565b6112ec91906137cd565b111561130b57604051638a164f6360e01b815260040160405180910390fd5b61131582826124b3565b505060010161127e565b6016546001600160a01b0316331461134a57604051631648fd0160e01b815260040160405180910390fd5b6016546111f3906001600160a01b03166125ea565b600e5460ff1661138257604051639d7da54560e01b815260040160405180910390fd5b3233146113a257604051633ebb273b60e21b815260040160405180910390fd5b8242106113c257604051630819bdcd60e01b815260040160405180910390fd5b6040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b16603483015260488201899052606882018890526088820187905260a88083018790528351808403909101815260c8830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060e8840152610104808401829052845180850390910181526101249093019093528151910120600090601854604080516020601f88018190048102820181019092528681529293506001600160a01b03909116916114bf9184919088908890819084018382808284376000920191909152506122d392505050565b6001600160a01b0316146114e657604051631648fd0160e01b815260040160405180910390fd5b851561154e573360009081526005602052604090819020548791611516918b911c67ffffffffffffffff166137cd565b111561154e576040517f550ffa9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eef888861263c565b600a805481906115679061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546115939061372b565b80156115e05780601f106115b5576101008083540402835291602001916115e0565b820191906000526020600020905b8154815290600101906020018083116115c357829003601f168201915b5050505050908060010180546115f59061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546116219061372b565b801561166e5780601f106116435761010080835404028352916020019161166e565b820191906000526020600020905b81548152906001019060200180831161165157829003601f168201915b5050505050908060020180546116839061372b565b80601f01602080910402602001604051908101604052809291908181526020018280546116af9061372b565b80156116fc5780601f106116d1576101008083540402835291602001916116fc565b820191906000526020600020905b8154815290600101906020018083116116df57829003601f168201915b5050505050908060030180546117119061372b565b80601f016020809104026020016040519081016040528092919081815260200182805461173d9061372b565b801561178a5780601f1061175f5761010080835404028352916020019161178a565b820191906000526020600020905b81548152906001019060200180831161176d57829003601f168201915b505050506004830154600584015460068501546007860154600890960154949560ff808516966101008604821696506201000090950416938b565b6009546001600160a01b0316336001600160a01b03161461182a5760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b601191909155601255565b6060600a60010180546109829061372b565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b0316336001600160a01b0316146119185760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602f60248201527f4f776e61626c653a206e657720636f6e7472616374206f776e6572206973207460448201527f6865207a65726f206164647265737300000000000000000000000000000000006064820152608401610b7c565b611013816125ea565b6009546001600160a01b0316336001600160a01b031614611a025760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b611a0e600c85856130a6565b50611a1b600d83836130a6565b50600154600054036000190115611a7c577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c600180611a5960005490565b611a6391906137e5565b6040805192835260208301919091520160405180910390a15b50505050565b6009546001600160a01b0316336001600160a01b031614611ae75760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b6016546001600160a01b0316611b006020830183613154565b6001600160a01b031614611b40576040517f9598453c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b506040820160208301613154565b6017546001600160a01b03908116911614611b7d57611b7d611b786040830160208401613154565b612461565b80601661100382826137fc565b611b95848484610b9f565b6001600160a01b0383163b15611a7c57611bb184848484612901565b611a7c576040516368d2bf6b60e11b815260040160405180910390fd5b6060611bd982611f5e565b611c0f576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d611c1a836129e9565b604051602001611c2b929190613949565b6040516020818303038152906040529050919050565b6009546001600160a01b0316336001600160a01b031614611ca65760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600e805460ff1916911515919091179055565b600e5460ff16611cdc57604051639d7da54560e01b815260040160405180910390fd5b323314611cfc57604051633ebb273b60e21b815260040160405180910390fd5b600f541580611d0c5750600f5442105b15611d43576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601354600090611d54908390613776565b9050611d60828261263c565b5050565b6009546001600160a01b0316336001600160a01b031614611dc95760405162461bcd60e51b815260206004820152602b6024820152600080516020613ab683398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610b7c565b600f91909155601055565b6060600a60020180546109829061372b565b6008546001600160a01b03163314611e405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7c565b6001600160a01b038116611ebc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7c565b61101381612461565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161480611f2857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108f85750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b600081600111158015611f72575060005482105b80156108f8575050600090815260046020526040902054600160e01b161590565b60008180600111611fea57600054811015611fea57600081815260046020526040902054600160e01b8116611fe8575b80611fe1575060001901600081815260046020526040902054611fc3565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517fb39e12cf0000000000000000000000000000000000000000000000000000000081529051859185916001600160a01b0380851615929084161591600091309163b39e12cf916004808201926020929091908290030181865afa15801561208b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120af91906139f0565b6001600160a01b0386811691161490506000356001600160e01b0319167f2541b0910000000000000000000000000000000000000000000000000000000014831580156120fa575081155b8015612104575082155b801561210e575080155b1561215457600e54610100900460ff16612154576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e548a9062010000900460ff168061216c576122c5565b6daaeb6d7670e522a718067333cd4e3b156122c5576001600160a01b038216331415612197576122c5565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156121e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220a9190613a0d565b801561228d5750604051633185c44d60e21b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228d9190613a0d565b6122c5576040517fede71dcc000000000000000000000000000000000000000000000000000000008152336004820152602401610b7c565b505050505050505050505050565b60008060006122e28585612a37565b915091506122ef81612aa7565b509392505050565b600061230283611f93565b90508060008061232086600090815260066020526040902080549091565b91509150841561236057612335818433610c0e565b612360576123438333610883565b61236057604051632ce44b5f60e11b815260040160405180910390fd5b61236e83600088600161201c565b801561237957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040902055600160e11b841661241957600186016000818152600460205260409020546124175760005481146124175760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054816124ed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124fa600084838561201c565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146125a957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612571565b50816125e1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f5fb4f5c581870540f90f9705018e944972197c5be2aa889f6bb847b6cd2236e190600090a35050565b6010541561267f57601054421061267f576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454826126906000546000190190565b61269a91906137cd565b11156126b957604051638a164f6360e01b815260040160405180910390fd5b601554156126fd576015548211156126fd576040517f9782cdff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601154600090612710906127119084613776565b61271b9190613795565b6019549091506001600160a01b031615612791576019546001600160a01b0316811561275d57601a5461275d906001600160a01b038381169133911685612c62565b601b5461278b9033906001600160a01b031661277985876137e5565b6001600160a01b038516929190612c62565b506128f7565b813410156127cb576040517f7e6fc84600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561286057601a546040516000916001600160a01b03169083908381818185875af1925050503d806000811461281e576040519150601f19603f3d011682016040523d82523d6000602084013e612823565b606091505b505090508061285e576040517ff1fc694900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b601b546000906001600160a01b031661287983856137e5565b604051600081818185875af1925050503d80600081146128b5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ba565b606091505b50509050806128f5576040517f475c941300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61100333846124b3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612936903390899088908890600401613a2a565b6020604051808303816000875af1925050508015612971575060408051601f3d908101601f1916820190925261296e91810190613a66565b60015b6129cc573d80801561299f576040519150601f19603f3d011682016040523d82523d6000602084013e6129a4565b606091505b5080516129c4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612a2057612a25565b612a03565b50819003601f19909101908152919050565b600080825160411415612a6e5760208301516040840151606085015160001a612a6287828585612cea565b94509450505050612aa0565b825160401415612a985760208301516040840151612a8d868383612dd7565b935093505050612aa0565b506000905060025b9250929050565b6000816004811115612abb57612abb613a83565b1415612ac45750565b6001816004811115612ad857612ad8613a83565b1415612b265760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b7c565b6002816004811115612b3a57612b3a613a83565b1415612b885760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b7c565b6003816004811115612b9c57612b9c613a83565b1415612bf55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b7c565b6004816004811115612c0957612c09613a83565b14156110135760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b7c565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611a7c908590612e29565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d215750600090506003612dce565b8460ff16601b14158015612d3957508460ff16601c14155b15612d4a5750600090506004612dce565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d9e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612dc757600060019250925050612dce565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612e0d60ff86901c601b6137cd565b9050612e1b87828885612cea565b935093505050935093915050565b6000612e7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f0e9092919063ffffffff16565b8051909150156110035780806020019051810190612e9c9190613a0d565b6110035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b7c565b6060612f1d8484600085612f25565b949350505050565b606082471015612f9d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b7c565b6001600160a01b0385163b612ff45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b7c565b600080866001600160a01b031685876040516130109190613a99565b60006040518083038185875af1925050503d806000811461304d576040519150601f19603f3d011682016040523d82523d6000602084013e613052565b606091505b509150915061306282828661306d565b979650505050505050565b6060831561307c575081611fe1565b82511561308c5782518084602001fd5b8160405162461bcd60e51b8152600401610b7c91906131fc565b8280546130b29061372b565b90600052602060002090601f0160209004810192826130d4576000855561311a565b82601f106130ed5782800160ff1982351617855561311a565b8280016001018555821561311a579182015b8281111561311a5782358255916020019190600101906130ff565b5061312692915061312a565b5090565b5b80821115613126576000815560010161312b565b6001600160a01b038116811461101357600080fd5b60006020828403121561316657600080fd5b8135611fe18161313f565b6001600160e01b03198116811461101357600080fd5b60006020828403121561319957600080fd5b8135611fe181613171565b60005b838110156131bf5781810151838201526020016131a7565b83811115611a7c5750506000910152565b600081518084526131e88160208601602086016131a4565b601f01601f19169290920160200192915050565b602081526000611fe160208301846131d0565b60006020828403121561322157600080fd5b5035919050565b6000806040838503121561323b57600080fd5b82356132468161313f565b946020939093013593505050565b801515811461101357600080fd5b60006020828403121561327457600080fd5b8135611fe181613254565b60008060006060848603121561329457600080fd5b833561329f8161313f565b925060208401356132af8161313f565b929592945050506040919091013590565b60008083601f8401126132d257600080fd5b50813567ffffffffffffffff8111156132ea57600080fd5b602083019150836020828501011115612aa057600080fd5b60008060008060008060a0878903121561331b57600080fd5b86356133268161313f565b955060208701356133368161313f565b94506040870135935060608701359250608087013567ffffffffffffffff81111561336057600080fd5b61336c89828a016132c0565b979a9699509497509295939492505050565b60008060006060848603121561339357600080fd5b505081359360208301359350604090920135919050565b600080604083850312156133bd57600080fd5b50508035926020909101359150565b600080600080604085870312156133e257600080fd5b843567ffffffffffffffff808211156133fa57600080fd5b613406888389016132c0565b9096509450602087013591508082111561341f57600080fd5b5061342c878288016132c0565b95989497509550505050565b60008083601f84011261344a57600080fd5b50813567ffffffffffffffff81111561346257600080fd5b6020830191508360208260051b8501011115612aa057600080fd5b6000806000806040858703121561349357600080fd5b843567ffffffffffffffff808211156134ab57600080fd5b6134b788838901613438565b909650945060208701359150808211156134d057600080fd5b5061342c87828801613438565b60008060008060008060a087890312156134f657600080fd5b86359550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561336057600080fd5b600061016080835261353d8184018f6131d0565b90508281036020840152613551818e6131d0565b90508281036040840152613565818d6131d0565b90508281036060840152613579818c6131d0565b9915156080840152505095151560a087015293151560c086015260e085019290925261010084015261012083015261014090910152949350505050565b600080604083850312156135c957600080fd5b82356135d48161313f565b915060208301356135e481613254565b809150509250929050565b600060e0828403121561360157600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561363357600080fd5b843561363e8161313f565b9350602085013561364e8161313f565b925060408501359150606085013567ffffffffffffffff8082111561367257600080fd5b818701915087601f83011261368657600080fd5b81358181111561369857613698613607565b604051601f8201601f19908116603f011681019083821181831017156136c0576136c0613607565b816040528281528a60208487010111156136d957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561371057600080fd5b823561371b8161313f565b915060208301356135e48161313f565b600181811c9082168061373f57607f821691505b6020821081141561360157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561379057613790613760565b500290565b6000826137b257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156137e0576137e0613760565b500190565b6000828210156137f7576137f7613760565b500390565b81356138078161313f565b81546001600160a01b0319166001600160a01b03821617825550602082013561382f8161313f565b6001820180546001600160a01b0319166001600160a01b03831617905550604082013561385b8161313f565b6002820180546001600160a01b0319166001600160a01b0383161790555060608201356138878161313f565b6003820180546001600160a01b0319166001600160a01b0383161790555060808201356138b38161313f565b6004820180546001600160a01b0319166001600160a01b0383161790555060a08201356138df8161313f565b6005820180546001600160a01b0319166001600160a01b0383161790555060c082013561390b8161313f565b6006820180546001600160a01b0319166001600160a01b038316179055505050565b6000815161393f8185602086016131a4565b9290920192915050565b600080845481600182811c91508083168061396557607f831692505b602080841082141561398557634e487b7160e01b86526022600452602486fd5b81801561399957600181146139aa576139d7565b60ff198616895284890196506139d7565b60008b81526020902060005b868110156139cf5781548b8201529085019083016139b6565b505084890196505b5050505050506139e7818561392d565b95945050505050565b600060208284031215613a0257600080fd5b8151611fe18161313f565b600060208284031215613a1f57600080fd5b8151611fe181613254565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613a5c60808301846131d0565b9695505050505050565b600060208284031215613a7857600080fd5b8151611fe181613171565b634e487b7160e01b600052602160045260246000fd5b60008251613aab8184602087016131a4565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f742074686520636f6e7472a26469706673582212208d4fb2c1266ee8f99d0d8671861e7d89cd97b722364fba01738db2eaa583a0fe64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb3574922000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb35749220000000000000000000000004214753bc439054dbceb70d459c271a21e611428000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b00000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d100000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d1000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000c526573757272656374696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004494c484e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004768747470733a2f2f6170692e68797065726d696e742e636f6d2f6d657461646174612f64623863326633662d613536372d343862312d623165632d36336630363335333035663900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004868747470733a2f2f6170692e68797065726d696e742e636f6d2f6d657461646174612f64623863326633662d613536372d343862312d623165632d3633663036333533303566392f000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _generalConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : _tokenConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [2] : _addresses (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
34 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb3574922
Arg [5] : 000000000000000000000000ed83f0bceef992fa58c8bc8a27269eedb3574922
Arg [6] : 0000000000000000000000004214753bc439054dbceb70d459c271a21e611428
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 00000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b
Arg [9] : 00000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d1
Arg [10] : 00000000000000000000000088b5c025e5790dae3f21ce315a12940711a330d1
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [12] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [13] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [21] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [22] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [23] : 526573757272656374696f6e0000000000000000000000000000000000000000
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [25] : 494c484e00000000000000000000000000000000000000000000000000000000
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000047
Arg [27] : 68747470733a2f2f6170692e68797065726d696e742e636f6d2f6d6574616461
Arg [28] : 74612f64623863326633662d613536372d343862312d623165632d3633663036
Arg [29] : 3335333035663900000000000000000000000000000000000000000000000000
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000048
Arg [31] : 68747470733a2f2f6170692e68797065726d696e742e636f6d2f6d6574616461
Arg [32] : 74612f64623863326633662d613536372d343862312d623165632d3633663036
Arg [33] : 333533303566392f000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.