Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
14 ABJ
Holders
6
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:
CollectionProxy
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "./IERC1538.sol"; import "./ProxyBaseStorage.sol"; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import './CollectionStorage.sol'; import './Ownable.sol'; /////////////////////////////////////////////////////////////////////////////////////////////////// /** * @title ProxyReceiver Contract * @dev Handles forwarding calls to receiver delegates while offering transparency of updates. * Follows ERC-1538 standard. * * NOTE: Not recommended for direct use in a production contract, as no security control. * Provided as simple example only. */ /////////////////////////////////////////////////////////////////////////////////////////////////// contract CollectionProxy is ProxyBaseStorage, IERC1538, ERC721Enumerable, Ownable, CollectionStorage { using Strings for uint256; constructor()ERC721("Astroboy x Japan : Normal", "ABJ") public { proxy = address(this); _allowAddress[msg.sender] = true; _allowAddress[0x622A7D2d30F0F6bc1535355186BEB9fF1cf931B5] = true; baseURI = "https://testapi.xanalia.com/xanalia/get-nft-meta?tokenId="; dex = IDEX(0x622A7D2d30F0F6bc1535355186BEB9fF1cf931B5); maxLaunchPadSupply = 200; authorAddress = msg.sender; royalty = 25; //Adding ERC1538 updateContract function bytes memory signature = "updateContract(address,string,string)"; bytes4 funcId = bytes4(keccak256(signature)); delegates[funcId] = proxy; funcSignatures.push(signature); funcSignatureToIndex[signature] = funcSignatures.length; emit FunctionUpdate(funcId, address(0), proxy, string(signature)); emit CommitMessage("Added ERC1538 updateContract function at contract creation"); } /////////////////////////////////////////////////////////////////////////////////////////////// fallback() external payable { if (msg.sig == bytes4(0) && msg.value != uint(0)) { // skipping ethers/BNB received to delegate return; } address delegate = delegates[msg.sig]; require(delegate != address(0), "Function does not exist."); assembly { let ptr := mload(0x40) calldatacopy(ptr, 0, calldatasize()) let result := delegatecall(gas(), delegate, ptr, calldatasize(), 0, 0) let size := returndatasize() returndatacopy(ptr, 0, size) switch result case 0 {revert(ptr, size)} default {return (ptr, size)} } } /////////////////////////////////////////////////////////////////////////////////////////////// /// @notice Updates functions in a transparent contract. /// @dev If the value of _delegate is zero then the functions specified /// in _functionSignatures are removed. /// If the value of _delegate is a delegate contract address then the functions /// specified in _functionSignatures will be delegated to that address. /// @param _delegate The address of a delegate contract to delegate to or zero /// @param _functionSignatures A list of function signatures listed one after the other /// @param _commitMessage A short description of the change and why it is made /// This message is passed to the CommitMessage event. function updateContract(address _delegate, string calldata _functionSignatures, string calldata _commitMessage) override onlyOwner external { // pos is first used to check the size of the delegate contract. // After that pos is the current memory location of _functionSignatures. // It is used to move through the characters of _functionSignatures uint256 pos; if(_delegate != address(0)) { assembly { pos := extcodesize(_delegate) } require(pos > 0, "_delegate address is not a contract and is not address(0)"); } // creates a bytes version of _functionSignatures bytes memory signatures = bytes(_functionSignatures); // stores the position in memory where _functionSignatures ends. uint256 signaturesEnd; // stores the starting position of a function signature in _functionSignatures uint256 start; assembly { pos := add(signatures,32) start := pos signaturesEnd := add(pos,mload(signatures)) } // the function id of the current function signature bytes4 funcId; // the delegate address that is being replaced or address(0) if removing functions address oldDelegate; // the length of the current function signature in _functionSignatures uint256 num; // the current character in _functionSignatures uint256 char; // the position of the current function signature in the funcSignatures array uint256 index; // the last position in the funcSignatures array uint256 lastIndex; // parse the _functionSignatures string and handle each function for (; pos < signaturesEnd; pos++) { assembly {char := byte(0,mload(pos))} // 0x29 == ) if (char == 0x29) { pos++; num = (pos - start); start = pos; assembly { mstore(signatures,num) } funcId = bytes4(keccak256(signatures)); oldDelegate = delegates[funcId]; if(_delegate == address(0)) { index = funcSignatureToIndex[signatures]; require(index != 0, "Function does not exist."); index--; lastIndex = funcSignatures.length - 1; if (index != lastIndex) { funcSignatures[index] = funcSignatures[lastIndex]; funcSignatureToIndex[funcSignatures[lastIndex]] = index + 1; } funcSignatures.pop(); delete funcSignatureToIndex[signatures]; delete delegates[funcId]; emit FunctionUpdate(funcId, oldDelegate, address(0), string(signatures)); } else if (funcSignatureToIndex[signatures] == 0) { require(oldDelegate == address(0), "FuncId clash."); delegates[funcId] = _delegate; funcSignatures.push(signatures); funcSignatureToIndex[signatures] = funcSignatures.length; emit FunctionUpdate(funcId, address(0), _delegate, string(signatures)); } else if (delegates[funcId] != _delegate) { delegates[funcId] = _delegate; emit FunctionUpdate(funcId, oldDelegate, _delegate, string(signatures)); } assembly {signatures := add(signatures,num)} } } emit CommitMessage(_commitMessage); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @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())) : ""; } /////////////////////////////////////////////////////////////////////////////////////////////// } ///////////////////////////////////////////////////////////////////////////////////////////////////
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.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 {} }
pragma solidity ^0.8.0; /////////////////////////////////////////////////////////////////////////////////////////////////// /** * @title ProxyBaseStorage * @dev Defining base storage for the proxy contract. */ /////////////////////////////////////////////////////////////////////////////////////////////////// contract ProxyBaseStorage { //////////////////////////////////////////// VARS ///////////////////////////////////////////// // maps functions to the delegate contracts that execute the functions. // funcId => delegate contract mapping(bytes4 => address) public delegates; // array of function signatures supported by the contract. bytes[] public funcSignatures; // maps each function signature to its position in the funcSignatures array. // signature => index+1 mapping(bytes => uint256) internal funcSignatureToIndex; // proxy address of itself, can be used for cross-delegate calls but also safety checking. address proxy; /////////////////////////////////////////////////////////////////////////////////////////////// }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) internal { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
pragma solidity ^0.8.0; /// @title ERC1538 Transparent Contract Standard /// @dev Required interface /// Note: the ERC-165 identifier for this interface is 0x61455567 interface IERC1538 { /// @dev This emits when one or a set of functions are updated in a transparent contract. /// The message string should give a short description of the change and why /// the change was made. event CommitMessage(string message); /// @dev This emits for each function that is updated in a transparent contract. /// functionId is the bytes4 of the keccak256 of the function signature. /// oldDelegate is the delegate contract address of the old delegate contract if /// the function is being replaced or removed. /// oldDelegate is the zero value address(0) if a function is being added for the /// first time. /// newDelegate is the delegate contract address of the new delegate contract if /// the function is being added for the first time or if the function is being /// replaced. /// newDelegate is the zero value address(0) if the function is being removed. event FunctionUpdate(bytes4 indexed functionId, address indexed oldDelegate, address indexed newDelegate, string functionSignature); /// @notice Updates functions in a transparent contract. /// @dev If the value of _delegate is zero then the functions specified /// in _functionSignatures are removed. /// If the value of _delegate is a delegate contract address then the functions /// specified in _functionSignatures will be delegated to that address. /// @param _delegate The address of a delegate contract to delegate to or zero /// to remove functions. /// @param _functionSignatures A list of function signatures listed one after the other /// @param _commitMessage A short description of the change and why it is made /// This message is passed to the CommitMessage event. function updateContract(address _delegate, string calldata _functionSignatures, string calldata _commitMessage) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IDEX { function addBlindBoxData(address collection, address to, uint256 tokenId, uint256 royalty, address from) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import '@openzeppelin/contracts/utils/Counters.sol'; import "./IDEX.sol"; /** > Collection @notice this contract is standard ERC721 to used as xanalia user's collection managing his NFTs */ contract CollectionStorage { using Counters for Counters.Counter; Counters.Counter tokenIds; string public baseURI; mapping(address => bool) _allowAddress; Counters.Counter launchpadBox; address public launchPadAddress;//required only for proxy uint256 maxLaunchPadSupply; Counters.Counter launchPadSupply; address authorAddress; uint256 royalty; IDEX dex; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":false,"internalType":"string","name":"message","type":"string"}],"name":"CommitMessage","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"functionId","type":"bytes4"},{"indexed":true,"internalType":"address","name":"oldDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"newDelegate","type":"address"},{"indexed":false,"internalType":"string","name":"functionSignature","type":"string"}],"name":"FunctionUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"funcSignatures","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchPadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"},{"internalType":"string","name":"_functionSignatures","type":"string"},{"internalType":"string","name":"_commitMessage","type":"string"}],"name":"updateContract","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601981527f417374726f626f792078204a6170616e203a204e6f726d616c0000000000000060208083019182528351808501909452600384526220a12560e91b90840152815191929162000072916004916200033a565b508051620000889060059060208401906200033a565b505050620000a56200009f620002e460201b60201c565b620002e8565b600380546001600160a01b03191630179055336000908152601160209081526040808320805460ff19908116600190811790925573622a7d2d30f0f6bc1535355186beb9ff1cf931b59094527fa3e7ddb6c79006768f324546a0d96bc7963eb4b7d3e54e26fc477e6481d4c31b80549094161790925581516060810190925260398083529062002af990830139805162000148916010916020909101906200033a565b50601880546001600160a01b031990811673622a7d2d30f0f6bc1535355186beb9ff1cf931b51790915560c860145560168054909116331790556019601755604080516060810190915260258082526000919062002b326020830139805160208083019182206003546001600160e01b031982166000908152928390526040832080546001600160a01b0319166001600160a01b03909216919091179055600180548082018255925283519394509262000228927fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920191906200033a565b506001546040516002906200023f908590620003e0565b908152604051908190036020018120919091556003546001600160a01b0316906000906001600160e01b03198416907f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f5353906200029d908790620003fe565b60405180910390a47faa1c0a0a78cec2470f9652e5d29540752e7a64d70f926933cebf13afaeda45de604051620002d49062000433565b60405180910390a1505062000500565b3390565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200034890620004c3565b90600052602060002090601f0160209004810192826200036c5760008555620003b7565b82601f106200038757805160ff1916838001178555620003b7565b82800160010185558215620003b7579182015b82811115620003b75782518255916020019190600101906200039a565b50620003c5929150620003c9565b5090565b5b80821115620003c55760008155600101620003ca565b60008251620003f481846020870162000490565b9190910192915050565b60006020825282518060208401526200041f81604085016020870162000490565b601f01601f19169190910160400192915050565b6020808252603a908201527f4164646564204552433135333820757064617465436f6e74726163742066756e60408201527f6374696f6e20617420636f6e7472616374206372656174696f6e000000000000606082015260800190565b60005b83811015620004ad57818101518382015260200162000493565b83811115620004bd576000848401525b50505050565b600281046001821680620004d857607f821691505b60208210811415620004fa57634e487b7160e01b600052602260045260246000fd5b50919050565b6125e980620005106000396000f3fe60806040526004361061014b5760003560e01c80636352211e116100b6578063a0a2daf01161006f578063a0a2daf01461040e578063a22cb4651461042e578063b88d4fde1461044e578063c87b56dd1461046e578063e985e9c51461048e578063f2fde38b146104ae5761014b565b80636352211e1461037a5780636c0360eb1461039a57806370a08231146103af578063715018a6146103cf5780638da5cb5b146103e457806395d89b41146103f95761014b565b806323b872dd1161010857806323b872dd146102ba57806326a6860a146102da5780632f745c59146102fa57806342842e0e1461031a5780634f6ccce71461033a578063614555671461035a5761014b565b806301ffc9a7146101de57806306fdde0314610214578063081812fc14610236578063095ea7b31461026357806318160ddd146102835780631c46acf6146102a5575b6000356001600160e01b03191615801561016457503415155b1561016e576101dc565b600080356001600160e01b0319168152602081905260409020546001600160a01b0316806101b75760405162461bcd60e51b81526004016101ae90611f0a565b60405180910390fd5b60405136600082376000803683855af43d806000843e8180156101d8578184f35b8184fd5b005b3480156101ea57600080fd5b506101fe6101f9366004611d0a565b6104ce565b60405161020b9190611ebd565b60405180910390f35b34801561022057600080fd5b506102296104fb565b60405161020b9190611ec8565b34801561024257600080fd5b50610256610251366004611d42565b61058d565b60405161020b9190611e6c565b34801561026f57600080fd5b506101dc61027e366004611ce1565b6105d0565b34801561028f57600080fd5b50610298610668565b60405161020b9190612456565b3480156102b157600080fd5b5061025661066e565b3480156102c657600080fd5b506101dc6102d5366004611b19565b61067d565b3480156102e657600080fd5b506102296102f5366004611d42565b6106b5565b34801561030657600080fd5b50610298610315366004611ce1565b610761565b34801561032657600080fd5b506101dc610335366004611b19565b6107b3565b34801561034657600080fd5b50610298610355366004611d42565b6107ce565b34801561036657600080fd5b506101dc610375366004611c63565b610829565b34801561038657600080fd5b50610256610395366004611d42565b610df5565b3480156103a657600080fd5b50610229610e2a565b3480156103bb57600080fd5b506102986103ca366004611acd565b610e37565b3480156103db57600080fd5b506101dc610e7b565b3480156103f057600080fd5b50610256610ec6565b34801561040557600080fd5b50610229610ed5565b34801561041a57600080fd5b50610256610429366004611d0a565b610ee4565b34801561043a57600080fd5b506101dc610449366004611c29565b610eff565b34801561045a57600080fd5b506101dc610469366004611b54565b610fcd565b34801561047a57600080fd5b50610229610489366004611d42565b61100c565b34801561049a57600080fd5b506101fe6104a9366004611ae7565b61108f565b3480156104ba57600080fd5b506101dc6104c9366004611acd565b6110bd565b60006001600160e01b0319821663780e9d6360e01b14806104f357506104f38261112e565b90505b919050565b60606004805461050a906124f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610536906124f1565b80156105835780601f1061055857610100808354040283529160200191610583565b820191906000526020600020905b81548152906001019060200180831161056657829003601f168201915b5050505050905090565b60006105988261116e565b6105b45760405162461bcd60e51b81526004016101ae9061225f565b506000908152600860205260409020546001600160a01b031690565b60006105db82610df5565b9050806001600160a01b0316836001600160a01b0316141561060f5760405162461bcd60e51b81526004016101ae90612378565b806001600160a01b031661062161118b565b6001600160a01b0316148061063d575061063d816104a961118b565b6106595760405162461bcd60e51b81526004016101ae90612112565b610663838361118f565b505050565b600c5490565b6013546001600160a01b031681565b61068e61068861118b565b826111fd565b6106aa5760405162461bcd60e51b81526004016101ae906123b9565b610663838383611282565b600181815481106106c557600080fd5b9060005260206000200160009150905080546106e0906124f1565b80601f016020809104026020016040519081016040528092919081815260200182805461070c906124f1565b80156107595780601f1061072e57610100808354040283529160200191610759565b820191906000526020600020905b81548152906001019060200180831161073c57829003601f168201915b505050505081565b600061076c83610e37565b821061078a5760405162461bcd60e51b81526004016101ae90611f41565b506001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b61066383838360405180602001604052806000815250610fcd565b60006107d8610668565b82106107f65760405162461bcd60e51b81526004016101ae9061240a565b600c828154811061081757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61083161118b565b6001600160a01b0316610842610ec6565b6001600160a01b0316146108685760405162461bcd60e51b81526004016101ae906122ab565b60006001600160a01b038616156108995750843b806108995760405162461bcd60e51b81526004016101ae9061216f565b600085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451602080870198509596508601909401938693509150819050808080805b878a1015610dab57895160001a92508260291415610d99578961090e8161252c565b9a5061091c9050878b612497565b808a526020808b018290206001600160e01b031981166000908152918290526040909120548c99509097506001600160a01b0390811696509094508f16610b565760028960405161096d9190611d86565b9081526020016040518091039020549150816000141561099f5760405162461bcd60e51b81526004016101ae90611f0a565b816109a9816124da565b600180549194506109bb925090612497565b9050808214610a8857600181815481106109e557634e487b7160e01b600052603260045260246000fd5b9060005260206000200160018381548110610a1057634e487b7160e01b600052603260045260246000fd5b90600052602060002001908054610a26906124f1565b610a3192919061191f565b50610a3d82600161246b565b600260018381548110610a6057634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051610a779190611da2565b908152604051908190036020019020555b6001805480610aa757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000610ac391906119aa565b9055600289604051610ad59190611d86565b90815260408051602092819003830181206000908190556001600160e01b03198a168082529381905291822080546001600160a01b031916905590916001600160a01b038816917f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f535390610b49908e90611ec8565b60405180910390a4610d94565b600289604051610b669190611d86565b90815260200160405180910390205460001415610ca0576001600160a01b03851615610ba45760405162461bcd60e51b81526004016101ae9061209f565b8e600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600189908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190610c2a9291906119e6565b50600154604051600290610c3f908c90611d86565b9081526020016040518091039020819055508e6001600160a01b031660006001600160a01b0316876001600160e01b0319167f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f53538c604051610b499190611ec8565b8e6001600160a01b0316600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031614610d94578e600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508e6001600160a01b0316856001600160a01b0316876001600160e01b0319167f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f53538c604051610d8b9190611ec8565b60405180910390a45b978301975b89610da38161252c565b9a50506108ec565b7faa1c0a0a78cec2470f9652e5d29540752e7a64d70f926933cebf13afaeda45de8c8c604051610ddc929190611edb565b60405180910390a1505050505050505050505050505050565b6000818152600660205260408120546001600160a01b0316806104f35760405162461bcd60e51b81526004016101ae90612216565b601080546106e0906124f1565b60006001600160a01b038216610e5f5760405162461bcd60e51b81526004016101ae906121cc565b506001600160a01b031660009081526007602052604090205490565b610e8361118b565b6001600160a01b0316610e94610ec6565b6001600160a01b031614610eba5760405162461bcd60e51b81526004016101ae906122ab565b610ec460006113af565b565b600e546001600160a01b031690565b60606005805461050a906124f1565b6000602081905290815260409020546001600160a01b031681565b610f0761118b565b6001600160a01b0316826001600160a01b03161415610f385760405162461bcd60e51b81526004016101ae90612068565b8060096000610f4561118b565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f8961118b565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610fc19190611ebd565b60405180910390a35050565b610fde610fd861118b565b836111fd565b610ffa5760405162461bcd60e51b81526004016101ae906123b9565b61100684848484611401565b50505050565b60606110178261116e565b6110335760405162461bcd60e51b81526004016101ae90612329565b600061103d611434565b9050600081511161105d5760405180602001604052806000815250611088565b8061106784611443565b604051602001611078929190611e3d565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6110c561118b565b6001600160a01b03166110d6610ec6565b6001600160a01b0316146110fc5760405162461bcd60e51b81526004016101ae906122ab565b6001600160a01b0381166111225760405162461bcd60e51b81526004016101ae90611fde565b61112b816113af565b50565b60006001600160e01b031982166380ac58cd60e01b148061115f57506001600160e01b03198216635b5e139f60e01b145b806104f357506104f38261155e565b6000908152600660205260409020546001600160a01b0316151590565b3390565b600081815260086020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111c482610df5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112088261116e565b6112245760405162461bcd60e51b81526004016101ae906120c6565b600061122f83610df5565b9050806001600160a01b0316846001600160a01b0316148061126a5750836001600160a01b031661125f8461058d565b6001600160a01b0316145b8061127a575061127a818561108f565b949350505050565b826001600160a01b031661129582610df5565b6001600160a01b0316146112bb5760405162461bcd60e51b81526004016101ae906122e0565b6001600160a01b0382166112e15760405162461bcd60e51b81526004016101ae90612024565b6112ec838383611577565b6112f760008261118f565b6001600160a01b0383166000908152600760205260408120805460019290611320908490612497565b90915550506001600160a01b038216600090815260076020526040812080546001929061134e90849061246b565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61140c848484611282565b61141884848484611600565b6110065760405162461bcd60e51b81526004016101ae90611f8c565b60606010805461050a906124f1565b60608161146857506040805180820190915260018152600360fc1b60208201526104f6565b8160005b8115611492578061147c8161252c565b915061148b9050600a83612483565b915061146c565b60008167ffffffffffffffff8111156114bb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114e5576020820181803683370190505b5090505b841561127a576114fa600183612497565b9150611507600a86612547565b61151290603061246b565b60f81b81838151811061153557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611557600a86612483565b94506114e9565b6001600160e01b031981166301ffc9a760e01b14919050565b611582838383610663565b6001600160a01b03831661159e576115998161171b565b6115c1565b816001600160a01b0316836001600160a01b0316146115c1576115c1838261175f565b6001600160a01b0382166115dd576115d8816117fc565b610663565b826001600160a01b0316826001600160a01b0316146106635761066382826118d5565b6000611614846001600160a01b0316611919565b1561171057836001600160a01b031663150b7a0261163061118b565b8786866040518563ffffffff1660e01b81526004016116529493929190611e80565b602060405180830381600087803b15801561166c57600080fd5b505af192505050801561169c575060408051601f3d908101601f1916820190925261169991810190611d26565b60015b6116f6573d8080156116ca576040519150601f19603f3d011682016040523d82523d6000602084013e6116cf565b606091505b5080516116ee5760405162461bcd60e51b81526004016101ae90611f8c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061127a565b506001949350505050565b600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b6000600161176c84610e37565b6117769190612497565b6000838152600b60205260409020549091508082146117c9576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c5460009061180e90600190612497565b6000838152600d6020526040812054600c805493945090928490811061184457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600c838154811061187357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c8054806118b957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006118e083610e37565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b3b151590565b82805461192b906124f1565b90600052602060002090601f01602090048101928261194d576000855561199a565b82601f1061195e578054855561199a565b8280016001018555821561199a57600052602060002091601f016020900482015b8281111561199a57825482559160010191906001019061197f565b506119a6929150611a5a565b5090565b5080546119b6906124f1565b6000825580601f106119c8575061112b565b601f01602090049060005260206000209081019061112b9190611a5a565b8280546119f2906124f1565b90600052602060002090601f016020900481019282611a14576000855561199a565b82601f10611a2d57805160ff191683800117855561199a565b8280016001018555821561199a579182015b8281111561199a578251825591602001919060010190611a3f565b5b808211156119a65760008155600101611a5b565b80356001600160a01b03811681146104f657600080fd5b60008083601f840112611a97578182fd5b50813567ffffffffffffffff811115611aae578182fd5b602083019150836020828501011115611ac657600080fd5b9250929050565b600060208284031215611ade578081fd5b61108882611a6f565b60008060408385031215611af9578081fd5b611b0283611a6f565b9150611b1060208401611a6f565b90509250929050565b600080600060608486031215611b2d578081fd5b611b3684611a6f565b9250611b4460208501611a6f565b9150604084013590509250925092565b60008060008060808587031215611b69578081fd5b611b7285611a6f565b9350611b8060208601611a6f565b925060408501359150606085013567ffffffffffffffff80821115611ba3578283fd5b818701915087601f830112611bb6578283fd5b813581811115611bc857611bc8612587565b604051601f8201601f19908116603f01168101908382118183101715611bf057611bf0612587565b816040528281528a6020848701011115611c08578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611c3b578182fd5b611c4483611a6f565b915060208301358015158114611c58578182fd5b809150509250929050565b600080600080600060608688031215611c7a578081fd5b611c8386611a6f565b9450602086013567ffffffffffffffff80821115611c9f578283fd5b611cab89838a01611a86565b90965094506040880135915080821115611cc3578283fd5b50611cd088828901611a86565b969995985093965092949392505050565b60008060408385031215611cf3578182fd5b611cfc83611a6f565b946020939093013593505050565b600060208284031215611d1b578081fd5b81356110888161259d565b600060208284031215611d37578081fd5b81516110888161259d565b600060208284031215611d53578081fd5b5035919050565b60008151808452611d728160208601602086016124ae565b601f01601f19169290920160200192915050565b60008251611d988184602087016124ae565b9190910192915050565b8154600090819060028104600180831680611dbe57607f831692505b6020808410821415611dde57634e487b7160e01b87526022600452602487fd5b818015611df25760018114611e0357611e2f565b60ff19861689528489019650611e2f565b611e0c8a61245f565b885b86811015611e275781548b820152908501908301611e0e565b505084890196505b509498975050505050505050565b60008351611e4f8184602088016124ae565b835190830190611e638183602088016124ae565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611eb390830184611d5a565b9695505050505050565b901515815260200190565b6000602082526110886020830184611d5a565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b60208082526018908201527f46756e6374696f6e20646f6573206e6f742065786973742e0000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600d908201526c233ab731a4b21031b630b9b41760991b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526039908201527f5f64656c65676174652061646472657373206973206e6f74206120636f6e747260408201527f61637420616e64206973206e6f74206164647265737328302900000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b90815260200190565b60009081526020902090565b6000821982111561247e5761247e61255b565b500190565b60008261249257612492612571565b500490565b6000828210156124a9576124a961255b565b500390565b60005b838110156124c95781810151838201526020016124b1565b838111156110065750506000910152565b6000816124e9576124e961255b565b506000190190565b60028104600182168061250557607f821691505b6020821081141561252657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125405761254061255b565b5060010190565b60008261255657612556612571565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461112b57600080fdfea26469706673582212205cc8749dd0642dfc367e71dacc8fa2b862b1c39c19d1bc0d05b515504384eec764736f6c6343000801003368747470733a2f2f746573746170692e78616e616c69612e636f6d2f78616e616c69612f6765742d6e66742d6d6574613f746f6b656e49643d757064617465436f6e747261637428616464726573732c737472696e672c737472696e6729
Deployed Bytecode
0x60806040526004361061014b5760003560e01c80636352211e116100b6578063a0a2daf01161006f578063a0a2daf01461040e578063a22cb4651461042e578063b88d4fde1461044e578063c87b56dd1461046e578063e985e9c51461048e578063f2fde38b146104ae5761014b565b80636352211e1461037a5780636c0360eb1461039a57806370a08231146103af578063715018a6146103cf5780638da5cb5b146103e457806395d89b41146103f95761014b565b806323b872dd1161010857806323b872dd146102ba57806326a6860a146102da5780632f745c59146102fa57806342842e0e1461031a5780634f6ccce71461033a578063614555671461035a5761014b565b806301ffc9a7146101de57806306fdde0314610214578063081812fc14610236578063095ea7b31461026357806318160ddd146102835780631c46acf6146102a5575b6000356001600160e01b03191615801561016457503415155b1561016e576101dc565b600080356001600160e01b0319168152602081905260409020546001600160a01b0316806101b75760405162461bcd60e51b81526004016101ae90611f0a565b60405180910390fd5b60405136600082376000803683855af43d806000843e8180156101d8578184f35b8184fd5b005b3480156101ea57600080fd5b506101fe6101f9366004611d0a565b6104ce565b60405161020b9190611ebd565b60405180910390f35b34801561022057600080fd5b506102296104fb565b60405161020b9190611ec8565b34801561024257600080fd5b50610256610251366004611d42565b61058d565b60405161020b9190611e6c565b34801561026f57600080fd5b506101dc61027e366004611ce1565b6105d0565b34801561028f57600080fd5b50610298610668565b60405161020b9190612456565b3480156102b157600080fd5b5061025661066e565b3480156102c657600080fd5b506101dc6102d5366004611b19565b61067d565b3480156102e657600080fd5b506102296102f5366004611d42565b6106b5565b34801561030657600080fd5b50610298610315366004611ce1565b610761565b34801561032657600080fd5b506101dc610335366004611b19565b6107b3565b34801561034657600080fd5b50610298610355366004611d42565b6107ce565b34801561036657600080fd5b506101dc610375366004611c63565b610829565b34801561038657600080fd5b50610256610395366004611d42565b610df5565b3480156103a657600080fd5b50610229610e2a565b3480156103bb57600080fd5b506102986103ca366004611acd565b610e37565b3480156103db57600080fd5b506101dc610e7b565b3480156103f057600080fd5b50610256610ec6565b34801561040557600080fd5b50610229610ed5565b34801561041a57600080fd5b50610256610429366004611d0a565b610ee4565b34801561043a57600080fd5b506101dc610449366004611c29565b610eff565b34801561045a57600080fd5b506101dc610469366004611b54565b610fcd565b34801561047a57600080fd5b50610229610489366004611d42565b61100c565b34801561049a57600080fd5b506101fe6104a9366004611ae7565b61108f565b3480156104ba57600080fd5b506101dc6104c9366004611acd565b6110bd565b60006001600160e01b0319821663780e9d6360e01b14806104f357506104f38261112e565b90505b919050565b60606004805461050a906124f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610536906124f1565b80156105835780601f1061055857610100808354040283529160200191610583565b820191906000526020600020905b81548152906001019060200180831161056657829003601f168201915b5050505050905090565b60006105988261116e565b6105b45760405162461bcd60e51b81526004016101ae9061225f565b506000908152600860205260409020546001600160a01b031690565b60006105db82610df5565b9050806001600160a01b0316836001600160a01b0316141561060f5760405162461bcd60e51b81526004016101ae90612378565b806001600160a01b031661062161118b565b6001600160a01b0316148061063d575061063d816104a961118b565b6106595760405162461bcd60e51b81526004016101ae90612112565b610663838361118f565b505050565b600c5490565b6013546001600160a01b031681565b61068e61068861118b565b826111fd565b6106aa5760405162461bcd60e51b81526004016101ae906123b9565b610663838383611282565b600181815481106106c557600080fd5b9060005260206000200160009150905080546106e0906124f1565b80601f016020809104026020016040519081016040528092919081815260200182805461070c906124f1565b80156107595780601f1061072e57610100808354040283529160200191610759565b820191906000526020600020905b81548152906001019060200180831161073c57829003601f168201915b505050505081565b600061076c83610e37565b821061078a5760405162461bcd60e51b81526004016101ae90611f41565b506001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b61066383838360405180602001604052806000815250610fcd565b60006107d8610668565b82106107f65760405162461bcd60e51b81526004016101ae9061240a565b600c828154811061081757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61083161118b565b6001600160a01b0316610842610ec6565b6001600160a01b0316146108685760405162461bcd60e51b81526004016101ae906122ab565b60006001600160a01b038616156108995750843b806108995760405162461bcd60e51b81526004016101ae9061216f565b600085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451602080870198509596508601909401938693509150819050808080805b878a1015610dab57895160001a92508260291415610d99578961090e8161252c565b9a5061091c9050878b612497565b808a526020808b018290206001600160e01b031981166000908152918290526040909120548c99509097506001600160a01b0390811696509094508f16610b565760028960405161096d9190611d86565b9081526020016040518091039020549150816000141561099f5760405162461bcd60e51b81526004016101ae90611f0a565b816109a9816124da565b600180549194506109bb925090612497565b9050808214610a8857600181815481106109e557634e487b7160e01b600052603260045260246000fd5b9060005260206000200160018381548110610a1057634e487b7160e01b600052603260045260246000fd5b90600052602060002001908054610a26906124f1565b610a3192919061191f565b50610a3d82600161246b565b600260018381548110610a6057634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051610a779190611da2565b908152604051908190036020019020555b6001805480610aa757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000610ac391906119aa565b9055600289604051610ad59190611d86565b90815260408051602092819003830181206000908190556001600160e01b03198a168082529381905291822080546001600160a01b031916905590916001600160a01b038816917f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f535390610b49908e90611ec8565b60405180910390a4610d94565b600289604051610b669190611d86565b90815260200160405180910390205460001415610ca0576001600160a01b03851615610ba45760405162461bcd60e51b81526004016101ae9061209f565b8e600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600189908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190610c2a9291906119e6565b50600154604051600290610c3f908c90611d86565b9081526020016040518091039020819055508e6001600160a01b031660006001600160a01b0316876001600160e01b0319167f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f53538c604051610b499190611ec8565b8e6001600160a01b0316600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031614610d94578e600080886001600160e01b0319166001600160e01b031916815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508e6001600160a01b0316856001600160a01b0316876001600160e01b0319167f3234040ce3bd4564874e44810f198910133a1b24c4e84aac87edbf6b458f53538c604051610d8b9190611ec8565b60405180910390a45b978301975b89610da38161252c565b9a50506108ec565b7faa1c0a0a78cec2470f9652e5d29540752e7a64d70f926933cebf13afaeda45de8c8c604051610ddc929190611edb565b60405180910390a1505050505050505050505050505050565b6000818152600660205260408120546001600160a01b0316806104f35760405162461bcd60e51b81526004016101ae90612216565b601080546106e0906124f1565b60006001600160a01b038216610e5f5760405162461bcd60e51b81526004016101ae906121cc565b506001600160a01b031660009081526007602052604090205490565b610e8361118b565b6001600160a01b0316610e94610ec6565b6001600160a01b031614610eba5760405162461bcd60e51b81526004016101ae906122ab565b610ec460006113af565b565b600e546001600160a01b031690565b60606005805461050a906124f1565b6000602081905290815260409020546001600160a01b031681565b610f0761118b565b6001600160a01b0316826001600160a01b03161415610f385760405162461bcd60e51b81526004016101ae90612068565b8060096000610f4561118b565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f8961118b565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610fc19190611ebd565b60405180910390a35050565b610fde610fd861118b565b836111fd565b610ffa5760405162461bcd60e51b81526004016101ae906123b9565b61100684848484611401565b50505050565b60606110178261116e565b6110335760405162461bcd60e51b81526004016101ae90612329565b600061103d611434565b9050600081511161105d5760405180602001604052806000815250611088565b8061106784611443565b604051602001611078929190611e3d565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6110c561118b565b6001600160a01b03166110d6610ec6565b6001600160a01b0316146110fc5760405162461bcd60e51b81526004016101ae906122ab565b6001600160a01b0381166111225760405162461bcd60e51b81526004016101ae90611fde565b61112b816113af565b50565b60006001600160e01b031982166380ac58cd60e01b148061115f57506001600160e01b03198216635b5e139f60e01b145b806104f357506104f38261155e565b6000908152600660205260409020546001600160a01b0316151590565b3390565b600081815260086020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111c482610df5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112088261116e565b6112245760405162461bcd60e51b81526004016101ae906120c6565b600061122f83610df5565b9050806001600160a01b0316846001600160a01b0316148061126a5750836001600160a01b031661125f8461058d565b6001600160a01b0316145b8061127a575061127a818561108f565b949350505050565b826001600160a01b031661129582610df5565b6001600160a01b0316146112bb5760405162461bcd60e51b81526004016101ae906122e0565b6001600160a01b0382166112e15760405162461bcd60e51b81526004016101ae90612024565b6112ec838383611577565b6112f760008261118f565b6001600160a01b0383166000908152600760205260408120805460019290611320908490612497565b90915550506001600160a01b038216600090815260076020526040812080546001929061134e90849061246b565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61140c848484611282565b61141884848484611600565b6110065760405162461bcd60e51b81526004016101ae90611f8c565b60606010805461050a906124f1565b60608161146857506040805180820190915260018152600360fc1b60208201526104f6565b8160005b8115611492578061147c8161252c565b915061148b9050600a83612483565b915061146c565b60008167ffffffffffffffff8111156114bb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114e5576020820181803683370190505b5090505b841561127a576114fa600183612497565b9150611507600a86612547565b61151290603061246b565b60f81b81838151811061153557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611557600a86612483565b94506114e9565b6001600160e01b031981166301ffc9a760e01b14919050565b611582838383610663565b6001600160a01b03831661159e576115998161171b565b6115c1565b816001600160a01b0316836001600160a01b0316146115c1576115c1838261175f565b6001600160a01b0382166115dd576115d8816117fc565b610663565b826001600160a01b0316826001600160a01b0316146106635761066382826118d5565b6000611614846001600160a01b0316611919565b1561171057836001600160a01b031663150b7a0261163061118b565b8786866040518563ffffffff1660e01b81526004016116529493929190611e80565b602060405180830381600087803b15801561166c57600080fd5b505af192505050801561169c575060408051601f3d908101601f1916820190925261169991810190611d26565b60015b6116f6573d8080156116ca576040519150601f19603f3d011682016040523d82523d6000602084013e6116cf565b606091505b5080516116ee5760405162461bcd60e51b81526004016101ae90611f8c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061127a565b506001949350505050565b600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b6000600161176c84610e37565b6117769190612497565b6000838152600b60205260409020549091508082146117c9576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c5460009061180e90600190612497565b6000838152600d6020526040812054600c805493945090928490811061184457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600c838154811061187357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c8054806118b957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006118e083610e37565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b3b151590565b82805461192b906124f1565b90600052602060002090601f01602090048101928261194d576000855561199a565b82601f1061195e578054855561199a565b8280016001018555821561199a57600052602060002091601f016020900482015b8281111561199a57825482559160010191906001019061197f565b506119a6929150611a5a565b5090565b5080546119b6906124f1565b6000825580601f106119c8575061112b565b601f01602090049060005260206000209081019061112b9190611a5a565b8280546119f2906124f1565b90600052602060002090601f016020900481019282611a14576000855561199a565b82601f10611a2d57805160ff191683800117855561199a565b8280016001018555821561199a579182015b8281111561199a578251825591602001919060010190611a3f565b5b808211156119a65760008155600101611a5b565b80356001600160a01b03811681146104f657600080fd5b60008083601f840112611a97578182fd5b50813567ffffffffffffffff811115611aae578182fd5b602083019150836020828501011115611ac657600080fd5b9250929050565b600060208284031215611ade578081fd5b61108882611a6f565b60008060408385031215611af9578081fd5b611b0283611a6f565b9150611b1060208401611a6f565b90509250929050565b600080600060608486031215611b2d578081fd5b611b3684611a6f565b9250611b4460208501611a6f565b9150604084013590509250925092565b60008060008060808587031215611b69578081fd5b611b7285611a6f565b9350611b8060208601611a6f565b925060408501359150606085013567ffffffffffffffff80821115611ba3578283fd5b818701915087601f830112611bb6578283fd5b813581811115611bc857611bc8612587565b604051601f8201601f19908116603f01168101908382118183101715611bf057611bf0612587565b816040528281528a6020848701011115611c08578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611c3b578182fd5b611c4483611a6f565b915060208301358015158114611c58578182fd5b809150509250929050565b600080600080600060608688031215611c7a578081fd5b611c8386611a6f565b9450602086013567ffffffffffffffff80821115611c9f578283fd5b611cab89838a01611a86565b90965094506040880135915080821115611cc3578283fd5b50611cd088828901611a86565b969995985093965092949392505050565b60008060408385031215611cf3578182fd5b611cfc83611a6f565b946020939093013593505050565b600060208284031215611d1b578081fd5b81356110888161259d565b600060208284031215611d37578081fd5b81516110888161259d565b600060208284031215611d53578081fd5b5035919050565b60008151808452611d728160208601602086016124ae565b601f01601f19169290920160200192915050565b60008251611d988184602087016124ae565b9190910192915050565b8154600090819060028104600180831680611dbe57607f831692505b6020808410821415611dde57634e487b7160e01b87526022600452602487fd5b818015611df25760018114611e0357611e2f565b60ff19861689528489019650611e2f565b611e0c8a61245f565b885b86811015611e275781548b820152908501908301611e0e565b505084890196505b509498975050505050505050565b60008351611e4f8184602088016124ae565b835190830190611e638183602088016124ae565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611eb390830184611d5a565b9695505050505050565b901515815260200190565b6000602082526110886020830184611d5a565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b60208082526018908201527f46756e6374696f6e20646f6573206e6f742065786973742e0000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600d908201526c233ab731a4b21031b630b9b41760991b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526039908201527f5f64656c65676174652061646472657373206973206e6f74206120636f6e747260408201527f61637420616e64206973206e6f74206164647265737328302900000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b90815260200190565b60009081526020902090565b6000821982111561247e5761247e61255b565b500190565b60008261249257612492612571565b500490565b6000828210156124a9576124a961255b565b500390565b60005b838110156124c95781810151838201526020016124b1565b838111156110065750506000910152565b6000816124e9576124e961255b565b506000190190565b60028104600182168061250557607f821691505b6020821081141561252657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125405761254061255b565b5060010190565b60008261255657612556612571565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461112b57600080fdfea26469706673582212205cc8749dd0642dfc367e71dacc8fa2b862b1c39c19d1bc0d05b515504384eec764736f6c63430008010033
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.