Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
1,351 TRIPPYPASS
Holders
1,189
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:
ParadisePass
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 ParadisePass * ParadisePass - a contract for the Paradise MintPass */ contract ParadisePass is ERC1155Tradable { using SafeMath for uint256; bool public preSaleIsActive = false; bool public saleIsActive = false; uint256 public preSalePrice = 0; uint256 public pubSalePrice = 0; uint256 public maxPerWallet = 1; uint256 public maxPerTransaction = 1; constructor( string memory _name, string memory _symbol, string memory _uri, uint256 _id, uint256 _initialSupply, uint256 _maxSupply, address _proxyRegistryAddress ) ERC1155Tradable(_name, _symbol, _uri, _proxyRegistryAddress) { create(msg.sender, _id, _initialSupply, _uri, ""); supply[_id].supply = _maxSupply; } struct Supply { uint256 supply; } mapping(uint256 => Supply) public supply; function createToken( uint256 _id, string memory _uri, uint256 _initialSupply, bytes memory _data) external onlyOwner { create(msg.sender, _id, _initialSupply, _uri, _data); } function setMaxSupply(uint256 _maxSupply, uint256 _id) external onlyOwner { supply[_id].supply = _maxSupply; } function maxSupply(uint256 _id) public view returns (uint256) { return supply[_id].supply; } function setPubSalePrice(uint256 _price) external onlyOwner { pubSalePrice = _price; } function setPreSalePrice(uint256 _price) external onlyOwner { preSalePrice = _price; } function setMaxPerWallet(uint256 _maxToMint) external onlyOwner { maxPerWallet = _maxToMint; } function setMaxPerTransaction(uint256 _maxToMint) external onlyOwner { maxPerTransaction = _maxToMint; } function flipSaleState() public onlyOwner { saleIsActive = !saleIsActive; } function flipPreSaleState() public onlyOwner { preSaleIsActive = !preSaleIsActive; } 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 mint(uint256 _quantity, uint256 _id) public payable { require(saleIsActive, "Sale is not active."); require( totalSupply(_id).add(_quantity) <= maxSupply(_id), "Mint has already ended." ); require(_quantity > 0, "numberOfTokens cannot be 0."); require( pubSalePrice.mul(_quantity) <= msg.value, "ETH sent is incorrect." ); require( balanceOf(msg.sender, _id).add(_quantity) <= maxPerWallet, "Exceeds limit." ); require( _quantity <= maxPerWallet, "Exceeds per transaction limit." ); for (uint256 i = 0; i < _quantity; i++) { _mint(msg.sender, _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 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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"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":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"createToken","outputs":[],"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":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","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":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"_maxToMint","type":"uint256"}],"name":"setMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxToMint","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPreSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPubSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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
60806040526003805460ff19169055600d805461ffff191690556000600e819055600f55600160108190556011553480156200003a57600080fd5b5060405162004322380380620043228339810160408190526200005d9162000a2a565b86868683816200006d81620001f7565b5060006200007a62000210565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508351620000dd90600b90602087019062000894565b508251620000f390600c90602086019062000894565b50600780546001600160a01b0319166001600160a01b038316179055600b8054620001af9190620001249062000afd565b80601f0160208091040260200160405190810160405280929190818152602001828054620001529062000afd565b8015620001a35780601f106200017757610100808354040283529160200191620001a3565b820191906000526020600020905b8154815290600101906020018083116200018557829003601f168201915b50506200022c92505050565b50505050620001d733858588604051806020016040528060008152506200029160201b60201c565b5050600092835260126020526040909220919091555062000cdf92505050565b80516200020c90600290602084019062000894565b5050565b6000620002276200043860201b6200201b1760201c565b905090565b60035460ff1615620002765760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b620002818162000497565b506003805460ff19166001179055565b60006200029d62000210565b6001600160a01b0316620002b96006546001600160a01b031690565b6001600160a01b031614620003115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200026d565b6000858152600860205260409020546001600160a01b031615620003785760405162461bcd60e51b815260206004820152601860248201527f746f6b656e205f696420616c726561647920657869737473000000000000000060448201526064016200026d565b6200038262000210565b600086815260086020526040902080546001600160a01b0319166001600160a01b039290921691909117905582511562000413576000858152600a602090815260409091208451620003d79286019062000894565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b846040516200040a919062000b68565b60405180910390a25b620004218686868562000539565b505050600082815260096020526040902055919050565b6000333014156200049157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004949050565b50335b90565b6040518060800160405280604f8152602001620042d3604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600455565b6001600160a01b0384166200059b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016200026d565b6000620005a762000210565b9050620005ce81600087620005bc8862000662565b620005c78862000662565b5050505050565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200060090849062000b84565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620005c781600087878787620006b8565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200069f576200069f62000bab565b602090810291909101015292915050565b505050505050565b620006d7846001600160a01b03166200088e60201b620020781760201c565b15620006b05760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062000713908990899088908890889060040162000bc1565b6020604051808303816000875af192505050801562000751575060408051601f3d908101601f191682019092526200074e9181019062000c08565b60015b62000812576200076062000c34565b806308c379a01415620007a157506200077862000c50565b80620007855750620007a3565b8060405162461bcd60e51b81526004016200026d919062000b68565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016200026d565b6001600160e01b0319811663f23a6e6160e01b14620008855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016200026d565b50505050505050565b3b151590565b828054620008a29062000afd565b90600052602060002090601f016020900481019282620008c6576000855562000911565b82601f10620008e157805160ff191683800117855562000911565b8280016001018555821562000911579182015b8281111562000911578251825591602001919060010190620008f4565b506200091f92915062000923565b5090565b5b808211156200091f576000815560010162000924565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156200097857620009786200093a565b6040525050565b60005b838110156200099c57818101518382015260200162000982565b83811115620009ac576000848401525b50505050565b600082601f830112620009c457600080fd5b81516001600160401b03811115620009e057620009e06200093a565b604051620009f9601f8301601f19166020018262000950565b81815284602083860101111562000a0f57600080fd5b62000a228260208301602087016200097f565b949350505050565b600080600080600080600060e0888a03121562000a4657600080fd5b87516001600160401b038082111562000a5e57600080fd5b62000a6c8b838c01620009b2565b985060208a015191508082111562000a8357600080fd5b62000a918b838c01620009b2565b975060408a015191508082111562000aa857600080fd5b5062000ab78a828b01620009b2565b60608a015160808b015160a08c015160c08d01519399509197509550935090506001600160a01b038116811462000aed57600080fd5b8091505092959891949750929550565b600181811c9082168062000b1257607f821691505b6020821081141562000b3457634e487b7160e01b600052602260045260246000fd5b50919050565b6000815180845262000b548160208601602086016200097f565b601f01601f19169290920160200192915050565b60208152600062000b7d602083018462000b3a565b9392505050565b6000821982111562000ba657634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000bfd9083018462000b3a565b979650505050505050565b60006020828403121562000c1b57600080fd5b81516001600160e01b03198116811462000b7d57600080fd5b600060033d1115620004945760046000803e5060005160e01c90565b600060443d101562000c5f5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000c8f57505050505090565b828501915081518181111562000ca85750505050505090565b843d870101602082850101111562000cc35750505050505090565b62000cd46020828601018762000950565b509095945050505050565b6135e48062000cef6000396000f3fe60806040526004361061021c5760003560e01c80634b980d671161011f5780634b980d67146105035780634e1273f4146105195780634f558e7914610546578063715018a61461056657806377abe8e61461057b5780637d7eee421461059b578063869f7594146105bb5780638da5cb5b146105e857806395d89b411461060a578063a22cb4651461061f578063a496dedf1461063f578063b48ab8b61461065f578063bd85b0391461067f578063ccfdd2f8146106ac578063cd53d08e146106cc578063d2a6b51a14610702578063e268e4d314610722578063e757c17d14610742578063e985e9c514610758578063eb8d244414610778578063f032554914610797578063f242432a146107ac578063f2fde38b146107cc57600080fd5b8062fdd58e1461022157806301ffc9a71461025457806302fe53051461028457806306fdde03146102a65780630c53c51c146102c85780630e89341c146102db5780630f7e5970146102fb5780631b2ef1ca146103285780631f0234d81461033b57806320379ee5146103555780632693ebf21461036a5780632d0335ab146103975780632eb2c2d6146103cd5780633318e277146103ed5780633408e4701461040357806334918dfd14610416578063354030231461042b57806336a100d51461045857806337da577c146104785780633adf80b4146104985780633ccfd60b146104b85780633eff84a1146104cd578063453c2310146104ed575b600080fd5b34801561022d57600080fd5b5061024161023c3660046128af565b6107ec565b6040519081526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046128f1565b610886565b604051901515815260200161024b565b34801561029057600080fd5b506102a461029f3660046129c3565b6108d6565b005b3480156102b257600080fd5b506102bb610921565b60405161024b9190612a4f565b6102bb6102d6366004612a62565b6109af565b3480156102e757600080fd5b506102bb6102f6366004612adf565b610b98565b34801561030757600080fd5b506102bb604051806040016040528060018152602001603160f81b81525081565b6102a4610336366004612af8565b610d56565b34801561034757600080fd5b50600d546102749060ff1681565b34801561036157600080fd5b50600454610241565b34801561037657600080fd5b50610241610385366004612adf565b60096020526000908152604090205481565b3480156103a357600080fd5b506102416103b2366004612b1a565b6001600160a01b031660009081526005602052604090205490565b3480156103d957600080fd5b506102a46103e8366004612bcb565b610fc5565b3480156103f957600080fd5b50610241600f5481565b34801561040f57600080fd5b5046610241565b34801561042257600080fd5b506102a461124c565b34801561043757600080fd5b50610241610446366004612adf565b60126020526000908152604090205481565b34801561046457600080fd5b50610241610473366004612c78565b6112a8565b34801561048457600080fd5b506102a4610493366004612af8565b6113f1565b3480156104a457600080fd5b506102a46104b3366004612cd1565b611441565b3480156104c457600080fd5b506102a46114e0565b3480156104d957600080fd5b506102a46104e8366004612adf565b611552565b3480156104f957600080fd5b5061024160105481565b34801561050f57600080fd5b5061024160115481565b34801561052557600080fd5b50610539610534366004612d86565b611596565b60405161024b9190612e1a565b34801561055257600080fd5b50610274610561366004612adf565b6116bf565b34801561057257600080fd5b506102a46116ca565b34801561058757600080fd5b506102a4610596366004612e2d565b611753565b3480156105a757600080fd5b506102a46105b6366004612adf565b6117a6565b3480156105c757600080fd5b506102416105d6366004612adf565b60009081526012602052604090205490565b3480156105f457600080fd5b506105fd6117ea565b60405161024b9190612ea3565b34801561061657600080fd5b506102bb6117f9565b34801561062b57600080fd5b506102a461063a366004612eb7565b611806565b34801561064b57600080fd5b506102a461065a366004612ef5565b61191a565b34801561066b57600080fd5b506102a461067a366004612f42565b6119d9565b34801561068b57600080fd5b5061024161069a366004612adf565b60009081526009602052604090205490565b3480156106b857600080fd5b506102a46106c7366004612adf565b611b03565b3480156106d857600080fd5b506105fd6106e7366004612adf565b6008602052600090815260409020546001600160a01b031681565b34801561070e57600080fd5b506102a461071d366004612fc3565b611b47565b34801561072e57600080fd5b506102a461073d366004612adf565b611bf9565b34801561074e57600080fd5b50610241600e5481565b34801561076457600080fd5b50610274610773366004613008565b611c3d565b34801561078457600080fd5b50600d5461027490610100900460ff1681565b3480156107a357600080fd5b506102a4611d02565b3480156107b857600080fd5b506102a46107c7366004613036565b611d55565b3480156107d857600080fd5b506102a46107e7366004612b1a565b611f1b565b60006001600160a01b03831661085d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806108b757506001600160e01b031982166303a24d0760e21b145b8061088057506301ffc9a760e01b6001600160e01b0319831614610880565b6108de61207e565b6001600160a01b03166108ef6117ea565b6001600160a01b0316146109155760405162461bcd60e51b81526004016108549061309e565b61091e8161208d565b50565b600b805461092e906130d3565b80601f016020809104026020016040519081016040528092919081815260200182805461095a906130d3565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b505050505081565b60408051606081810183526001600160a01b038816600081815260056020908152908590205484528301529181018690526109ed87828787876120a0565b610a435760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610854565b6001600160a01b038716600090815260056020526040902054610a67906001612190565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610ab790899033908a90613108565b60405180910390a1600080306001600160a01b0316888a604051602001610adf92919061313d565b60408051601f1981840301815290829052610af99161316f565b6000604051808303816000865af19150503d8060008114610b36576040519150601f19603f3d011682016040523d82523d6000602084013e610b3b565b606091505b509150915081610b8c5760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610854565b98975050505050505050565b6060610ba38261219c565b610bfe5760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b6064820152608401610854565b6000828152600a602052604081208054610c17906130d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c43906130d3565b8015610c905780601f10610c6557610100808354040283529160200191610c90565b820191906000526020600020905b815481529060010190602001808311610c7357829003601f168201915b50505050509050600081511115610d40576000838152600a602052604090208054610cba906130d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce6906130d3565b8015610d335780601f10610d0857610100808354040283529160200191610d33565b820191906000526020600020905b815481529060010190602001808311610d1657829003601f168201915b5050505050915050919050565b610d49836121b9565b9392505050565b50919050565b600d54610100900460ff16610da35760405162461bcd60e51b815260206004820152601360248201527229b0b6329034b9903737ba1030b1ba34bb329760691b6044820152606401610854565b600081815260126020526040902054610dd283610dcc8460009081526009602052604090205490565b90612190565b1115610e1a5760405162461bcd60e51b815260206004820152601760248201527626b4b73a103430b99030b63932b0b23c9032b73232b21760491b6044820152606401610854565b60008211610e685760405162461bcd60e51b815260206004820152601b60248201527a373ab6b132b927b32a37b5b2b7399031b0b73737ba10313290181760291b6044820152606401610854565b600f543490610e77908461224d565b1115610ebe5760405162461bcd60e51b815260206004820152601660248201527522aa241039b2b73a1034b99034b731b7b93932b1ba1760511b6044820152606401610854565b601054610ecf83610dcc33856107ec565b1115610f0e5760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b239903634b6b4ba1760911b6044820152606401610854565b601054821115610f605760405162461bcd60e51b815260206004820152601e60248201527f4578636565647320706572207472616e73616374696f6e206c696d69742e00006044820152606401610854565b60005b82811015610fc057610f8633838560405180602001604052806000815250612259565b600082815260096020526040902054610f9f9084612190565b60008381526009602052604090205580610fb8816131a1565b915050610f63565b505050565b8151835114610fe65760405162461bcd60e51b8152600401610854906131bc565b6001600160a01b03841661100c5760405162461bcd60e51b815260040161085490613204565b61101461207e565b6001600160a01b0316856001600160a01b0316148061103a575061103a8561077361207e565b6110a15760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610854565b60006110ab61207e565b905060005b84518110156111de5760008582815181106110cd576110cd613249565b6020026020010151905060008583815181106110eb576110eb613249565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561113b5760405162461bcd60e51b81526004016108549061325f565b61114582826132a9565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546111c391906132c0565b92505081905550505050806111d7906131a1565b90506110b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161122e9291906132d8565b60405180910390a461124481878787878761232b565b505050505050565b61125461207e565b6001600160a01b03166112656117ea565b6001600160a01b03161461128b5760405162461bcd60e51b81526004016108549061309e565b600d805461ff001981166101009182900460ff1615909102179055565b60006112b261207e565b6001600160a01b03166112c36117ea565b6001600160a01b0316146112e95760405162461bcd60e51b81526004016108549061309e565b6112f28561219c565b1561133a5760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b6044820152606401610854565b61134261207e565b600086815260086020526040902080546001600160a01b0319166001600160a01b03929092169190911790558251156113ce576000858152600a60209081526040909120845161139492860190612801565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b846040516113c59190612a4f565b60405180910390a25b6113da86868685612259565b505050600082815260096020526040902055919050565b6113f961207e565b6001600160a01b031661140a6117ea565b6001600160a01b0316146114305760405162461bcd60e51b81526004016108549061309e565b600090815260126020526040902055565b8161144a61207e565b6000828152600860205260409020546001600160a01b039081169116146114835760405162461bcd60e51b8152600401610854906132fd565b6000838152600a6020908152604090912083516114a292850190612801565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516114d39190612a4f565b60405180910390a2505050565b6114e861207e565b6001600160a01b03166114f96117ea565b6001600160a01b03161461151f5760405162461bcd60e51b81526004016108549061309e565b6040514790339082156108fc029083906000818181858888f1935050505015801561154e573d6000803e3d6000fd5b5050565b61155a61207e565b6001600160a01b031661156b6117ea565b6001600160a01b0316146115915760405162461bcd60e51b81526004016108549061309e565b600f55565b606081518351146115fb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610854565b600083516001600160401b038111156116165761161661290e565b60405190808252806020026020018201604052801561163f578160200160208202803683370190505b50905060005b84518110156116b75761168a85828151811061166357611663613249565b602002602001015185838151811061167d5761167d613249565b60200260200101516107ec565b82828151811061169c5761169c613249565b60209081029190910101526116b0816131a1565b9050611645565b509392505050565b60006108808261219c565b6116d261207e565b6001600160a01b03166116e36117ea565b6001600160a01b0316146117095760405162461bcd60e51b81526004016108549061309e565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b61175b61207e565b6001600160a01b031661176c6117ea565b6001600160a01b0316146117925760405162461bcd60e51b81526004016108549061309e565b61179f33858486856112a8565b5050505050565b6117ae61207e565b6001600160a01b03166117bf6117ea565b6001600160a01b0316146117e55760405162461bcd60e51b81526004016108549061309e565b600e55565b6006546001600160a01b031690565b600c805461092e906130d3565b816001600160a01b031661181861207e565b6001600160a01b031614156118815760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610854565b806001600061188e61207e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556118d261207e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161190e911515815260200190565b60405180910390a35050565b61192261207e565b6001600160a01b03166119336117ea565b6001600160a01b0316146119595760405162461bcd60e51b81526004016108549061309e565b60005b83518110156119d35761199984828151811061197a5761197a613249565b6020026020010151838560405180602001604052806000815250612259565b6000828152600960205260409020546119b29084612190565b600083815260096020526040902055806119cb816131a1565b91505061195c565b50505050565b60005b8351811015611af65760008482815181106119f9576119f9613249565b60200260200101519050611a0b61207e565b6000828152600860205260409020546001600160a01b03908116911614611a8c5760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b6064820152608401610854565b6000848381518110611aa057611aa0613249565b60200260200101519050611ad081600960008581526020019081526020016000205461219090919063ffffffff16565b600092835260096020526040909220919091555080611aee816131a1565b9150506119dc565b506119d384848484612487565b611b0b61207e565b6001600160a01b0316611b1c6117ea565b6001600160a01b031614611b425760405162461bcd60e51b81526004016108549061309e565b601155565b6001600160a01b038216611bb25760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b6064820152608401610854565b60005b8151811015610fc0576000828281518110611bd257611bd2613249565b60200260200101519050611be684826125dd565b5080611bf1816131a1565b915050611bb5565b611c0161207e565b6001600160a01b0316611c126117ea565b6001600160a01b031614611c385760405162461bcd60e51b81526004016108549061309e565b601055565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190611c76908890600401612ea3565b602060405180830381865afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb7919061334e565b6001600160a01b03161415611cd0576001915050610880565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b611d0a61207e565b6001600160a01b0316611d1b6117ea565b6001600160a01b031614611d415760405162461bcd60e51b81526004016108549061309e565b600d805460ff19811660ff90911615179055565b6001600160a01b038416611d7b5760405162461bcd60e51b815260040161085490613204565b611d8361207e565b6001600160a01b0316856001600160a01b03161480611da95750611da98561077361207e565b611e075760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610854565b6000611e1161207e565b9050611e2b818787611e228861264e565b61179f8861264e565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611e6c5760405162461bcd60e51b81526004016108549061325f565b611e7684826132a9565b6000868152602081815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290611eb29084906132c0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f12828888888888612699565b50505050505050565b611f2361207e565b6001600160a01b0316611f346117ea565b6001600160a01b031614611f5a5760405162461bcd60e51b81526004016108549061309e565b6001600160a01b038116611fbf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610854565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60003330141561207257600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506120759050565b50335b90565b3b151590565b600061208861201b565b905090565b805161154e906002906020840190612801565b60006001600160a01b0386166121065760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610854565b600161211961211487612754565b6127d1565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612167573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610d4982846132c0565b6000908152600860205260409020546001600160a01b0316151590565b6060600280546121c8906130d3565b80601f01602080910402602001604051908101604052809291908181526020018280546121f4906130d3565b80156122415780601f1061221657610100808354040283529160200191612241565b820191906000526020600020905b81548152906001019060200180831161222457829003601f168201915b50505050509050919050565b6000610d49828461336b565b6001600160a01b03841661227f5760405162461bcd60e51b81526004016108549061338a565b600061228961207e565b905061229b81600087611e228861264e565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906122cb9084906132c0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461179f81600087878787612699565b6001600160a01b0384163b156112445760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061236f90899089908890889088906004016133cb565b6020604051808303816000875af19250505080156123aa575060408051601f3d908101601f191682019092526123a79181019061341d565b60015b612457576123b661343a565b806308c379a014156123f057506123cb613455565b806123d657506123f2565b8060405162461bcd60e51b81526004016108549190612a4f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610854565b6001600160e01b0319811663bc197c8160e01b14611f125760405162461bcd60e51b8152600401610854906134de565b6001600160a01b0384166124ad5760405162461bcd60e51b81526004016108549061338a565b81518351146124ce5760405162461bcd60e51b8152600401610854906131bc565b60006124d861207e565b905060005b8451811015612575578381815181106124f8576124f8613249565b602002602001015160008087848151811061251557612515613249565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461255d91906132c0565b9091555081905061256d816131a1565b9150506124dd565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125c69291906132d8565b60405180910390a461179f8160008787878761232b565b806125e661207e565b6000828152600860205260409020546001600160a01b0390811691161461261f5760405162461bcd60e51b8152600401610854906132fd565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061268857612688613249565b602090810291909101015292915050565b6001600160a01b0384163b156112445760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126dd9089908990889088908890600401613526565b6020604051808303816000875af1925050508015612718575060408051601f3d908101601f191682019092526127159181019061341d565b60015b612724576123b661343a565b6001600160e01b0319811663f23a6e6160e01b14611f125760405162461bcd60e51b8152600401610854906134de565b600060405180608001604052806043815260200161356c60439139805160209182012083518483015160408087015180519086012090516127b4950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006127dc60045490565b60405161190160f01b60208201526022810191909152604281018390526062016127b4565b82805461280d906130d3565b90600052602060002090601f01602090048101928261282f5760008555612875565b82601f1061284857805160ff1916838001178555612875565b82800160010185558215612875579182015b8281111561287557825182559160200191906001019061285a565b50612881929150612885565b5090565b5b808211156128815760008155600101612886565b6001600160a01b038116811461091e57600080fd5b600080604083850312156128c257600080fd5b82356128cd8161289a565b946020939093013593505050565b6001600160e01b03198116811461091e57600080fd5b60006020828403121561290357600080fd5b8135610d49816128db565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156129495761294961290e565b6040525050565b600082601f83011261296157600080fd5b81356001600160401b0381111561297a5761297a61290e565b604051612991601f8301601f191660200182612924565b8181528460208386010111156129a657600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156129d557600080fd5b81356001600160401b038111156129eb57600080fd5b611cfa84828501612950565b60005b83811015612a125781810151838201526020016129fa565b838111156119d35750506000910152565b60008151808452612a3b8160208601602086016129f7565b601f01601f19169290920160200192915050565b602081526000610d496020830184612a23565b600080600080600060a08688031215612a7a57600080fd5b8535612a858161289a565b945060208601356001600160401b03811115612aa057600080fd5b612aac88828901612950565b9450506040860135925060608601359150608086013560ff81168114612ad157600080fd5b809150509295509295909350565b600060208284031215612af157600080fd5b5035919050565b60008060408385031215612b0b57600080fd5b50508035926020909101359150565b600060208284031215612b2c57600080fd5b8135610d498161289a565b60006001600160401b03821115612b5057612b5061290e565b5060051b60200190565b600082601f830112612b6b57600080fd5b81356020612b7882612b37565b604051612b858282612924565b83815260059390931b8501820192828101915086841115612ba557600080fd5b8286015b84811015612bc05780358352918301918301612ba9565b509695505050505050565b600080600080600060a08688031215612be357600080fd5b8535612bee8161289a565b94506020860135612bfe8161289a565b935060408601356001600160401b0380821115612c1a57600080fd5b612c2689838a01612b5a565b94506060880135915080821115612c3c57600080fd5b612c4889838a01612b5a565b93506080880135915080821115612c5e57600080fd5b50612c6b88828901612950565b9150509295509295909350565b600080600080600060a08688031215612c9057600080fd5b8535612c9b8161289a565b9450602086013593506040860135925060608601356001600160401b0380821115612cc557600080fd5b612c4889838a01612950565b60008060408385031215612ce457600080fd5b8235915060208301356001600160401b03811115612d0157600080fd5b612d0d85828601612950565b9150509250929050565b600082601f830112612d2857600080fd5b81356020612d3582612b37565b604051612d428282612924565b83815260059390931b8501820192828101915086841115612d6257600080fd5b8286015b84811015612bc0578035612d798161289a565b8352918301918301612d66565b60008060408385031215612d9957600080fd5b82356001600160401b0380821115612db057600080fd5b612dbc86838701612d17565b93506020850135915080821115612dd257600080fd5b50612d0d85828601612b5a565b600081518084526020808501945080840160005b83811015612e0f57815187529582019590820190600101612df3565b509495945050505050565b602081526000610d496020830184612ddf565b60008060008060808587031215612e4357600080fd5b8435935060208501356001600160401b0380821115612e6157600080fd5b612e6d88838901612950565b9450604087013593506060870135915080821115612e8a57600080fd5b50612e9787828801612950565b91505092959194509250565b6001600160a01b0391909116815260200190565b60008060408385031215612eca57600080fd5b8235612ed58161289a565b915060208301358015158114612eea57600080fd5b809150509250929050565b600080600060608486031215612f0a57600080fd5b83356001600160401b03811115612f2057600080fd5b612f2c86828701612d17565b9660208601359650604090950135949350505050565b60008060008060808587031215612f5857600080fd5b8435612f638161289a565b935060208501356001600160401b0380821115612f7f57600080fd5b612f8b88838901612b5a565b94506040870135915080821115612fa157600080fd5b612fad88838901612b5a565b93506060870135915080821115612e8a57600080fd5b60008060408385031215612fd657600080fd5b8235612fe18161289a565b915060208301356001600160401b03811115612ffc57600080fd5b612d0d85828601612b5a565b6000806040838503121561301b57600080fd5b82356130268161289a565b91506020830135612eea8161289a565b600080600080600060a0868803121561304e57600080fd5b85356130598161289a565b945060208601356130698161289a565b9350604086013592506060860135915060808601356001600160401b0381111561309257600080fd5b612c6b88828901612950565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806130e757607f821691505b60208210811415610d5057634e487b7160e01b600052602260045260246000fd5b6001600160a01b0384811682528316602082015260606040820181905260009061313490830184612a23565b95945050505050565b6000835161314f8184602088016129f7565b60609390931b6001600160601b0319169190920190815260140192915050565b600082516131818184602087016129f7565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156131b5576131b561318b565b5060010190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6000828210156132bb576132bb61318b565b500390565b600082198211156132d3576132d361318b565b500190565b6040815260006132eb6040830185612ddf565b82810360208401526131348185612ddf565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b60006020828403121561336057600080fd5b8151610d498161289a565b60008160001904831182151516156133855761338561318b565b500290565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906133f790830186612ddf565b82810360608401526134098186612ddf565b90508281036080840152610b8c8185612a23565b60006020828403121561342f57600080fd5b8151610d49816128db565b600060033d11156120755760046000803e5060005160e01c90565b600060443d10156134635790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561349257505050505090565b82850191508151818111156134aa5750505050505090565b843d87010160208285010111156134c45750505050505090565b6134d360208286010187612924565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061356090830184612a23565b97965050505050505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220242cebf15f53e8b58601adb85e805f2c05daced0e2398f0a91957c263ca5cf6464736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742900000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001a5061726164697365205472697070696573204d696e7450617373000000000000000000000000000000000000000000000000000000000000000000000000000a5452495050595041535300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f617069706173732e70617261646973652e636f6d2f746f6b656e2f3100000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021c5760003560e01c80634b980d671161011f5780634b980d67146105035780634e1273f4146105195780634f558e7914610546578063715018a61461056657806377abe8e61461057b5780637d7eee421461059b578063869f7594146105bb5780638da5cb5b146105e857806395d89b411461060a578063a22cb4651461061f578063a496dedf1461063f578063b48ab8b61461065f578063bd85b0391461067f578063ccfdd2f8146106ac578063cd53d08e146106cc578063d2a6b51a14610702578063e268e4d314610722578063e757c17d14610742578063e985e9c514610758578063eb8d244414610778578063f032554914610797578063f242432a146107ac578063f2fde38b146107cc57600080fd5b8062fdd58e1461022157806301ffc9a71461025457806302fe53051461028457806306fdde03146102a65780630c53c51c146102c85780630e89341c146102db5780630f7e5970146102fb5780631b2ef1ca146103285780631f0234d81461033b57806320379ee5146103555780632693ebf21461036a5780632d0335ab146103975780632eb2c2d6146103cd5780633318e277146103ed5780633408e4701461040357806334918dfd14610416578063354030231461042b57806336a100d51461045857806337da577c146104785780633adf80b4146104985780633ccfd60b146104b85780633eff84a1146104cd578063453c2310146104ed575b600080fd5b34801561022d57600080fd5b5061024161023c3660046128af565b6107ec565b6040519081526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046128f1565b610886565b604051901515815260200161024b565b34801561029057600080fd5b506102a461029f3660046129c3565b6108d6565b005b3480156102b257600080fd5b506102bb610921565b60405161024b9190612a4f565b6102bb6102d6366004612a62565b6109af565b3480156102e757600080fd5b506102bb6102f6366004612adf565b610b98565b34801561030757600080fd5b506102bb604051806040016040528060018152602001603160f81b81525081565b6102a4610336366004612af8565b610d56565b34801561034757600080fd5b50600d546102749060ff1681565b34801561036157600080fd5b50600454610241565b34801561037657600080fd5b50610241610385366004612adf565b60096020526000908152604090205481565b3480156103a357600080fd5b506102416103b2366004612b1a565b6001600160a01b031660009081526005602052604090205490565b3480156103d957600080fd5b506102a46103e8366004612bcb565b610fc5565b3480156103f957600080fd5b50610241600f5481565b34801561040f57600080fd5b5046610241565b34801561042257600080fd5b506102a461124c565b34801561043757600080fd5b50610241610446366004612adf565b60126020526000908152604090205481565b34801561046457600080fd5b50610241610473366004612c78565b6112a8565b34801561048457600080fd5b506102a4610493366004612af8565b6113f1565b3480156104a457600080fd5b506102a46104b3366004612cd1565b611441565b3480156104c457600080fd5b506102a46114e0565b3480156104d957600080fd5b506102a46104e8366004612adf565b611552565b3480156104f957600080fd5b5061024160105481565b34801561050f57600080fd5b5061024160115481565b34801561052557600080fd5b50610539610534366004612d86565b611596565b60405161024b9190612e1a565b34801561055257600080fd5b50610274610561366004612adf565b6116bf565b34801561057257600080fd5b506102a46116ca565b34801561058757600080fd5b506102a4610596366004612e2d565b611753565b3480156105a757600080fd5b506102a46105b6366004612adf565b6117a6565b3480156105c757600080fd5b506102416105d6366004612adf565b60009081526012602052604090205490565b3480156105f457600080fd5b506105fd6117ea565b60405161024b9190612ea3565b34801561061657600080fd5b506102bb6117f9565b34801561062b57600080fd5b506102a461063a366004612eb7565b611806565b34801561064b57600080fd5b506102a461065a366004612ef5565b61191a565b34801561066b57600080fd5b506102a461067a366004612f42565b6119d9565b34801561068b57600080fd5b5061024161069a366004612adf565b60009081526009602052604090205490565b3480156106b857600080fd5b506102a46106c7366004612adf565b611b03565b3480156106d857600080fd5b506105fd6106e7366004612adf565b6008602052600090815260409020546001600160a01b031681565b34801561070e57600080fd5b506102a461071d366004612fc3565b611b47565b34801561072e57600080fd5b506102a461073d366004612adf565b611bf9565b34801561074e57600080fd5b50610241600e5481565b34801561076457600080fd5b50610274610773366004613008565b611c3d565b34801561078457600080fd5b50600d5461027490610100900460ff1681565b3480156107a357600080fd5b506102a4611d02565b3480156107b857600080fd5b506102a46107c7366004613036565b611d55565b3480156107d857600080fd5b506102a46107e7366004612b1a565b611f1b565b60006001600160a01b03831661085d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806108b757506001600160e01b031982166303a24d0760e21b145b8061088057506301ffc9a760e01b6001600160e01b0319831614610880565b6108de61207e565b6001600160a01b03166108ef6117ea565b6001600160a01b0316146109155760405162461bcd60e51b81526004016108549061309e565b61091e8161208d565b50565b600b805461092e906130d3565b80601f016020809104026020016040519081016040528092919081815260200182805461095a906130d3565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b505050505081565b60408051606081810183526001600160a01b038816600081815260056020908152908590205484528301529181018690526109ed87828787876120a0565b610a435760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610854565b6001600160a01b038716600090815260056020526040902054610a67906001612190565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610ab790899033908a90613108565b60405180910390a1600080306001600160a01b0316888a604051602001610adf92919061313d565b60408051601f1981840301815290829052610af99161316f565b6000604051808303816000865af19150503d8060008114610b36576040519150601f19603f3d011682016040523d82523d6000602084013e610b3b565b606091505b509150915081610b8c5760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610854565b98975050505050505050565b6060610ba38261219c565b610bfe5760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b6064820152608401610854565b6000828152600a602052604081208054610c17906130d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c43906130d3565b8015610c905780601f10610c6557610100808354040283529160200191610c90565b820191906000526020600020905b815481529060010190602001808311610c7357829003601f168201915b50505050509050600081511115610d40576000838152600a602052604090208054610cba906130d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce6906130d3565b8015610d335780601f10610d0857610100808354040283529160200191610d33565b820191906000526020600020905b815481529060010190602001808311610d1657829003601f168201915b5050505050915050919050565b610d49836121b9565b9392505050565b50919050565b600d54610100900460ff16610da35760405162461bcd60e51b815260206004820152601360248201527229b0b6329034b9903737ba1030b1ba34bb329760691b6044820152606401610854565b600081815260126020526040902054610dd283610dcc8460009081526009602052604090205490565b90612190565b1115610e1a5760405162461bcd60e51b815260206004820152601760248201527626b4b73a103430b99030b63932b0b23c9032b73232b21760491b6044820152606401610854565b60008211610e685760405162461bcd60e51b815260206004820152601b60248201527a373ab6b132b927b32a37b5b2b7399031b0b73737ba10313290181760291b6044820152606401610854565b600f543490610e77908461224d565b1115610ebe5760405162461bcd60e51b815260206004820152601660248201527522aa241039b2b73a1034b99034b731b7b93932b1ba1760511b6044820152606401610854565b601054610ecf83610dcc33856107ec565b1115610f0e5760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b239903634b6b4ba1760911b6044820152606401610854565b601054821115610f605760405162461bcd60e51b815260206004820152601e60248201527f4578636565647320706572207472616e73616374696f6e206c696d69742e00006044820152606401610854565b60005b82811015610fc057610f8633838560405180602001604052806000815250612259565b600082815260096020526040902054610f9f9084612190565b60008381526009602052604090205580610fb8816131a1565b915050610f63565b505050565b8151835114610fe65760405162461bcd60e51b8152600401610854906131bc565b6001600160a01b03841661100c5760405162461bcd60e51b815260040161085490613204565b61101461207e565b6001600160a01b0316856001600160a01b0316148061103a575061103a8561077361207e565b6110a15760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610854565b60006110ab61207e565b905060005b84518110156111de5760008582815181106110cd576110cd613249565b6020026020010151905060008583815181106110eb576110eb613249565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561113b5760405162461bcd60e51b81526004016108549061325f565b61114582826132a9565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546111c391906132c0565b92505081905550505050806111d7906131a1565b90506110b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161122e9291906132d8565b60405180910390a461124481878787878761232b565b505050505050565b61125461207e565b6001600160a01b03166112656117ea565b6001600160a01b03161461128b5760405162461bcd60e51b81526004016108549061309e565b600d805461ff001981166101009182900460ff1615909102179055565b60006112b261207e565b6001600160a01b03166112c36117ea565b6001600160a01b0316146112e95760405162461bcd60e51b81526004016108549061309e565b6112f28561219c565b1561133a5760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b6044820152606401610854565b61134261207e565b600086815260086020526040902080546001600160a01b0319166001600160a01b03929092169190911790558251156113ce576000858152600a60209081526040909120845161139492860190612801565b50847f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b846040516113c59190612a4f565b60405180910390a25b6113da86868685612259565b505050600082815260096020526040902055919050565b6113f961207e565b6001600160a01b031661140a6117ea565b6001600160a01b0316146114305760405162461bcd60e51b81526004016108549061309e565b600090815260126020526040902055565b8161144a61207e565b6000828152600860205260409020546001600160a01b039081169116146114835760405162461bcd60e51b8152600401610854906132fd565b6000838152600a6020908152604090912083516114a292850190612801565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516114d39190612a4f565b60405180910390a2505050565b6114e861207e565b6001600160a01b03166114f96117ea565b6001600160a01b03161461151f5760405162461bcd60e51b81526004016108549061309e565b6040514790339082156108fc029083906000818181858888f1935050505015801561154e573d6000803e3d6000fd5b5050565b61155a61207e565b6001600160a01b031661156b6117ea565b6001600160a01b0316146115915760405162461bcd60e51b81526004016108549061309e565b600f55565b606081518351146115fb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610854565b600083516001600160401b038111156116165761161661290e565b60405190808252806020026020018201604052801561163f578160200160208202803683370190505b50905060005b84518110156116b75761168a85828151811061166357611663613249565b602002602001015185838151811061167d5761167d613249565b60200260200101516107ec565b82828151811061169c5761169c613249565b60209081029190910101526116b0816131a1565b9050611645565b509392505050565b60006108808261219c565b6116d261207e565b6001600160a01b03166116e36117ea565b6001600160a01b0316146117095760405162461bcd60e51b81526004016108549061309e565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b61175b61207e565b6001600160a01b031661176c6117ea565b6001600160a01b0316146117925760405162461bcd60e51b81526004016108549061309e565b61179f33858486856112a8565b5050505050565b6117ae61207e565b6001600160a01b03166117bf6117ea565b6001600160a01b0316146117e55760405162461bcd60e51b81526004016108549061309e565b600e55565b6006546001600160a01b031690565b600c805461092e906130d3565b816001600160a01b031661181861207e565b6001600160a01b031614156118815760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610854565b806001600061188e61207e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556118d261207e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161190e911515815260200190565b60405180910390a35050565b61192261207e565b6001600160a01b03166119336117ea565b6001600160a01b0316146119595760405162461bcd60e51b81526004016108549061309e565b60005b83518110156119d35761199984828151811061197a5761197a613249565b6020026020010151838560405180602001604052806000815250612259565b6000828152600960205260409020546119b29084612190565b600083815260096020526040902055806119cb816131a1565b91505061195c565b50505050565b60005b8351811015611af65760008482815181106119f9576119f9613249565b60200260200101519050611a0b61207e565b6000828152600860205260409020546001600160a01b03908116911614611a8c5760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b6064820152608401610854565b6000848381518110611aa057611aa0613249565b60200260200101519050611ad081600960008581526020019081526020016000205461219090919063ffffffff16565b600092835260096020526040909220919091555080611aee816131a1565b9150506119dc565b506119d384848484612487565b611b0b61207e565b6001600160a01b0316611b1c6117ea565b6001600160a01b031614611b425760405162461bcd60e51b81526004016108549061309e565b601155565b6001600160a01b038216611bb25760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b6064820152608401610854565b60005b8151811015610fc0576000828281518110611bd257611bd2613249565b60200260200101519050611be684826125dd565b5080611bf1816131a1565b915050611bb5565b611c0161207e565b6001600160a01b0316611c126117ea565b6001600160a01b031614611c385760405162461bcd60e51b81526004016108549061309e565b601055565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190611c76908890600401612ea3565b602060405180830381865afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb7919061334e565b6001600160a01b03161415611cd0576001915050610880565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b611d0a61207e565b6001600160a01b0316611d1b6117ea565b6001600160a01b031614611d415760405162461bcd60e51b81526004016108549061309e565b600d805460ff19811660ff90911615179055565b6001600160a01b038416611d7b5760405162461bcd60e51b815260040161085490613204565b611d8361207e565b6001600160a01b0316856001600160a01b03161480611da95750611da98561077361207e565b611e075760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610854565b6000611e1161207e565b9050611e2b818787611e228861264e565b61179f8861264e565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611e6c5760405162461bcd60e51b81526004016108549061325f565b611e7684826132a9565b6000868152602081815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290611eb29084906132c0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f12828888888888612699565b50505050505050565b611f2361207e565b6001600160a01b0316611f346117ea565b6001600160a01b031614611f5a5760405162461bcd60e51b81526004016108549061309e565b6001600160a01b038116611fbf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610854565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60003330141561207257600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506120759050565b50335b90565b3b151590565b600061208861201b565b905090565b805161154e906002906020840190612801565b60006001600160a01b0386166121065760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610854565b600161211961211487612754565b6127d1565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612167573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610d4982846132c0565b6000908152600860205260409020546001600160a01b0316151590565b6060600280546121c8906130d3565b80601f01602080910402602001604051908101604052809291908181526020018280546121f4906130d3565b80156122415780601f1061221657610100808354040283529160200191612241565b820191906000526020600020905b81548152906001019060200180831161222457829003601f168201915b50505050509050919050565b6000610d49828461336b565b6001600160a01b03841661227f5760405162461bcd60e51b81526004016108549061338a565b600061228961207e565b905061229b81600087611e228861264e565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906122cb9084906132c0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461179f81600087878787612699565b6001600160a01b0384163b156112445760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061236f90899089908890889088906004016133cb565b6020604051808303816000875af19250505080156123aa575060408051601f3d908101601f191682019092526123a79181019061341d565b60015b612457576123b661343a565b806308c379a014156123f057506123cb613455565b806123d657506123f2565b8060405162461bcd60e51b81526004016108549190612a4f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610854565b6001600160e01b0319811663bc197c8160e01b14611f125760405162461bcd60e51b8152600401610854906134de565b6001600160a01b0384166124ad5760405162461bcd60e51b81526004016108549061338a565b81518351146124ce5760405162461bcd60e51b8152600401610854906131bc565b60006124d861207e565b905060005b8451811015612575578381815181106124f8576124f8613249565b602002602001015160008087848151811061251557612515613249565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461255d91906132c0565b9091555081905061256d816131a1565b9150506124dd565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125c69291906132d8565b60405180910390a461179f8160008787878761232b565b806125e661207e565b6000828152600860205260409020546001600160a01b0390811691161461261f5760405162461bcd60e51b8152600401610854906132fd565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061268857612688613249565b602090810291909101015292915050565b6001600160a01b0384163b156112445760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126dd9089908990889088908890600401613526565b6020604051808303816000875af1925050508015612718575060408051601f3d908101601f191682019092526127159181019061341d565b60015b612724576123b661343a565b6001600160e01b0319811663f23a6e6160e01b14611f125760405162461bcd60e51b8152600401610854906134de565b600060405180608001604052806043815260200161356c60439139805160209182012083518483015160408087015180519086012090516127b4950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006127dc60045490565b60405161190160f01b60208201526022810191909152604281018390526062016127b4565b82805461280d906130d3565b90600052602060002090601f01602090048101928261282f5760008555612875565b82601f1061284857805160ff1916838001178555612875565b82800160010185558215612875579182015b8281111561287557825182559160200191906001019061285a565b50612881929150612885565b5090565b5b808211156128815760008155600101612886565b6001600160a01b038116811461091e57600080fd5b600080604083850312156128c257600080fd5b82356128cd8161289a565b946020939093013593505050565b6001600160e01b03198116811461091e57600080fd5b60006020828403121561290357600080fd5b8135610d49816128db565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156129495761294961290e565b6040525050565b600082601f83011261296157600080fd5b81356001600160401b0381111561297a5761297a61290e565b604051612991601f8301601f191660200182612924565b8181528460208386010111156129a657600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156129d557600080fd5b81356001600160401b038111156129eb57600080fd5b611cfa84828501612950565b60005b83811015612a125781810151838201526020016129fa565b838111156119d35750506000910152565b60008151808452612a3b8160208601602086016129f7565b601f01601f19169290920160200192915050565b602081526000610d496020830184612a23565b600080600080600060a08688031215612a7a57600080fd5b8535612a858161289a565b945060208601356001600160401b03811115612aa057600080fd5b612aac88828901612950565b9450506040860135925060608601359150608086013560ff81168114612ad157600080fd5b809150509295509295909350565b600060208284031215612af157600080fd5b5035919050565b60008060408385031215612b0b57600080fd5b50508035926020909101359150565b600060208284031215612b2c57600080fd5b8135610d498161289a565b60006001600160401b03821115612b5057612b5061290e565b5060051b60200190565b600082601f830112612b6b57600080fd5b81356020612b7882612b37565b604051612b858282612924565b83815260059390931b8501820192828101915086841115612ba557600080fd5b8286015b84811015612bc05780358352918301918301612ba9565b509695505050505050565b600080600080600060a08688031215612be357600080fd5b8535612bee8161289a565b94506020860135612bfe8161289a565b935060408601356001600160401b0380821115612c1a57600080fd5b612c2689838a01612b5a565b94506060880135915080821115612c3c57600080fd5b612c4889838a01612b5a565b93506080880135915080821115612c5e57600080fd5b50612c6b88828901612950565b9150509295509295909350565b600080600080600060a08688031215612c9057600080fd5b8535612c9b8161289a565b9450602086013593506040860135925060608601356001600160401b0380821115612cc557600080fd5b612c4889838a01612950565b60008060408385031215612ce457600080fd5b8235915060208301356001600160401b03811115612d0157600080fd5b612d0d85828601612950565b9150509250929050565b600082601f830112612d2857600080fd5b81356020612d3582612b37565b604051612d428282612924565b83815260059390931b8501820192828101915086841115612d6257600080fd5b8286015b84811015612bc0578035612d798161289a565b8352918301918301612d66565b60008060408385031215612d9957600080fd5b82356001600160401b0380821115612db057600080fd5b612dbc86838701612d17565b93506020850135915080821115612dd257600080fd5b50612d0d85828601612b5a565b600081518084526020808501945080840160005b83811015612e0f57815187529582019590820190600101612df3565b509495945050505050565b602081526000610d496020830184612ddf565b60008060008060808587031215612e4357600080fd5b8435935060208501356001600160401b0380821115612e6157600080fd5b612e6d88838901612950565b9450604087013593506060870135915080821115612e8a57600080fd5b50612e9787828801612950565b91505092959194509250565b6001600160a01b0391909116815260200190565b60008060408385031215612eca57600080fd5b8235612ed58161289a565b915060208301358015158114612eea57600080fd5b809150509250929050565b600080600060608486031215612f0a57600080fd5b83356001600160401b03811115612f2057600080fd5b612f2c86828701612d17565b9660208601359650604090950135949350505050565b60008060008060808587031215612f5857600080fd5b8435612f638161289a565b935060208501356001600160401b0380821115612f7f57600080fd5b612f8b88838901612b5a565b94506040870135915080821115612fa157600080fd5b612fad88838901612b5a565b93506060870135915080821115612e8a57600080fd5b60008060408385031215612fd657600080fd5b8235612fe18161289a565b915060208301356001600160401b03811115612ffc57600080fd5b612d0d85828601612b5a565b6000806040838503121561301b57600080fd5b82356130268161289a565b91506020830135612eea8161289a565b600080600080600060a0868803121561304e57600080fd5b85356130598161289a565b945060208601356130698161289a565b9350604086013592506060860135915060808601356001600160401b0381111561309257600080fd5b612c6b88828901612950565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806130e757607f821691505b60208210811415610d5057634e487b7160e01b600052602260045260246000fd5b6001600160a01b0384811682528316602082015260606040820181905260009061313490830184612a23565b95945050505050565b6000835161314f8184602088016129f7565b60609390931b6001600160601b0319169190920190815260140192915050565b600082516131818184602087016129f7565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156131b5576131b561318b565b5060010190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6000828210156132bb576132bb61318b565b500390565b600082198211156132d3576132d361318b565b500190565b6040815260006132eb6040830185612ddf565b82810360208401526131348185612ddf565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b60006020828403121561336057600080fd5b8151610d498161289a565b60008160001904831182151516156133855761338561318b565b500290565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906133f790830186612ddf565b82810360608401526134098186612ddf565b90508281036080840152610b8c8185612a23565b60006020828403121561342f57600080fd5b8151610d49816128db565b600060033d11156120755760046000803e5060005160e01c90565b600060443d10156134635790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561349257505050505090565b82850191508151818111156134aa5750505050505090565b843d87010160208285010111156134c45750505050505090565b6134d360208286010187612924565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061356090830184612a23565b97965050505050505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220242cebf15f53e8b58601adb85e805f2c05daced0e2398f0a91957c263ca5cf6464736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001a5061726164697365205472697070696573204d696e7450617373000000000000000000000000000000000000000000000000000000000000000000000000000a5452495050595041535300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f617069706173732e70617261646973652e636f6d2f746f6b656e2f3100000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Paradise Trippies MintPass
Arg [1] : _symbol (string): TRIPPYPASS
Arg [2] : _uri (string): https://apipass.paradise.com/token/1
Arg [3] : _id (uint256): 1
Arg [4] : _initialSupply (uint256): 1
Arg [5] : _maxSupply (uint256): 2000
Arg [6] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [8] : 5061726164697365205472697070696573204d696e7450617373000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 5452495050595041535300000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [12] : 68747470733a2f2f617069706173732e70617261646973652e636f6d2f746f6b
Arg [13] : 656e2f3100000000000000000000000000000000000000000000000000000000
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.