ERC-721
Overview
Max Total Supply
0 IT-02
Holders
289
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenArt721CoreV2_9DCC_IYK
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 25 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. import "../GenArt721CoreV2_PBAB.sol"; import "@openzeppelin-4.5/contracts/utils/cryptography/ECDSA.sol"; import "./ISignVerifierRegistry.sol"; pragma solidity 0.8.9; /** * @title Powered by Art Blocks ERC-721 core contract. * Support for IYK pull mechanism to transfer tokens based on verified signatures * @notice Due to the pull mechanism (claimNFT) being the only supported transfer function, these NFTs will NOT be tradeable on secondary marketplaces * @author Art Blocks Inc. + IYK GMI Inc. */ contract GenArt721CoreV2_9DCC_IYK is GenArt721CoreV2_PBAB { using ECDSA for bytes32; event SignVerifierRegistryUpdated( address indexed signVerifierRegistry, address indexed oldSignVerifierRegistry ); event SignVerifierIdUpdated( bytes32 indexed signVerifierId, bytes32 indexed oldSignVerifierId ); // Address of registry that resolves the signVerifier ISignVerifierRegistry public signVerifierRegistry; bytes32 public signVerifierId; // Nonce per user, used to prevent replay signature attacks mapping(address => uint256) public claimNonces; /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. * @param _randomizerContract Randomizer contract. * @param _startingProjectId The initial next project ID. * @param _signVerifierRegistry Address of registry that resolves the signVerifierId. * @param _signVerifierId ID of the signVerifier. * @dev _startingProjectId should be set to a value much, much less than * max(uint256) to avoid overflow when adding to it. */ constructor( string memory _tokenName, string memory _tokenSymbol, address _randomizerContract, uint256 _startingProjectId, address _signVerifierRegistry, bytes32 _signVerifierId ) GenArt721CoreV2_PBAB( _tokenName, _tokenSymbol, _randomizerContract, _startingProjectId ) { require( _signVerifierRegistry != address(0), "_signVerifierRegistry cannot be the zero address" ); require( _signVerifierId != bytes32(0), "_signVerifierId cannot be the zero ID" ); require( IERC165(_signVerifierRegistry).supportsInterface( type(ISignVerifierRegistry).interfaceId ), "_signVerifierRegistry does not implement ISignVerifierRegistry" ); signVerifierRegistry = ISignVerifierRegistry(_signVerifierRegistry); signVerifierId = _signVerifierId; emit SignVerifierRegistryUpdated(_signVerifierRegistry, address(0)); emit SignVerifierIdUpdated(_signVerifierId, bytes32(0)); } /** * @notice Transfers a token from its owner to the recipient * @param _sig The result of getClaimSigningHash signed by the signVerifier * @param _blockExpiry The block as of which the signature is no longer valid * @param _recipient The address that receives the token * @param _tokenId The tokenId being claimed * @dev ECDSA signatures are used to verify the permission to claim a NFT. ECDSA.recover will revert if the signer (signVerifier) is the zero address. */ function claimNFT( bytes memory _sig, uint256 _blockExpiry, address _recipient, uint256 _tokenId ) public { bytes32 messageHash = getClaimSigningHash( _blockExpiry, _recipient, _tokenId ).toEthSignedMessageHash(); require( ECDSA.recover(messageHash, _sig) == getSignVerifier(), "Permission to call this function failed" ); require(block.number < _blockExpiry, "Sig expired"); address from = ownerOf(_tokenId); require(from != address(0)); claimNonces[_recipient]++; _safeTransfer(from, _recipient, _tokenId, ""); } /** * @notice Returns the current claim nonce of a address * @param _recipient The address whose nonce is being fetched * @return nonce The addresses current nonce * @dev This view exposes the nonce as it will be required for the signature. * By including a nonce in the signature and updating the nonce on every claim, * we prevent replay signature attacks, as signatures can only be used once. */ function getClaimNonce(address _recipient) external view virtual returns (uint256) { return claimNonces[_recipient]; } /** * @notice Returns the hash that we expect was signed in claimNFT. * @param _blockExpiry As of which block the signature is no longer valid * @param _recipient The address who receives the token * @param _tokenId The tokenId being claimed * @return hash A bytes32 hash that is signed by the signVerifier * @dev claimNFT uses this view to get the expected hash to have been signed - hashes cannot be replayed since claimNFT verifies using the current hash and increments the hash on a successful claim. */ function getClaimSigningHash( uint256 _blockExpiry, address _recipient, uint256 _tokenId ) public view virtual returns (bytes32) { return keccak256( abi.encodePacked( _blockExpiry, _recipient, _tokenId, address(this), claimNonces[_recipient] ) ); } /** * @notice Updates the sign verifier registry address * @param _signVerifierRegistry The address the new registry * @dev Requires the DEFAULT_ADMIN_ROLE to call */ function setSignVerifierRegistry(address _signVerifierRegistry) external onlyAdmin { require( _signVerifierRegistry != address(0), "_signVerifierRegistry cannot be the zero address" ); require( IERC165(_signVerifierRegistry).supportsInterface( type(ISignVerifierRegistry).interfaceId ), "_signVerifierRegistry does not implement ISignVerifierRegistry" ); address oldSignVerifierRegistry = address(signVerifierRegistry); signVerifierRegistry = ISignVerifierRegistry(_signVerifierRegistry); emit SignVerifierRegistryUpdated( _signVerifierRegistry, oldSignVerifierRegistry ); } /** * @notice Updates the ID of the sign verifier * @dev Requires the DEFAULT_ADMIN_ROLE to call * @param _signVerifierId The ID of the new sign verifier */ function setSignVerifierId(bytes32 _signVerifierId) external onlyAdmin { require( _signVerifierId != bytes32(0), "_signVerifierId cannot be the zero ID" ); bytes32 oldSignVerifierId = signVerifierId; signVerifierId = _signVerifierId; emit SignVerifierIdUpdated(_signVerifierId, oldSignVerifierId); } /** * @notice Returns the address of the sign verifier */ function getSignVerifier() public view returns (address) { address signVerifier = signVerifierRegistry.get(signVerifierId); require( signVerifier != address(0), "cannot use zero address as sign verifier" ); return signVerifier; } /** * @notice transferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function transferFrom( address _from, address _to, uint256 _tokenId ) public virtual override { revert("ERC721 public transfer functions are not allowed"); } /** * @notice safeTransferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function safeTransferFrom( address _from, address _to, uint256 _tokenId ) public virtual override { revert("ERC721 public transfer functions are not allowed"); } /** * @notice safeTransferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes memory _data ) public virtual override { revert("ERC721 public transfer functions are not allowed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) 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}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev 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 { _setApprovalForAll(_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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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` and `to` are never both zero. * * 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. pragma solidity ^0.8.0; interface IGenArt721CoreV2_PBAB { /** * @notice Token ID `_tokenId` minted on project ID `_projectId` to `_to`. */ event Mint( address indexed _to, uint256 indexed _tokenId, uint256 indexed _projectId ); // getter function of public variable function admin() external view returns (address); // getter function of public variable function nextProjectId() external view returns (uint256); // getter function of public mapping function tokenIdToProjectId(uint256 tokenId) external view returns (uint256 projectId); function isWhitelisted(address sender) external view returns (bool); function projectIdToCurrencySymbol(uint256 _projectId) external view returns (string memory); function projectIdToCurrencyAddress(uint256 _projectId) external view returns (address); function projectIdToArtistAddress(uint256 _projectId) external view returns (address payable); function projectIdToPricePerTokenInWei(uint256 _projectId) external view returns (uint256); function projectIdToAdditionalPayee(uint256 _projectId) external view returns (address payable); function projectIdToAdditionalPayeePercentage(uint256 _projectId) external view returns (uint256); function projectTokenInfo(uint256 _projectId) external view returns ( address, uint256, uint256, uint256, bool, address, uint256, string memory, address ); function renderProviderAddress() external view returns (address payable); function renderProviderPercentage() external view returns (uint256); function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 tokenId); function getRoyaltyData(uint256 _tokenId) external view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ); }
// SPDX-License-Identifier: LGPL-3.0-only // Creatd By: Art Blocks Inc. pragma solidity ^0.8.0; interface IRandomizer { function returnValue() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin-4.5/contracts/utils/introspection/IERC165.sol"; interface ISignVerifierRegistry is IERC165 { /** * @notice Emitted upon the registration of `signVerifier` to a previously unregistered ID `id`. */ event Register(bytes32 id, address signVerifier); /** * @notice Emitted upon the update of `signVerifier` to a previously unregistered ID `id`, replacing `oldSignVerifier`. */ event Update(bytes32 id, address signVerifier, address oldSignVerifier); /** * @notice Registers `signVerifier` to `id`, with the registrant set as the admin of `id`. * @dev Does not allow updating of an existing ID, or registering an ID that matches the admin role. */ function register(bytes32 id, address signVerifier) external; /** * @notice Updates the sign verifier for `id` to `signVerifier`. * @dev Allows for the signVerifier to be the zero address, which can be dangerous but is a way of invalidating signatures en masse if required. */ function update(bytes32 id, address signVerifier) external; /** * @notice Returns the address of the sign verifier registered to `id`. * @dev Reverts if `id` has not been registered yet */ function get(bytes32 id) external view returns (address); }
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. import "../interfaces/0.8.x/IRandomizer.sol"; import "../interfaces/0.8.x/IGenArt721CoreV2_PBAB.sol"; import "@openzeppelin-4.5/contracts/utils/Strings.sol"; import "@openzeppelin-4.5/contracts/token/ERC721/ERC721.sol"; pragma solidity 0.8.9; /** * @title Powered by Art Blocks ERC-721 core contract. * @author Art Blocks Inc. */ contract GenArt721CoreV2_PBAB is ERC721, IGenArt721CoreV2_PBAB { /// randomizer contract IRandomizer public randomizerContract; struct Project { string name; string artist; string description; string website; string license; string projectBaseURI; uint256 invocations; uint256 maxInvocations; string scriptJSON; mapping(uint256 => string) scripts; uint256 scriptCount; string ipfsHash; bool active; bool locked; bool paused; } uint256 constant ONE_MILLION = 1_000_000; mapping(uint256 => Project) projects; //All financial functions are stripped from struct for visibility mapping(uint256 => address payable) public projectIdToArtistAddress; mapping(uint256 => string) public projectIdToCurrencySymbol; mapping(uint256 => address) public projectIdToCurrencyAddress; mapping(uint256 => uint256) public projectIdToPricePerTokenInWei; mapping(uint256 => address payable) public projectIdToAdditionalPayee; mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address payable public renderProviderAddress; /// Percentage of mint revenue allocated to render provider uint256 public renderProviderPercentage = 10; mapping(uint256 => uint256) public tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; /// admin for contract address public admin; /// true if address is whitelisted mapping(address => bool) public isWhitelisted; /// true if minter is whitelisted mapping(address => bool) public isMintWhitelisted; /// next project ID to be created uint256 public nextProjectId; modifier onlyValidTokenId(uint256 _tokenId) { require(_exists(_tokenId), "Token ID does not exist"); _; } modifier onlyUnlocked(uint256 _projectId) { require(!projects[_projectId].locked, "Only if unlocked"); _; } modifier onlyArtist(uint256 _projectId) { require( msg.sender == projectIdToArtistAddress[_projectId], "Only artist" ); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only admin"); _; } modifier onlyWhitelisted() { require(isWhitelisted[msg.sender], "Only whitelisted"); _; } modifier onlyArtistOrWhitelisted(uint256 _projectId) { require( isWhitelisted[msg.sender] || msg.sender == projectIdToArtistAddress[_projectId], "Only artist or whitelisted" ); _; } /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. * @param _randomizerContract Randomizer contract. * @param _startingProjectId The initial next project ID. * @dev _startingProjectId should be set to a value much, much less than * max(uint256) to avoid overflow when adding to it. */ constructor( string memory _tokenName, string memory _tokenSymbol, address _randomizerContract, uint256 _startingProjectId ) ERC721(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = payable(msg.sender); randomizerContract = IRandomizer(_randomizerContract); // initialize next project ID nextProjectId = _startingProjectId; } /** * @notice Mints a token from project `_projectId` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _projectId Project ID to mint a token on. * @param _by Purchaser of minted token. * @dev sender must be a whitelisted minter */ function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 _tokenId) { require( isMintWhitelisted[msg.sender], "Must mint from whitelisted minter contract." ); require( projects[_projectId].invocations + 1 <= projects[_projectId].maxInvocations, "Must not exceed max invocations" ); require( projects[_projectId].active || _by == projectIdToArtistAddress[_projectId], "Project must exist and be active" ); require( !projects[_projectId].paused || _by == projectIdToArtistAddress[_projectId], "Purchases are paused." ); uint256 tokenId = _mintToken(_to, _projectId); return tokenId; } function _mintToken(address _to, uint256 _projectId) internal returns (uint256 _tokenId) { uint256 tokenIdToBe = (_projectId * ONE_MILLION) + projects[_projectId].invocations; projects[_projectId].invocations = projects[_projectId].invocations + 1; bytes32 hash = keccak256( abi.encodePacked( projects[_projectId].invocations, block.number, blockhash(block.number - 1), randomizerContract.returnValue() ) ); tokenIdToHash[tokenIdToBe] = hash; hashToTokenId[hash] = tokenIdToBe; _mint(_to, tokenIdToBe); tokenIdToProjectId[tokenIdToBe] = _projectId; emit Mint(_to, tokenIdToBe, _projectId); return tokenIdToBe; } /** * @notice Updates contract admin to `_adminAddress`. */ function updateAdmin(address _adminAddress) public onlyAdmin { admin = _adminAddress; } /** * @notice Updates render provider address to `_renderProviderAddress`. */ function updateRenderProviderAddress(address payable _renderProviderAddress) public onlyAdmin { renderProviderAddress = _renderProviderAddress; } /** * @notice Updates render provider mint revenue percentage to * `_renderProviderPercentage`. */ function updateRenderProviderPercentage(uint256 _renderProviderPercentage) public onlyAdmin { require(_renderProviderPercentage <= 25, "Max of 25%"); renderProviderPercentage = _renderProviderPercentage; } /** * @notice Whitelists `_address`. */ function addWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of `_address`. */ function removeWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = false; } /** * @notice Whitelists minter `_address`. */ function addMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of minter `_address`. */ function removeMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = false; } /** * @notice Updates randomizer to `_randomizerAddress`. */ function updateRandomizerAddress(address _randomizerAddress) public onlyWhitelisted { randomizerContract = IRandomizer(_randomizerAddress); } /** * @notice Locks project `_projectId`. */ function toggleProjectIsLocked(uint256 _projectId) public onlyWhitelisted onlyUnlocked(_projectId) { projects[_projectId].locked = true; } /** * @notice Toggles project `_projectId` as active/inactive. */ function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted { projects[_projectId].active = !projects[_projectId].active; } /** * @notice Updates artist of project `_projectId` to `_artistAddress`. */ function updateProjectArtistAddress( uint256 _projectId, address payable _artistAddress ) public onlyArtistOrWhitelisted(_projectId) { projectIdToArtistAddress[_projectId] = _artistAddress; } /** * @notice Toggles paused state of project `_projectId`. */ function toggleProjectIsPaused(uint256 _projectId) public onlyArtist(_projectId) { projects[_projectId].paused = !projects[_projectId].paused; } /** * @notice Adds new project `_projectName` by `_artistAddress`. * @param _projectName Project name. * @param _artistAddress Artist's address. * @param _pricePerTokenInWei Price to mint a token, in Wei. */ function addProject( string memory _projectName, address payable _artistAddress, uint256 _pricePerTokenInWei ) public onlyWhitelisted { uint256 projectId = nextProjectId; projectIdToArtistAddress[projectId] = _artistAddress; projects[projectId].name = _projectName; projectIdToCurrencySymbol[projectId] = "ETH"; projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei; projects[projectId].paused = true; projects[projectId].maxInvocations = ONE_MILLION; nextProjectId = nextProjectId + 1; } /** * @notice Updates payment currency of project `_projectId` to be * `_currencySymbol`. * @param _projectId Project ID to update. * @param _currencySymbol Currency symbol. * @param _currencyAddress Currency address. */ function updateProjectCurrencyInfo( uint256 _projectId, string memory _currencySymbol, address _currencyAddress ) public onlyArtist(_projectId) { projectIdToCurrencySymbol[_projectId] = _currencySymbol; projectIdToCurrencyAddress[_projectId] = _currencyAddress; } /** * @notice Updates price per token of project `_projectId` to be * '_pricePerTokenInWei`, in Wei. */ function updateProjectPricePerTokenInWei( uint256 _projectId, uint256 _pricePerTokenInWei ) public onlyArtist(_projectId) { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } /** * @notice Updates name of project `_projectId` to be `_projectName`. */ function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].name = _projectName; } /** * @notice Updates artist name for project `_projectId` to be * `_projectArtistName`. */ function updateProjectArtistName( uint256 _projectId, string memory _projectArtistName ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].artist = _projectArtistName; } /** * @notice Updates additional payee for project `_projectId` to be * `_additionalPayee`, receiving `_additionalPayeePercentage` percent * of artist mint and royalty revenues. */ function updateProjectAdditionalPayeeInfo( uint256 _projectId, address payable _additionalPayee, uint256 _additionalPayeePercentage ) public onlyArtist(_projectId) { require(_additionalPayeePercentage <= 100, "Max of 100%"); projectIdToAdditionalPayee[_projectId] = _additionalPayee; projectIdToAdditionalPayeePercentage[ _projectId ] = _additionalPayeePercentage; } /** * @notice Updates artist secondary market royalties for project * `_projectId` to be `_secondMarketRoyalty` percent. */ function updateProjectSecondaryMarketRoyaltyPercentage( uint256 _projectId, uint256 _secondMarketRoyalty ) public onlyArtist(_projectId) { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[ _projectId ] = _secondMarketRoyalty; } /** * @notice Updates description of project `_projectId`. */ function updateProjectDescription( uint256 _projectId, string memory _projectDescription ) public onlyArtist(_projectId) { projects[_projectId].description = _projectDescription; } /** * @notice Updates website of project `_projectId` to be `_projectWebsite`. */ function updateProjectWebsite( uint256 _projectId, string memory _projectWebsite ) public onlyArtist(_projectId) { projects[_projectId].website = _projectWebsite; } /** * @notice Updates license for project `_projectId`. */ function updateProjectLicense( uint256 _projectId, string memory _projectLicense ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].license = _projectLicense; } /** * @notice Updates maximum invocations for project `_projectId` to * `_maxInvocations`. */ function updateProjectMaxInvocations( uint256 _projectId, uint256 _maxInvocations ) public onlyArtist(_projectId) { require( (!projects[_projectId].locked || _maxInvocations < projects[_projectId].maxInvocations), "Only if unlocked" ); require( _maxInvocations > projects[_projectId].invocations, "You must set max invocations greater than current invocations" ); require(_maxInvocations <= ONE_MILLION, "Cannot exceed 1000000"); projects[_projectId].maxInvocations = _maxInvocations; } /** * @notice Adds a script to project `_projectId`. * @param _projectId Project to be updated. * @param _script Script to be added. */ function addProjectScript(uint256 _projectId, string memory _script) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scripts[ projects[_projectId].scriptCount ] = _script; projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1; } /** * @notice Updates script for project `_projectId` at script ID `_scriptId`. * @param _projectId Project to be updated. * @param _scriptId Script ID to be updated. * @param _script Script to be added. */ function updateProjectScript( uint256 _projectId, uint256 _scriptId, string memory _script ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { require( _scriptId < projects[_projectId].scriptCount, "scriptId out of range" ); projects[_projectId].scripts[_scriptId] = _script; } /** * @notice Removes last script from project `_projectId`. */ function removeProjectLastScript(uint256 _projectId) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { require( projects[_projectId].scriptCount > 0, "there are no scripts to remove" ); delete projects[_projectId].scripts[ projects[_projectId].scriptCount - 1 ]; projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1; } /** * @notice Updates script json for project `_projectId`. */ function updateProjectScriptJSON( uint256 _projectId, string memory _projectScriptJSON ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scriptJSON = _projectScriptJSON; } /** * @notice Updates ipfs hash for project `_projectId`. */ function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].ipfsHash = _ipfsHash; } /** * @notice Updates base URI for project `_projectId` to `_newBaseURI`. */ function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyArtist(_projectId) { projects[_projectId].projectBaseURI = _newBaseURI; } /** * @notice Returns project details for project `_projectId`. * @param _projectId Project to be queried. * @return projectName Name of project * @return artist Artist of project * @return description Project description * @return website Project website * @return license Project license */ function projectDetails(uint256 _projectId) public view returns ( string memory projectName, string memory artist, string memory description, string memory website, string memory license ) { projectName = projects[_projectId].name; artist = projects[_projectId].artist; description = projects[_projectId].description; website = projects[_projectId].website; license = projects[_projectId].license; } /** * @notice Returns project token information for project `_projectId`. * @param _projectId Project to be queried. * @return artistAddress Project Artist's address * @return pricePerTokenInWei Price to mint a token, in Wei * @return invocations Current number of invocations * @return maxInvocations Maximum allowed invocations * @return active Boolean representing if project is currently active * @return additionalPayee Additional payee address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return currency Symbol of project's currency * @return currencyAddress Address of project's currency */ function projectTokenInfo(uint256 _projectId) public view returns ( address artistAddress, uint256 pricePerTokenInWei, uint256 invocations, uint256 maxInvocations, bool active, address additionalPayee, uint256 additionalPayeePercentage, string memory currency, address currencyAddress ) { artistAddress = projectIdToArtistAddress[_projectId]; pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId]; invocations = projects[_projectId].invocations; maxInvocations = projects[_projectId].maxInvocations; active = projects[_projectId].active; additionalPayee = projectIdToAdditionalPayee[_projectId]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ _projectId ]; currency = projectIdToCurrencySymbol[_projectId]; currencyAddress = projectIdToCurrencyAddress[_projectId]; } /** * @notice Returns script information for project `_projectId`. * @param _projectId Project to be queried. * @return scriptJSON Project's script json * @return scriptCount Count of scripts for project * @return ipfsHash IPFS hash for project * @return locked Boolean representing if project is locked * @return paused Boolean representing if project is paused */ function projectScriptInfo(uint256 _projectId) public view returns ( string memory scriptJSON, uint256 scriptCount, string memory ipfsHash, bool locked, bool paused ) { scriptJSON = projects[_projectId].scriptJSON; scriptCount = projects[_projectId].scriptCount; ipfsHash = projects[_projectId].ipfsHash; locked = projects[_projectId].locked; paused = projects[_projectId].paused; } /** * @notice Returns script for project `_projectId` at script index `_index`. */ function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } /** * @notice Returns base URI for project `_projectId`. */ function projectURIInfo(uint256 _projectId) public view returns (string memory projectBaseURI) { projectBaseURI = projects[_projectId].projectBaseURI; } /** * @notice Gets royalty data for token ID `_tokenId`. * @param _tokenId Token ID to be queried. * @return artistAddress Artist's payment address * @return additionalPayee Additional payee's payment address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return royaltyFeeByID Total royalty percentage to be sent to * combination of artist and additional payee */ function getRoyaltyData(uint256 _tokenId) public view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ) { artistAddress = projectIdToArtistAddress[tokenIdToProjectId[_tokenId]]; additionalPayee = projectIdToAdditionalPayee[ tokenIdToProjectId[_tokenId] ]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ tokenIdToProjectId[_tokenId] ]; royaltyFeeByID = projectIdToSecondaryMarketRoyaltyPercentage[ tokenIdToProjectId[_tokenId] ]; } /** * @notice Gets token URI for token ID `_tokenId`. */ function tokenURI(uint256 _tokenId) public view override onlyValidTokenId(_tokenId) returns (string memory) { return string( abi.encodePacked( projects[tokenIdToProjectId[_tokenId]].projectBaseURI, Strings.toString(_tokenId) ) ); } }
{ "optimizer": { "enabled": true, "runs": 25 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_randomizerContract","type":"address"},{"internalType":"uint256","name":"_startingProjectId","type":"uint256"},{"internalType":"address","name":"_signVerifierRegistry","type":"address"},{"internalType":"bytes32","name":"_signVerifierId","type":"bytes32"}],"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":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"signVerifierId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"oldSignVerifierId","type":"bytes32"}],"name":"SignVerifierIdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signVerifierRegistry","type":"address"},{"indexed":true,"internalType":"address","name":"oldSignVerifierRegistry","type":"address"}],"name":"SignVerifierRegistryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_projectName","type":"string"},{"internalType":"address payable","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"bytes","name":"_sig","type":"bytes"},{"internalType":"uint256","name":"_blockExpiry","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"getClaimNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockExpiry","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getClaimSigningHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyData","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"uint256","name":"royaltyFeeByID","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_by","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectDetails","outputs":[{"internalType":"string","name":"projectName","type":"string"},{"internalType":"string","name":"artist","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"license","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToArtistAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencySymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToPricePerTokenInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToSecondaryMarketRoyaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectScriptInfo","outputs":[{"internalType":"string","name":"scriptJSON","type":"string"},{"internalType":"uint256","name":"scriptCount","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectTokenInfo","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"invocations","type":"uint256"},{"internalType":"uint256","name":"maxInvocations","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectURIInfo","outputs":[{"internalType":"string","name":"projectBaseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizerContract","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderProviderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderProviderPercentage","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_signVerifierId","type":"bytes32"}],"name":"setSignVerifierId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signVerifierRegistry","type":"address"}],"name":"setSignVerifierRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signVerifierId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signVerifierRegistry","outputs":[{"internalType":"contract ISignVerifierRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"_adminAddress","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_additionalPayee","type":"address"},{"internalType":"uint256","name":"_additionalPayeePercentage","type":"uint256"}],"name":"updateProjectAdditionalPayeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_artistAddress","type":"address"}],"name":"updateProjectArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectArtistName","type":"string"}],"name":"updateProjectArtistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateProjectBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectDescription","type":"string"}],"name":"updateProjectDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateProjectIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectLicense","type":"string"}],"name":"updateProjectLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"updateProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"updateProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updateProjectPricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectScriptJSON","type":"string"}],"name":"updateProjectScriptJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_secondMarketRoyalty","type":"uint256"}],"name":"updateProjectSecondaryMarketRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"updateProjectWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_randomizerAddress","type":"address"}],"name":"updateRandomizerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_renderProviderAddress","type":"address"}],"name":"updateRenderProviderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_renderProviderPercentage","type":"uint256"}],"name":"updateRenderProviderPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6010553480156200001657600080fd5b5060405162004b5738038062004b578339810160408190526200003991620004a1565b85858585838381600090805190602001906200005792919062000311565b5080516200006d90600190602084019062000311565b505060148054336001600160a01b031991821681179092556000828152601560205260409020805460ff19166001179055600f80548216909217909155600680549091166001600160a01b03948516179055506017558416151591506200013690505760405162461bcd60e51b815260206004820152603060248201527f5f7369676e566572696669657252656769737472792063616e6e6f742062652060448201526f746865207a65726f206164647265737360801b60648201526084015b60405180910390fd5b80620001935760405162461bcd60e51b815260206004820152602560248201527f5f7369676e566572696669657249642063616e6e6f7420626520746865207a656044820152641c9bc8125160da1b60648201526084016200012d565b6040516301ffc9a760e01b8152631668c2a960e01b60048201526001600160a01b038316906301ffc9a79060240160206040518083038186803b158015620001da57600080fd5b505afa158015620001ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000215919062000542565b620002895760405162461bcd60e51b815260206004820152603e60248201527f5f7369676e5665726966696572526567697374727920646f6573206e6f74206960448201527f6d706c656d656e7420495369676e56657269666965725265676973747279000060648201526084016200012d565b601880546001600160a01b0319166001600160a01b0384169081179091556019829055604051600091907f78f83104cd73ca1470706a4dfb0ab769a5bdb4217a200d14602e02cc9925cd3d908390a360405160009082907f2d87eba9dd392fcda14b366f76541b6c3af5d0706caa646d48217129c5f16b85908390a3505050505050620005aa565b8280546200031f906200056d565b90600052602060002090601f0160209004810192826200034357600085556200038e565b82601f106200035e57805160ff19168380011785556200038e565b828001600101855582156200038e579182015b828111156200038e57825182559160200191906001019062000371565b506200039c929150620003a0565b5090565b5b808211156200039c5760008155600101620003a1565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003df57600080fd5b81516001600160401b0380821115620003fc57620003fc620003b7565b604051601f8301601f19908116603f01168101908282118183101715620004275762000427620003b7565b816040528381526020925086838588010111156200044457600080fd5b600091505b8382101562000468578582018301518183018401529082019062000449565b838211156200047a5760008385830101525b9695505050505050565b80516001600160a01b03811681146200049c57600080fd5b919050565b60008060008060008060c08789031215620004bb57600080fd5b86516001600160401b0380821115620004d357600080fd5b620004e18a838b01620003cd565b97506020890151915080821115620004f857600080fd5b506200050789828a01620003cd565b955050620005186040880162000484565b9350606087015192506200052f6080880162000484565b915060a087015190509295509295509295565b6000602082840312156200055557600080fd5b815180151581146200056657600080fd5b9392505050565b600181811c908216806200058257607f821691505b60208210811415620005a457634e487b7160e01b600052602260045260246000fd5b50919050565b61459d80620005ba6000396000f3fe608060405234801561001057600080fd5b50600436106103895760003560e01c80638c3c9cdd116101e1578063c6d732311161010b578063c6d73231146108bf578063c87b56dd146108d2578063cc74234b146108e5578063cfbf4d9714610905578063d03c390c14610918578063d195b3651461092b578063d77079031461093e578063d7b044b614610967578063db2ff86114610990578063db6c7d3e146109a3578063e13208b4146109c3578063e2f273bd146109d6578063e935b7b1146109e9578063e985e9c5146109f2578063ed8abfda14610a2e578063f061ab2614610a4e578063f51f74a914610a61578063f70c0f0414610a81578063f851a44014610aa157600080fd5b80638c3c9cdd146106ca5780638dd91a56146106dd57806395d89b411461070157806397dc86cf146107095780639810c4a41461071c578063a11ec70a14610725578063a22cb46514610738578063a3b2cca61461074b578063a47d29cb1461075e578063a65ff74c14610787578063a6ea102514610809578063ab6392081461081c578063acad01241461082f578063ad0305ce14610842578063b1656ba314610865578063b7b04fae14610878578063b88d4fde1461088b578063bef3bd2914610899578063c34a03b5146108ac57600080fd5b80633e48e848116102c25780633e48e848146105365780633fef6c2a1461054957806342842e0e14610498578063498dd0c11461055c5780634aa6d41714610585578063621a1f74146105a95780636352211e146105c957806369d14faf146105dc5780636b6ec8a6146105ef5780636c907b7f1461060257806370a08231146106155780637b86073e14610628578063826fc39114610630578063867f1a3b146106435780638763ad1e146106565780638ba8f14d146106695780638bb860221461067c5780638bddb0a61461068f5780638c2c3622146106a257600080fd5b806301ffc9a71461038e57806306fdde03146103b6578063081812fc146103cb578063095ea7b3146103f65780630d1706731461040b5780630d4d15131461041e57806310154bad1461043f57806311f5fdf1146104525780631b689c0b1461046557806320927ec91461048557806323b872dd1461049857806325b75d68146104ab578063291d9549146104be5780632d9c0205146104d15780632e9eb74f146104e457806336c7c12c146104ed57806337859963146105005780633af32abf14610513575b600080fd5b6103a161039c366004613b7d565b610ab4565b60405190151581526020015b60405180910390f35b6103be610b06565b6040516103ad9190613bf9565b6103de6103d9366004613c0c565b610b98565b6040516001600160a01b0390911681526020016103ad565b610409610404366004613c3a565b610c25565b005b610409610419366004613d08565b610d36565b61043161042c366004613d4e565b610de7565b6040519081526020016103ad565b61040961044d366004613d90565b610fec565b610409610460366004613c0c565b61103a565b610431610473366004613c0c565b60116020526000908152604090205481565b6103be610493366004613c0c565b6110a7565b6104096104a6366004613dad565b611141565b6104096104b9366004613d08565b6111a2565b6104096104cc366004613d90565b611252565b6103be6104df366004613c0c565b61129d565b61043160105481565b6006546103de906001600160a01b031681565b61040961050e366004613d08565b611342565b6103a1610521366004613d90565b60156020526000908152604090205460ff1681565b610409610544366004613d08565b6113a5565b610409610557366004613d08565b611402565b6103de61056a366004613c0c565b600a602052600090815260409020546001600160a01b031681565b610598610593366004613c0c565b6114b2565b6040516103ad959493929190613dee565b6104316105b7366004613c0c565b60126020526000908152604090205481565b6103de6105d7366004613c0c565b611634565b6104096105ea366004613e33565b6116ab565b6104096105fd366004613d90565b61172c565b610409610610366004613d90565b611778565b610431610623366004613d90565b6117c9565b6103de611850565b61040961063e366004613e63565b611948565b610409610651366004613d90565b611abc565b610409610664366004613e85565b611b07565b610409610677366004613c0c565b611bfe565b6018546103de906001600160a01b031681565b61040961069d366004613d90565b611c87565b6106b56106b0366004613c0c565b611cd5565b6040516103ad99989796959493929190613ecd565b6103be6106d8366004613e63565b611df8565b6106f06106eb366004613c0c565b611ea9565b6040516103ad959493929190613f33565b6103be6121d7565b610409610717366004613e63565b6121e6565b61043160195481565b610409610733366004613c0c565b612231565b610409610746366004613fae565b612298565b610409610759366004613d08565b6122a7565b6103de61076c366004613c0c565b6008602052600090815260409020546001600160a01b031681565b6107de610795366004613c0c565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103ad565b610409610817366004613fdc565b612304565b61043161082a36600461403c565b612492565b61040961083d366004613d08565b612507565b6103a1610850366004613d90565b60166020526000908152604090205460ff1681565b610409610873366004614063565b6125f9565b610409610886366004613d08565b612706565b6104096104a63660046140b2565b6104096108a7366004613d90565b6127b6565b6104096108ba366004613e63565b612990565b6104096108cd366004613d08565b6129fc565b6103be6108e0366004613c0c565b612aac565b6104316108f3366004613c0c565b600d6020526000908152604090205481565b600f546103de906001600160a01b031681565b610409610926366004613c0c565b612b4e565b61040961093936600461411d565b612ba0565b61043161094c366004613d90565b6001600160a01b03166000908152601a602052604090205490565b6103de610975366004613c0c565b600c602052600090815260409020546001600160a01b031681565b61040961099e366004613c0c565b612c29565b6104316109b1366004613d90565b601a6020526000908152604090205481565b6104096109d136600461403c565b612d8a565b6104096109e4366004613d90565b612e1d565b61043160175481565b6103a1610a0036600461416c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610431610a3c366004613c0c565b600e6020526000908152604090205481565b610409610a5c366004613c0c565b612e69565b610431610a6f366004613c0c565b60136020526000908152604090205481565b610431610a8f366004613c0c565b600b6020526000908152604090205481565b6014546103de906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610ae557506001600160e01b03198216635b5e139f60e01b145b80610b0057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b159061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b419061419a565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b5050505050905090565b6000610ba382612f27565b610c095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c3082611634565b9050806001600160a01b0316836001600160a01b03161415610c9e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c00565b336001600160a01b0382161480610cba5750610cba8133610a00565b610d275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c00565b610d318383612f44565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610d6f5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff1680610da557506000818152600860205260409020546001600160a01b031633145b610dc15760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092860190613a98565b5050505050565b3360009081526016602052604081205460ff16610e5a5760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610c00565b600083815260076020819052604090912090810154600690910154610e80906001614243565b1115610ece5760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c00565b6000838152600760205260409020600c015460ff1680610f0757506000838152600860205260409020546001600160a01b038381169116145b610f535760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c00565b6000838152600760205260409020600c015462010000900460ff161580610f9357506000838152600860205260409020546001600160a01b038381169116145b610fd75760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c00565b6000610fe38585612fb2565b95945050505050565b6014546001600160a01b031633146110165760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b031633146110645760405162461bcd60e51b8152600401610c009061425b565b60198111156110a25760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c00565b601055565b600960205260009081526040902080546110c09061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546110ec9061419a565b80156111395780601f1061110e57610100808354040283529160200191611139565b820191906000526020600020905b81548152906001019060200180831161111c57829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c6963207472616e736665722066756e6374696f6e7360448201526f08185c99481b9bdd08185b1b1bddd95960821b6064820152608401610c00565b6000828152600760205260409020600c01548290610100900460ff16156111db5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061121157506000818152600860205260409020546001600160a01b031633145b61122d5760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600490920191860190613a98565b6014546001600160a01b0316331461127c5760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601560205260409020805460ff19169055565b60008181526007602052604090206005018054606091906112bd9061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546112e99061419a565b80156113365780601f1061130b57610100808354040283529160200191611336565b820191906000526020600020905b81548152906001019060200180831161131957829003601f168201915b50505050509050919050565b60008281526008602052604090205482906001600160a01b0316331461137a5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600390920191850190613a98565b50505050565b60008281526008602052604090205482906001600160a01b031633146113dd5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600590920191850190613a98565b6000828152600760205260409020600c01548290610100900460ff161561143b5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061147157506000818152600860205260409020546001600160a01b031633145b61148d5760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600b90920191860190613a98565b6060600060606000806007600087815260200190815260200160002060080180546114dc9061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546115089061419a565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b5050506000898152600760205260409020600a810154600b9091018054949950909750926115859250905061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546115b19061419a565b80156115fe5780601f106115d3576101008083540402835291602001916115fe565b820191906000526020600020905b8154815290600101906020018083116115e157829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b031680610b005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c00565b33600090815260156020526040902054829060ff16806116e157506000818152600860205260409020546001600160a01b031633145b6116fd5760405162461bcd60e51b8152600401610c00906141f9565b5060009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b031633146117565760405162461bcd60e51b8152600401610c009061425b565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526015602052604090205460ff166117a75760405162461bcd60e51b8152600401610c00906142a4565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c00565b506001600160a01b031660009081526003602052604090205490565b60185460195460405163023aa9ab60e61b815260009283926001600160a01b0390911691638eaa6ac09161188a9160040190815260200190565b60206040518083038186803b1580156118a257600080fd5b505afa1580156118b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118da91906142ce565b90506001600160a01b0381166119435760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420757365207a65726f2061646472657373206173207369676e206044820152673b32b934b334b2b960c11b6064820152608401610c00565b919050565b60008281526008602052604090205482906001600160a01b031633146119805760405162461bcd60e51b8152600401610c009061427f565b6000838152600760205260409020600c0154610100900460ff1615806119b757506000838152600760208190526040909120015482105b6119d35760405162461bcd60e51b8152600401610c00906141cf565b6000838152600760205260409020600601548211611a595760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c00565b620f4240821115611aa45760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c00565b50600091825260076020819052604090922090910155565b6014546001600160a01b03163314611ae65760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff16611b365760405162461bcd60e51b8152600401610c00906142a4565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b038816179055600782529091208551611b7892870190613a98565b50604080518082018252600381526208aa8960eb1b602080830191825260008581526009909152929092209051611baf9290613a98565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f4240910155601754611bf5906001614243565b60175550505050565b3360009081526015602052604090205460ff16611c2d5760405162461bcd60e51b8152600401610c00906142a4565b6000818152600760205260409020600c01548190610100900460ff1615611c665760405162461bcd60e51b8152600401610c00906141cf565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611cb15760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611d4b9061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d779061419a565b8015611dc45780601f10611d9957610100808354040283529160200191611dc4565b820191906000526020600020905b815481529060010190602001808311611da757829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611e239061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4f9061419a565b8015611e9c5780601f10611e7157610100808354040283529160200191611e9c565b820191906000526020600020905b815481529060010190602001808311611e7f57829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611ed29061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611efe9061419a565b8015611f4b5780601f10611f2057610100808354040283529160200191611f4b565b820191906000526020600020905b815481529060010190602001808311611f2e57829003601f168201915b5050506000898152600760205260409020600101805493985092611f719250905061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9d9061419a565b8015611fea5780601f10611fbf57610100808354040283529160200191611fea565b820191906000526020600020905b815481529060010190602001808311611fcd57829003601f168201915b50505060008981526007602052604090206002018054939750926120109250905061419a565b80601f016020809104026020016040519081016040528092919081815260200182805461203c9061419a565b80156120895780601f1061205e57610100808354040283529160200191612089565b820191906000526020600020905b81548152906001019060200180831161206c57829003601f168201915b50505060008981526007602052604090206003018054939650926120af9250905061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546120db9061419a565b80156121285780601f106120fd57610100808354040283529160200191612128565b820191906000526020600020905b81548152906001019060200180831161210b57829003601f168201915b505050600089815260076020526040902060040180549395509261214e9250905061419a565b80601f016020809104026020016040519081016040528092919081815260200182805461217a9061419a565b80156121c75780601f1061219c576101008083540402835291602001916121c7565b820191906000526020600020905b8154815290600101906020018083116121aa57829003601f168201915b5050505050905091939590929450565b606060018054610b159061419a565b60008281526008602052604090205482906001600160a01b0316331461221e5760405162461bcd60e51b8152600401610c009061427f565b506000918252600b602052604090912055565b60008181526008602052604090205481906001600160a01b031633146122695760405162461bcd60e51b8152600401610c009061427f565b506000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b6122a3338383613151565b5050565b60008281526008602052604090205482906001600160a01b031633146122df5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600290920191850190613a98565b6000612366612314858585612492565b6040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050612370611850565b6001600160a01b0316612383828761321c565b6001600160a01b0316146123e95760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610c00565b8343106124265760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610c00565b600061243183611634565b90506001600160a01b03811661244657600080fd5b6001600160a01b0384166000908152601a6020526040812080549161246a836142eb565b919050555061248a81858560405180602001604052806000815250613240565b505050505050565b6001600160a01b0382166000908152601a602090815260408083205481519283018790526001600160601b0319606087811b821693850193909352605484018690523090921b9091166074830152608882015260a8016040516020818303038152906040528051906020012090509392505050565b6000828152600760205260409020600c01548290610100900460ff16156125405760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061257657506000818152600860205260409020546001600160a01b031633145b6125925760405162461bcd60e51b8152600401610c00906141f9565b6000848152600760209081526040808320600a8101548452600901825290912084516125c092860190613a98565b506000848152600760205260409020600a01546125de906001614243565b600094855260076020526040909420600a0193909355505050565b6000838152600760205260409020600c01548390610100900460ff16156126325760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054849060ff168061266857506000818152600860205260409020546001600160a01b031633145b6126845760405162461bcd60e51b8152600401610c00906141f9565b6000858152600760205260409020600a015484106126dc5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c00565b60008581526007602090815260408083208784526009018252909120845161248a92860190613a98565b6000828152600760205260409020600c01548290610100900460ff161561273f5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061277557506000818152600860205260409020546001600160a01b031633145b6127915760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600190920191860190613a98565b6014546001600160a01b031633146127e05760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03811661284f5760405162461bcd60e51b815260206004820152603060248201527f5f7369676e566572696669657252656769737472792063616e6e6f742062652060448201526f746865207a65726f206164647265737360801b6064820152608401610c00565b6040516301ffc9a760e01b8152631668c2a960e01b60048201526001600160a01b038216906301ffc9a79060240160206040518083038186803b15801561289557600080fd5b505afa1580156128a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cd9190614306565b61293f5760405162461bcd60e51b815260206004820152603e60248201527f5f7369676e5665726966696572526567697374727920646f6573206e6f74206960448201527f6d706c656d656e7420495369676e5665726966696572526567697374727900006064820152608401610c00565b601880546001600160a01b038381166001600160a01b03198316811790935560405191169182917f78f83104cd73ca1470706a4dfb0ab769a5bdb4217a200d14602e02cc9925cd3d90600090a35050565b60008281526008602052604090205482906001600160a01b031633146129c85760405162461bcd60e51b8152600401610c009061427f565b60648211156129e95760405162461bcd60e51b8152600401610c0090614323565b506000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff1615612a355760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff1680612a6b57506000818152600860205260409020546001600160a01b031633145b612a875760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600890920191860190613a98565b606081612ab881612f27565b612afe5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610c00565b600083815260116020908152604080832054835260079091529020600501612b2584613273565b604051602001612b36929190614364565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff16612b7d5760405162461bcd60e51b8152600401610c00906142a4565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b60008381526008602052604090205483906001600160a01b03163314612bd85760405162461bcd60e51b8152600401610c009061427f565b60008481526009602090815260409091208451612bf792860190613a98565b50506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff1615612c625760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054829060ff1680612c9857506000818152600860205260409020546001600160a01b031633145b612cb45760405162461bcd60e51b8152600401610c00906141f9565b6000838152600760205260409020600a0154612d125760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c00565b6000838152600760205260408120600a81015460099091019190612d3890600190614402565b81526020019081526020016000206000612d529190613b1c565b6000838152600760205260409020600a0154612d7090600190614402565b600093845260076020526040909320600a01929092555050565b60008381526008602052604090205483906001600160a01b03163314612dc25760405162461bcd60e51b8152600401610c009061427f565b6064821115612de35760405162461bcd60e51b8152600401610c0090614323565b506000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b03163314612e475760405162461bcd60e51b8152600401610c009061425b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b03163314612e935760405162461bcd60e51b8152600401610c009061425b565b80612eee5760405162461bcd60e51b815260206004820152602560248201527f5f7369676e566572696669657249642063616e6e6f7420626520746865207a656044820152641c9bc8125160da1b6064820152608401610c00565b6019805490829055604051819083907f2d87eba9dd392fcda14b366f76541b6c3af5d0706caa646d48217129c5f16b8590600090a35050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f7982611634565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600760205260408120600601548190612fd3620f424085614419565b612fdd9190614243565b600084815260076020526040902060060154909150612ffd906001614243565b6000848152600760205260408120600601829055904361301e600182614402565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561306d57600080fd5b505afa158015613081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a59190614438565b6040805160208101959095528401929092526060830152608082015260a00160408051601f1981840301815291815281516020928301206000858152601284528281208290558181526013909352912083905590506131048583613378565b60008281526011602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b816001600160a01b0316836001600160a01b031614156131af5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c00565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080600061322b85856134aa565b915091506132388161351a565b509392505050565b61324b8484846136d3565b6132578484848461386f565b61139f5760405162461bcd60e51b8152600401610c0090614451565b6060816132975750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132c157806132ab816142eb565b91506132ba9050600a836144b9565b915061329b565b6000816001600160401b038111156132db576132db613c66565b6040519080825280601f01601f191660200182016040528015613305576020820181803683370190505b5090505b84156133705761331a600183614402565b9150613327600a866144cd565b613332906030614243565b60f81b818381518110613347576133476144e1565b60200101906001600160f81b031916908160001a905350613369600a866144b9565b9450613309565b949350505050565b6001600160a01b0382166133ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c00565b6133d781612f27565b156134235760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c00565b6001600160a01b038216600090815260036020526040812080546001929061344c908490614243565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604114156134e15760208301516040840151606085015160001a6134d58782858561397c565b94509450505050613513565b82516040141561350b5760208301516040840151613500868383613a5f565b935093505050613513565b506000905060025b9250929050565b600081600481111561352e5761352e6144f7565b14156135375750565b600181600481111561354b5761354b6144f7565b14156135945760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610c00565b60028160048111156135a8576135a86144f7565b14156135f65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c00565b600381600481111561360a5761360a6144f7565b14156136635760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c00565b6004816004811115613677576136776144f7565b14156136d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c00565b50565b826001600160a01b03166136e682611634565b6001600160a01b03161461374a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c00565b6001600160a01b0382166137ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c00565b6137b7600082612f44565b6001600160a01b03831660009081526003602052604081208054600192906137e0908490614402565b90915550506001600160a01b038216600090815260036020526040812080546001929061380e908490614243565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561397157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138b390339089908890889060040161450d565b602060405180830381600087803b1580156138cd57600080fd5b505af19250505080156138fd575060408051601f3d908101601f191682019092526138fa9181019061454a565b60015b613957573d80801561392b576040519150601f19603f3d011682016040523d82523d6000602084013e613930565b606091505b50805161394f5760405162461bcd60e51b8152600401610c0090614451565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613370565b506001949350505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156139a95750600090506003613a56565b8460ff16601b141580156139c157508460ff16601c14155b156139d25750600090506004613a56565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a26573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a4f57600060019250925050613a56565b9150600090505b94509492505050565b6000806001600160ff1b03831681613a7c60ff86901c601b614243565b9050613a8a8782888561397c565b935093505050935093915050565b828054613aa49061419a565b90600052602060002090601f016020900481019282613ac65760008555613b0c565b82601f10613adf57805160ff1916838001178555613b0c565b82800160010185558215613b0c579182015b82811115613b0c578251825591602001919060010190613af1565b50613b18929150613b52565b5090565b508054613b289061419a565b6000825580601f10613b38575050565b601f0160209004906000526020600020908101906136d091905b5b80821115613b185760008155600101613b53565b6001600160e01b0319811681146136d057600080fd5b600060208284031215613b8f57600080fd5b8135613b9a81613b67565b9392505050565b60005b83811015613bbc578181015183820152602001613ba4565b8381111561139f5750506000910152565b60008151808452613be5816020860160208601613ba1565b601f01601f19169290920160200192915050565b602081526000613b9a6020830184613bcd565b600060208284031215613c1e57600080fd5b5035919050565b6001600160a01b03811681146136d057600080fd5b60008060408385031215613c4d57600080fd5b8235613c5881613c25565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613c8d57600080fd5b81356001600160401b0380821115613ca757613ca7613c66565b604051601f8301601f19908116603f01168101908282118183101715613ccf57613ccf613c66565b81604052838152866020858801011115613ce857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215613d1b57600080fd5b8235915060208301356001600160401b03811115613d3857600080fd5b613d4485828601613c7c565b9150509250929050565b600080600060608486031215613d6357600080fd5b8335613d6e81613c25565b9250602084013591506040840135613d8581613c25565b809150509250925092565b600060208284031215613da257600080fd5b8135613b9a81613c25565b600080600060608486031215613dc257600080fd5b8335613dcd81613c25565b92506020840135613ddd81613c25565b929592945050506040919091013590565b60a081526000613e0160a0830188613bcd565b8660208401528281036040840152613e198187613bcd565b941515606084015250509015156080909101529392505050565b60008060408385031215613e4657600080fd5b823591506020830135613e5881613c25565b809150509250929050565b60008060408385031215613e7657600080fd5b50508035926020909101359150565b600080600060608486031215613e9a57600080fd5b83356001600160401b03811115613eb057600080fd5b613ebc86828701613c7c565b9350506020840135613ddd81613c25565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613f1882850187613bcd565b925080851661010085015250509a9950505050505050505050565b60a081526000613f4660a0830188613bcd565b8281036020840152613f588188613bcd565b90508281036040840152613f6c8187613bcd565b90508281036060840152613f808186613bcd565b90508281036080840152613f948185613bcd565b98975050505050505050565b80151581146136d057600080fd5b60008060408385031215613fc157600080fd5b8235613fcc81613c25565b91506020830135613e5881613fa0565b60008060008060808587031215613ff257600080fd5b84356001600160401b0381111561400857600080fd5b61401487828801613c7c565b94505060208501359250604085013561402c81613c25565b9396929550929360600135925050565b60008060006060848603121561405157600080fd5b833592506020840135613ddd81613c25565b60008060006060848603121561407857600080fd5b833592506020840135915060408401356001600160401b0381111561409c57600080fd5b6140a886828701613c7c565b9150509250925092565b600080600080608085870312156140c857600080fd5b84356140d381613c25565b935060208501356140e381613c25565b92506040850135915060608501356001600160401b0381111561410557600080fd5b61411187828801613c7c565b91505092959194509250565b60008060006060848603121561413257600080fd5b8335925060208401356001600160401b0381111561414f57600080fd5b61415b86828701613c7c565b9250506040840135613d8581613c25565b6000806040838503121561417f57600080fd5b823561418a81613c25565b91506020830135613e5881613c25565b600181811c908216806141ae57607f821691505b60208210811415612b4857634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156142565761425661422d565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6000602082840312156142e057600080fd5b8151613b9a81613c25565b60006000198214156142ff576142ff61422d565b5060010190565b60006020828403121561431857600080fd5b8151613b9a81613fa0565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b6000815161435a818560208601613ba1565b9290920192915050565b600080845481600182811c91508083168061438057607f831692505b60208084108214156143a057634e487b7160e01b86526022600452602486fd5b8180156143b457600181146143c5576143f2565b60ff198616895284890196506143f2565b60008b81526020902060005b868110156143ea5781548b8201529085019083016143d1565b505084890196505b505050505050610fe38185614348565b6000828210156144145761441461422d565b500390565b60008160001904831182151516156144335761443361422d565b500290565b60006020828403121561444a57600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826144c8576144c86144a3565b500490565b6000826144dc576144dc6144a3565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061454090830184613bcd565b9695505050505050565b60006020828403121561455c57600080fd5b8151613b9a81613b6756fea26469706673582212201b0912f4515ee6de5abf294b5ef9009c19f740ab86576efd3486f0d242d7109b64736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000088098f7438773182b703625c4128aff85fcffc400000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a5aa1f0b5919f56c7a232cf2b29a4d6e1326ebe5c3aa0253576d2e18982cdb774a9fca10613a65d4bd8d2477670b8461bd1431e000000000000000000000000000000000000000000000000000000000000000c495445524154494f4e2d30320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000549542d3032000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103895760003560e01c80638c3c9cdd116101e1578063c6d732311161010b578063c6d73231146108bf578063c87b56dd146108d2578063cc74234b146108e5578063cfbf4d9714610905578063d03c390c14610918578063d195b3651461092b578063d77079031461093e578063d7b044b614610967578063db2ff86114610990578063db6c7d3e146109a3578063e13208b4146109c3578063e2f273bd146109d6578063e935b7b1146109e9578063e985e9c5146109f2578063ed8abfda14610a2e578063f061ab2614610a4e578063f51f74a914610a61578063f70c0f0414610a81578063f851a44014610aa157600080fd5b80638c3c9cdd146106ca5780638dd91a56146106dd57806395d89b411461070157806397dc86cf146107095780639810c4a41461071c578063a11ec70a14610725578063a22cb46514610738578063a3b2cca61461074b578063a47d29cb1461075e578063a65ff74c14610787578063a6ea102514610809578063ab6392081461081c578063acad01241461082f578063ad0305ce14610842578063b1656ba314610865578063b7b04fae14610878578063b88d4fde1461088b578063bef3bd2914610899578063c34a03b5146108ac57600080fd5b80633e48e848116102c25780633e48e848146105365780633fef6c2a1461054957806342842e0e14610498578063498dd0c11461055c5780634aa6d41714610585578063621a1f74146105a95780636352211e146105c957806369d14faf146105dc5780636b6ec8a6146105ef5780636c907b7f1461060257806370a08231146106155780637b86073e14610628578063826fc39114610630578063867f1a3b146106435780638763ad1e146106565780638ba8f14d146106695780638bb860221461067c5780638bddb0a61461068f5780638c2c3622146106a257600080fd5b806301ffc9a71461038e57806306fdde03146103b6578063081812fc146103cb578063095ea7b3146103f65780630d1706731461040b5780630d4d15131461041e57806310154bad1461043f57806311f5fdf1146104525780631b689c0b1461046557806320927ec91461048557806323b872dd1461049857806325b75d68146104ab578063291d9549146104be5780632d9c0205146104d15780632e9eb74f146104e457806336c7c12c146104ed57806337859963146105005780633af32abf14610513575b600080fd5b6103a161039c366004613b7d565b610ab4565b60405190151581526020015b60405180910390f35b6103be610b06565b6040516103ad9190613bf9565b6103de6103d9366004613c0c565b610b98565b6040516001600160a01b0390911681526020016103ad565b610409610404366004613c3a565b610c25565b005b610409610419366004613d08565b610d36565b61043161042c366004613d4e565b610de7565b6040519081526020016103ad565b61040961044d366004613d90565b610fec565b610409610460366004613c0c565b61103a565b610431610473366004613c0c565b60116020526000908152604090205481565b6103be610493366004613c0c565b6110a7565b6104096104a6366004613dad565b611141565b6104096104b9366004613d08565b6111a2565b6104096104cc366004613d90565b611252565b6103be6104df366004613c0c565b61129d565b61043160105481565b6006546103de906001600160a01b031681565b61040961050e366004613d08565b611342565b6103a1610521366004613d90565b60156020526000908152604090205460ff1681565b610409610544366004613d08565b6113a5565b610409610557366004613d08565b611402565b6103de61056a366004613c0c565b600a602052600090815260409020546001600160a01b031681565b610598610593366004613c0c565b6114b2565b6040516103ad959493929190613dee565b6104316105b7366004613c0c565b60126020526000908152604090205481565b6103de6105d7366004613c0c565b611634565b6104096105ea366004613e33565b6116ab565b6104096105fd366004613d90565b61172c565b610409610610366004613d90565b611778565b610431610623366004613d90565b6117c9565b6103de611850565b61040961063e366004613e63565b611948565b610409610651366004613d90565b611abc565b610409610664366004613e85565b611b07565b610409610677366004613c0c565b611bfe565b6018546103de906001600160a01b031681565b61040961069d366004613d90565b611c87565b6106b56106b0366004613c0c565b611cd5565b6040516103ad99989796959493929190613ecd565b6103be6106d8366004613e63565b611df8565b6106f06106eb366004613c0c565b611ea9565b6040516103ad959493929190613f33565b6103be6121d7565b610409610717366004613e63565b6121e6565b61043160195481565b610409610733366004613c0c565b612231565b610409610746366004613fae565b612298565b610409610759366004613d08565b6122a7565b6103de61076c366004613c0c565b6008602052600090815260409020546001600160a01b031681565b6107de610795366004613c0c565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103ad565b610409610817366004613fdc565b612304565b61043161082a36600461403c565b612492565b61040961083d366004613d08565b612507565b6103a1610850366004613d90565b60166020526000908152604090205460ff1681565b610409610873366004614063565b6125f9565b610409610886366004613d08565b612706565b6104096104a63660046140b2565b6104096108a7366004613d90565b6127b6565b6104096108ba366004613e63565b612990565b6104096108cd366004613d08565b6129fc565b6103be6108e0366004613c0c565b612aac565b6104316108f3366004613c0c565b600d6020526000908152604090205481565b600f546103de906001600160a01b031681565b610409610926366004613c0c565b612b4e565b61040961093936600461411d565b612ba0565b61043161094c366004613d90565b6001600160a01b03166000908152601a602052604090205490565b6103de610975366004613c0c565b600c602052600090815260409020546001600160a01b031681565b61040961099e366004613c0c565b612c29565b6104316109b1366004613d90565b601a6020526000908152604090205481565b6104096109d136600461403c565b612d8a565b6104096109e4366004613d90565b612e1d565b61043160175481565b6103a1610a0036600461416c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610431610a3c366004613c0c565b600e6020526000908152604090205481565b610409610a5c366004613c0c565b612e69565b610431610a6f366004613c0c565b60136020526000908152604090205481565b610431610a8f366004613c0c565b600b6020526000908152604090205481565b6014546103de906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610ae557506001600160e01b03198216635b5e139f60e01b145b80610b0057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b159061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b419061419a565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b5050505050905090565b6000610ba382612f27565b610c095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c3082611634565b9050806001600160a01b0316836001600160a01b03161415610c9e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c00565b336001600160a01b0382161480610cba5750610cba8133610a00565b610d275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c00565b610d318383612f44565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610d6f5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff1680610da557506000818152600860205260409020546001600160a01b031633145b610dc15760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092860190613a98565b5050505050565b3360009081526016602052604081205460ff16610e5a5760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610c00565b600083815260076020819052604090912090810154600690910154610e80906001614243565b1115610ece5760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c00565b6000838152600760205260409020600c015460ff1680610f0757506000838152600860205260409020546001600160a01b038381169116145b610f535760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c00565b6000838152600760205260409020600c015462010000900460ff161580610f9357506000838152600860205260409020546001600160a01b038381169116145b610fd75760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c00565b6000610fe38585612fb2565b95945050505050565b6014546001600160a01b031633146110165760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b031633146110645760405162461bcd60e51b8152600401610c009061425b565b60198111156110a25760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c00565b601055565b600960205260009081526040902080546110c09061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546110ec9061419a565b80156111395780601f1061110e57610100808354040283529160200191611139565b820191906000526020600020905b81548152906001019060200180831161111c57829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c6963207472616e736665722066756e6374696f6e7360448201526f08185c99481b9bdd08185b1b1bddd95960821b6064820152608401610c00565b6000828152600760205260409020600c01548290610100900460ff16156111db5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061121157506000818152600860205260409020546001600160a01b031633145b61122d5760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600490920191860190613a98565b6014546001600160a01b0316331461127c5760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601560205260409020805460ff19169055565b60008181526007602052604090206005018054606091906112bd9061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546112e99061419a565b80156113365780601f1061130b57610100808354040283529160200191611336565b820191906000526020600020905b81548152906001019060200180831161131957829003601f168201915b50505050509050919050565b60008281526008602052604090205482906001600160a01b0316331461137a5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600390920191850190613a98565b50505050565b60008281526008602052604090205482906001600160a01b031633146113dd5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600590920191850190613a98565b6000828152600760205260409020600c01548290610100900460ff161561143b5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061147157506000818152600860205260409020546001600160a01b031633145b61148d5760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600b90920191860190613a98565b6060600060606000806007600087815260200190815260200160002060080180546114dc9061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546115089061419a565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b5050506000898152600760205260409020600a810154600b9091018054949950909750926115859250905061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546115b19061419a565b80156115fe5780601f106115d3576101008083540402835291602001916115fe565b820191906000526020600020905b8154815290600101906020018083116115e157829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b031680610b005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c00565b33600090815260156020526040902054829060ff16806116e157506000818152600860205260409020546001600160a01b031633145b6116fd5760405162461bcd60e51b8152600401610c00906141f9565b5060009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b031633146117565760405162461bcd60e51b8152600401610c009061425b565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526015602052604090205460ff166117a75760405162461bcd60e51b8152600401610c00906142a4565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c00565b506001600160a01b031660009081526003602052604090205490565b60185460195460405163023aa9ab60e61b815260009283926001600160a01b0390911691638eaa6ac09161188a9160040190815260200190565b60206040518083038186803b1580156118a257600080fd5b505afa1580156118b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118da91906142ce565b90506001600160a01b0381166119435760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420757365207a65726f2061646472657373206173207369676e206044820152673b32b934b334b2b960c11b6064820152608401610c00565b919050565b60008281526008602052604090205482906001600160a01b031633146119805760405162461bcd60e51b8152600401610c009061427f565b6000838152600760205260409020600c0154610100900460ff1615806119b757506000838152600760208190526040909120015482105b6119d35760405162461bcd60e51b8152600401610c00906141cf565b6000838152600760205260409020600601548211611a595760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c00565b620f4240821115611aa45760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c00565b50600091825260076020819052604090922090910155565b6014546001600160a01b03163314611ae65760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff16611b365760405162461bcd60e51b8152600401610c00906142a4565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b038816179055600782529091208551611b7892870190613a98565b50604080518082018252600381526208aa8960eb1b602080830191825260008581526009909152929092209051611baf9290613a98565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f4240910155601754611bf5906001614243565b60175550505050565b3360009081526015602052604090205460ff16611c2d5760405162461bcd60e51b8152600401610c00906142a4565b6000818152600760205260409020600c01548190610100900460ff1615611c665760405162461bcd60e51b8152600401610c00906141cf565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611cb15760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611d4b9061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d779061419a565b8015611dc45780601f10611d9957610100808354040283529160200191611dc4565b820191906000526020600020905b815481529060010190602001808311611da757829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611e239061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4f9061419a565b8015611e9c5780601f10611e7157610100808354040283529160200191611e9c565b820191906000526020600020905b815481529060010190602001808311611e7f57829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611ed29061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611efe9061419a565b8015611f4b5780601f10611f2057610100808354040283529160200191611f4b565b820191906000526020600020905b815481529060010190602001808311611f2e57829003601f168201915b5050506000898152600760205260409020600101805493985092611f719250905061419a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9d9061419a565b8015611fea5780601f10611fbf57610100808354040283529160200191611fea565b820191906000526020600020905b815481529060010190602001808311611fcd57829003601f168201915b50505060008981526007602052604090206002018054939750926120109250905061419a565b80601f016020809104026020016040519081016040528092919081815260200182805461203c9061419a565b80156120895780601f1061205e57610100808354040283529160200191612089565b820191906000526020600020905b81548152906001019060200180831161206c57829003601f168201915b50505060008981526007602052604090206003018054939650926120af9250905061419a565b80601f01602080910402602001604051908101604052809291908181526020018280546120db9061419a565b80156121285780601f106120fd57610100808354040283529160200191612128565b820191906000526020600020905b81548152906001019060200180831161210b57829003601f168201915b505050600089815260076020526040902060040180549395509261214e9250905061419a565b80601f016020809104026020016040519081016040528092919081815260200182805461217a9061419a565b80156121c75780601f1061219c576101008083540402835291602001916121c7565b820191906000526020600020905b8154815290600101906020018083116121aa57829003601f168201915b5050505050905091939590929450565b606060018054610b159061419a565b60008281526008602052604090205482906001600160a01b0316331461221e5760405162461bcd60e51b8152600401610c009061427f565b506000918252600b602052604090912055565b60008181526008602052604090205481906001600160a01b031633146122695760405162461bcd60e51b8152600401610c009061427f565b506000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b6122a3338383613151565b5050565b60008281526008602052604090205482906001600160a01b031633146122df5760405162461bcd60e51b8152600401610c009061427f565b6000838152600760209081526040909120835161139f92600290920191850190613a98565b6000612366612314858585612492565b6040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050612370611850565b6001600160a01b0316612383828761321c565b6001600160a01b0316146123e95760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610c00565b8343106124265760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610c00565b600061243183611634565b90506001600160a01b03811661244657600080fd5b6001600160a01b0384166000908152601a6020526040812080549161246a836142eb565b919050555061248a81858560405180602001604052806000815250613240565b505050505050565b6001600160a01b0382166000908152601a602090815260408083205481519283018790526001600160601b0319606087811b821693850193909352605484018690523090921b9091166074830152608882015260a8016040516020818303038152906040528051906020012090509392505050565b6000828152600760205260409020600c01548290610100900460ff16156125405760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061257657506000818152600860205260409020546001600160a01b031633145b6125925760405162461bcd60e51b8152600401610c00906141f9565b6000848152600760209081526040808320600a8101548452600901825290912084516125c092860190613a98565b506000848152600760205260409020600a01546125de906001614243565b600094855260076020526040909420600a0193909355505050565b6000838152600760205260409020600c01548390610100900460ff16156126325760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054849060ff168061266857506000818152600860205260409020546001600160a01b031633145b6126845760405162461bcd60e51b8152600401610c00906141f9565b6000858152600760205260409020600a015484106126dc5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c00565b60008581526007602090815260408083208784526009018252909120845161248a92860190613a98565b6000828152600760205260409020600c01548290610100900460ff161561273f5760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff168061277557506000818152600860205260409020546001600160a01b031633145b6127915760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600190920191860190613a98565b6014546001600160a01b031633146127e05760405162461bcd60e51b8152600401610c009061425b565b6001600160a01b03811661284f5760405162461bcd60e51b815260206004820152603060248201527f5f7369676e566572696669657252656769737472792063616e6e6f742062652060448201526f746865207a65726f206164647265737360801b6064820152608401610c00565b6040516301ffc9a760e01b8152631668c2a960e01b60048201526001600160a01b038216906301ffc9a79060240160206040518083038186803b15801561289557600080fd5b505afa1580156128a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cd9190614306565b61293f5760405162461bcd60e51b815260206004820152603e60248201527f5f7369676e5665726966696572526567697374727920646f6573206e6f74206960448201527f6d706c656d656e7420495369676e5665726966696572526567697374727900006064820152608401610c00565b601880546001600160a01b038381166001600160a01b03198316811790935560405191169182917f78f83104cd73ca1470706a4dfb0ab769a5bdb4217a200d14602e02cc9925cd3d90600090a35050565b60008281526008602052604090205482906001600160a01b031633146129c85760405162461bcd60e51b8152600401610c009061427f565b60648211156129e95760405162461bcd60e51b8152600401610c0090614323565b506000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff1615612a355760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054839060ff1680612a6b57506000818152600860205260409020546001600160a01b031633145b612a875760405162461bcd60e51b8152600401610c00906141f9565b60008481526007602090815260409091208451610de092600890920191860190613a98565b606081612ab881612f27565b612afe5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610c00565b600083815260116020908152604080832054835260079091529020600501612b2584613273565b604051602001612b36929190614364565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff16612b7d5760405162461bcd60e51b8152600401610c00906142a4565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b60008381526008602052604090205483906001600160a01b03163314612bd85760405162461bcd60e51b8152600401610c009061427f565b60008481526009602090815260409091208451612bf792860190613a98565b50506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff1615612c625760405162461bcd60e51b8152600401610c00906141cf565b33600090815260156020526040902054829060ff1680612c9857506000818152600860205260409020546001600160a01b031633145b612cb45760405162461bcd60e51b8152600401610c00906141f9565b6000838152600760205260409020600a0154612d125760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c00565b6000838152600760205260408120600a81015460099091019190612d3890600190614402565b81526020019081526020016000206000612d529190613b1c565b6000838152600760205260409020600a0154612d7090600190614402565b600093845260076020526040909320600a01929092555050565b60008381526008602052604090205483906001600160a01b03163314612dc25760405162461bcd60e51b8152600401610c009061427f565b6064821115612de35760405162461bcd60e51b8152600401610c0090614323565b506000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b03163314612e475760405162461bcd60e51b8152600401610c009061425b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b03163314612e935760405162461bcd60e51b8152600401610c009061425b565b80612eee5760405162461bcd60e51b815260206004820152602560248201527f5f7369676e566572696669657249642063616e6e6f7420626520746865207a656044820152641c9bc8125160da1b6064820152608401610c00565b6019805490829055604051819083907f2d87eba9dd392fcda14b366f76541b6c3af5d0706caa646d48217129c5f16b8590600090a35050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f7982611634565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600760205260408120600601548190612fd3620f424085614419565b612fdd9190614243565b600084815260076020526040902060060154909150612ffd906001614243565b6000848152600760205260408120600601829055904361301e600182614402565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561306d57600080fd5b505afa158015613081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a59190614438565b6040805160208101959095528401929092526060830152608082015260a00160408051601f1981840301815291815281516020928301206000858152601284528281208290558181526013909352912083905590506131048583613378565b60008281526011602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b816001600160a01b0316836001600160a01b031614156131af5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c00565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080600061322b85856134aa565b915091506132388161351a565b509392505050565b61324b8484846136d3565b6132578484848461386f565b61139f5760405162461bcd60e51b8152600401610c0090614451565b6060816132975750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132c157806132ab816142eb565b91506132ba9050600a836144b9565b915061329b565b6000816001600160401b038111156132db576132db613c66565b6040519080825280601f01601f191660200182016040528015613305576020820181803683370190505b5090505b84156133705761331a600183614402565b9150613327600a866144cd565b613332906030614243565b60f81b818381518110613347576133476144e1565b60200101906001600160f81b031916908160001a905350613369600a866144b9565b9450613309565b949350505050565b6001600160a01b0382166133ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c00565b6133d781612f27565b156134235760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c00565b6001600160a01b038216600090815260036020526040812080546001929061344c908490614243565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604114156134e15760208301516040840151606085015160001a6134d58782858561397c565b94509450505050613513565b82516040141561350b5760208301516040840151613500868383613a5f565b935093505050613513565b506000905060025b9250929050565b600081600481111561352e5761352e6144f7565b14156135375750565b600181600481111561354b5761354b6144f7565b14156135945760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610c00565b60028160048111156135a8576135a86144f7565b14156135f65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c00565b600381600481111561360a5761360a6144f7565b14156136635760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c00565b6004816004811115613677576136776144f7565b14156136d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c00565b50565b826001600160a01b03166136e682611634565b6001600160a01b03161461374a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c00565b6001600160a01b0382166137ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c00565b6137b7600082612f44565b6001600160a01b03831660009081526003602052604081208054600192906137e0908490614402565b90915550506001600160a01b038216600090815260036020526040812080546001929061380e908490614243565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561397157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138b390339089908890889060040161450d565b602060405180830381600087803b1580156138cd57600080fd5b505af19250505080156138fd575060408051601f3d908101601f191682019092526138fa9181019061454a565b60015b613957573d80801561392b576040519150601f19603f3d011682016040523d82523d6000602084013e613930565b606091505b50805161394f5760405162461bcd60e51b8152600401610c0090614451565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613370565b506001949350505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156139a95750600090506003613a56565b8460ff16601b141580156139c157508460ff16601c14155b156139d25750600090506004613a56565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a26573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a4f57600060019250925050613a56565b9150600090505b94509492505050565b6000806001600160ff1b03831681613a7c60ff86901c601b614243565b9050613a8a8782888561397c565b935093505050935093915050565b828054613aa49061419a565b90600052602060002090601f016020900481019282613ac65760008555613b0c565b82601f10613adf57805160ff1916838001178555613b0c565b82800160010185558215613b0c579182015b82811115613b0c578251825591602001919060010190613af1565b50613b18929150613b52565b5090565b508054613b289061419a565b6000825580601f10613b38575050565b601f0160209004906000526020600020908101906136d091905b5b80821115613b185760008155600101613b53565b6001600160e01b0319811681146136d057600080fd5b600060208284031215613b8f57600080fd5b8135613b9a81613b67565b9392505050565b60005b83811015613bbc578181015183820152602001613ba4565b8381111561139f5750506000910152565b60008151808452613be5816020860160208601613ba1565b601f01601f19169290920160200192915050565b602081526000613b9a6020830184613bcd565b600060208284031215613c1e57600080fd5b5035919050565b6001600160a01b03811681146136d057600080fd5b60008060408385031215613c4d57600080fd5b8235613c5881613c25565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613c8d57600080fd5b81356001600160401b0380821115613ca757613ca7613c66565b604051601f8301601f19908116603f01168101908282118183101715613ccf57613ccf613c66565b81604052838152866020858801011115613ce857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215613d1b57600080fd5b8235915060208301356001600160401b03811115613d3857600080fd5b613d4485828601613c7c565b9150509250929050565b600080600060608486031215613d6357600080fd5b8335613d6e81613c25565b9250602084013591506040840135613d8581613c25565b809150509250925092565b600060208284031215613da257600080fd5b8135613b9a81613c25565b600080600060608486031215613dc257600080fd5b8335613dcd81613c25565b92506020840135613ddd81613c25565b929592945050506040919091013590565b60a081526000613e0160a0830188613bcd565b8660208401528281036040840152613e198187613bcd565b941515606084015250509015156080909101529392505050565b60008060408385031215613e4657600080fd5b823591506020830135613e5881613c25565b809150509250929050565b60008060408385031215613e7657600080fd5b50508035926020909101359150565b600080600060608486031215613e9a57600080fd5b83356001600160401b03811115613eb057600080fd5b613ebc86828701613c7c565b9350506020840135613ddd81613c25565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613f1882850187613bcd565b925080851661010085015250509a9950505050505050505050565b60a081526000613f4660a0830188613bcd565b8281036020840152613f588188613bcd565b90508281036040840152613f6c8187613bcd565b90508281036060840152613f808186613bcd565b90508281036080840152613f948185613bcd565b98975050505050505050565b80151581146136d057600080fd5b60008060408385031215613fc157600080fd5b8235613fcc81613c25565b91506020830135613e5881613fa0565b60008060008060808587031215613ff257600080fd5b84356001600160401b0381111561400857600080fd5b61401487828801613c7c565b94505060208501359250604085013561402c81613c25565b9396929550929360600135925050565b60008060006060848603121561405157600080fd5b833592506020840135613ddd81613c25565b60008060006060848603121561407857600080fd5b833592506020840135915060408401356001600160401b0381111561409c57600080fd5b6140a886828701613c7c565b9150509250925092565b600080600080608085870312156140c857600080fd5b84356140d381613c25565b935060208501356140e381613c25565b92506040850135915060608501356001600160401b0381111561410557600080fd5b61411187828801613c7c565b91505092959194509250565b60008060006060848603121561413257600080fd5b8335925060208401356001600160401b0381111561414f57600080fd5b61415b86828701613c7c565b9250506040840135613d8581613c25565b6000806040838503121561417f57600080fd5b823561418a81613c25565b91506020830135613e5881613c25565b600181811c908216806141ae57607f821691505b60208210811415612b4857634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156142565761425661422d565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6000602082840312156142e057600080fd5b8151613b9a81613c25565b60006000198214156142ff576142ff61422d565b5060010190565b60006020828403121561431857600080fd5b8151613b9a81613fa0565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b6000815161435a818560208601613ba1565b9290920192915050565b600080845481600182811c91508083168061438057607f831692505b60208084108214156143a057634e487b7160e01b86526022600452602486fd5b8180156143b457600181146143c5576143f2565b60ff198616895284890196506143f2565b60008b81526020902060005b868110156143ea5781548b8201529085019083016143d1565b505084890196505b505050505050610fe38185614348565b6000828210156144145761441461422d565b500390565b60008160001904831182151516156144335761443361422d565b500290565b60006020828403121561444a57600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826144c8576144c86144a3565b500490565b6000826144dc576144dc6144a3565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061454090830184613bcd565b9695505050505050565b60006020828403121561455c57600080fd5b8151613b9a81613b6756fea26469706673582212201b0912f4515ee6de5abf294b5ef9009c19f740ab86576efd3486f0d242d7109b64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000088098f7438773182b703625c4128aff85fcffc400000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a5aa1f0b5919f56c7a232cf2b29a4d6e1326ebe5c3aa0253576d2e18982cdb774a9fca10613a65d4bd8d2477670b8461bd1431e000000000000000000000000000000000000000000000000000000000000000c495445524154494f4e2d30320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000549542d3032000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): ITERATION-02
Arg [1] : _tokenSymbol (string): IT-02
Arg [2] : _randomizerContract (address): 0x088098F7438773182b703625C4128aFf85fcFfC4
Arg [3] : _startingProjectId (uint256): 0
Arg [4] : _signVerifierRegistry (address): 0x3A5aa1f0b5919F56c7A232Cf2B29a4D6e1326eBe
Arg [5] : _signVerifierId (bytes32): 0x5c3aa0253576d2e18982cdb774a9fca10613a65d4bd8d2477670b8461bd1431e
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000088098f7438773182b703625c4128aff85fcffc4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000003a5aa1f0b5919f56c7a232cf2b29a4d6e1326ebe
Arg [5] : 5c3aa0253576d2e18982cdb774a9fca10613a65d4bd8d2477670b8461bd1431e
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 495445524154494f4e2d30320000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 49542d3032000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.