ERC-1155
Overview
Max Total Supply
300
Holders
31
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:
ERC1155_
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol"; // import "hardhat/console.sol"; interface IERC20 { function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } contract ERC1155_ is ERC1155 { bytes32 public immutable DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; string public name = "Bad Trip"; constructor(address to, string memory _uri) ERC1155( _uri ) { uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = keccak256(abi.encode(keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256("BadTrip NFT"), keccak256("1"), chainId, address(this))); _mint(to, 0, 300, ""); } // See https://eips.ethereum.org/EIPS/eip-191 string private constant EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA = "\x19\x01"; // keccak256("Permit(address owner,address spender,bool approved,uint256 nonce,uint256 deadline)"); bytes32 private constant PERMIT_SIGNATURE_HASH = keccak256("Permit(address owner,address spender,bool approved,uint256 nonce,uint256 deadline)"); function permit( address owner_, address spender, bool approved, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { require(owner_ != address(0), "ERC1155: Owner cannot be 0"); require(block.timestamp < deadline, "ERC1155: Expired"); bytes32 digest = keccak256( abi.encodePacked( EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA, DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_SIGNATURE_HASH, owner_, spender, approved, nonces[owner_]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress == owner_, "ERC1155: Invalid Signature"); _setApprovalForAll(owner_, spender, approved); } } contract LSDHelper is ERC1155Receiver { IERC20 public immutable token; ERC1155_ public immutable nft; address BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; event PhysicalRedemption(address indexed redeemer, uint256 indexed amount); constructor(address _token, string memory _uri) { token = IERC20(_token); nft = new ERC1155_(address(this), _uri); } function redeem(uint256 amount) public { uint256 balance = token.balanceOf(msg.sender) / 10**18; require(amount <= balance, "Amount of redemption token less than token balance"); require(balance > 0, "Balance of redemption token less than 1"); token.transferFrom(msg.sender, BURN_ADDRESS, amount * 10**18); nft.safeTransferFrom(address(this), msg.sender, 0, amount, ""); emit PhysicalRedemption(msg.sender, amount); } function permitAndRedeem( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 amount ) external { token.permit(owner, spender, value, deadline, v, r, s); redeem(amount); } function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) override external pure returns (bytes4){ return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")); } function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) override external returns (bytes4){ } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"bool","name":"approved","type":"bool"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526040518060400160405280600881526020017f426164205472697000000000000000000000000000000000000000000000000081525060049080519060200190620000519291906200063b565b503480156200005f57600080fd5b5060405162003dd238038062003dd283398181016040528101906200008591906200078b565b8062000097816200016460201b60201c565b5060004690507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fecf95c0059ed437cbde50e3e58a7018bbe22a7d01787012492d869781d43bc087fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc68330604051602001620001189594939291906200099f565b60405160208183030381529060405280519060200120608081815250506200015b83600061012c604051806020016040528060008152506200018060201b60201c565b50505062000f50565b80600290805190602001906200017c9291906200063b565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620001f3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ea9062000a64565b60405180910390fd5b6000620002056200034560201b60201c565b90506200023e8160008762000220886200034d60201b60201c565b62000231886200034d60201b60201c565b876200041660201b60201c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200029f919062000b4a565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516200031f92919062000a86565b60405180910390a46200033e816000878787876200041e60201b60201c565b5050505050565b600033905090565b60606000600167ffffffffffffffff81111562000393577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015620003c25781602001602082028036833780820191505090505b509050828160008151811062000401577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b6200044a8473ffffffffffffffffffffffffffffffffffffffff166200062860201b62000bda1760201c565b1562000620578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401620004939594939291906200093b565b602060405180830381600087803b158015620004ae57600080fd5b505af1925050508015620004e257506040513d601f19601f82011682018060405250810190620004df9190620007e5565b60015b6200059457620004f162000d4a565b806308c379a014156200055557506200050962000e7a565b8062000516575062000557565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200054c9190620009fc565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200058b9062000a20565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146200061e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006159062000a42565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054620006499062000c51565b90600052602060002090601f0160209004810192826200066d5760008555620006b9565b82601f106200068857805160ff1916838001178555620006b9565b82800160010185558215620006b9579182015b82811115620006b85782518255916020019190600101906200069b565b5b509050620006c89190620006cc565b5090565b5b80821115620006e7576000816000905550600101620006cd565b5090565b600062000702620006fc8462000adc565b62000ab3565b9050828152602081018484840111156200071b57600080fd5b6200072884828562000c1b565b509392505050565b600081519050620007418162000f1c565b92915050565b600081519050620007588162000f36565b92915050565b600082601f8301126200077057600080fd5b815162000782848260208601620006eb565b91505092915050565b600080604083850312156200079f57600080fd5b6000620007af8582860162000730565b925050602083015167ffffffffffffffff811115620007cd57600080fd5b620007db858286016200075e565b9150509250929050565b600060208284031215620007f857600080fd5b6000620008088482850162000747565b91505092915050565b6200081c8162000ba7565b82525050565b6200082d8162000bbb565b82525050565b6000620008408262000b12565b6200084c818562000b28565b93506200085e81856020860162000c1b565b620008698162000d6f565b840191505092915050565b6000620008818262000b1d565b6200088d818562000b39565b93506200089f81856020860162000c1b565b620008aa8162000d6f565b840191505092915050565b6000620008c460348362000b39565b9150620008d18262000d8d565b604082019050919050565b6000620008eb60288362000b39565b9150620008f88262000ddc565b604082019050919050565b60006200091260218362000b39565b91506200091f8262000e2b565b604082019050919050565b620009358162000c11565b82525050565b600060a08201905062000952600083018862000811565b62000961602083018762000811565b6200097060408301866200092a565b6200097f60608301856200092a565b818103608083015262000993818462000833565b90509695505050505050565b600060a082019050620009b6600083018862000822565b620009c5602083018762000822565b620009d4604083018662000822565b620009e360608301856200092a565b620009f2608083018462000811565b9695505050505050565b6000602082019050818103600083015262000a18818462000874565b905092915050565b6000602082019050818103600083015262000a3b81620008b5565b9050919050565b6000602082019050818103600083015262000a5d81620008dc565b9050919050565b6000602082019050818103600083015262000a7f8162000903565b9050919050565b600060408201905062000a9d60008301856200092a565b62000aac60208301846200092a565b9392505050565b600062000abf62000ad2565b905062000acd828262000c87565b919050565b6000604051905090565b600067ffffffffffffffff82111562000afa5762000af962000d1b565b5b62000b058262000d6f565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000b578262000c11565b915062000b648362000c11565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000b9c5762000b9b62000cbd565b5b828201905092915050565b600062000bb48262000bf1565b9050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000c3b57808201518184015260208101905062000c1e565b8381111562000c4b576000848401525b50505050565b6000600282049050600182168062000c6a57607f821691505b6020821081141562000c815762000c8062000cec565b5b50919050565b62000c928262000d6f565b810181811067ffffffffffffffff8211171562000cb45762000cb362000d1b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111562000d6c5760046000803e62000d6960005162000d80565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d101562000e8c5762000f19565b62000e9662000ad2565b60043d036004823e80513d602482011167ffffffffffffffff8211171562000ec057505062000f19565b808201805167ffffffffffffffff81111562000ee0575050505062000f19565b80602083010160043d03850181111562000eff57505050505062000f19565b62000f108260200185018662000c87565b82955050505050505b90565b62000f278162000ba7565b811462000f3357600080fd5b50565b62000f418162000bc5565b811462000f4d57600080fd5b50565b608051612e5f62000f73600039600081816105f40152610a160152612e5f6000f3fe608060405234801561001057600080fd5b50600436106100b35760003560e01c80634e1273f4116100715780634e1273f4146101a05780637ecebe00146101d0578063a22cb46514610200578063e985e9c51461021c578063f242432a1461024c578063f51cc7dd14610268576100b3565b8062fdd58e146100b857806301ffc9a7146100e857806306fdde03146101185780630e89341c146101365780632eb2c2d6146101665780633644e51514610182575b600080fd5b6100d260048036038101906100cd9190611cfe565b610284565b6040516100df9190612564565b60405180910390f35b61010260048036038101906100fd9190611da6565b61034d565b60405161010f91906122c6565b60405180910390f35b61012061042f565b60405161012d91906123a2565b60405180910390f35b610150600480360381019061014b9190611df8565b6104bd565b60405161015d91906123a2565b60405180910390f35b610180600480360381019061017b9190611ad6565b610551565b005b61018a6105f2565b60405161019791906122e1565b60405180910390f35b6101ba60048036038101906101b59190611d3a565b610616565b6040516101c7919061226d565b60405180910390f35b6101ea60048036038101906101e59190611a71565b6107c7565b6040516101f79190612564565b60405180910390f35b61021a60048036038101906102159190611cc2565b6107df565b005b61023660048036038101906102319190611a9a565b6107f5565b60405161024391906122c6565b60405180910390f35b61026660048036038101906102619190611c33565b610889565b005b610282600480360381019061027d9190611b95565b61092a565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156102f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ec90612424565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061041857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610428575061042782610bed565b5b9050919050565b6004805461043c906127f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610468906127f5565b80156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b505050505081565b6060600280546104cc906127f5565b80601f01602080910402602001604051908101604052809291908181526020018280546104f8906127f5565b80156105455780601f1061051a57610100808354040283529160200191610545565b820191906000526020600020905b81548152906001019060200180831161052857829003601f168201915b50505050509050919050565b610559610c57565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061059f575061059e85610599610c57565b6107f5565b5b6105de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d5906124a4565b60405180910390fd5b6105eb8585858585610c5f565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060815183511461065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390612524565b60405180910390fd5b6000835167ffffffffffffffff81111561069f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106cd5781602001602082028036833780820191505090505b50905060005b84518110156107bc57610766858281518110610718577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610759577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610284565b82828151811061079f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050806107b590612858565b90506106d3565b508091505092915050565b60036020528060005260406000206000915090505481565b6107f16107ea610c57565b8383610fbf565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610891610c57565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108d757506108d6856108d1610c57565b6107f5565b5b610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d90612444565b60405180910390fd5b610923858585858561112c565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099190612464565b60405180910390fd5b8342106109dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d390612404565b60405180910390fd5b60006040518060400160405280600281526020017f19010000000000000000000000000000000000000000000000000000000000008152507f00000000000000000000000000000000000000000000000000000000000000007f3f43a9c6bafb5c7aab4e0cfe239dc5d4c15caf0381c6104188191f78a6640bd88a8a8a600360008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610aa990612858565b919050558b604051602001610ac3969594939291906122fc565b60405160208183030381529060405280519060200120604051602001610aeb93929190612172565b604051602081830303815290604052805190602001209050600060018286868660405160008152602001604052604051610b28949392919061235d565b6020604051602081039080840390855afa158015610b4a573d6000803e3d6000fd5b5050506020604051035190508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb906124e4565b60405180910390fd5b610bcf898989610fbf565b505050505050505050565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8151835114610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90612544565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0a90612484565b60405180910390fd5b6000610d1d610c57565b9050610d2d8187878787876113ae565b60005b8451811015610f2a576000858281518110610d74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110610db9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e51906124c4565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f0f91906126d2565b9250508190555050505080610f2390612858565b9050610d30565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610fa192919061228f565b60405180910390a4610fb78187878787876113b6565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561102e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102590612504565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161111f91906122c6565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561119c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119390612484565b60405180910390fd5b60006111a6610c57565b90506111c68187876111b78861159d565b6111c08861159d565b876113ae565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561125d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611254906124c4565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461131291906126d2565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161138f92919061257f565b60405180910390a46113a5828888888888611663565b50505050505050565b505050505050565b6113d58473ffffffffffffffffffffffffffffffffffffffff16610bda565b15611595578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161141b9594939291906121ab565b602060405180830381600087803b15801561143557600080fd5b505af192505050801561146657506040513d601f19601f820116820180604052508101906114639190611dcf565b60015b61150c57611472612938565b806308c379a014156114cf5750611487612d09565b8061149257506114d1565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c691906123a2565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611503906123c4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a906123e4565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff8111156115e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156116105781602001602082028036833780820191505090505b509050828160008151811061164e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6116828473ffffffffffffffffffffffffffffffffffffffff16610bda565b15611842578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016116c8959493929190612213565b602060405180830381600087803b1580156116e257600080fd5b505af192505050801561171357506040513d601f19601f820116820180604052508101906117109190611dcf565b60015b6117b95761171f612938565b806308c379a0141561177c5750611734612d09565b8061173f575061177e565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177391906123a2565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b0906123c4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906123e4565b60405180910390fd5b505b505050505050565b600061185d611858846125cd565b6125a8565b9050808382526020820190508285602086028201111561187c57600080fd5b60005b858110156118ac57816118928882611960565b84526020840193506020830192505060018101905061187f565b5050509392505050565b60006118c96118c4846125f9565b6125a8565b905080838252602082019050828560208602820111156118e857600080fd5b60005b8581101561191857816118fe8882611a47565b8452602084019350602083019250506001810190506118eb565b5050509392505050565b600061193561193084612625565b6125a8565b90508281526020810184848401111561194d57600080fd5b6119588482856127b3565b509392505050565b60008135905061196f81612d9f565b92915050565b600082601f83011261198657600080fd5b813561199684826020860161184a565b91505092915050565b600082601f8301126119b057600080fd5b81356119c08482602086016118b6565b91505092915050565b6000813590506119d881612db6565b92915050565b6000813590506119ed81612dcd565b92915050565b600081359050611a0281612de4565b92915050565b600081519050611a1781612de4565b92915050565b600082601f830112611a2e57600080fd5b8135611a3e848260208601611922565b91505092915050565b600081359050611a5681612dfb565b92915050565b600081359050611a6b81612e12565b92915050565b600060208284031215611a8357600080fd5b6000611a9184828501611960565b91505092915050565b60008060408385031215611aad57600080fd5b6000611abb85828601611960565b9250506020611acc85828601611960565b9150509250929050565b600080600080600060a08688031215611aee57600080fd5b6000611afc88828901611960565b9550506020611b0d88828901611960565b945050604086013567ffffffffffffffff811115611b2a57600080fd5b611b368882890161199f565b935050606086013567ffffffffffffffff811115611b5357600080fd5b611b5f8882890161199f565b925050608086013567ffffffffffffffff811115611b7c57600080fd5b611b8888828901611a1d565b9150509295509295909350565b600080600080600080600060e0888a031215611bb057600080fd5b6000611bbe8a828b01611960565b9750506020611bcf8a828b01611960565b9650506040611be08a828b016119c9565b9550506060611bf18a828b01611a47565b9450506080611c028a828b01611a5c565b93505060a0611c138a828b016119de565b92505060c0611c248a828b016119de565b91505092959891949750929550565b600080600080600060a08688031215611c4b57600080fd5b6000611c5988828901611960565b9550506020611c6a88828901611960565b9450506040611c7b88828901611a47565b9350506060611c8c88828901611a47565b925050608086013567ffffffffffffffff811115611ca957600080fd5b611cb588828901611a1d565b9150509295509295909350565b60008060408385031215611cd557600080fd5b6000611ce385828601611960565b9250506020611cf4858286016119c9565b9150509250929050565b60008060408385031215611d1157600080fd5b6000611d1f85828601611960565b9250506020611d3085828601611a47565b9150509250929050565b60008060408385031215611d4d57600080fd5b600083013567ffffffffffffffff811115611d6757600080fd5b611d7385828601611975565b925050602083013567ffffffffffffffff811115611d9057600080fd5b611d9c8582860161199f565b9150509250929050565b600060208284031215611db857600080fd5b6000611dc6848285016119f3565b91505092915050565b600060208284031215611de157600080fd5b6000611def84828501611a08565b91505092915050565b600060208284031215611e0a57600080fd5b6000611e1884828501611a47565b91505092915050565b6000611e2d8383612145565b60208301905092915050565b611e4281612728565b82525050565b6000611e5382612666565b611e5d8185612694565b9350611e6883612656565b8060005b83811015611e99578151611e808882611e21565b9750611e8b83612687565b925050600181019050611e6c565b5085935050505092915050565b611eaf8161273a565b82525050565b611ebe81612746565b82525050565b611ed5611ed082612746565b6128a1565b82525050565b6000611ee682612671565b611ef081856126a5565b9350611f008185602086016127c2565b611f098161295a565b840191505092915050565b6000611f1f8261267c565b611f2981856126b6565b9350611f398185602086016127c2565b611f428161295a565b840191505092915050565b6000611f588261267c565b611f6281856126c7565b9350611f728185602086016127c2565b80840191505092915050565b6000611f8b6034836126b6565b9150611f9682612978565b604082019050919050565b6000611fae6028836126b6565b9150611fb9826129c7565b604082019050919050565b6000611fd16010836126b6565b9150611fdc82612a16565b602082019050919050565b6000611ff4602b836126b6565b9150611fff82612a3f565b604082019050919050565b60006120176029836126b6565b915061202282612a8e565b604082019050919050565b600061203a601a836126b6565b915061204582612add565b602082019050919050565b600061205d6025836126b6565b915061206882612b06565b604082019050919050565b60006120806032836126b6565b915061208b82612b55565b604082019050919050565b60006120a3602a836126b6565b91506120ae82612ba4565b604082019050919050565b60006120c6601a836126b6565b91506120d182612bf3565b602082019050919050565b60006120e96029836126b6565b91506120f482612c1c565b604082019050919050565b600061210c6029836126b6565b915061211782612c6b565b604082019050919050565b600061212f6028836126b6565b915061213a82612cba565b604082019050919050565b61214e8161279c565b82525050565b61215d8161279c565b82525050565b61216c816127a6565b82525050565b600061217e8286611f4d565b915061218a8285611ec4565b60208201915061219a8284611ec4565b602082019150819050949350505050565b600060a0820190506121c06000830188611e39565b6121cd6020830187611e39565b81810360408301526121df8186611e48565b905081810360608301526121f38185611e48565b905081810360808301526122078184611edb565b90509695505050505050565b600060a0820190506122286000830188611e39565b6122356020830187611e39565b6122426040830186612154565b61224f6060830185612154565b81810360808301526122618184611edb565b90509695505050505050565b600060208201905081810360008301526122878184611e48565b905092915050565b600060408201905081810360008301526122a98185611e48565b905081810360208301526122bd8184611e48565b90509392505050565b60006020820190506122db6000830184611ea6565b92915050565b60006020820190506122f66000830184611eb5565b92915050565b600060c0820190506123116000830189611eb5565b61231e6020830188611e39565b61232b6040830187611e39565b6123386060830186611ea6565b6123456080830185612154565b61235260a0830184612154565b979650505050505050565b60006080820190506123726000830187611eb5565b61237f6020830186612163565b61238c6040830185611eb5565b6123996060830184611eb5565b95945050505050565b600060208201905081810360008301526123bc8184611f14565b905092915050565b600060208201905081810360008301526123dd81611f7e565b9050919050565b600060208201905081810360008301526123fd81611fa1565b9050919050565b6000602082019050818103600083015261241d81611fc4565b9050919050565b6000602082019050818103600083015261243d81611fe7565b9050919050565b6000602082019050818103600083015261245d8161200a565b9050919050565b6000602082019050818103600083015261247d8161202d565b9050919050565b6000602082019050818103600083015261249d81612050565b9050919050565b600060208201905081810360008301526124bd81612073565b9050919050565b600060208201905081810360008301526124dd81612096565b9050919050565b600060208201905081810360008301526124fd816120b9565b9050919050565b6000602082019050818103600083015261251d816120dc565b9050919050565b6000602082019050818103600083015261253d816120ff565b9050919050565b6000602082019050818103600083015261255d81612122565b9050919050565b60006020820190506125796000830184612154565b92915050565b60006040820190506125946000830185612154565b6125a16020830184612154565b9392505050565b60006125b26125c3565b90506125be8282612827565b919050565b6000604051905090565b600067ffffffffffffffff8211156125e8576125e7612909565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561261457612613612909565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156126405761263f612909565b5b6126498261295a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006126dd8261279c565b91506126e88361279c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561271d5761271c6128ab565b5b828201905092915050565b60006127338261277c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156127e05780820151818401526020810190506127c5565b838111156127ef576000848401525b50505050565b6000600282049050600182168061280d57607f821691505b60208210811415612821576128206128da565b5b50919050565b6128308261295a565b810181811067ffffffffffffffff8211171561284f5761284e612909565b5b80604052505050565b60006128638261279c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612896576128956128ab565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156129575760046000803e61295460005161296b565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a204578706972656400000000000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a204f776e65722063616e6e6f742062652030000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a20496e76616c6964205369676e6174757265000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600060443d1015612d1957612d9c565b612d216125c3565b60043d036004823e80513d602482011167ffffffffffffffff82111715612d49575050612d9c565b808201805167ffffffffffffffff811115612d675750505050612d9c565b80602083010160043d038501811115612d84575050505050612d9c565b612d9382602001850186612827565b82955050505050505b90565b612da881612728565b8114612db357600080fd5b50565b612dbf8161273a565b8114612dca57600080fd5b50565b612dd681612746565b8114612de157600080fd5b50565b612ded81612750565b8114612df857600080fd5b50565b612e048161279c565b8114612e0f57600080fd5b50565b612e1b816127a6565b8114612e2657600080fd5b5056fea264697066735822122080d973dc058a9b50dc4d2a277654376eea497515cc8704bc3b2e4c6edf3e76f764736f6c634300080400330000000000000000000000007187c898d9e204859dc096007b0badaa8818c6820000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d633634467762315a4846344861467a42356d7043436a434b344373444d4c58787846453152786f793461356d000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b35760003560e01c80634e1273f4116100715780634e1273f4146101a05780637ecebe00146101d0578063a22cb46514610200578063e985e9c51461021c578063f242432a1461024c578063f51cc7dd14610268576100b3565b8062fdd58e146100b857806301ffc9a7146100e857806306fdde03146101185780630e89341c146101365780632eb2c2d6146101665780633644e51514610182575b600080fd5b6100d260048036038101906100cd9190611cfe565b610284565b6040516100df9190612564565b60405180910390f35b61010260048036038101906100fd9190611da6565b61034d565b60405161010f91906122c6565b60405180910390f35b61012061042f565b60405161012d91906123a2565b60405180910390f35b610150600480360381019061014b9190611df8565b6104bd565b60405161015d91906123a2565b60405180910390f35b610180600480360381019061017b9190611ad6565b610551565b005b61018a6105f2565b60405161019791906122e1565b60405180910390f35b6101ba60048036038101906101b59190611d3a565b610616565b6040516101c7919061226d565b60405180910390f35b6101ea60048036038101906101e59190611a71565b6107c7565b6040516101f79190612564565b60405180910390f35b61021a60048036038101906102159190611cc2565b6107df565b005b61023660048036038101906102319190611a9a565b6107f5565b60405161024391906122c6565b60405180910390f35b61026660048036038101906102619190611c33565b610889565b005b610282600480360381019061027d9190611b95565b61092a565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156102f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ec90612424565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061041857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610428575061042782610bed565b5b9050919050565b6004805461043c906127f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610468906127f5565b80156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b505050505081565b6060600280546104cc906127f5565b80601f01602080910402602001604051908101604052809291908181526020018280546104f8906127f5565b80156105455780601f1061051a57610100808354040283529160200191610545565b820191906000526020600020905b81548152906001019060200180831161052857829003601f168201915b50505050509050919050565b610559610c57565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061059f575061059e85610599610c57565b6107f5565b5b6105de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d5906124a4565b60405180910390fd5b6105eb8585858585610c5f565b5050505050565b7f0d058662eaaf0c2c44de447628c36edde4bd63dbbc00d6bb5ddbeeb2d45bea8181565b6060815183511461065c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065390612524565b60405180910390fd5b6000835167ffffffffffffffff81111561069f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106cd5781602001602082028036833780820191505090505b50905060005b84518110156107bc57610766858281518110610718577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610759577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610284565b82828151811061079f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050806107b590612858565b90506106d3565b508091505092915050565b60036020528060005260406000206000915090505481565b6107f16107ea610c57565b8383610fbf565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610891610c57565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108d757506108d6856108d1610c57565b6107f5565b5b610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d90612444565b60405180910390fd5b610923858585858561112c565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099190612464565b60405180910390fd5b8342106109dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d390612404565b60405180910390fd5b60006040518060400160405280600281526020017f19010000000000000000000000000000000000000000000000000000000000008152507f0d058662eaaf0c2c44de447628c36edde4bd63dbbc00d6bb5ddbeeb2d45bea817f3f43a9c6bafb5c7aab4e0cfe239dc5d4c15caf0381c6104188191f78a6640bd88a8a8a600360008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610aa990612858565b919050558b604051602001610ac3969594939291906122fc565b60405160208183030381529060405280519060200120604051602001610aeb93929190612172565b604051602081830303815290604052805190602001209050600060018286868660405160008152602001604052604051610b28949392919061235d565b6020604051602081039080840390855afa158015610b4a573d6000803e3d6000fd5b5050506020604051035190508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb906124e4565b60405180910390fd5b610bcf898989610fbf565b505050505050505050565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8151835114610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90612544565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0a90612484565b60405180910390fd5b6000610d1d610c57565b9050610d2d8187878787876113ae565b60005b8451811015610f2a576000858281518110610d74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110610db9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e51906124c4565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f0f91906126d2565b9250508190555050505080610f2390612858565b9050610d30565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610fa192919061228f565b60405180910390a4610fb78187878787876113b6565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561102e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102590612504565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161111f91906122c6565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561119c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119390612484565b60405180910390fd5b60006111a6610c57565b90506111c68187876111b78861159d565b6111c08861159d565b876113ae565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561125d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611254906124c4565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461131291906126d2565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161138f92919061257f565b60405180910390a46113a5828888888888611663565b50505050505050565b505050505050565b6113d58473ffffffffffffffffffffffffffffffffffffffff16610bda565b15611595578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161141b9594939291906121ab565b602060405180830381600087803b15801561143557600080fd5b505af192505050801561146657506040513d601f19601f820116820180604052508101906114639190611dcf565b60015b61150c57611472612938565b806308c379a014156114cf5750611487612d09565b8061149257506114d1565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c691906123a2565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611503906123c4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a906123e4565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff8111156115e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156116105781602001602082028036833780820191505090505b509050828160008151811061164e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6116828473ffffffffffffffffffffffffffffffffffffffff16610bda565b15611842578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016116c8959493929190612213565b602060405180830381600087803b1580156116e257600080fd5b505af192505050801561171357506040513d601f19601f820116820180604052508101906117109190611dcf565b60015b6117b95761171f612938565b806308c379a0141561177c5750611734612d09565b8061173f575061177e565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177391906123a2565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b0906123c4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906123e4565b60405180910390fd5b505b505050505050565b600061185d611858846125cd565b6125a8565b9050808382526020820190508285602086028201111561187c57600080fd5b60005b858110156118ac57816118928882611960565b84526020840193506020830192505060018101905061187f565b5050509392505050565b60006118c96118c4846125f9565b6125a8565b905080838252602082019050828560208602820111156118e857600080fd5b60005b8581101561191857816118fe8882611a47565b8452602084019350602083019250506001810190506118eb565b5050509392505050565b600061193561193084612625565b6125a8565b90508281526020810184848401111561194d57600080fd5b6119588482856127b3565b509392505050565b60008135905061196f81612d9f565b92915050565b600082601f83011261198657600080fd5b813561199684826020860161184a565b91505092915050565b600082601f8301126119b057600080fd5b81356119c08482602086016118b6565b91505092915050565b6000813590506119d881612db6565b92915050565b6000813590506119ed81612dcd565b92915050565b600081359050611a0281612de4565b92915050565b600081519050611a1781612de4565b92915050565b600082601f830112611a2e57600080fd5b8135611a3e848260208601611922565b91505092915050565b600081359050611a5681612dfb565b92915050565b600081359050611a6b81612e12565b92915050565b600060208284031215611a8357600080fd5b6000611a9184828501611960565b91505092915050565b60008060408385031215611aad57600080fd5b6000611abb85828601611960565b9250506020611acc85828601611960565b9150509250929050565b600080600080600060a08688031215611aee57600080fd5b6000611afc88828901611960565b9550506020611b0d88828901611960565b945050604086013567ffffffffffffffff811115611b2a57600080fd5b611b368882890161199f565b935050606086013567ffffffffffffffff811115611b5357600080fd5b611b5f8882890161199f565b925050608086013567ffffffffffffffff811115611b7c57600080fd5b611b8888828901611a1d565b9150509295509295909350565b600080600080600080600060e0888a031215611bb057600080fd5b6000611bbe8a828b01611960565b9750506020611bcf8a828b01611960565b9650506040611be08a828b016119c9565b9550506060611bf18a828b01611a47565b9450506080611c028a828b01611a5c565b93505060a0611c138a828b016119de565b92505060c0611c248a828b016119de565b91505092959891949750929550565b600080600080600060a08688031215611c4b57600080fd5b6000611c5988828901611960565b9550506020611c6a88828901611960565b9450506040611c7b88828901611a47565b9350506060611c8c88828901611a47565b925050608086013567ffffffffffffffff811115611ca957600080fd5b611cb588828901611a1d565b9150509295509295909350565b60008060408385031215611cd557600080fd5b6000611ce385828601611960565b9250506020611cf4858286016119c9565b9150509250929050565b60008060408385031215611d1157600080fd5b6000611d1f85828601611960565b9250506020611d3085828601611a47565b9150509250929050565b60008060408385031215611d4d57600080fd5b600083013567ffffffffffffffff811115611d6757600080fd5b611d7385828601611975565b925050602083013567ffffffffffffffff811115611d9057600080fd5b611d9c8582860161199f565b9150509250929050565b600060208284031215611db857600080fd5b6000611dc6848285016119f3565b91505092915050565b600060208284031215611de157600080fd5b6000611def84828501611a08565b91505092915050565b600060208284031215611e0a57600080fd5b6000611e1884828501611a47565b91505092915050565b6000611e2d8383612145565b60208301905092915050565b611e4281612728565b82525050565b6000611e5382612666565b611e5d8185612694565b9350611e6883612656565b8060005b83811015611e99578151611e808882611e21565b9750611e8b83612687565b925050600181019050611e6c565b5085935050505092915050565b611eaf8161273a565b82525050565b611ebe81612746565b82525050565b611ed5611ed082612746565b6128a1565b82525050565b6000611ee682612671565b611ef081856126a5565b9350611f008185602086016127c2565b611f098161295a565b840191505092915050565b6000611f1f8261267c565b611f2981856126b6565b9350611f398185602086016127c2565b611f428161295a565b840191505092915050565b6000611f588261267c565b611f6281856126c7565b9350611f728185602086016127c2565b80840191505092915050565b6000611f8b6034836126b6565b9150611f9682612978565b604082019050919050565b6000611fae6028836126b6565b9150611fb9826129c7565b604082019050919050565b6000611fd16010836126b6565b9150611fdc82612a16565b602082019050919050565b6000611ff4602b836126b6565b9150611fff82612a3f565b604082019050919050565b60006120176029836126b6565b915061202282612a8e565b604082019050919050565b600061203a601a836126b6565b915061204582612add565b602082019050919050565b600061205d6025836126b6565b915061206882612b06565b604082019050919050565b60006120806032836126b6565b915061208b82612b55565b604082019050919050565b60006120a3602a836126b6565b91506120ae82612ba4565b604082019050919050565b60006120c6601a836126b6565b91506120d182612bf3565b602082019050919050565b60006120e96029836126b6565b91506120f482612c1c565b604082019050919050565b600061210c6029836126b6565b915061211782612c6b565b604082019050919050565b600061212f6028836126b6565b915061213a82612cba565b604082019050919050565b61214e8161279c565b82525050565b61215d8161279c565b82525050565b61216c816127a6565b82525050565b600061217e8286611f4d565b915061218a8285611ec4565b60208201915061219a8284611ec4565b602082019150819050949350505050565b600060a0820190506121c06000830188611e39565b6121cd6020830187611e39565b81810360408301526121df8186611e48565b905081810360608301526121f38185611e48565b905081810360808301526122078184611edb565b90509695505050505050565b600060a0820190506122286000830188611e39565b6122356020830187611e39565b6122426040830186612154565b61224f6060830185612154565b81810360808301526122618184611edb565b90509695505050505050565b600060208201905081810360008301526122878184611e48565b905092915050565b600060408201905081810360008301526122a98185611e48565b905081810360208301526122bd8184611e48565b90509392505050565b60006020820190506122db6000830184611ea6565b92915050565b60006020820190506122f66000830184611eb5565b92915050565b600060c0820190506123116000830189611eb5565b61231e6020830188611e39565b61232b6040830187611e39565b6123386060830186611ea6565b6123456080830185612154565b61235260a0830184612154565b979650505050505050565b60006080820190506123726000830187611eb5565b61237f6020830186612163565b61238c6040830185611eb5565b6123996060830184611eb5565b95945050505050565b600060208201905081810360008301526123bc8184611f14565b905092915050565b600060208201905081810360008301526123dd81611f7e565b9050919050565b600060208201905081810360008301526123fd81611fa1565b9050919050565b6000602082019050818103600083015261241d81611fc4565b9050919050565b6000602082019050818103600083015261243d81611fe7565b9050919050565b6000602082019050818103600083015261245d8161200a565b9050919050565b6000602082019050818103600083015261247d8161202d565b9050919050565b6000602082019050818103600083015261249d81612050565b9050919050565b600060208201905081810360008301526124bd81612073565b9050919050565b600060208201905081810360008301526124dd81612096565b9050919050565b600060208201905081810360008301526124fd816120b9565b9050919050565b6000602082019050818103600083015261251d816120dc565b9050919050565b6000602082019050818103600083015261253d816120ff565b9050919050565b6000602082019050818103600083015261255d81612122565b9050919050565b60006020820190506125796000830184612154565b92915050565b60006040820190506125946000830185612154565b6125a16020830184612154565b9392505050565b60006125b26125c3565b90506125be8282612827565b919050565b6000604051905090565b600067ffffffffffffffff8211156125e8576125e7612909565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561261457612613612909565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156126405761263f612909565b5b6126498261295a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006126dd8261279c565b91506126e88361279c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561271d5761271c6128ab565b5b828201905092915050565b60006127338261277c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156127e05780820151818401526020810190506127c5565b838111156127ef576000848401525b50505050565b6000600282049050600182168061280d57607f821691505b60208210811415612821576128206128da565b5b50919050565b6128308261295a565b810181811067ffffffffffffffff8211171561284f5761284e612909565b5b80604052505050565b60006128638261279c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612896576128956128ab565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156129575760046000803e61295460005161296b565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a204578706972656400000000000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a204f776e65722063616e6e6f742062652030000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a20496e76616c6964205369676e6174757265000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600060443d1015612d1957612d9c565b612d216125c3565b60043d036004823e80513d602482011167ffffffffffffffff82111715612d49575050612d9c565b808201805167ffffffffffffffff811115612d675750505050612d9c565b80602083010160043d038501811115612d84575050505050612d9c565b612d9382602001850186612827565b82955050505050505b90565b612da881612728565b8114612db357600080fd5b50565b612dbf8161273a565b8114612dca57600080fd5b50565b612dd681612746565b8114612de157600080fd5b50565b612ded81612750565b8114612df857600080fd5b50565b612e048161279c565b8114612e0f57600080fd5b50565b612e1b816127a6565b8114612e2657600080fd5b5056fea264697066735822122080d973dc058a9b50dc4d2a277654376eea497515cc8704bc3b2e4c6edf3e76f764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007187c898d9e204859dc096007b0badaa8818c6820000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d633634467762315a4846344861467a42356d7043436a434b344373444d4c58787846453152786f793461356d000000000000
-----Decoded View---------------
Arg [0] : to (address): 0x7187c898d9e204859DC096007B0baDaA8818C682
Arg [1] : _uri (string): ipfs://ipfs/Qmc64Fwb1ZHF4HaFzB5mpCCjCK4CsDMLXxxFE1Rxoy4a5m
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007187c898d9e204859dc096007b0badaa8818c682
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [3] : 697066733a2f2f697066732f516d633634467762315a4846344861467a42356d
Arg [4] : 7043436a434b344373444d4c58787846453152786f793461356d000000000000
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.