Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 234 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20536461 | 138 days ago | IN | 0 ETH | 0.00020972 | ||||
Safe Transfer Fr... | 20186171 | 187 days ago | IN | 0 ETH | 0.00024513 | ||||
Transfer From | 19594160 | 269 days ago | IN | 0 ETH | 0.00061615 | ||||
Transfer From | 17588265 | 551 days ago | IN | 0 ETH | 0.00145749 | ||||
Transfer From | 17587782 | 551 days ago | IN | 0 ETH | 0.00205187 | ||||
Transfer From | 17585909 | 551 days ago | IN | 0 ETH | 0.00237695 | ||||
Set Approval For... | 17180049 | 608 days ago | IN | 0 ETH | 0.00321763 | ||||
Safe Transfer Fr... | 16316816 | 729 days ago | IN | 0 ETH | 0.00102773 | ||||
Safe Transfer Fr... | 16236346 | 741 days ago | IN | 0 ETH | 0.00077316 | ||||
Set Approval For... | 16147373 | 753 days ago | IN | 0 ETH | 0.00083379 | ||||
Safe Transfer Fr... | 16022554 | 770 days ago | IN | 0 ETH | 0.00050356 | ||||
Set Approval For... | 15860953 | 793 days ago | IN | 0 ETH | 0.00020148 | ||||
Set Approval For... | 15580471 | 832 days ago | IN | 0 ETH | 0.00015474 | ||||
Set Approval For... | 15574188 | 833 days ago | IN | 0 ETH | 0.00018928 | ||||
Set Approval For... | 15567623 | 834 days ago | IN | 0 ETH | 0.00022675 | ||||
Transfer From | 15267795 | 881 days ago | IN | 0 ETH | 0.00033129 | ||||
Set Approval For... | 15206311 | 891 days ago | IN | 0 ETH | 0.00108388 | ||||
Set Approval For... | 15186127 | 894 days ago | IN | 0 ETH | 0.0006492 | ||||
Set Approval For... | 15092920 | 908 days ago | IN | 0 ETH | 0.00086215 | ||||
Set Approval For... | 14968642 | 930 days ago | IN | 0 ETH | 0.00222132 | ||||
Set Approval For... | 14921766 | 938 days ago | IN | 0 ETH | 0.00299338 | ||||
Transfer From | 14839108 | 951 days ago | IN | 0 ETH | 0.00113343 | ||||
Set Approval For... | 14750271 | 966 days ago | IN | 0 ETH | 0.0023274 | ||||
Set Approval For... | 14731170 | 969 days ago | IN | 0 ETH | 0.00115284 | ||||
Transfer From | 14724691 | 970 days ago | IN | 0 ETH | 0.00363088 |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
JerkfaceGenesis
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 150 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //----------------------------------------------------------------------------- // Jerkface Genesis Collection //----------------------------------------------------------------------------- // Author: papaver (@tronicdreams) //----------------------------------------------------------------------------- import "./GeneticChain721.sol"; //------------------------------------------------------------------------------ // Jerkface //------------------------------------------------------------------------------ /** * @title Jerkface Genesis Collection */ contract JerkfaceGenesis is GeneticChain721 { //------------------------------------------------------------------------- // fields //------------------------------------------------------------------------- // token info string private _baseUri; string private _tokenIpfsHash; // contract info string public _contractUri; //------------------------------------------------------------------------- // ctor //------------------------------------------------------------------------- constructor( string memory baseUri_, string memory ipfsHash_, string memory contractUri_, uint16[4] memory pmax, uint16[4] memory max) GeneticChain721(pmax, max) { _baseUri = baseUri_; _tokenIpfsHash = ipfsHash_; _contractUri = contractUri_; } //------------------------------------------------------------------------- // accessors //------------------------------------------------------------------------- function setTokenIpfsHash(string memory hash) public onlyOwner { if (bytes(hash).length == 0) { delete _tokenIpfsHash; } else { _tokenIpfsHash = hash; } } //------------------------------------------------------------------------- function setBaseTokenURI(string memory baseUri) public onlyOwner { _baseUri = baseUri; } //------------------------------------------------------------------------- // ERC721Metadata //------------------------------------------------------------------------- function baseTokenURI() public view returns (string memory) { return _baseUri; } //------------------------------------------------------------------------- /** * @dev Returns uri of a token. Not guarenteed token exists. */ function tokenURI(uint256 tokenId) override public view returns (string memory) { return bytes(_tokenIpfsHash).length == 0 ? string(abi.encodePacked( baseTokenURI(), "/", Strings.toString(tokenId))) : string(abi.encodePacked( baseTokenURI(), "/", _tokenIpfsHash, "/", Strings.toString(tokenId))); } //------------------------------------------------------------------------- // contractUri //------------------------------------------------------------------------- function setContractURI(string memory contractUri) external onlyOwner { _contractUri = contractUri; } //------------------------------------------------------------------------- function contractURI() public view returns (string memory) { return _contractUri; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @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) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // 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) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @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) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // Jerkface Genesis Collection //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/utils/cryptography/ECDSA.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "./libraries/State.sol"; //------------------------------------------------------------------------------ // GeneticChain721 //------------------------------------------------------------------------------ /** * @title GeneticChain721 */ abstract contract GeneticChain721 is ERC721, Ownable { using ECDSA for bytes32; using State for State.Data; //------------------------------------------------------------------------- // constants //------------------------------------------------------------------------- // erc721 metadata string constant private __name = "Jerkface Genesis"; string constant private __symbol = "JERKFACE"; // mint info uint256 constant public _tokenOffset = 100; // verification address address constant private _signer = 0xa98673D426BCf78eA72aeF978F2cFF756d941d2A; //------------------------------------------------------------------------- // fields //------------------------------------------------------------------------- // mint data uint64[4] public tokenPrice; // contract state State.Data private _state; // track mint count per address mapping (address => uint8) private _minted; // roles mapping (address => bool) private _burnerAddress; //------------------------------------------------------------------------- // modifiers //------------------------------------------------------------------------- modifier validTokenId(uint256 tokenId) { require(_exists(tokenId), "invalid token"); _; } //------------------------------------------------------------------------- modifier approvedOrOwner(address operator, uint256 tokenId) { require(_isApprovedOrOwner(operator, tokenId)); _; } //------------------------------------------------------------------------- modifier notLocked() { require(!_state.locked(), "contract locked"); _; } //------------------------------------------------------------------------- modifier isBurner() { require(_burnerAddress[_msgSender()], "caller not burner"); _; } //------------------------------------------------------------------------- // ctor //------------------------------------------------------------------------- constructor( uint16[4] memory pmax, uint16[4] memory max) ERC721(__name, __symbol) { // 0 - mr. sparklechu // 1 - mr. sparklechu - variant // 2 - homerbob // 3 - homerbob - variant tokenPrice[0] = 1 ether; tokenPrice[1] = 2 ether; tokenPrice[2] = 1 ether; tokenPrice[3] = 2 ether; // setup state with token mint limits _state.initialize(pmax, max); } //------------------------------------------------------------------------- // accessors //------------------------------------------------------------------------- /** * Get variant price. */ function price(uint256 variantId) public view returns (uint256) { return tokenPrice[variantId]; } //------------------------------------------------------------------------- /** * Get total minted. */ function totalSupply() public view returns (uint256) { return _state.totalSupply(); } //------------------------------------------------------------------------- /** * Get total minted of variant. */ function variantSupply(uint256 variantId) public view returns (uint256) { return _state.getSupply(variantId); } //------------------------------------------------------------------------- /** * Get max supply allowed for variant. */ function variantMax(uint256 variantId) public view returns (uint256) { return _state.getMax(variantId); } //------------------------------------------------------------------------- /** * Check if public minting is live. */ function publicLive() public view returns (bool) { return _state.publicLive(); } //------------------------------------------------------------------------- /** * Check if contract locked. */ function locked() public view returns (bool) { return _state.locked(); } //------------------------------------------------------------------------- /** * Enable public live. */ function enablePublicLive() public onlyOwner { _state.enablePublicLive(); } //------------------------------------------------------------------------- /** * Toggle locking contract.. */ function toggleLocked() public onlyOwner { _state.toggleLocked(); } //------------------------------------------------------------------------- // admin //------------------------------------------------------------------------- /** * Authorize artist address. */ function registerBurnerAddress(address burner) public onlyOwner { require(!_burnerAddress[burner], "address already registered"); _burnerAddress[burner] = true; } //------------------------------------------------------------------------- /** * Remove burner address. */ function revokeBurnerAddress(address burner) public onlyOwner { require(_burnerAddress[burner], "address not registered"); delete _burnerAddress[burner]; } //------------------------------------------------------------------------- // security //------------------------------------------------------------------------- /** * Validate hash contains input data. */ function validateHash( bytes32 msgHash, address sender, uint256 allocation, uint256 count) private pure returns(bool) { return ECDSA.toEthSignedMessageHash( keccak256(abi.encodePacked(sender, allocation, count))) == msgHash; } //------------------------------------------------------------------------- /** * Validate message was signed by signer. */ function validateSigner(bytes32 msgHash, bytes memory signature) private pure returns(bool) { return msgHash.recover(signature) == _signer; } //------------------------------------------------------------------------- // minting //------------------------------------------------------------------------- /** * Mint token using securely signed message. */ function secureMint( uint256 variantId, bytes32 msgHash, bytes calldata signature, uint256 allocation, uint256 count) payable external notLocked { require(variantId < tokenPrice.length, "invalid variant"); require(tokenPrice[variantId] * count == msg.value, "insufficient funds"); require(_minted[msg.sender] + count <= allocation, "exceed allocation"); require(validateSigner(msgHash, signature), "invalid signer"); require(validateHash(msgHash, msg.sender, allocation, count), "invalid hash"); // mark user minted _minted[msg.sender] += uint8(count); // get current token id uint256 tokenId = _tokenOffset * (variantId + 1) + _state._supply[variantId]; // update variant supply _state.addSupply(variantId, count); // mint token for (uint256 i = 0; i < count; ++i) { _safeMint(msg.sender, tokenId + i); } } //------------------------------------------------------------------------- /** * @dev Burns `tokenId`. See {ERC721-_burn}. */ function burn(uint256 tokenId) public isBurner { _burn(tokenId); } //------------------------------------------------------------------------- // money //------------------------------------------------------------------------- /** * Pull money out of this contract. */ function withdraw(address to, uint256 amount) public onlyOwner { require(amount > 0, "amount empty"); require(amount <= address(this).balance, "amount exceeds balance"); require(to != address(0), "address null"); payable(to).transfer(amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: library/State //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ /** * @dev Handle contract state efficiently as possbile. */ library State { //------------------------------------------------------------------------- // struct //------------------------------------------------------------------------- struct Data { uint8 _live; uint8 _locked; uint16[4] _supply; uint16[4] _privatemax; uint16[4] _max; uint48 _unused; } //------------------------------------------------------------------------- // interface //------------------------------------------------------------------------- function initialize(Data storage data, uint16[4] memory pmax, uint16[4] memory max) internal { data._privatemax[0] = pmax[0]; data._privatemax[1] = pmax[1]; data._privatemax[2] = pmax[2]; data._privatemax[3] = pmax[3]; data._max[0] = max[0]; data._max[1] = max[1]; data._max[2] = max[2]; data._max[3] = max[3]; } //------------------------------------------------------------------------- function publicLive(Data storage data) public view returns (bool) { return data._live == 1; } //------------------------------------------------------------------------- function locked(Data storage data) public view returns (bool) { return data._locked == 1; } //------------------------------------------------------------------------- function enablePublicLive(Data storage data) public { data._live = 1; } //------------------------------------------------------------------------- function toggleLocked(Data storage data) public { data._locked = data._locked == 1 ? 0 : 1; } //------------------------------------------------------------------------- function getMax(Data storage data, uint256 index) internal view returns (uint256) { return data._live == 0 ? data._privatemax[index] : data._max[index]; } //------------------------------------------------------------------------- function getSupply(Data storage data, uint256 index) internal view returns (uint256) { return data._supply[index]; } //------------------------------------------------------------------------- function addSupply(Data storage data, uint256 index, uint256 count) internal { require(data._supply[index] + count <= getMax(data, index), "exceed supply"); unchecked { data._supply[index] += uint16(count); } } //------------------------------------------------------------------------- function totalSupply(Data storage data) internal view returns (uint256 supply) { for (uint256 i = 0; i < data._supply.length; ++i) { supply += uint16(data._supply[i]); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 150 }, "evmVersion": "london", "libraries": { "/contracts/libraries/State.sol": { "State": "0xbDdbbF1c358A29634368B5237c3975E9708dcf18" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"string","name":"ipfsHash_","type":"string"},{"internalType":"string","name":"contractUri_","type":"string"},{"internalType":"uint16[4]","name":"pmax","type":"uint16[4]"},{"internalType":"uint16[4]","name":"max","type":"uint16[4]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_contractUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePublicLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"variantId","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"registerBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"revokeBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"variantId","type":"uint256"},{"internalType":"bytes32","name":"msgHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"secureMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setTokenIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"variantId","type":"uint256"}],"name":"variantMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"variantId","type":"uint256"}],"name":"variantSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200325e3803806200325e833981016040819052620000349162000452565b604080518082018252601081526f4a65726b666163652047656e6573697360801b6020808301918252835180850190945260088452674a45524b4641434560c01b90840152815185938593929091620000909160009162000248565b508051620000a690600190602084019062000248565b5050506000620000bb6200019660201b60201c565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3507f1bc16d674ec800000de0b6b3a76400001bc16d674ec800000de0b6b3a764000060075562000147600883836200019a602090811b620017b217901c565b505084516200015e90600f90602088019062000248565b5083516200017490601090602087019062000248565b5082516200018a90601190602086019062000248565b50505050505062000549565b3390565b815160028401805460208086015160408088015160609889015161ffff60301b1964010000000061ffff9384168102821663ffffffff60201b1963ffffffff19998a169b86169b909b17620100009786168802178b1617660100000000000093851684021790985589516003909c018054968b0151948b01519a909b015199831690970290961693909416988416989098179783160296909617909216949094179116909202919091179055565b82805462000256906200050c565b90600052602060002090601f0160209004810192826200027a5760008555620002c5565b82601f106200029557805160ff1916838001178555620002c5565b82800160010185558215620002c5579182015b82811115620002c5578251825591602001919060010190620002a8565b50620002d3929150620002d7565b5090565b5b80821115620002d35760008155600101620002d8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200032f576200032f620002ee565b604052919050565b600082601f8301126200034957600080fd5b81516001600160401b03811115620003655762000365620002ee565b60206200037b601f8301601f1916820162000304565b82815285828487010111156200039057600080fd5b60005b83811015620003b057858101830151828201840152820162000393565b83811115620003c25760008385840101525b5095945050505050565b600082601f830112620003de57600080fd5b604051608081016001600160401b0381118282101715620004035762000403620002ee565b6040528060808401858111156200041957600080fd5b845b818110156200044757805161ffff81168114620004385760008081fd5b8352602092830192016200041b565b509195945050505050565b600080600080600061016086880312156200046c57600080fd5b85516001600160401b03808211156200048457600080fd5b6200049289838a0162000337565b96506020880151915080821115620004a957600080fd5b620004b789838a0162000337565b95506040880151915080821115620004ce57600080fd5b50620004dd8882890162000337565b935050620004ef8760608801620003cc565b9150620005008760e08801620003cc565b90509295509295909350565b600181811c908216806200052157607f821691505b602082108114156200054357634e487b7160e01b600052602260045260246000fd5b50919050565b612d0580620005596000396000f3fe60806040526004361061021a5760003560e01c80638da5cb5b11610123578063c306955e116100ab578063d9ce2f6d1161006f578063d9ce2f6d14610604578063e8a3d48514610619578063e985e9c51461062e578063f2fde38b1461064e578063f3fef3a31461066e57600080fd5b8063c306955e14610562578063c87b56dd14610582578063cf309012146105a2578063d4ddce8a146105b7578063d547cfb7146105ef57600080fd5b8063a9fdb6a6116100f2578063a9fdb6a6146104d8578063aea0c5fb146104f8578063b7f751d81461050d578063b88d4fde14610522578063ba8bce551461054257600080fd5b80638da5cb5b14610465578063938e3d7b1461048357806395d89b41146104a3578063a22cb465146104b857600080fd5b80633bc09e3d116101a65780634b457935116101755780634b457935146103d05780634dcc60af146103f05780636352211e1461041057806370a0823114610430578063715018a61461045057600080fd5b80633bc09e3d1461036857806342842e0e1461037d57806342966c681461039d5780634593ad97146103bd57600080fd5b8063095ea7b3116101ed578063095ea7b3146102c557806318160ddd146102e557806323b872dd1461030857806326a49e371461032857806330176e131461034857600080fd5b806301b117921461021f57806301ffc9a71461023657806306fdde031461026b578063081812fc1461028d575b600080fd5b34801561022b57600080fd5b5061023461068e565b005b34801561024257600080fd5b5061025661025136600461258e565b610727565b60405190151581526020015b60405180910390f35b34801561027757600080fd5b50610280610779565b604051610262919061260a565b34801561029957600080fd5b506102ad6102a836600461261d565b61080b565b6040516001600160a01b039091168152602001610262565b3480156102d157600080fd5b506102346102e0366004612652565b610893565b3480156102f157600080fd5b506102fa6109a4565b604051908152602001610262565b34801561031457600080fd5b5061023461032336600461267c565b6109b5565b34801561033457600080fd5b506102fa61034336600461261d565b6109e6565b34801561035457600080fd5b50610234610363366004612743565b610a21565b34801561037457600080fd5b50610234610a62565b34801561038957600080fd5b5061023461039836600461267c565b610ac4565b3480156103a957600080fd5b506102346103b836600461261d565b610adf565b6102346103cb36600461278b565b610b3e565b3480156103dc57600080fd5b506102346103eb36600461281c565b610ec4565b3480156103fc57600080fd5b5061023461040b366004612743565b610f7b565b34801561041c57600080fd5b506102ad61042b36600461261d565b610fca565b34801561043c57600080fd5b506102fa61044b36600461281c565b611041565b34801561045c57600080fd5b506102346110c8565b34801561047157600080fd5b506006546001600160a01b03166102ad565b34801561048f57600080fd5b5061023461049e366004612743565b61113c565b3480156104af57600080fd5b50610280611179565b3480156104c457600080fd5b506102346104d3366004612845565b611188565b3480156104e457600080fd5b506102fa6104f336600461261d565b61124d565b34801561050457600080fd5b506102fa606481565b34801561051957600080fd5b5061025661125a565b34801561052e57600080fd5b5061023461053d36600461287c565b6112e1565b34801561054e57600080fd5b5061023461055d36600461281c565b611313565b34801561056e57600080fd5b506102fa61057d36600461261d565b6113bf565b34801561058e57600080fd5b5061028061059d36600461261d565b6113cc565b3480156105ae57600080fd5b50610256611452565b3480156105c357600080fd5b506105d76105d236600461261d565b61148d565b6040516001600160401b039091168152602001610262565b3480156105fb57600080fd5b506102806114c0565b34801561061057600080fd5b506102806114cf565b34801561062557600080fd5b5061028061155d565b34801561063a57600080fd5b506102566106493660046128f7565b61156c565b34801561065a57600080fd5b5061023461066936600461281c565b61159a565b34801561067a57600080fd5b50610234610689366004612652565b611685565b6006546001600160a01b031633146106c15760405162461bcd60e51b81526004016106b89061292a565b60405180910390fd5b6040516316e2bd5f60e31b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063b715eaf8906024015b60006040518083038186803b15801561070d57600080fd5b505af4158015610721573d6000803e3d6000fd5b50505050565b60006001600160e01b031982166380ac58cd60e01b148061075857506001600160e01b03198216635b5e139f60e01b145b8061077357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107889061295f565b80601f01602080910402602001604051908101604052809291908181526020018280546107b49061295f565b80156108015780601f106107d657610100808354040283529160200191610801565b820191906000526020600020905b8154815290600101906020018083116107e457829003601f168201915b5050505050905090565b600061081682611864565b6108775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b8565b506000908152600460205260409020546001600160a01b031690565b600061089e82610fca565b9050806001600160a01b0316836001600160a01b0316141561090c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b8565b336001600160a01b03821614806109285750610928813361156c565b6109955760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016106b8565b61099f8383611881565b505050565b60006109b060086118ef565b905090565b6109bf3382611952565b6109db5760405162461bcd60e51b81526004016106b890612994565b61099f838383611a1c565b6000600782600481106109fb576109fb6129e5565b60048104919091015460039091166008026101000a90046001600160401b031692915050565b6006546001600160a01b03163314610a4b5760405162461bcd60e51b81526004016106b89061292a565b8051610a5e90600f9060208401906124a9565b5050565b6006546001600160a01b03163314610a8c5760405162461bcd60e51b81526004016106b89061292a565b604051637479a8dd60e11b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063e8f351ba906024016106f5565b61099f838383604051806020016040528060008152506112e1565b336000908152600e602052604090205460ff16610b325760405162461bcd60e51b815260206004820152601160248201527031b0b63632b9103737ba10313ab93732b960791b60448201526064016106b8565b610b3b81611bbc565b50565b604051636717ed7360e11b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063ce2fdae69060240160206040518083038186803b158015610b8957600080fd5b505af4158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc191906129fb565b15610c005760405162461bcd60e51b815260206004820152600f60248201526e18dbdb9d1c9858dd081b1bd8dad959608a1b60448201526064016106b8565b60048610610c425760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081d985c9a585b9d608a1b60448201526064016106b8565b348160078860048110610c5757610c576129e5565b600491828204019190066008029054906101000a90046001600160401b03166001600160401b0316610c899190612a2e565b14610ccb5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016106b8565b336000908152600d60205260409020548290610ceb90839060ff16612a4d565b1115610d2d5760405162461bcd60e51b815260206004820152601160248201527032bc31b2b2b21030b63637b1b0ba34b7b760791b60448201526064016106b8565b610d6d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611c5792505050565b610daa5760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b4b3b732b960911b60448201526064016106b8565b610db685338484611c89565b610df15760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b60448201526064016106b8565b336000908152600d602052604081208054839290610e1390849060ff16612a65565b92506101000a81548160ff021916908360ff160217905550600060086001018760048110610e4357610e436129e5565b601081049190910154600f9091166002026101000a900461ffff16610e69886001612a4d565b610e74906064612a2e565b610e7e9190612a4d565b9050610e8c60088884611d32565b60005b82811015610eba57610eaa33610ea58385612a4d565b611e05565b610eb381612a8a565b9050610e8f565b5050505050505050565b6006546001600160a01b03163314610eee5760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166000908152600e602052604090205460ff1615610f575760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c7265616479207265676973746572656400000000000060448201526064016106b8565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6006546001600160a01b03163314610fa55760405162461bcd60e51b81526004016106b89061292a565b8051610fb757610b3b6010600061252d565b8051610a5e9060109060208401906124a9565b6000818152600260205260408120546001600160a01b0316806107735760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b8565b60006001600160a01b0382166110ac5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110f25760405162461bcd60e51b81526004016106b89061292a565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6006546001600160a01b031633146111665760405162461bcd60e51b81526004016106b89061292a565b8051610a5e9060119060208401906124a9565b6060600180546107889061295f565b6001600160a01b0382163314156111e15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610773600883611e1f565b60405163e403d30160e01b81526008600482015260009073bddbbf1c358a29634368b5237c3975e9708dcf189063e403d301906024015b60206040518083038186803b1580156112a957600080fd5b505af41580156112bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b091906129fb565b6112eb3383611952565b6113075760405162461bcd60e51b81526004016106b890612994565b61072184848484611e58565b6006546001600160a01b0316331461133d5760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166000908152600e602052604090205460ff1661139e5760405162461bcd60e51b81526020600482015260166024820152751859191c995cdcc81b9bdd081c9959da5cdd195c995960521b60448201526064016106b8565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b6000610773600883611e8b565b6060601080546113db9061295f565b15905061141b576113ea6114c0565b60106113f584611eec565b60405160200161140793929190612ac1565b604051602081830303815290604052610773565b6114236114c0565b61142c83611eec565b60405160200161143d929190612b9c565b60405160208183030381529060405292915050565b604051636717ed7360e11b81526008600482015260009073bddbbf1c358a29634368b5237c3975e9708dcf189063ce2fdae690602401611291565b6007816004811061149d57600080fd5b60049182820401919006600802915054906101000a90046001600160401b031681565b6060600f80546107889061295f565b601180546114dc9061295f565b80601f01602080910402602001604051908101604052809291908181526020018280546115089061295f565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b505050505081565b6060601180546107889061295f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146115c45760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166116295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b8565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116af5760405162461bcd60e51b81526004016106b89061292a565b600081116116ee5760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b60448201526064016106b8565b478111156117375760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b60448201526064016106b8565b6001600160a01b03821661177c5760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b60448201526064016106b8565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561099f573d6000803e3d6000fd5b815160028401805460208086015160408088015160609889015167ffff0000000000001964010000000061ffff9384168102821667ffffffff000000001963ffffffff19998a169b86169b909b17620100009786168802178b1617660100000000000093851684021790985589516003909c018054968b0151948b01519a909b015199831690970290961693909416988416989098179783160296909617909216949094179116909202919091179055565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b682610fca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b600481101561194c57826001018160048110611911576119116129e5565b601091828204019190066002029054906101000a900461ffff1661ffff168261193a9190612a4d565b915061194581612a8a565b90506118f3565b50919050565b600061195d82611864565b6119be5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b8565b60006119c983610fca565b9050806001600160a01b0316846001600160a01b03161480611a045750836001600160a01b03166119f98461080b565b6001600160a01b0316145b80611a145750611a14818561156c565b949350505050565b826001600160a01b0316611a2f82610fca565b6001600160a01b031614611a975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b8565b6001600160a01b038216611af95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b8565b611b04600082611881565b6001600160a01b0383166000908152600360205260408120805460019290611b2d908490612bd8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b5b908490612a4d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611bc782610fca565b9050611bd4600083611881565b6001600160a01b0381166000908152600360205260408120805460019290611bfd908490612bd8565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073a98673d426bcf78ea72aef978f2cff756d941d2a611c788484611fe9565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590611d2890607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b1495945050505050565b611d3c8383611e8b565b81846001018460048110611d5257611d526129e5565b601091828204019190066002029054906101000a900461ffff1661ffff16611d7a9190612a4d565b1115611db85760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b60448201526064016106b8565b80836001018360048110611dce57611dce6129e5565b60108104909101805461ffff6002600f909416939093026101000a8082048416909401831684029290930219909216179055505050565b610a5e82826040518060200160405280600081525061209f565b6000826001018260048110611e3657611e366129e5565b601081049190910154600f9091166002026101000a900461ffff169392505050565b611e63848484611a1c565b611e6f848484846120d2565b6107215760405162461bcd60e51b81526004016106b890612bef565b815460009060ff1615611ecc57826003018260048110611ead57611ead6129e5565b601091828204019190066002029054906101000a900461ffff16611ee1565b826002018260048110611e3657611e366129e5565b61ffff169392505050565b606081611f105750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f3a5780611f2481612a8a565b9150611f339050600a83612c57565b9150611f14565b6000816001600160401b03811115611f5457611f546126b8565b6040519080825280601f01601f191660200182016040528015611f7e576020820181803683370190505b5090505b8415611a1457611f93600183612bd8565b9150611fa0600a86612c6b565b611fab906030612a4d565b60f81b818381518110611fc057611fc06129e5565b60200101906001600160f81b031916908160001a905350611fe2600a86612c57565b9450611f82565b6000806000808451604114156120135750505060208201516040830151606084015160001a612089565b8451604014156120415750505060408201516020830151906001600160ff1b0381169060ff1c601b01612089565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106b8565b612095868285856121dc565b9695505050505050565b6120a98383612376565b6120b660008484846120d2565b61099f5760405162461bcd60e51b81526004016106b890612bef565b60006001600160a01b0384163b156121d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612116903390899088908890600401612c7f565b602060405180830381600087803b15801561213057600080fd5b505af1925050508015612160575060408051601f3d908101601f1916820190925261215d91810190612cb2565b60015b6121ba573d80801561218e576040519150601f19603f3d011682016040523d82523d6000602084013e612193565b606091505b5080516121b25760405162461bcd60e51b81526004016106b890612bef565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a14565b506001611a14565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b0382111561224f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106b8565b8360ff16601b148061226457508360ff16601c145b6122bb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106b8565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561230f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661236d5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016106b8565b95945050505050565b6001600160a01b0382166123cc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b8565b6123d581611864565b156124225760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b8565b6001600160a01b038216600090815260036020526040812080546001929061244b908490612a4d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124b59061295f565b90600052602060002090601f0160209004810192826124d7576000855561251d565b82601f106124f057805160ff191683800117855561251d565b8280016001018555821561251d579182015b8281111561251d578251825591602001919060010190612502565b50612529929150612563565b5090565b5080546125399061295f565b6000825580601f10612549575050565b601f016020900490600052602060002090810190610b3b91905b5b808211156125295760008155600101612564565b6001600160e01b031981168114610b3b57600080fd5b6000602082840312156125a057600080fd5b81356125ab81612578565b9392505050565b60005b838110156125cd5781810151838201526020016125b5565b838111156107215750506000910152565b600081518084526125f68160208601602086016125b2565b601f01601f19169290920160200192915050565b6020815260006125ab60208301846125de565b60006020828403121561262f57600080fd5b5035919050565b80356001600160a01b038116811461264d57600080fd5b919050565b6000806040838503121561266557600080fd5b61266e83612636565b946020939093013593505050565b60008060006060848603121561269157600080fd5b61269a84612636565b92506126a860208501612636565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156126e8576126e86126b8565b604051601f8501601f19908116603f01168101908282118183101715612710576127106126b8565b8160405280935085815286868601111561272957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561275557600080fd5b81356001600160401b0381111561276b57600080fd5b8201601f8101841361277c57600080fd5b611a14848235602084016126ce565b60008060008060008060a087890312156127a457600080fd5b863595506020870135945060408701356001600160401b03808211156127c957600080fd5b818901915089601f8301126127dd57600080fd5b8135818111156127ec57600080fd5b8a60208285010111156127fe57600080fd5b979a9699505060200196606081013595608090910135945092505050565b60006020828403121561282e57600080fd5b6125ab82612636565b8015158114610b3b57600080fd5b6000806040838503121561285857600080fd5b61286183612636565b9150602083013561287181612837565b809150509250929050565b6000806000806080858703121561289257600080fd5b61289b85612636565b93506128a960208601612636565b92506040850135915060608501356001600160401b038111156128cb57600080fd5b8501601f810187136128dc57600080fd5b6128eb878235602084016126ce565b91505092959194509250565b6000806040838503121561290a57600080fd5b61291383612636565b915061292160208401612636565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061297357607f821691505b6020821081141561194c57634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a0d57600080fd5b81516125ab81612837565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612a4857612a48612a18565b500290565b60008219821115612a6057612a60612a18565b500190565b600060ff821660ff84168060ff03821115612a8257612a82612a18565b019392505050565b6000600019821415612a9e57612a9e612a18565b5060010190565b60008151612ab78185602086016125b2565b9290920192915050565b600084516020612ad48285838a016125b2565b602f60f81b918401918252855460019060009080831c81841680612af957607f821691505b858210811415612b1757634e487b7160e01b84526022600452602484fd5b808015612b2b5760018114612b4057612b71565b60ff1984168887015282880186019450612b71565b60008c81526020902060005b84811015612b675781548a8201890152908701908801612b4c565b5050858389010194505b50505050612b8f612b8982602f60f81b815260010190565b88612aa5565b9998505050505050505050565b60008351612bae8184602088016125b2565b602f60f81b9083019081528351612bcc8160018401602088016125b2565b01600101949350505050565b600082821015612bea57612bea612a18565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612c6657612c66612c41565b500490565b600082612c7a57612c7a612c41565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612095908301846125de565b600060208284031215612cc457600080fd5b81516125ab8161257856fea264697066735822122008a879b8bc0b91bb8552039353ce3c895a647976c4dc8428202528e27c12a90e64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000025000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000025000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f697066732e67656e65746963636861696e2e696f2f6970667300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5a437a66386d527153726a776941353659744675356647473844667a41616b63563267466132556b46746f4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e67656e65746963636861696e2e696f2f697066732f516d5551455658485a375a5345744872626a48314e6767756d7552464a5a4b5267335874716741366e734d61323800000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80638da5cb5b11610123578063c306955e116100ab578063d9ce2f6d1161006f578063d9ce2f6d14610604578063e8a3d48514610619578063e985e9c51461062e578063f2fde38b1461064e578063f3fef3a31461066e57600080fd5b8063c306955e14610562578063c87b56dd14610582578063cf309012146105a2578063d4ddce8a146105b7578063d547cfb7146105ef57600080fd5b8063a9fdb6a6116100f2578063a9fdb6a6146104d8578063aea0c5fb146104f8578063b7f751d81461050d578063b88d4fde14610522578063ba8bce551461054257600080fd5b80638da5cb5b14610465578063938e3d7b1461048357806395d89b41146104a3578063a22cb465146104b857600080fd5b80633bc09e3d116101a65780634b457935116101755780634b457935146103d05780634dcc60af146103f05780636352211e1461041057806370a0823114610430578063715018a61461045057600080fd5b80633bc09e3d1461036857806342842e0e1461037d57806342966c681461039d5780634593ad97146103bd57600080fd5b8063095ea7b3116101ed578063095ea7b3146102c557806318160ddd146102e557806323b872dd1461030857806326a49e371461032857806330176e131461034857600080fd5b806301b117921461021f57806301ffc9a71461023657806306fdde031461026b578063081812fc1461028d575b600080fd5b34801561022b57600080fd5b5061023461068e565b005b34801561024257600080fd5b5061025661025136600461258e565b610727565b60405190151581526020015b60405180910390f35b34801561027757600080fd5b50610280610779565b604051610262919061260a565b34801561029957600080fd5b506102ad6102a836600461261d565b61080b565b6040516001600160a01b039091168152602001610262565b3480156102d157600080fd5b506102346102e0366004612652565b610893565b3480156102f157600080fd5b506102fa6109a4565b604051908152602001610262565b34801561031457600080fd5b5061023461032336600461267c565b6109b5565b34801561033457600080fd5b506102fa61034336600461261d565b6109e6565b34801561035457600080fd5b50610234610363366004612743565b610a21565b34801561037457600080fd5b50610234610a62565b34801561038957600080fd5b5061023461039836600461267c565b610ac4565b3480156103a957600080fd5b506102346103b836600461261d565b610adf565b6102346103cb36600461278b565b610b3e565b3480156103dc57600080fd5b506102346103eb36600461281c565b610ec4565b3480156103fc57600080fd5b5061023461040b366004612743565b610f7b565b34801561041c57600080fd5b506102ad61042b36600461261d565b610fca565b34801561043c57600080fd5b506102fa61044b36600461281c565b611041565b34801561045c57600080fd5b506102346110c8565b34801561047157600080fd5b506006546001600160a01b03166102ad565b34801561048f57600080fd5b5061023461049e366004612743565b61113c565b3480156104af57600080fd5b50610280611179565b3480156104c457600080fd5b506102346104d3366004612845565b611188565b3480156104e457600080fd5b506102fa6104f336600461261d565b61124d565b34801561050457600080fd5b506102fa606481565b34801561051957600080fd5b5061025661125a565b34801561052e57600080fd5b5061023461053d36600461287c565b6112e1565b34801561054e57600080fd5b5061023461055d36600461281c565b611313565b34801561056e57600080fd5b506102fa61057d36600461261d565b6113bf565b34801561058e57600080fd5b5061028061059d36600461261d565b6113cc565b3480156105ae57600080fd5b50610256611452565b3480156105c357600080fd5b506105d76105d236600461261d565b61148d565b6040516001600160401b039091168152602001610262565b3480156105fb57600080fd5b506102806114c0565b34801561061057600080fd5b506102806114cf565b34801561062557600080fd5b5061028061155d565b34801561063a57600080fd5b506102566106493660046128f7565b61156c565b34801561065a57600080fd5b5061023461066936600461281c565b61159a565b34801561067a57600080fd5b50610234610689366004612652565b611685565b6006546001600160a01b031633146106c15760405162461bcd60e51b81526004016106b89061292a565b60405180910390fd5b6040516316e2bd5f60e31b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063b715eaf8906024015b60006040518083038186803b15801561070d57600080fd5b505af4158015610721573d6000803e3d6000fd5b50505050565b60006001600160e01b031982166380ac58cd60e01b148061075857506001600160e01b03198216635b5e139f60e01b145b8061077357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107889061295f565b80601f01602080910402602001604051908101604052809291908181526020018280546107b49061295f565b80156108015780601f106107d657610100808354040283529160200191610801565b820191906000526020600020905b8154815290600101906020018083116107e457829003601f168201915b5050505050905090565b600061081682611864565b6108775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b8565b506000908152600460205260409020546001600160a01b031690565b600061089e82610fca565b9050806001600160a01b0316836001600160a01b0316141561090c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b8565b336001600160a01b03821614806109285750610928813361156c565b6109955760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016106b8565b61099f8383611881565b505050565b60006109b060086118ef565b905090565b6109bf3382611952565b6109db5760405162461bcd60e51b81526004016106b890612994565b61099f838383611a1c565b6000600782600481106109fb576109fb6129e5565b60048104919091015460039091166008026101000a90046001600160401b031692915050565b6006546001600160a01b03163314610a4b5760405162461bcd60e51b81526004016106b89061292a565b8051610a5e90600f9060208401906124a9565b5050565b6006546001600160a01b03163314610a8c5760405162461bcd60e51b81526004016106b89061292a565b604051637479a8dd60e11b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063e8f351ba906024016106f5565b61099f838383604051806020016040528060008152506112e1565b336000908152600e602052604090205460ff16610b325760405162461bcd60e51b815260206004820152601160248201527031b0b63632b9103737ba10313ab93732b960791b60448201526064016106b8565b610b3b81611bbc565b50565b604051636717ed7360e11b81526008600482015273bddbbf1c358a29634368b5237c3975e9708dcf189063ce2fdae69060240160206040518083038186803b158015610b8957600080fd5b505af4158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc191906129fb565b15610c005760405162461bcd60e51b815260206004820152600f60248201526e18dbdb9d1c9858dd081b1bd8dad959608a1b60448201526064016106b8565b60048610610c425760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081d985c9a585b9d608a1b60448201526064016106b8565b348160078860048110610c5757610c576129e5565b600491828204019190066008029054906101000a90046001600160401b03166001600160401b0316610c899190612a2e565b14610ccb5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016106b8565b336000908152600d60205260409020548290610ceb90839060ff16612a4d565b1115610d2d5760405162461bcd60e51b815260206004820152601160248201527032bc31b2b2b21030b63637b1b0ba34b7b760791b60448201526064016106b8565b610d6d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611c5792505050565b610daa5760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b4b3b732b960911b60448201526064016106b8565b610db685338484611c89565b610df15760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b60448201526064016106b8565b336000908152600d602052604081208054839290610e1390849060ff16612a65565b92506101000a81548160ff021916908360ff160217905550600060086001018760048110610e4357610e436129e5565b601081049190910154600f9091166002026101000a900461ffff16610e69886001612a4d565b610e74906064612a2e565b610e7e9190612a4d565b9050610e8c60088884611d32565b60005b82811015610eba57610eaa33610ea58385612a4d565b611e05565b610eb381612a8a565b9050610e8f565b5050505050505050565b6006546001600160a01b03163314610eee5760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166000908152600e602052604090205460ff1615610f575760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c7265616479207265676973746572656400000000000060448201526064016106b8565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6006546001600160a01b03163314610fa55760405162461bcd60e51b81526004016106b89061292a565b8051610fb757610b3b6010600061252d565b8051610a5e9060109060208401906124a9565b6000818152600260205260408120546001600160a01b0316806107735760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b8565b60006001600160a01b0382166110ac5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110f25760405162461bcd60e51b81526004016106b89061292a565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6006546001600160a01b031633146111665760405162461bcd60e51b81526004016106b89061292a565b8051610a5e9060119060208401906124a9565b6060600180546107889061295f565b6001600160a01b0382163314156111e15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610773600883611e1f565b60405163e403d30160e01b81526008600482015260009073bddbbf1c358a29634368b5237c3975e9708dcf189063e403d301906024015b60206040518083038186803b1580156112a957600080fd5b505af41580156112bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b091906129fb565b6112eb3383611952565b6113075760405162461bcd60e51b81526004016106b890612994565b61072184848484611e58565b6006546001600160a01b0316331461133d5760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166000908152600e602052604090205460ff1661139e5760405162461bcd60e51b81526020600482015260166024820152751859191c995cdcc81b9bdd081c9959da5cdd195c995960521b60448201526064016106b8565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b6000610773600883611e8b565b6060601080546113db9061295f565b15905061141b576113ea6114c0565b60106113f584611eec565b60405160200161140793929190612ac1565b604051602081830303815290604052610773565b6114236114c0565b61142c83611eec565b60405160200161143d929190612b9c565b60405160208183030381529060405292915050565b604051636717ed7360e11b81526008600482015260009073bddbbf1c358a29634368b5237c3975e9708dcf189063ce2fdae690602401611291565b6007816004811061149d57600080fd5b60049182820401919006600802915054906101000a90046001600160401b031681565b6060600f80546107889061295f565b601180546114dc9061295f565b80601f01602080910402602001604051908101604052809291908181526020018280546115089061295f565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b505050505081565b6060601180546107889061295f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146115c45760405162461bcd60e51b81526004016106b89061292a565b6001600160a01b0381166116295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b8565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116af5760405162461bcd60e51b81526004016106b89061292a565b600081116116ee5760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b60448201526064016106b8565b478111156117375760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b60448201526064016106b8565b6001600160a01b03821661177c5760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b60448201526064016106b8565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561099f573d6000803e3d6000fd5b815160028401805460208086015160408088015160609889015167ffff0000000000001964010000000061ffff9384168102821667ffffffff000000001963ffffffff19998a169b86169b909b17620100009786168802178b1617660100000000000093851684021790985589516003909c018054968b0151948b01519a909b015199831690970290961693909416988416989098179783160296909617909216949094179116909202919091179055565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b682610fca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b600481101561194c57826001018160048110611911576119116129e5565b601091828204019190066002029054906101000a900461ffff1661ffff168261193a9190612a4d565b915061194581612a8a565b90506118f3565b50919050565b600061195d82611864565b6119be5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b8565b60006119c983610fca565b9050806001600160a01b0316846001600160a01b03161480611a045750836001600160a01b03166119f98461080b565b6001600160a01b0316145b80611a145750611a14818561156c565b949350505050565b826001600160a01b0316611a2f82610fca565b6001600160a01b031614611a975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b8565b6001600160a01b038216611af95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b8565b611b04600082611881565b6001600160a01b0383166000908152600360205260408120805460019290611b2d908490612bd8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b5b908490612a4d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611bc782610fca565b9050611bd4600083611881565b6001600160a01b0381166000908152600360205260408120805460019290611bfd908490612bd8565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073a98673d426bcf78ea72aef978f2cff756d941d2a611c788484611fe9565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590611d2890607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b1495945050505050565b611d3c8383611e8b565b81846001018460048110611d5257611d526129e5565b601091828204019190066002029054906101000a900461ffff1661ffff16611d7a9190612a4d565b1115611db85760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b60448201526064016106b8565b80836001018360048110611dce57611dce6129e5565b60108104909101805461ffff6002600f909416939093026101000a8082048416909401831684029290930219909216179055505050565b610a5e82826040518060200160405280600081525061209f565b6000826001018260048110611e3657611e366129e5565b601081049190910154600f9091166002026101000a900461ffff169392505050565b611e63848484611a1c565b611e6f848484846120d2565b6107215760405162461bcd60e51b81526004016106b890612bef565b815460009060ff1615611ecc57826003018260048110611ead57611ead6129e5565b601091828204019190066002029054906101000a900461ffff16611ee1565b826002018260048110611e3657611e366129e5565b61ffff169392505050565b606081611f105750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f3a5780611f2481612a8a565b9150611f339050600a83612c57565b9150611f14565b6000816001600160401b03811115611f5457611f546126b8565b6040519080825280601f01601f191660200182016040528015611f7e576020820181803683370190505b5090505b8415611a1457611f93600183612bd8565b9150611fa0600a86612c6b565b611fab906030612a4d565b60f81b818381518110611fc057611fc06129e5565b60200101906001600160f81b031916908160001a905350611fe2600a86612c57565b9450611f82565b6000806000808451604114156120135750505060208201516040830151606084015160001a612089565b8451604014156120415750505060408201516020830151906001600160ff1b0381169060ff1c601b01612089565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106b8565b612095868285856121dc565b9695505050505050565b6120a98383612376565b6120b660008484846120d2565b61099f5760405162461bcd60e51b81526004016106b890612bef565b60006001600160a01b0384163b156121d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612116903390899088908890600401612c7f565b602060405180830381600087803b15801561213057600080fd5b505af1925050508015612160575060408051601f3d908101601f1916820190925261215d91810190612cb2565b60015b6121ba573d80801561218e576040519150601f19603f3d011682016040523d82523d6000602084013e612193565b606091505b5080516121b25760405162461bcd60e51b81526004016106b890612bef565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a14565b506001611a14565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b0382111561224f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106b8565b8360ff16601b148061226457508360ff16601c145b6122bb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106b8565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561230f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661236d5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016106b8565b95945050505050565b6001600160a01b0382166123cc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b8565b6123d581611864565b156124225760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b8565b6001600160a01b038216600090815260036020526040812080546001929061244b908490612a4d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124b59061295f565b90600052602060002090601f0160209004810192826124d7576000855561251d565b82601f106124f057805160ff191683800117855561251d565b8280016001018555821561251d579182015b8281111561251d578251825591602001919060010190612502565b50612529929150612563565b5090565b5080546125399061295f565b6000825580601f10612549575050565b601f016020900490600052602060002090810190610b3b91905b5b808211156125295760008155600101612564565b6001600160e01b031981168114610b3b57600080fd5b6000602082840312156125a057600080fd5b81356125ab81612578565b9392505050565b60005b838110156125cd5781810151838201526020016125b5565b838111156107215750506000910152565b600081518084526125f68160208601602086016125b2565b601f01601f19169290920160200192915050565b6020815260006125ab60208301846125de565b60006020828403121561262f57600080fd5b5035919050565b80356001600160a01b038116811461264d57600080fd5b919050565b6000806040838503121561266557600080fd5b61266e83612636565b946020939093013593505050565b60008060006060848603121561269157600080fd5b61269a84612636565b92506126a860208501612636565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156126e8576126e86126b8565b604051601f8501601f19908116603f01168101908282118183101715612710576127106126b8565b8160405280935085815286868601111561272957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561275557600080fd5b81356001600160401b0381111561276b57600080fd5b8201601f8101841361277c57600080fd5b611a14848235602084016126ce565b60008060008060008060a087890312156127a457600080fd5b863595506020870135945060408701356001600160401b03808211156127c957600080fd5b818901915089601f8301126127dd57600080fd5b8135818111156127ec57600080fd5b8a60208285010111156127fe57600080fd5b979a9699505060200196606081013595608090910135945092505050565b60006020828403121561282e57600080fd5b6125ab82612636565b8015158114610b3b57600080fd5b6000806040838503121561285857600080fd5b61286183612636565b9150602083013561287181612837565b809150509250929050565b6000806000806080858703121561289257600080fd5b61289b85612636565b93506128a960208601612636565b92506040850135915060608501356001600160401b038111156128cb57600080fd5b8501601f810187136128dc57600080fd5b6128eb878235602084016126ce565b91505092959194509250565b6000806040838503121561290a57600080fd5b61291383612636565b915061292160208401612636565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061297357607f821691505b6020821081141561194c57634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a0d57600080fd5b81516125ab81612837565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612a4857612a48612a18565b500290565b60008219821115612a6057612a60612a18565b500190565b600060ff821660ff84168060ff03821115612a8257612a82612a18565b019392505050565b6000600019821415612a9e57612a9e612a18565b5060010190565b60008151612ab78185602086016125b2565b9290920192915050565b600084516020612ad48285838a016125b2565b602f60f81b918401918252855460019060009080831c81841680612af957607f821691505b858210811415612b1757634e487b7160e01b84526022600452602484fd5b808015612b2b5760018114612b4057612b71565b60ff1984168887015282880186019450612b71565b60008c81526020902060005b84811015612b675781548a8201890152908701908801612b4c565b5050858389010194505b50505050612b8f612b8982602f60f81b815260010190565b88612aa5565b9998505050505050505050565b60008351612bae8184602088016125b2565b602f60f81b9083019081528351612bcc8160018401602088016125b2565b01600101949350505050565b600082821015612bea57612bea612a18565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612c6657612c66612c41565b500490565b600082612c7a57612c7a612c41565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612095908301846125de565b600060208284031215612cc457600080fd5b81516125ab8161257856fea264697066735822122008a879b8bc0b91bb8552039353ce3c895a647976c4dc8428202528e27c12a90e64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000025000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000025000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f697066732e67656e65746963636861696e2e696f2f6970667300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5a437a66386d527153726a776941353659744675356647473844667a41616b63563267466132556b46746f4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e67656e65746963636861696e2e696f2f697066732f516d5551455658485a375a5345744872626a48314e6767756d7552464a5a4b5267335874716741366e734d61323800000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseUri_ (string): https://ipfs.geneticchain.io/ipfs
Arg [1] : ipfsHash_ (string): QmZCzf8mRqSrjwiA56YtFu5fGG8DfzAakcV2gFa2UkFtoK
Arg [2] : contractUri_ (string): https://ipfs.geneticchain.io/ipfs/QmUQEVXHZ7ZSEtHrbjH1NggumuRFJZKRg3XtqgA6nsMa28
Arg [3] : pmax (uint16[4]): 37,10,37,10
Arg [4] : max (uint16[4]): 50,12,50,12
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [12] : 68747470733a2f2f697066732e67656e65746963636861696e2e696f2f697066
Arg [13] : 7300000000000000000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [15] : 516d5a437a66386d527153726a776941353659744675356647473844667a4161
Arg [16] : 6b63563267466132556b46746f4b000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [18] : 68747470733a2f2f697066732e67656e65746963636861696e2e696f2f697066
Arg [19] : 732f516d5551455658485a375a5345744872626a48314e6767756d7552464a5a
Arg [20] : 4b5267335874716741366e734d61323800000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.