ERC-1155
Overview
Max Total Supply
276 TRIPPYEGG
Holders
227
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:
ParadiseEgg
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "./ERC1155Tradable.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; /** * @title ParadiseEgg * ParadiseEgg - a contract for the Paradise Egg */ contract ParadiseEgg is ERC1155Tradable { using SafeMath for uint256; constructor( address _proxyRegistryAddress ) ERC1155Tradable( "Paradise Trippy Eggs", "TRIPPYEGG", "", _proxyRegistryAddress ) { create(msg.sender, 1, 1, "https://api-egg.paradise.com/token/1", ""); create(msg.sender, 2, 1, "https://api-egg.paradise.com/token/2", ""); create(msg.sender, 3, 1, "https://api-egg.paradise.com/token/3", ""); } function airdrop(address[] memory _addrs, uint256 _quantity, uint256 _id) public onlyOwner { for (uint256 i = 0; i < _addrs.length; i++) { _mint(_addrs[i], _id, _quantity, ""); tokenSupply[_id] = tokenSupply[_id].add(_quantity); } } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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 { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); 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"); _balances[id][from] = fromBalance - amount; _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); 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"); _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 `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, 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 (uint 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 `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); _balances[id][account] = accountBalance - amount; emit TransferSingle(operator, account, 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 account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); _balances[id][account] = accountBalance - amount; } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @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(to).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(to).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 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 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC1155/ERC1155.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC1155Tradable * ERC1155Tradable - ERC1155 contract that whitelists an operator address, has create and mint functionality, and supports useful standards from OpenZeppelin, like _exists(), name(), symbol(), and totalSupply() */ contract ERC1155Tradable is ContextMixin, ERC1155, NativeMetaTransaction, Ownable { using Strings for string; using SafeMath for uint256; address proxyRegistryAddress; mapping (uint256 => address) public creators; mapping (uint256 => uint256) public tokenSupply; mapping (uint256 => string) customUri; // Contract name string public name; // Contract symbol string public symbol; /** * @dev Require _msgSender() to be the creator of the token id */ modifier creatorOnly(uint256 _id) { require(creators[_id] == _msgSender(), "ERC1155Tradable#creatorOnly: ONLY_CREATOR_ALLOWED"); _; } /** * @dev Require _msgSender() to own more than 0 of the token id */ modifier ownersOnly(uint256 _id) { require(balanceOf(_msgSender(), _id) > 0, "ERC1155Tradable#ownersOnly: ONLY_OWNERS_ALLOWED"); _; } constructor( string memory _name, string memory _symbol, string memory _uri, address _proxyRegistryAddress ) ERC1155(_uri) { name = _name; symbol = _symbol; proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(name); } function uri( uint256 _id ) override public view returns (string memory) { require(_exists(_id), "ERC1155Tradable#uri: NONEXISTENT_TOKEN"); // We have to convert string to bytes to check for existence bytes memory customUriBytes = bytes(customUri[_id]); if (customUriBytes.length > 0) { return customUri[_id]; } else { return super.uri(_id); } } /** * @dev Returns the total quantity for a token ID * @param _id uint256 ID of the token to query * @return amount of token in existence */ function totalSupply( uint256 _id ) public view returns (uint256) { return tokenSupply[_id]; } /** * @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]. * @param _newURI New URI for all tokens */ function setURI( string memory _newURI ) public onlyOwner { _setURI(_newURI); } /** * @dev Will update the base URI for the token * @param _tokenId The token to update. _msgSender() must be its creator. * @param _newURI New URI for the token. */ function setCustomURI( uint256 _tokenId, string memory _newURI ) public creatorOnly(_tokenId) { customUri[_tokenId] = _newURI; emit URI(_newURI, _tokenId); } /** * @dev Creates a new token type and assigns _initialSupply to an address * NOTE: remove onlyOwner if you want third parties to create new tokens on * your contract (which may change your IDs) * NOTE: The token id must be passed. This allows lazy creation of tokens or * creating NFTs by setting the id's high bits with the method * described in ERC1155 or to use ids representing values other than * successive small integers. If you wish to create ids as successive * small integers you can either subclass this class to count onchain * or maintain the offchain cache of identifiers recommended in * ERC1155 and calculate successive ids from that. * @param _initialOwner address of the first owner of the token * @param _id The id of the token to create (must not currenty exist). * @param _initialSupply amount to supply the first owner * @param _uri Optional URI for this token type * @param _data Data to pass if receiver is contract * @return The newly created token ID */ function create( address _initialOwner, uint256 _id, uint256 _initialSupply, string memory _uri, bytes memory _data ) public onlyOwner returns (uint256) { require(!_exists(_id), "token _id already exists"); creators[_id] = _msgSender(); if (bytes(_uri).length > 0) { customUri[_id] = _uri; emit URI(_uri, _id); } _mint(_initialOwner, _id, _initialSupply, _data); tokenSupply[_id] = _initialSupply; return _id; } /** * @dev Mints some amount of tokens to an address * @param _to Address of the future owner of the token * @param _id Token ID to mint * @param _quantity Amount of tokens to mint * @param _data Data to pass if receiver is contract */ function mint( address _to, uint256 _id, uint256 _quantity, bytes memory _data ) virtual public creatorOnly(_id) { _mint(_to, _id, _quantity, _data); tokenSupply[_id] = tokenSupply[_id].add(_quantity); } /** * @dev Mint tokens for each id in _ids * @param _to The address to mint tokens to * @param _ids Array of ids to mint * @param _quantities Array of amounts of tokens to mint per id * @param _data Data to pass if receiver is contract */ function batchMint( address _to, uint256[] memory _ids, uint256[] memory _quantities, bytes memory _data ) public { for (uint256 i = 0; i < _ids.length; i++) { uint256 _id = _ids[i]; require(creators[_id] == _msgSender(), "ERC1155Tradable#batchMint: ONLY_CREATOR_ALLOWED"); uint256 quantity = _quantities[i]; tokenSupply[_id] = tokenSupply[_id].add(quantity); } _mintBatch(_to, _ids, _quantities, _data); } /** * @dev Change the creator address for given tokens * @param _to Address of the new creator * @param _ids Array of Token IDs to change creator */ function setCreator( address _to, uint256[] memory _ids ) public { require(_to != address(0), "ERC1155Tradable#setCreator: INVALID_ADDRESS."); for (uint256 i = 0; i < _ids.length; i++) { uint256 id = _ids[i]; _setCreator(_to, id); } } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings. */ function isApprovedForAll( address _owner, address _operator ) override public view returns (bool isOperator) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(_owner)) == _operator) { return true; } return ERC1155.isApprovedForAll(_owner, _operator); } /** * @dev Change the creator address for given token * @param _to Address of the new creator * @param _id Token IDs to change creator of */ function _setCreator(address _to, uint256 _id) internal creatorOnly(_id) { creators[_id] = _to; } /** * @dev Returns whether the specified token exists by checking to see if it has a creator * @param _id uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists( uint256 _id ) internal view returns (bool) { return creators[_id] != address(0); } function exists( uint256 _id ) external view returns (bool) { return _exists(_id); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_initialOwner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"create","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"setCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newURI","type":"string"}],"name":"setCustomURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526003805460ff191690553480156200001b57600080fd5b5060405162003beb38038062003beb8339810160408190526200003e91620009f3565b6040518060400160405280601481526020017f50617261646973652054726970707920456767730000000000000000000000008152506040518060400160405280600981526020016854524950505945474760b81b815250604051806020016040528060008152508381620000b981620002b060201b60201c565b506000620000c6620002c9565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35083516200012990600b9060208701906200094d565b5082516200013f90600c9060208601906200094d565b50600780546001600160a01b0319166001600160a01b038316179055600b8054620001fb9190620001709062000a25565b80601f01602080910402602001604051908101604052809291908181526020018280546200019e9062000a25565b8015620001ef5780601f10620001c357610100808354040283529160200191620001ef565b820191906000526020600020905b815481529060010190602001808311620001d157829003601f168201915b5050620002e592505050565b50505050620002363360018060405180606001604052806024815260200162003ba3602491396040805160208101909152600081526200034a565b506200026f336002600160405180606001604052806024815260200162003bc7602491396040805160208101909152600081526200034a565b50620002a8336003600160405180606001604052806024815260200162003b7f602491396040805160208101909152600081526200034a565b505062000c5d565b8051620002c59060029060208401906200094d565b5050565b6000620002e0620004f160201b6200194e1760201c565b905090565b60035460ff16156200032f5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b6200033a8162000550565b506003805460ff19166001179055565b600062000356620002c9565b6001600160a01b0316620003726006546001600160a01b031690565b6001600160a01b031614620003ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000326565b6000858152600860205260409020546001600160a01b031615620004315760405162461bcd60e51b815260206004820152601860248201527f746f6b656e205f696420616c7265616479206578697374730000000000000000604482015260640162000326565b6200043b620002c9565b600086815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055825115620004cc576000858152600a60209081526040909120845162000490928601906200094d565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b84604051620004c3919062000ab2565b60405180910390a25b620004da86868685620005f2565b505050600082815260096020526040902055919050565b6000333014156200054a57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200054d9050565b50335b90565b6040518060800160405280604f815260200162003b30604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600455565b6001600160a01b038416620006545760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840162000326565b600062000660620002c9565b9050620006878160008762000675886200071b565b62000680886200071b565b5050505050565b6000848152602081815260408083206001600160a01b038916845290915281208054859290620006b990849062000ac7565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620006808160008787878762000771565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000758576200075862000aee565b602090810291909101015292915050565b505050505050565b62000790846001600160a01b03166200094760201b620019ab1760201c565b15620007695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620007cc908990899088908890889060040162000b04565b6020604051808303816000875af19250505080156200080a575060408051601f3d908101601f19168201909252620008079181019062000b4b565b60015b620008cb576200081962000b77565b806308c379a014156200085a57506200083162000bce565b806200083e57506200085c565b8060405162461bcd60e51b815260040162000326919062000ab2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000326565b6001600160e01b0319811663f23a6e6160e01b146200093e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000326565b50505050505050565b3b151590565b8280546200095b9062000a25565b90600052602060002090601f0160209004810192826200097f5760008555620009ca565b82601f106200099a57805160ff1916838001178555620009ca565b82800160010185558215620009ca579182015b82811115620009ca578251825591602001919060010190620009ad565b50620009d8929150620009dc565b5090565b5b80821115620009d85760008155600101620009dd565b60006020828403121562000a0657600080fd5b81516001600160a01b038116811462000a1e57600080fd5b9392505050565b600181811c9082168062000a3a57607f821691505b6020821081141562000a5c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000815180845260005b8181101562000a8a5760208185018101518683018201520162000a6c565b8181111562000a9d576000602083870101525b50601f01601f19169290920160200192915050565b60208152600062000a1e602083018462000a62565b6000821982111562000ae957634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000b409083018462000a62565b979650505050505050565b60006020828403121562000b5e57600080fd5b81516001600160e01b03198116811462000a1e57600080fd5b600060033d11156200054d5760046000803e5060005160e01c90565b601f8201601f191681016001600160401b038111828210171562000bc757634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d101562000bdd5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000c0d57505050505090565b828501915081518181111562000c265750505050505090565b843d870101602082850101111562000c415750505050505090565b62000c526020828601018762000b93565b509095945050505050565b612ec38062000c6d6000396000f3fe60806040526004361061015c5760003560e01c8062fdd58e1461016157806301ffc9a71461019457806302fe5305146101c457806306fdde03146101e65780630c53c51c146102085780630e89341c1461021b5780630f7e59701461023b57806320379ee5146102685780632693ebf21461027d5780632d0335ab146102aa5780632eb2c2d6146102e05780633408e4701461030057806336a100d5146103135780633adf80b4146103335780633ccfd60b146103535780634e1273f4146103685780634f558e7914610395578063715018a6146103b5578063731133e9146103ca5780638da5cb5b146103ea57806395d89b411461040c578063a22cb46514610421578063a496dedf14610441578063b48ab8b614610461578063bd85b03914610481578063cd53d08e146104ae578063d2a6b51a146104e4578063e985e9c514610504578063f242432a14610524578063f2fde38b14610544575b600080fd5b34801561016d57600080fd5b5061018161017c3660046121d6565b610564565b6040519081526020015b60405180910390f35b3480156101a057600080fd5b506101b46101af366004612218565b6105fe565b604051901515815260200161018b565b3480156101d057600080fd5b506101e46101df3660046122ea565b61064e565b005b3480156101f257600080fd5b506101fb610699565b60405161018b9190612376565b6101fb610216366004612389565b610727565b34801561022757600080fd5b506101fb610236366004612406565b610910565b34801561024757600080fd5b506101fb604051806040016040528060018152602001603160f81b81525081565b34801561027457600080fd5b50600454610181565b34801561028957600080fd5b50610181610298366004612406565b60096020526000908152604090205481565b3480156102b657600080fd5b506101816102c536600461241f565b6001600160a01b031660009081526005602052604090205490565b3480156102ec57600080fd5b506101e46102fb3660046124d0565b610ace565b34801561030c57600080fd5b5046610181565b34801561031f57600080fd5b5061018161032e36600461257d565b610d55565b34801561033f57600080fd5b506101e461034e3660046125d6565b610e9e565b34801561035f57600080fd5b506101e4610f3d565b34801561037457600080fd5b5061038861038336600461268b565b610faf565b60405161018b919061271f565b3480156103a157600080fd5b506101b46103b0366004612406565b6110d8565b3480156103c157600080fd5b506101e46110e3565b3480156103d657600080fd5b506101e46103e5366004612732565b61116c565b3480156103f657600080fd5b506103ff6111ec565b60405161018b9190612794565b34801561041857600080fd5b506101fb6111fb565b34801561042d57600080fd5b506101e461043c3660046127a8565b611208565b34801561044d57600080fd5b506101e461045c3660046127e6565b61131c565b34801561046d57600080fd5b506101e461047c366004612833565b6113db565b34801561048d57600080fd5b5061018161049c366004612406565b60009081526009602052604090205490565b3480156104ba57600080fd5b506103ff6104c9366004612406565b6008602052600090815260409020546001600160a01b031681565b3480156104f057600080fd5b506101e46104ff3660046128c1565b611505565b34801561051057600080fd5b506101b461051f366004612906565b6115bc565b34801561053057600080fd5b506101e461053f366004612934565b611681565b34801561055057600080fd5b506101e461055f36600461241f565b61184e565b60006001600160a01b0383166105d55760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061062f57506001600160e01b031982166303a24d0760e21b145b806105f857506301ffc9a760e01b6001600160e01b03198316146105f8565b6106566119b1565b6001600160a01b03166106676111ec565b6001600160a01b03161461068d5760405162461bcd60e51b81526004016105cc9061299c565b610696816119c0565b50565b600b80546106a6906129d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106d2906129d1565b801561071f5780601f106106f45761010080835404028352916020019161071f565b820191906000526020600020905b81548152906001019060200180831161070257829003601f168201915b505050505081565b60408051606081810183526001600160a01b0388166000818152600560209081529085902054845283015291810186905261076587828787876119d3565b6107bb5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016105cc565b6001600160a01b0387166000908152600560205260409020546107df906001611ac3565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061082f90899033908a90612a06565b60405180910390a1600080306001600160a01b0316888a604051602001610857929190612a3b565b60408051601f198184030181529082905261087191612a6d565b6000604051808303816000865af19150503d80600081146108ae576040519150601f19603f3d011682016040523d82523d6000602084013e6108b3565b606091505b5091509150816109045760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b60448201526064016105cc565b98975050505050505050565b606061091b82611acf565b6109765760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b60648201526084016105cc565b6000828152600a60205260408120805461098f906129d1565b80601f01602080910402602001604051908101604052809291908181526020018280546109bb906129d1565b8015610a085780601f106109dd57610100808354040283529160200191610a08565b820191906000526020600020905b8154815290600101906020018083116109eb57829003601f168201915b50505050509050600081511115610ab8576000838152600a602052604090208054610a32906129d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5e906129d1565b8015610aab5780601f10610a8057610100808354040283529160200191610aab565b820191906000526020600020905b815481529060010190602001808311610a8e57829003601f168201915b5050505050915050919050565b610ac183611aec565b9392505050565b50919050565b8151835114610aef5760405162461bcd60e51b81526004016105cc90612a89565b6001600160a01b038416610b155760405162461bcd60e51b81526004016105cc90612ad1565b610b1d6119b1565b6001600160a01b0316856001600160a01b03161480610b435750610b438561051f6119b1565b610baa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105cc565b6000610bb46119b1565b905060005b8451811015610ce7576000858281518110610bd657610bd6612b16565b602002602001015190506000858381518110610bf457610bf4612b16565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610c445760405162461bcd60e51b81526004016105cc90612b2c565b610c4e8282612b8c565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ccc9190612ba3565b9250508190555050505080610ce090612bbb565b9050610bb9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610d37929190612bd6565b60405180910390a4610d4d818787878787611b80565b505050505050565b6000610d5f6119b1565b6001600160a01b0316610d706111ec565b6001600160a01b031614610d965760405162461bcd60e51b81526004016105cc9061299c565b610d9f85611acf565b15610de75760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b60448201526064016105cc565b610def6119b1565b600086815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055825115610e7b576000858152600a602090815260409091208451610e4192860190612128565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b84604051610e729190612376565b60405180910390a25b610e8786868685611cdc565b505050600082815260096020526040902055919050565b81610ea76119b1565b6000828152600860205260409020546001600160a01b03908116911614610ee05760405162461bcd60e51b81526004016105cc90612bfb565b6000838152600a602090815260409091208351610eff92850190612128565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051610f309190612376565b60405180910390a2505050565b610f456119b1565b6001600160a01b0316610f566111ec565b6001600160a01b031614610f7c5760405162461bcd60e51b81526004016105cc9061299c565b6040514790339082156108fc029083906000818181858888f19350505050158015610fab573d6000803e3d6000fd5b5050565b606081518351146110145760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105cc565b600083516001600160401b0381111561102f5761102f612235565b604051908082528060200260200182016040528015611058578160200160208202803683370190505b50905060005b84518110156110d0576110a385828151811061107c5761107c612b16565b602002602001015185838151811061109657611096612b16565b6020026020010151610564565b8282815181106110b5576110b5612b16565b60209081029190910101526110c981612bbb565b905061105e565b509392505050565b60006105f882611acf565b6110eb6119b1565b6001600160a01b03166110fc6111ec565b6001600160a01b0316146111225760405162461bcd60e51b81526004016105cc9061299c565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b826111756119b1565b6000828152600860205260409020546001600160a01b039081169116146111ae5760405162461bcd60e51b81526004016105cc90612bfb565b6111ba85858585611cdc565b6000848152600960205260409020546111d39084611ac3565b6000948552600960205260409094209390935550505050565b6006546001600160a01b031690565b600c80546106a6906129d1565b816001600160a01b031661121a6119b1565b6001600160a01b031614156112835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105cc565b80600160006112906119b1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556112d46119b1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611310911515815260200190565b60405180910390a35050565b6113246119b1565b6001600160a01b03166113356111ec565b6001600160a01b03161461135b5760405162461bcd60e51b81526004016105cc9061299c565b60005b83518110156113d55761139b84828151811061137c5761137c612b16565b6020026020010151838560405180602001604052806000815250611cdc565b6000828152600960205260409020546113b49084611ac3565b600083815260096020526040902055806113cd81612bbb565b91505061135e565b50505050565b60005b83518110156114f85760008482815181106113fb576113fb612b16565b6020026020010151905061140d6119b1565b6000828152600860205260409020546001600160a01b0390811691161461148e5760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b60648201526084016105cc565b60008483815181106114a2576114a2612b16565b602002602001015190506114d2816009600085815260200190815260200160002054611ac390919063ffffffff16565b6000928352600960205260409092209190915550806114f081612bbb565b9150506113de565b506113d584848484611dae565b6001600160a01b0382166115705760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b60648201526084016105cc565b60005b81518110156115b757600082828151811061159057611590612b16565b602002602001015190506115a48482611f04565b50806115af81612bbb565b915050611573565b505050565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906115f5908890600401612794565b602060405180830381865afa158015611612573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116369190612c4c565b6001600160a01b0316141561164f5760019150506105f8565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b6001600160a01b0384166116a75760405162461bcd60e51b81526004016105cc90612ad1565b6116af6119b1565b6001600160a01b0316856001600160a01b031614806116d557506116d58561051f6119b1565b6117335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105cc565b600061173d6119b1565b905061175e81878761174e88611f75565b61175788611f75565b5050505050565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561179f5760405162461bcd60e51b81526004016105cc90612b2c565b6117a98482612b8c565b6000868152602081815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906117e5908490612ba3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611845828888888888611fc0565b50505050505050565b6118566119b1565b6001600160a01b03166118676111ec565b6001600160a01b03161461188d5760405162461bcd60e51b81526004016105cc9061299c565b6001600160a01b0381166118f25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105cc565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000333014156119a557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506119a89050565b50335b90565b3b151590565b60006119bb61194e565b905090565b8051610fab906002906020840190612128565b60006001600160a01b038616611a395760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016105cc565b6001611a4c611a478761207b565b6120f8565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611a9a573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610ac18284612ba3565b6000908152600860205260409020546001600160a01b0316151590565b606060028054611afb906129d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611b27906129d1565b8015611b745780601f10611b4957610100808354040283529160200191611b74565b820191906000526020600020905b815481529060010190602001808311611b5757829003601f168201915b50505050509050919050565b6001600160a01b0384163b15610d4d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611bc49089908990889088908890600401612c69565b6020604051808303816000875af1925050508015611bff575060408051601f3d908101601f19168201909252611bfc91810190612cbb565b60015b611cac57611c0b612cd8565b806308c379a01415611c455750611c20612cf3565b80611c2b5750611c47565b8060405162461bcd60e51b81526004016105cc9190612376565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105cc565b6001600160e01b0319811663bc197c8160e01b146118455760405162461bcd60e51b81526004016105cc90612d7c565b6001600160a01b038416611d025760405162461bcd60e51b81526004016105cc90612dc4565b6000611d0c6119b1565b9050611d1e8160008761174e88611f75565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611d4e908490612ba3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461175781600087878787611fc0565b6001600160a01b038416611dd45760405162461bcd60e51b81526004016105cc90612dc4565b8151835114611df55760405162461bcd60e51b81526004016105cc90612a89565b6000611dff6119b1565b905060005b8451811015611e9c57838181518110611e1f57611e1f612b16565b6020026020010151600080878481518110611e3c57611e3c612b16565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e849190612ba3565b90915550819050611e9481612bbb565b915050611e04565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611eed929190612bd6565b60405180910390a461175781600087878787611b80565b80611f0d6119b1565b6000828152600860205260409020546001600160a01b03908116911614611f465760405162461bcd60e51b81526004016105cc90612bfb565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611faf57611faf612b16565b602090810291909101015292915050565b6001600160a01b0384163b15610d4d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120049089908990889088908890600401612e05565b6020604051808303816000875af192505050801561203f575060408051601f3d908101601f1916820190925261203c91810190612cbb565b60015b61204b57611c0b612cd8565b6001600160e01b0319811663f23a6e6160e01b146118455760405162461bcd60e51b81526004016105cc90612d7c565b6000604051806080016040528060438152602001612e4b60439139805160209182012083518483015160408087015180519086012090516120db950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061210360045490565b60405161190160f01b60208201526022810191909152604281018390526062016120db565b828054612134906129d1565b90600052602060002090601f016020900481019282612156576000855561219c565b82601f1061216f57805160ff191683800117855561219c565b8280016001018555821561219c579182015b8281111561219c578251825591602001919060010190612181565b506121a89291506121ac565b5090565b5b808211156121a857600081556001016121ad565b6001600160a01b038116811461069657600080fd5b600080604083850312156121e957600080fd5b82356121f4816121c1565b946020939093013593505050565b6001600160e01b03198116811461069657600080fd5b60006020828403121561222a57600080fd5b8135610ac181612202565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561227057612270612235565b6040525050565b600082601f83011261228857600080fd5b81356001600160401b038111156122a1576122a1612235565b6040516122b8601f8301601f19166020018261224b565b8181528460208386010111156122cd57600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156122fc57600080fd5b81356001600160401b0381111561231257600080fd5b61167984828501612277565b60005b83811015612339578181015183820152602001612321565b838111156113d55750506000910152565b6000815180845261236281602086016020860161231e565b601f01601f19169290920160200192915050565b602081526000610ac1602083018461234a565b600080600080600060a086880312156123a157600080fd5b85356123ac816121c1565b945060208601356001600160401b038111156123c757600080fd5b6123d388828901612277565b9450506040860135925060608601359150608086013560ff811681146123f857600080fd5b809150509295509295909350565b60006020828403121561241857600080fd5b5035919050565b60006020828403121561243157600080fd5b8135610ac1816121c1565b60006001600160401b0382111561245557612455612235565b5060051b60200190565b600082601f83011261247057600080fd5b8135602061247d8261243c565b60405161248a828261224b565b83815260059390931b85018201928281019150868411156124aa57600080fd5b8286015b848110156124c557803583529183019183016124ae565b509695505050505050565b600080600080600060a086880312156124e857600080fd5b85356124f3816121c1565b94506020860135612503816121c1565b935060408601356001600160401b038082111561251f57600080fd5b61252b89838a0161245f565b9450606088013591508082111561254157600080fd5b61254d89838a0161245f565b9350608088013591508082111561256357600080fd5b5061257088828901612277565b9150509295509295909350565b600080600080600060a0868803121561259557600080fd5b85356125a0816121c1565b9450602086013593506040860135925060608601356001600160401b03808211156125ca57600080fd5b61254d89838a01612277565b600080604083850312156125e957600080fd5b8235915060208301356001600160401b0381111561260657600080fd5b61261285828601612277565b9150509250929050565b600082601f83011261262d57600080fd5b8135602061263a8261243c565b604051612647828261224b565b83815260059390931b850182019282810191508684111561266757600080fd5b8286015b848110156124c557803561267e816121c1565b835291830191830161266b565b6000806040838503121561269e57600080fd5b82356001600160401b03808211156126b557600080fd5b6126c18683870161261c565b935060208501359150808211156126d757600080fd5b506126128582860161245f565b600081518084526020808501945080840160005b83811015612714578151875295820195908201906001016126f8565b509495945050505050565b602081526000610ac160208301846126e4565b6000806000806080858703121561274857600080fd5b8435612753816121c1565b9350602085013592506040850135915060608501356001600160401b0381111561277c57600080fd5b61278887828801612277565b91505092959194509250565b6001600160a01b0391909116815260200190565b600080604083850312156127bb57600080fd5b82356127c6816121c1565b9150602083013580151581146127db57600080fd5b809150509250929050565b6000806000606084860312156127fb57600080fd5b83356001600160401b0381111561281157600080fd5b61281d8682870161261c565b9660208601359650604090950135949350505050565b6000806000806080858703121561284957600080fd5b8435612854816121c1565b935060208501356001600160401b038082111561287057600080fd5b61287c8883890161245f565b9450604087013591508082111561289257600080fd5b61289e8883890161245f565b935060608701359150808211156128b457600080fd5b5061278887828801612277565b600080604083850312156128d457600080fd5b82356128df816121c1565b915060208301356001600160401b038111156128fa57600080fd5b6126128582860161245f565b6000806040838503121561291957600080fd5b8235612924816121c1565b915060208301356127db816121c1565b600080600080600060a0868803121561294c57600080fd5b8535612957816121c1565b94506020860135612967816121c1565b9350604086013592506060860135915060808601356001600160401b0381111561299057600080fd5b61257088828901612277565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806129e557607f821691505b60208210811415610ac857634e487b7160e01b600052602260045260246000fd5b6001600160a01b03848116825283166020820152606060408201819052600090612a329083018461234a565b95945050505050565b60008351612a4d81846020880161231e565b60609390931b6001600160601b0319169190920190815260140192915050565b60008251612a7f81846020870161231e565b9190910192915050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015612b9e57612b9e612b76565b500390565b60008219821115612bb657612bb6612b76565b500190565b6000600019821415612bcf57612bcf612b76565b5060010190565b604081526000612be960408301856126e4565b8281036020840152612a3281856126e4565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b600060208284031215612c5e57600080fd5b8151610ac1816121c1565b6001600160a01b0386811682528516602082015260a060408201819052600090612c95908301866126e4565b8281036060840152612ca781866126e4565b90508281036080840152610904818561234a565b600060208284031215612ccd57600080fd5b8151610ac181612202565b600060033d11156119a85760046000803e5060005160e01c90565b600060443d1015612d015790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612d3057505050505090565b8285019150815181811115612d485750505050505090565b843d8701016020828501011115612d625750505050505090565b612d716020828601018761224b565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612e3f9083018461234a565b97965050505050505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212203b1ced0b02994132b7612928270dcce25e658d7424ebb2808135bb73dc08808764736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f6170692d6567672e70617261646973652e636f6d2f746f6b656e2f3368747470733a2f2f6170692d6567672e70617261646973652e636f6d2f746f6b656e2f3168747470733a2f2f6170692d6567672e70617261646973652e636f6d2f746f6b656e2f32000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x60806040526004361061015c5760003560e01c8062fdd58e1461016157806301ffc9a71461019457806302fe5305146101c457806306fdde03146101e65780630c53c51c146102085780630e89341c1461021b5780630f7e59701461023b57806320379ee5146102685780632693ebf21461027d5780632d0335ab146102aa5780632eb2c2d6146102e05780633408e4701461030057806336a100d5146103135780633adf80b4146103335780633ccfd60b146103535780634e1273f4146103685780634f558e7914610395578063715018a6146103b5578063731133e9146103ca5780638da5cb5b146103ea57806395d89b411461040c578063a22cb46514610421578063a496dedf14610441578063b48ab8b614610461578063bd85b03914610481578063cd53d08e146104ae578063d2a6b51a146104e4578063e985e9c514610504578063f242432a14610524578063f2fde38b14610544575b600080fd5b34801561016d57600080fd5b5061018161017c3660046121d6565b610564565b6040519081526020015b60405180910390f35b3480156101a057600080fd5b506101b46101af366004612218565b6105fe565b604051901515815260200161018b565b3480156101d057600080fd5b506101e46101df3660046122ea565b61064e565b005b3480156101f257600080fd5b506101fb610699565b60405161018b9190612376565b6101fb610216366004612389565b610727565b34801561022757600080fd5b506101fb610236366004612406565b610910565b34801561024757600080fd5b506101fb604051806040016040528060018152602001603160f81b81525081565b34801561027457600080fd5b50600454610181565b34801561028957600080fd5b50610181610298366004612406565b60096020526000908152604090205481565b3480156102b657600080fd5b506101816102c536600461241f565b6001600160a01b031660009081526005602052604090205490565b3480156102ec57600080fd5b506101e46102fb3660046124d0565b610ace565b34801561030c57600080fd5b5046610181565b34801561031f57600080fd5b5061018161032e36600461257d565b610d55565b34801561033f57600080fd5b506101e461034e3660046125d6565b610e9e565b34801561035f57600080fd5b506101e4610f3d565b34801561037457600080fd5b5061038861038336600461268b565b610faf565b60405161018b919061271f565b3480156103a157600080fd5b506101b46103b0366004612406565b6110d8565b3480156103c157600080fd5b506101e46110e3565b3480156103d657600080fd5b506101e46103e5366004612732565b61116c565b3480156103f657600080fd5b506103ff6111ec565b60405161018b9190612794565b34801561041857600080fd5b506101fb6111fb565b34801561042d57600080fd5b506101e461043c3660046127a8565b611208565b34801561044d57600080fd5b506101e461045c3660046127e6565b61131c565b34801561046d57600080fd5b506101e461047c366004612833565b6113db565b34801561048d57600080fd5b5061018161049c366004612406565b60009081526009602052604090205490565b3480156104ba57600080fd5b506103ff6104c9366004612406565b6008602052600090815260409020546001600160a01b031681565b3480156104f057600080fd5b506101e46104ff3660046128c1565b611505565b34801561051057600080fd5b506101b461051f366004612906565b6115bc565b34801561053057600080fd5b506101e461053f366004612934565b611681565b34801561055057600080fd5b506101e461055f36600461241f565b61184e565b60006001600160a01b0383166105d55760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061062f57506001600160e01b031982166303a24d0760e21b145b806105f857506301ffc9a760e01b6001600160e01b03198316146105f8565b6106566119b1565b6001600160a01b03166106676111ec565b6001600160a01b03161461068d5760405162461bcd60e51b81526004016105cc9061299c565b610696816119c0565b50565b600b80546106a6906129d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106d2906129d1565b801561071f5780601f106106f45761010080835404028352916020019161071f565b820191906000526020600020905b81548152906001019060200180831161070257829003601f168201915b505050505081565b60408051606081810183526001600160a01b0388166000818152600560209081529085902054845283015291810186905261076587828787876119d3565b6107bb5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016105cc565b6001600160a01b0387166000908152600560205260409020546107df906001611ac3565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061082f90899033908a90612a06565b60405180910390a1600080306001600160a01b0316888a604051602001610857929190612a3b565b60408051601f198184030181529082905261087191612a6d565b6000604051808303816000865af19150503d80600081146108ae576040519150601f19603f3d011682016040523d82523d6000602084013e6108b3565b606091505b5091509150816109045760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b60448201526064016105cc565b98975050505050505050565b606061091b82611acf565b6109765760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b60648201526084016105cc565b6000828152600a60205260408120805461098f906129d1565b80601f01602080910402602001604051908101604052809291908181526020018280546109bb906129d1565b8015610a085780601f106109dd57610100808354040283529160200191610a08565b820191906000526020600020905b8154815290600101906020018083116109eb57829003601f168201915b50505050509050600081511115610ab8576000838152600a602052604090208054610a32906129d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5e906129d1565b8015610aab5780601f10610a8057610100808354040283529160200191610aab565b820191906000526020600020905b815481529060010190602001808311610a8e57829003601f168201915b5050505050915050919050565b610ac183611aec565b9392505050565b50919050565b8151835114610aef5760405162461bcd60e51b81526004016105cc90612a89565b6001600160a01b038416610b155760405162461bcd60e51b81526004016105cc90612ad1565b610b1d6119b1565b6001600160a01b0316856001600160a01b03161480610b435750610b438561051f6119b1565b610baa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105cc565b6000610bb46119b1565b905060005b8451811015610ce7576000858281518110610bd657610bd6612b16565b602002602001015190506000858381518110610bf457610bf4612b16565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610c445760405162461bcd60e51b81526004016105cc90612b2c565b610c4e8282612b8c565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ccc9190612ba3565b9250508190555050505080610ce090612bbb565b9050610bb9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610d37929190612bd6565b60405180910390a4610d4d818787878787611b80565b505050505050565b6000610d5f6119b1565b6001600160a01b0316610d706111ec565b6001600160a01b031614610d965760405162461bcd60e51b81526004016105cc9061299c565b610d9f85611acf565b15610de75760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b60448201526064016105cc565b610def6119b1565b600086815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055825115610e7b576000858152600a602090815260409091208451610e4192860190612128565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b84604051610e729190612376565b60405180910390a25b610e8786868685611cdc565b505050600082815260096020526040902055919050565b81610ea76119b1565b6000828152600860205260409020546001600160a01b03908116911614610ee05760405162461bcd60e51b81526004016105cc90612bfb565b6000838152600a602090815260409091208351610eff92850190612128565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051610f309190612376565b60405180910390a2505050565b610f456119b1565b6001600160a01b0316610f566111ec565b6001600160a01b031614610f7c5760405162461bcd60e51b81526004016105cc9061299c565b6040514790339082156108fc029083906000818181858888f19350505050158015610fab573d6000803e3d6000fd5b5050565b606081518351146110145760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105cc565b600083516001600160401b0381111561102f5761102f612235565b604051908082528060200260200182016040528015611058578160200160208202803683370190505b50905060005b84518110156110d0576110a385828151811061107c5761107c612b16565b602002602001015185838151811061109657611096612b16565b6020026020010151610564565b8282815181106110b5576110b5612b16565b60209081029190910101526110c981612bbb565b905061105e565b509392505050565b60006105f882611acf565b6110eb6119b1565b6001600160a01b03166110fc6111ec565b6001600160a01b0316146111225760405162461bcd60e51b81526004016105cc9061299c565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b826111756119b1565b6000828152600860205260409020546001600160a01b039081169116146111ae5760405162461bcd60e51b81526004016105cc90612bfb565b6111ba85858585611cdc565b6000848152600960205260409020546111d39084611ac3565b6000948552600960205260409094209390935550505050565b6006546001600160a01b031690565b600c80546106a6906129d1565b816001600160a01b031661121a6119b1565b6001600160a01b031614156112835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105cc565b80600160006112906119b1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556112d46119b1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611310911515815260200190565b60405180910390a35050565b6113246119b1565b6001600160a01b03166113356111ec565b6001600160a01b03161461135b5760405162461bcd60e51b81526004016105cc9061299c565b60005b83518110156113d55761139b84828151811061137c5761137c612b16565b6020026020010151838560405180602001604052806000815250611cdc565b6000828152600960205260409020546113b49084611ac3565b600083815260096020526040902055806113cd81612bbb565b91505061135e565b50505050565b60005b83518110156114f85760008482815181106113fb576113fb612b16565b6020026020010151905061140d6119b1565b6000828152600860205260409020546001600160a01b0390811691161461148e5760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b60648201526084016105cc565b60008483815181106114a2576114a2612b16565b602002602001015190506114d2816009600085815260200190815260200160002054611ac390919063ffffffff16565b6000928352600960205260409092209190915550806114f081612bbb565b9150506113de565b506113d584848484611dae565b6001600160a01b0382166115705760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b60648201526084016105cc565b60005b81518110156115b757600082828151811061159057611590612b16565b602002602001015190506115a48482611f04565b50806115af81612bbb565b915050611573565b505050565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906115f5908890600401612794565b602060405180830381865afa158015611612573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116369190612c4c565b6001600160a01b0316141561164f5760019150506105f8565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b6001600160a01b0384166116a75760405162461bcd60e51b81526004016105cc90612ad1565b6116af6119b1565b6001600160a01b0316856001600160a01b031614806116d557506116d58561051f6119b1565b6117335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105cc565b600061173d6119b1565b905061175e81878761174e88611f75565b61175788611f75565b5050505050565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561179f5760405162461bcd60e51b81526004016105cc90612b2c565b6117a98482612b8c565b6000868152602081815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906117e5908490612ba3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611845828888888888611fc0565b50505050505050565b6118566119b1565b6001600160a01b03166118676111ec565b6001600160a01b03161461188d5760405162461bcd60e51b81526004016105cc9061299c565b6001600160a01b0381166118f25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105cc565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000333014156119a557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506119a89050565b50335b90565b3b151590565b60006119bb61194e565b905090565b8051610fab906002906020840190612128565b60006001600160a01b038616611a395760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016105cc565b6001611a4c611a478761207b565b6120f8565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611a9a573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610ac18284612ba3565b6000908152600860205260409020546001600160a01b0316151590565b606060028054611afb906129d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611b27906129d1565b8015611b745780601f10611b4957610100808354040283529160200191611b74565b820191906000526020600020905b815481529060010190602001808311611b5757829003601f168201915b50505050509050919050565b6001600160a01b0384163b15610d4d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611bc49089908990889088908890600401612c69565b6020604051808303816000875af1925050508015611bff575060408051601f3d908101601f19168201909252611bfc91810190612cbb565b60015b611cac57611c0b612cd8565b806308c379a01415611c455750611c20612cf3565b80611c2b5750611c47565b8060405162461bcd60e51b81526004016105cc9190612376565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105cc565b6001600160e01b0319811663bc197c8160e01b146118455760405162461bcd60e51b81526004016105cc90612d7c565b6001600160a01b038416611d025760405162461bcd60e51b81526004016105cc90612dc4565b6000611d0c6119b1565b9050611d1e8160008761174e88611f75565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611d4e908490612ba3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461175781600087878787611fc0565b6001600160a01b038416611dd45760405162461bcd60e51b81526004016105cc90612dc4565b8151835114611df55760405162461bcd60e51b81526004016105cc90612a89565b6000611dff6119b1565b905060005b8451811015611e9c57838181518110611e1f57611e1f612b16565b6020026020010151600080878481518110611e3c57611e3c612b16565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e849190612ba3565b90915550819050611e9481612bbb565b915050611e04565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611eed929190612bd6565b60405180910390a461175781600087878787611b80565b80611f0d6119b1565b6000828152600860205260409020546001600160a01b03908116911614611f465760405162461bcd60e51b81526004016105cc90612bfb565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611faf57611faf612b16565b602090810291909101015292915050565b6001600160a01b0384163b15610d4d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120049089908990889088908890600401612e05565b6020604051808303816000875af192505050801561203f575060408051601f3d908101601f1916820190925261203c91810190612cbb565b60015b61204b57611c0b612cd8565b6001600160e01b0319811663f23a6e6160e01b146118455760405162461bcd60e51b81526004016105cc90612d7c565b6000604051806080016040528060438152602001612e4b60439139805160209182012083518483015160408087015180519086012090516120db950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061210360045490565b60405161190160f01b60208201526022810191909152604281018390526062016120db565b828054612134906129d1565b90600052602060002090601f016020900481019282612156576000855561219c565b82601f1061216f57805160ff191683800117855561219c565b8280016001018555821561219c579182015b8281111561219c578251825591602001919060010190612181565b506121a89291506121ac565b5090565b5b808211156121a857600081556001016121ad565b6001600160a01b038116811461069657600080fd5b600080604083850312156121e957600080fd5b82356121f4816121c1565b946020939093013593505050565b6001600160e01b03198116811461069657600080fd5b60006020828403121561222a57600080fd5b8135610ac181612202565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561227057612270612235565b6040525050565b600082601f83011261228857600080fd5b81356001600160401b038111156122a1576122a1612235565b6040516122b8601f8301601f19166020018261224b565b8181528460208386010111156122cd57600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156122fc57600080fd5b81356001600160401b0381111561231257600080fd5b61167984828501612277565b60005b83811015612339578181015183820152602001612321565b838111156113d55750506000910152565b6000815180845261236281602086016020860161231e565b601f01601f19169290920160200192915050565b602081526000610ac1602083018461234a565b600080600080600060a086880312156123a157600080fd5b85356123ac816121c1565b945060208601356001600160401b038111156123c757600080fd5b6123d388828901612277565b9450506040860135925060608601359150608086013560ff811681146123f857600080fd5b809150509295509295909350565b60006020828403121561241857600080fd5b5035919050565b60006020828403121561243157600080fd5b8135610ac1816121c1565b60006001600160401b0382111561245557612455612235565b5060051b60200190565b600082601f83011261247057600080fd5b8135602061247d8261243c565b60405161248a828261224b565b83815260059390931b85018201928281019150868411156124aa57600080fd5b8286015b848110156124c557803583529183019183016124ae565b509695505050505050565b600080600080600060a086880312156124e857600080fd5b85356124f3816121c1565b94506020860135612503816121c1565b935060408601356001600160401b038082111561251f57600080fd5b61252b89838a0161245f565b9450606088013591508082111561254157600080fd5b61254d89838a0161245f565b9350608088013591508082111561256357600080fd5b5061257088828901612277565b9150509295509295909350565b600080600080600060a0868803121561259557600080fd5b85356125a0816121c1565b9450602086013593506040860135925060608601356001600160401b03808211156125ca57600080fd5b61254d89838a01612277565b600080604083850312156125e957600080fd5b8235915060208301356001600160401b0381111561260657600080fd5b61261285828601612277565b9150509250929050565b600082601f83011261262d57600080fd5b8135602061263a8261243c565b604051612647828261224b565b83815260059390931b850182019282810191508684111561266757600080fd5b8286015b848110156124c557803561267e816121c1565b835291830191830161266b565b6000806040838503121561269e57600080fd5b82356001600160401b03808211156126b557600080fd5b6126c18683870161261c565b935060208501359150808211156126d757600080fd5b506126128582860161245f565b600081518084526020808501945080840160005b83811015612714578151875295820195908201906001016126f8565b509495945050505050565b602081526000610ac160208301846126e4565b6000806000806080858703121561274857600080fd5b8435612753816121c1565b9350602085013592506040850135915060608501356001600160401b0381111561277c57600080fd5b61278887828801612277565b91505092959194509250565b6001600160a01b0391909116815260200190565b600080604083850312156127bb57600080fd5b82356127c6816121c1565b9150602083013580151581146127db57600080fd5b809150509250929050565b6000806000606084860312156127fb57600080fd5b83356001600160401b0381111561281157600080fd5b61281d8682870161261c565b9660208601359650604090950135949350505050565b6000806000806080858703121561284957600080fd5b8435612854816121c1565b935060208501356001600160401b038082111561287057600080fd5b61287c8883890161245f565b9450604087013591508082111561289257600080fd5b61289e8883890161245f565b935060608701359150808211156128b457600080fd5b5061278887828801612277565b600080604083850312156128d457600080fd5b82356128df816121c1565b915060208301356001600160401b038111156128fa57600080fd5b6126128582860161245f565b6000806040838503121561291957600080fd5b8235612924816121c1565b915060208301356127db816121c1565b600080600080600060a0868803121561294c57600080fd5b8535612957816121c1565b94506020860135612967816121c1565b9350604086013592506060860135915060808601356001600160401b0381111561299057600080fd5b61257088828901612277565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806129e557607f821691505b60208210811415610ac857634e487b7160e01b600052602260045260246000fd5b6001600160a01b03848116825283166020820152606060408201819052600090612a329083018461234a565b95945050505050565b60008351612a4d81846020880161231e565b60609390931b6001600160601b0319169190920190815260140192915050565b60008251612a7f81846020870161231e565b9190910192915050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015612b9e57612b9e612b76565b500390565b60008219821115612bb657612bb6612b76565b500190565b6000600019821415612bcf57612bcf612b76565b5060010190565b604081526000612be960408301856126e4565b8281036020840152612a3281856126e4565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b600060208284031215612c5e57600080fd5b8151610ac1816121c1565b6001600160a01b0386811682528516602082015260a060408201819052600090612c95908301866126e4565b8281036060840152612ca781866126e4565b90508281036080840152610904818561234a565b600060208284031215612ccd57600080fd5b8151610ac181612202565b600060033d11156119a85760046000803e5060005160e01c90565b600060443d1015612d015790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612d3057505050505090565b8285019150815181811115612d485750505050505090565b843d8701016020828501011115612d625750505050505090565b612d716020828601018761224b565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612e3f9083018461234a565b97965050505050505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212203b1ced0b02994132b7612928270dcce25e658d7424ebb2808135bb73dc08808764736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.