ERC-1155
Overview
Max Total Supply
0
Holders
2,895
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
Contract Source Code Verified (Genesis Bytecode Match Only)
Contract Name:
OptionToken
Compiler Version
v0.7.6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: ISC pragma solidity 0.7.6; pragma experimental ABIEncoderV2; // Inherited import "./openzeppelin-l2/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IOptionToken.sol"; /** * @title OptionToken * @author Lyra * @dev Provides a tokenised representation of each OptionListing offered * by the OptionMarket. */ contract OptionToken is IOptionToken, ERC1155, Ownable { bool internal initialized = false; address internal optionMarket; constructor(string memory uri_) ERC1155(uri_) Ownable() {} /** * @dev Initialise the contract. * @param _optionMarket The OptionMarket contract address. */ function init(address _optionMarket) external { require(!initialized, "contract already initialized"); optionMarket = _optionMarket; initialized = true; } /** * @dev Initialise the contract. * @param newURI The new uri definition for the contract. */ function setURI(string memory newURI) external override onlyOwner { _setURI(newURI); } /** * @dev Initialise the contract. * * @param account The owner of the tokens. * @param id The listingId + tradeType of the option. * @param amount The amount of options. */ function mint( address account, uint id, uint amount ) external override onlyOptionMarket { bytes memory data; _mint(account, id, amount, data); } /** * @dev Burn the specified amount of token for the account. * * @param account The owner of the tokens. * @param id The listingId + tradeType of the option. * @param amount The amount of options. */ function burn( address account, uint id, uint amount ) external override onlyOptionMarket { _burn(account, id, amount); } modifier onlyOptionMarket virtual { require(msg.sender == address(optionMarket), "only OptionMarket"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/introspection/ERC165.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./Address.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 SafeMath for uint; using Address for address; // Mapping from token ID to account balances mapping(uint => mapping(address => uint)) 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; /* * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4 * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6 * * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^ * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26 */ bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26; /* * bytes4(keccak256('uri(uint256)')) == 0x0e89341c */ bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); // register the supported interfaces to conform to ERC1155 via ERC165 _registerInterface(_INTERFACE_ID_ERC1155); // register the supported interfaces to conform to ERC1155MetadataURI via ERC165 _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI); } /** * @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(uint) external view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint id) public view virtual override returns (uint) { 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, uint[] memory ids) public view virtual override returns (uint[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint[] memory batchBalances = new uint[](accounts.length); for (uint 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, uint id, uint 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); _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); emit TransferSingle(operator, from, to, id, amount); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint[] memory ids, uint[] 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 (uint i = 0; i < ids.length; ++i) { uint id = ids[i]; uint amount = amounts[i]; _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); } emit TransferBatch(operator, from, to, ids, amounts); } /** * @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, uint id, uint 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] = _balances[id][account].add(amount); emit TransferSingle(operator, address(0), account, id, amount); } /** * @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, uint[] memory ids, uint[] 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].add(_balances[ids[i]][to]); } emit TransferBatch(operator, address(0), to, ids, amounts); } /** * @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, uint id, uint 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), ""); _balances[id][account] = _balances[id][account].sub(amount, "ERC1155: burn amount exceeds balance"); 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, uint[] memory ids, uint[] 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++) { _balances[ids[i]][account] = _balances[ids[i]][account].sub(amounts[i], "ERC1155: burn amount exceeds balance"); } 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, uint[] memory ids, uint[] memory amounts, bytes memory data ) internal virtual {} function _asSingletonArray(uint element) private pure returns (uint[] memory) { uint[] memory array = new uint[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { 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: ISC pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol"; interface IOptionToken is IERC1155, IERC1155MetadataURI { function setURI(string memory newURI) external; function mint( address account, uint id, uint amount ) external; function burn( address account, uint id, uint amount ) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../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.6.2 <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.6.0 <0.8.0; import "../../introspection/IERC165.sol"; /** * _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.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { 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.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { 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) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; /** * @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. uint size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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 functionCallWithoutValue(target, data, 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 functionCallWithoutValue(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithoutValue(target, data, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithoutValue-address-bytes-uint256-}[`functionCallWithoutValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithoutValue( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call(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.6.0 <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); }
{ "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "optimizer": { "enabled": false, "runs": 200 }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_optionMarket","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600460146101000a8162000019620002ee565b8160ff021916908315150217906200003062000353565b5050503480156200004b5760008062000048620003ba565b50505b50604051620034f6380380620034f6833981810160405281019062000071919062000607565b806200008a6301ffc9a760e01b6200019860201b60201c565b6200009b81620002c060201b60201c565b620000b363d9b67a2660e01b6200019860201b60201c565b620000cb630e89341c60e01b6200019860201b60201c565b506000620000de620002dc60201b60201c565b905080600460006101000a81620000f4620002ee565b8173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217906200013262000353565b5050508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505062000701565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e7465726661636520696400000000815250602001915050604051809103906200023d620003ba565b50505b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81620002a3620002ee565b8160ff02191690831515021790620002ba62000353565b50505050565b8060039080519060200190620002d89291906200042a565b5050565b60005a620002e9620004f6565b905090565b6303daa959598160e01b8152836004820152602081602483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b60408110156200034e5760008183015260208101905062000332565b505050565b6322bd64c0598160e01b8152836004820152846024820152600081604483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b60005b6040811015620003b55760008183015260208101905062000399565b505050565b632a2a7adb598160e01b8152600481016020815285602082015260005b86811015620003f7578086015181604084010152602081019050620003d7565b506020828760640184336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b505050565b828062000436620002ee565b600181600116156101000203166002900490600052602060002090601f01602090048101928262000476576000856200046e62000353565b5050620004e3565b82601f106200049c57805160ff191683800117856200049462000353565b5050620004e3565b82800160010185620004ad62000353565b50508215620004e3579182015b82811115620004e257825182620004d062000353565b505091602001919060010190620004ba565b5b509050620004f2919062000555565b5090565b6373509064598160e01b8152602081600483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b6040811015620005505760008183015260208101905062000534565b505050565b5b808211156200057b576000816000906200056f62000353565b50505060010162000556565b5090565b600062000596620005908462000696565b62000662565b905082815260208101848484011115620005ba57600080620005b7620003ba565b50505b620005c7848285620006c9565b509392505050565b600082601f830112620005ec57600080620005e9620003ba565b50505b8151620005fe8482602086016200057f565b91505092915050565b600060208284031215620006255760008062000622620003ba565b50505b600082015167ffffffffffffffff8111156200064b5760008062000648620003ba565b50505b6200065984828501620005cf565b91505092915050565b6000604051905081810181811067ffffffffffffffff821117156200068c576200068b620006ff565b5b8060405250919050565b600067ffffffffffffffff821115620006b457620006b3620006ff565b5b601f19601f8301169050602081019050919050565b60005b83811015620006e9578082015181840152602081019050620006cc565b83811115620006f9576000848401525b50505050565bfe5b612de580620007116000396000f3fe608060405234801561001957600080610016611e1b565b50505b50600436106100fd5760003560e01c80634e1273f4116100a0578063e985e9c51161006f578063e985e9c51461027f578063f242432a146102af578063f2fde38b146102cb578063f5298aca146102e7576100fd565b80634e1273f41461020b578063715018a61461023b5780638da5cb5b14610245578063a22cb46514610263576100fd565b80630e89341c116100dc5780630e89341c14610187578063156e29f6146101b757806319ab453c146101d35780632eb2c2d6146101ef576100fd565b8062fdd58e1461010b57806301ffc9a71461013b57806302fe53051461016b575b600080610108611e1b565b50505b61012560048036038101906101209190612565565b610303565b6040516101329190612965565b60405180910390f35b61015560048036038101906101509190612689565b6103f3565b60405161016291906128e8565b60405180910390f35b610185600480360381019061018091906126bb565b610461565b005b6101a1600480360381019061019c919061270e565b610525565b6040516101ae9190612903565b60405180910390f35b6101d160048036038101906101cc91906125aa565b6105e5565b005b6101ed60048036038101906101e89190612325565b6106a1565b005b6102096004803603810190610204919061239c565b610780565b005b61022560048036038101906102209190612602565b610c38565b60405161023291906128c6565b60405180910390f35b610243610d5c565b005b61024d610eec565b60405161025a91906128ab565b60405180910390f35b61027d60048036038101906102789190612520565b610f1d565b005b61029960048036038101906102949190612357565b6110cf565b6040516102a691906128e8565b60405180910390f35b6102c960048036038101906102c4919061247f565b61116a565b005b6102e560048036038101906102e09190612325565b611503565b005b61030160048036038101906102fc91906125aa565b611721565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612c08602b913960400191505060405180910390610390611e1b565b50505b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206103eb611e89565b905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020600090610450611e89565b906101000a900460ff169050919050565b6104696117d9565b73ffffffffffffffffffffffffffffffffffffffff16610487610eec565b73ffffffffffffffffffffffffffffffffffffffff1614610519576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390610516611e1b565b50505b610522816117e9565b50565b6060600380610532611e89565b600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828061056d611e89565b600181600116156101000203166002900480156105d95780601f106105a7576101008083610599611e89565b0402835291602001916105d9565b820191906000526020600020905b816105be611e89565b815290600101906020018083116105b557829003601f168201915b50505050509050919050565b60056000906105f2611e89565b906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff165a61062e611eec565b73ffffffffffffffffffffffffffffffffffffffff161461068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067b90612945565b6040518091039061068a611e1b565b50505b606061069b84848484611803565b50505050565b60046014906106ae611e89565b906101000a900460ff1615610701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef90612925565b604051809103906106fe611e1b565b50505b80600560006101000a81610713611e89565b8173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179061074f611f49565b5050506001600460146101000a81610765611e89565b8160ff0219169083151502179061077a611f49565b50505050565b81518351146107e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612d9c60289139604001915050604051809103906107e0611e1b565b50505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610872576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612ca6602591396040019150506040518091039061086f611e1b565b50505b61087a6117d9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108c057506108bf856108ba6117d9565b6110cf565b5b61091e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180612ccb603291396040019150506040518091039061091b611e1b565b50505b60006109286117d9565b9050610938818787878787611a10565b60005b8451811015610b2957600085828151811061095257fe5b60200260200101519050600085838151811061096a57fe5b602002602001015190506109f8816040518060600160405280602a8152602001612d20602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206109e9611e89565b611a189092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190610a52611f49565b505050610abf816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020610ab1611e89565b611adb90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190610b19611f49565b505050505080600101905061093b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bd9578082015181840152602081019050610bbe565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c1b578082015181840152602081019050610c00565b5050505090500194505050505060405180910390a4505050505050565b60608151835114610c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612d736029913960400191505060405180910390610c9a611e1b565b50505b6000835167ffffffffffffffff81118015610cc057600080610cbd611e1b565b50505b50604051908082528060200260200182016040528015610cef5781602001602082028036833780820191505090505b50905060005b8451811015610d5157610d2e858281518110610d0d57fe5b6020026020010151858381518110610d2157fe5b6020026020010151610303565b828281518110610d3a57fe5b602002602001018181525050806001019050610cf5565b508091505092915050565b610d646117d9565b73ffffffffffffffffffffffffffffffffffffffff16610d82610eec565b73ffffffffffffffffffffffffffffffffffffffff1614610e14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390610e11611e1b565b50505b600073ffffffffffffffffffffffffffffffffffffffff166004600090610e39611e89565b906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600460006101000a81610eab611e89565b8173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790610ee7611f49565b505050565b60006004600090610efb611e89565b906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8173ffffffffffffffffffffffffffffffffffffffff16610f3c6117d9565b73ffffffffffffffffffffffffffffffffffffffff161415610fb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612d4a6029913960400191505060405180910390610faf611e1b565b50505b8060026000610fbf6117d9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81611045611e89565b8160ff0219169083151502179061105a611f49565b5050508173ffffffffffffffffffffffffffffffffffffffff1661107c6117d9565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090611158611e89565b906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156111f9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612ca660259139604001915050604051809103906111f6611e1b565b50505b6112016117d9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806112475750611246856112416117d9565b6110cf565b5b6112a5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612c7d60299139604001915050604051809103906112a2611e1b565b50505b60006112af6117d9565b90506112cf8187876112c088611b6c565b6112c988611b6c565b87611a10565b611353836040518060600160405280602a8152602001612d20602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611344611e89565b611a189092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081906113ad611f49565b50505061141a836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061140c611e89565b611adb90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190611474611f49565b5050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4505050505050565b61150b6117d9565b73ffffffffffffffffffffffffffffffffffffffff16611529610eec565b73ffffffffffffffffffffffffffffffffffffffff16146115bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815250602001915050604051809103906115b8611e1b565b50505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561164a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612c336026913960400191505060405180910390611647611e1b565b50505b8073ffffffffffffffffffffffffffffffffffffffff16600460009061166e611e89565b906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a816116df611e89565b8173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179061171b611f49565b50505050565b600560009061172e611e89565b906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff165a61176a611eec565b73ffffffffffffffffffffffffffffffffffffffff16146117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b790612945565b604051809103906117c6611e1b565b50505b6117d4838383611be6565b505050565b60005a6117e4611eec565b905090565b80600390805190602001906117ff929190611fae565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611892576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612dc4602191396040019150506040518091039061188f611e1b565b50505b600061189c6117d9565b90506118bd816000876118ae88611b6c565b6118b788611b6c565b87611a10565b611927836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611919611e89565b611adb90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190611981611f49565b5050508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a45050505050565b505050505050565b6000838311158290611ace576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a8a578082015181840152602081019050611a6f565b50505050905090810190601f168015611ab75780820380516001836020036101000a031916815260200191505b509250505060405180910390611acb611e1b565b50505b5082840390509392505050565b600080828401905083811015611b62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390611b5f611e1b565b50505b8091505092915050565b60606000600167ffffffffffffffff81118015611b9157600080611b8e611e1b565b50505b50604051908082528060200260200182016040528015611bc05781602001602082028036833780820191505090505b5090508281600081518110611bd157fe5b60200260200101818152505080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612cfd6023913960400191505060405180910390611c72611e1b565b50505b6000611c7f6117d9565b9050611caf81856000611c9187611b6c565b611c9a87611b6c565b60405180602001604052806000815250611a10565b611d3382604051806060016040528060248152602001612c59602491396001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d24611e89565b611a189092919063ffffffff16565b6001600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190611d8d611f49565b505050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051808381526020018281526020019250505060405180910390a450505050565b632a2a7adb598160e01b8152600481016020815285602082015260005b86811015611e56578086015181604084010152602081019050611e38565b506020828760640184336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b505050565b6303daa959598160e01b8152836004820152602081602483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b6040811015611ee757600081830152602081019050611ecd565b505050565b6373509064598160e01b8152602081600483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b6040811015611f4457600081830152602081019050611f2a565b505050565b6322bd64c0598160e01b8152836004820152846024820152600081604483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b60005b6040811015611fa957600081830152602081019050611f8f565b505050565b8280611fb8611e89565b600181600116156101000203166002900490600052602060002090601f016020900481019282611ff457600085611fed611f49565b5050612056565b82601f1061201657805160ff1916838001178561200f611f49565b5050612056565b82800160010185612025611f49565b50508215612056579182015b8281111561205557825182612044611f49565b505091602001919060010190612031565b5b5090506120639190612067565b5090565b5b808211156120895760008160009061207e611f49565b505050600101612068565b5090565b60006120a061209b846129b1565b612980565b905080838252602082019050828560208602820111156120c8576000806120c5611e1b565b50505b60005b858110156120f857816120de8882612205565b8452602084019350602083019250506001810190506120cb565b5050509392505050565b6000612115612110846129dd565b612980565b9050808382526020820190508285602086028201111561213d5760008061213a611e1b565b50505b60005b8581101561216d57816121538882612310565b845260208401935060208301925050600181019050612140565b5050509392505050565b600061218a61218584612a09565b612980565b9050828152602081018484840111156121ab576000806121a8611e1b565b50505b6121b6848285612b32565b509392505050565b60006121d16121cc84612a39565b612980565b9050828152602081018484840111156121f2576000806121ef611e1b565b50505b6121fd848285612b32565b509392505050565b60008135905061221481612b87565b92915050565b600082601f83011261223457600080612231611e1b565b50505b813561224484826020860161208d565b91505092915050565b600082601f83011261226757600080612264611e1b565b50505b8135612277848260208601612102565b91505092915050565b60008135905061228f81612ba7565b92915050565b6000813590506122a481612bc7565b92915050565b600082601f8301126122c4576000806122c1611e1b565b50505b81356122d4848260208601612177565b91505092915050565b600082601f8301126122f7576000806122f4611e1b565b50505b81356123078482602086016121be565b91505092915050565b60008135905061231f81612be7565b92915050565b6000602082840312156123405760008061233d611e1b565b50505b600061234e84828501612205565b91505092915050565b6000806040838503121561237357600080612370611e1b565b50505b600061238185828601612205565b925050602061239285828601612205565b9150509250929050565b600080600080600060a086880312156123bd576000806123ba611e1b565b50505b60006123cb88828901612205565b95505060206123dc88828901612205565b945050604086013567ffffffffffffffff811115612402576000806123ff611e1b565b50505b61240e8882890161224d565b935050606086013567ffffffffffffffff81111561243457600080612431611e1b565b50505b6124408882890161224d565b925050608086013567ffffffffffffffff81111561246657600080612463611e1b565b50505b612472888289016122aa565b9150509295509295909350565b600080600080600060a086880312156124a05760008061249d611e1b565b50505b60006124ae88828901612205565b95505060206124bf88828901612205565b94505060406124d088828901612310565b93505060606124e188828901612310565b925050608086013567ffffffffffffffff81111561250757600080612504611e1b565b50505b612513888289016122aa565b9150509295509295909350565b6000806040838503121561253c57600080612539611e1b565b50505b600061254a85828601612205565b925050602061255b85828601612280565b9150509250929050565b600080604083850312156125815760008061257e611e1b565b50505b600061258f85828601612205565b92505060206125a085828601612310565b9150509250929050565b6000806000606084860312156125c8576000806125c5611e1b565b50505b60006125d686828701612205565b93505060206125e786828701612310565b92505060406125f886828701612310565b9150509250925092565b6000806040838503121561261e5760008061261b611e1b565b50505b600083013567ffffffffffffffff8111156126415760008061263e611e1b565b50505b61264d8582860161221a565b925050602083013567ffffffffffffffff81111561267357600080612670611e1b565b50505b61267f8582860161224d565b9150509250929050565b6000602082840312156126a4576000806126a1611e1b565b50505b60006126b284828501612295565b91505092915050565b6000602082840312156126d6576000806126d3611e1b565b50505b600082013567ffffffffffffffff8111156126f9576000806126f6611e1b565b50505b612705848285016122dd565b91505092915050565b60006020828403121561272957600080612726611e1b565b50505b600061273784828501612310565b91505092915050565b600061274c838361288d565b60208301905092915050565b61276181612abe565b82525050565b600061277282612a79565b61277c8185612a9c565b935061278783612a69565b8060005b838110156127b857815161279f8882612740565b97506127aa83612a8f565b92505060018101905061278b565b5085935050505092915050565b6127ce81612ad0565b82525050565b60006127df82612a84565b6127e98185612aad565b93506127f9818560208601612b41565b61280281612b76565b840191505092915050565b600061281a601c83612aad565b91507f636f6e747261637420616c726561647920696e697469616c697a6564000000006000830152602082019050919050565b600061285a601183612aad565b91507f6f6e6c79204f7074696f6e4d61726b65740000000000000000000000000000006000830152602082019050919050565b61289681612b28565b82525050565b6128a581612b28565b82525050565b60006020820190506128c06000830184612758565b92915050565b600060208201905081810360008301526128e08184612767565b905092915050565b60006020820190506128fd60008301846127c5565b92915050565b6000602082019050818103600083015261291d81846127d4565b905092915050565b6000602082019050818103600083015261293e8161280d565b9050919050565b6000602082019050818103600083015261295e8161284d565b9050919050565b600060208201905061297a600083018461289c565b92915050565b6000604051905081810181811067ffffffffffffffff821117156129a7576129a6612b74565b5b8060405250919050565b600067ffffffffffffffff8211156129cc576129cb612b74565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156129f8576129f7612b74565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612a2457612a23612b74565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115612a5457612a53612b74565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612ac982612b08565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612b5f578082015181840152602081019050612b44565b83811115612b6e576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b612b9081612abe565b8114612ba457600080612ba1611e1b565b50505b50565b612bb081612ad0565b8114612bc457600080612bc1611e1b565b50505b50565b612bd081612adc565b8114612be457600080612be1611e1b565b50505b50565b612bf081612b28565b8114612c0457600080612c01611e1b565b50505b5056fe455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000035552490000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f45760003560e01c80634e1273f411610097578063e985e9c511610066578063e985e9c51461026d578063f242432a1461029d578063f2fde38b146102b9578063f5298aca146102d5576100f4565b80634e1273f4146101f9578063715018a6146102295780638da5cb5b14610233578063a22cb46514610251576100f4565b80630e89341c116100d35780630e89341c14610175578063156e29f6146101a557806319ab453c146101c15780632eb2c2d6146101dd576100f4565b8062fdd58e146100f957806301ffc9a71461012957806302fe530514610159575b600080fd5b610113600480360381019061010e9190612113565b6102f1565b60405161012091906124c2565b60405180910390f35b610143600480360381019061013e919061220a565b6103d1565b6040516101509190612445565b60405180910390f35b610173600480360381019061016e9190612233565b610438565b005b61018f600480360381019061018a9190612274565b6104f3565b60405161019c9190612460565b60405180910390f35b6101bf60048036038101906101ba919061214f565b610597565b005b6101db60048036038101906101d69190611f24565b61063b565b005b6101f760048036038101906101f29190611f89565b6106ea565b005b610213600480360381019061020e919061219e565b610b67565b6040516102209190612423565b60405180910390f35b610231610c79565b005b61023b610de9565b6040516102489190612408565b60405180910390f35b61026b600480360381019061026691906120d7565b610e13565b005b61028760048036038101906102829190611f4d565b610fac565b6040516102949190612445565b60405180910390f35b6102b760048036038101906102b29190612048565b611040565b005b6102d360048036038101906102ce9190611f24565b6113a7565b005b6102ef60048036038101906102ea919061214f565b61159c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612741602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b61044061163c565b73ffffffffffffffffffffffffffffffffffffffff1661045e610de9565b73ffffffffffffffffffffffffffffffffffffffff16146104e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6104f081611644565b50565b606060038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561058b5780601f106105605761010080835404028352916020019161058b565b820191906000526020600020905b81548152906001019060200180831161056e57829003601f168201915b50505050509050919050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061e906124a2565b60405180910390fd5b60606106358484848461165e565b50505050565b600460149054906101000a900460ff161561068b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068290612482565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600460146101000a81548160ff02191690831515021790555050565b8151835114610744576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806128d56028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156107ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806127df6025913960400191505060405180910390fd5b6107d261163c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061081857506108178561081261163c565b610fac565b5b61086d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806128046032913960400191505060405180910390fd5b600061087761163c565b9050610887818787878787611852565b60005b8451811015610a585760008582815181106108a157fe5b6020026020010151905060008583815181106108b957fe5b60200260200101519050610940816040518060600160405280602a8152602001612859602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461185a9092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109f7816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461191490919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505080600101905061088a565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610b08578082015181840152602081019050610aed565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610b4a578082015181840152602081019050610b2f565b5050505090500194505050505060405180910390a4505050505050565b60608151835114610bc3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806128ac6029913960400191505060405180910390fd5b6000835167ffffffffffffffff81118015610bdd57600080fd5b50604051908082528060200260200182016040528015610c0c5781602001602082028036833780820191505090505b50905060005b8451811015610c6e57610c4b858281518110610c2a57fe5b6020026020010151858381518110610c3e57fe5b60200260200101516102f1565b828281518110610c5757fe5b602002602001018181525050806001019050610c12565b508091505092915050565b610c8161163c565b73ffffffffffffffffffffffffffffffffffffffff16610c9f610de9565b73ffffffffffffffffffffffffffffffffffffffff1614610d28576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8173ffffffffffffffffffffffffffffffffffffffff16610e3261163c565b73ffffffffffffffffffffffffffffffffffffffff161415610e9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806128836029913960400191505060405180910390fd5b8060026000610eac61163c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610f5961163c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806127df6025913960400191505060405180910390fd5b6110ce61163c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061111457506111138561110e61163c565b610fac565b5b611169576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806127b66029913960400191505060405180910390fd5b600061117361163c565b90506111938187876111848861199c565b61118d8861199c565b87611852565b611210836040518060600160405280602a8152602001612859602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461185a9092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112c7836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461191490919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4505050505050565b6113af61163c565b73ffffffffffffffffffffffffffffffffffffffff166113cd610de9565b73ffffffffffffffffffffffffffffffffffffffff1614611456576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061276c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461162c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611623906124a2565b60405180910390fd5b611637838383611a0d565b505050565b600033905090565b806003908051906020019061165a929190611c29565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806128fd6021913960400191505060405180910390fd5b60006116ee61163c565b905061170f816000876117008861199c565b6117098861199c565b87611852565b611772836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461191490919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a45050505050565b505050505050565b6000838311158290611907576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118cc5780820151818401526020810190506118b1565b50505050905090810190601f1680156118f95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600080828401905083811015611992576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60606000600167ffffffffffffffff811180156119b857600080fd5b506040519080825280602002602001820160405280156119e75781602001602082028036833780820191505090505b50905082816000815181106119f857fe5b60200260200101818152505080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806128366023913960400191505060405180910390fd5b6000611a9d61163c565b9050611acd81856000611aaf8761199c565b611ab88761199c565b60405180602001604052806000815250611852565b611b4a82604051806060016040528060248152602001612792602491396001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461185a9092919063ffffffff16565b6001600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051808381526020018281526020019250505060405180910390a450505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611c5f5760008555611ca6565b82601f10611c7857805160ff1916838001178555611ca6565b82800160010185558215611ca6579182015b82811115611ca5578251825591602001919060010190611c8a565b5b509050611cb39190611cb7565b5090565b5b80821115611cd0576000816000905550600101611cb8565b5090565b6000611ce7611ce28461250e565b6124dd565b90508083825260208201905082856020860282011115611d0657600080fd5b60005b85811015611d365781611d1c8882611e28565b845260208401935060208301925050600181019050611d09565b5050509392505050565b6000611d53611d4e8461253a565b6124dd565b90508083825260208201905082856020860282011115611d7257600080fd5b60005b85811015611da25781611d888882611f0f565b845260208401935060208301925050600181019050611d75565b5050509392505050565b6000611dbf611dba84612566565b6124dd565b905082815260208101848484011115611dd757600080fd5b611de284828561268f565b509392505050565b6000611dfd611df884612596565b6124dd565b905082815260208101848484011115611e1557600080fd5b611e2084828561268f565b509392505050565b600081359050611e37816126e4565b92915050565b600082601f830112611e4e57600080fd5b8135611e5e848260208601611cd4565b91505092915050565b600082601f830112611e7857600080fd5b8135611e88848260208601611d40565b91505092915050565b600081359050611ea0816126fb565b92915050565b600081359050611eb581612712565b92915050565b600082601f830112611ecc57600080fd5b8135611edc848260208601611dac565b91505092915050565b600082601f830112611ef657600080fd5b8135611f06848260208601611dea565b91505092915050565b600081359050611f1e81612729565b92915050565b600060208284031215611f3657600080fd5b6000611f4484828501611e28565b91505092915050565b60008060408385031215611f6057600080fd5b6000611f6e85828601611e28565b9250506020611f7f85828601611e28565b9150509250929050565b600080600080600060a08688031215611fa157600080fd5b6000611faf88828901611e28565b9550506020611fc088828901611e28565b945050604086013567ffffffffffffffff811115611fdd57600080fd5b611fe988828901611e67565b935050606086013567ffffffffffffffff81111561200657600080fd5b61201288828901611e67565b925050608086013567ffffffffffffffff81111561202f57600080fd5b61203b88828901611ebb565b9150509295509295909350565b600080600080600060a0868803121561206057600080fd5b600061206e88828901611e28565b955050602061207f88828901611e28565b945050604061209088828901611f0f565b93505060606120a188828901611f0f565b925050608086013567ffffffffffffffff8111156120be57600080fd5b6120ca88828901611ebb565b9150509295509295909350565b600080604083850312156120ea57600080fd5b60006120f885828601611e28565b925050602061210985828601611e91565b9150509250929050565b6000806040838503121561212657600080fd5b600061213485828601611e28565b925050602061214585828601611f0f565b9150509250929050565b60008060006060848603121561216457600080fd5b600061217286828701611e28565b935050602061218386828701611f0f565b925050604061219486828701611f0f565b9150509250925092565b600080604083850312156121b157600080fd5b600083013567ffffffffffffffff8111156121cb57600080fd5b6121d785828601611e3d565b925050602083013567ffffffffffffffff8111156121f457600080fd5b61220085828601611e67565b9150509250929050565b60006020828403121561221c57600080fd5b600061222a84828501611ea6565b91505092915050565b60006020828403121561224557600080fd5b600082013567ffffffffffffffff81111561225f57600080fd5b61226b84828501611ee5565b91505092915050565b60006020828403121561228657600080fd5b600061229484828501611f0f565b91505092915050565b60006122a983836123ea565b60208301905092915050565b6122be8161261b565b82525050565b60006122cf826125d6565b6122d981856125f9565b93506122e4836125c6565b8060005b838110156123155781516122fc888261229d565b9750612307836125ec565b9250506001810190506122e8565b5085935050505092915050565b61232b8161262d565b82525050565b600061233c826125e1565b612346818561260a565b935061235681856020860161269e565b61235f816126d3565b840191505092915050565b6000612377601c8361260a565b91507f636f6e747261637420616c726561647920696e697469616c697a6564000000006000830152602082019050919050565b60006123b760118361260a565b91507f6f6e6c79204f7074696f6e4d61726b65740000000000000000000000000000006000830152602082019050919050565b6123f381612685565b82525050565b61240281612685565b82525050565b600060208201905061241d60008301846122b5565b92915050565b6000602082019050818103600083015261243d81846122c4565b905092915050565b600060208201905061245a6000830184612322565b92915050565b6000602082019050818103600083015261247a8184612331565b905092915050565b6000602082019050818103600083015261249b8161236a565b9050919050565b600060208201905081810360008301526124bb816123aa565b9050919050565b60006020820190506124d760008301846123f9565b92915050565b6000604051905081810181811067ffffffffffffffff82111715612504576125036126d1565b5b8060405250919050565b600067ffffffffffffffff821115612529576125286126d1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612555576125546126d1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612581576125806126d1565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156125b1576125b06126d1565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600061262682612665565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156126bc5780820151818401526020810190506126a1565b838111156126cb576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b6126ed8161261b565b81146126f857600080fd5b50565b6127048161262d565b811461270f57600080fd5b50565b61271b81612639565b811461272657600080fd5b50565b61273281612685565b811461273d57600080fd5b5056fe455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212206ec6d9a113c65d61fc1a81512377cdb628cbb66fca1e524e63d694bcc3eedd9e64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000035552490000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : uri_ (string): URI
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 5552490000000000000000000000000000000000000000000000000000000000
[ 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.