Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
172
Holders
124
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:
ArtDubaiJasonSeife
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /* ::: ::::::::: ::::::::::: :::::::: :+: :+: :+: :+: :+: :+: :+: +:+ +:+ +:+ +:+ +:+ +:+ +#++:++#++: +#+ +:+ +#+ +#++:++#++ +#+ +#+ +#+ +#+ +#+ +#+ #+# #+# #+# #+# #+# #+# #+# #+# ### ### ######### ##### ######## UAE NFT - Art Dubai | Jason Seife All rights reserved 2023 Developed by DeployLabs.io ([email protected]) */ import "./ArtDubai.sol"; /** * @title UAE NFT - Art Dubai | Jason Seife * @author DeployLabs.io * * @dev This contract is a collection for Art Dubai by Jason Seife. */ contract ArtDubaiJasonSeife is ArtDubai { constructor() ArtDubai(0x39431b51cb437b22, 0xb3B322858B8D0b055d492e167a2440192a7Fa642) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: 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. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./library/operator_filterer/DefaultOperatorFilterer.sol"; error ArtDubai__TokenNotForSale(); error ArtDubai__WrongEtherAmmount(); error ArtDubai__ExceedingMaxSupply(); error ArtDubai__ExceedingTokensPerWalletLimit(); error ArtDubai__ExceedingSignatureMaxQuantity(); error ArtDubai__HashComparisonFailed(); error ArtDubai__SignatureExpired(); error ArtDubai__UntrustedSigner(); error ArtDubai__SignatureAlreadyUsed(); error ArtDubai__InvalidInput(); error ArtDubai__NothingToWithdraw(); /** * @dev A struct, that contains the sale conditions for a token. * * @param supplyLimit The maximum amount of tokens that can be minted. * @param maxTokensPerWallet The maximum amount of tokens that can be minted per wallet. * @param weiTokenPrice The price of a token in wei. */ struct SaleConditions { uint16 supplyLimit; uint16 maxTokensPerWallet; uint256 weiTokenPrice; } /** * @dev A signature package, that secures the minting of tokens. * * @param hash The hash of the minting operation. * @param signature The signature for the hash. * @param signatureValidUntil The timestamp until which the signature is valid. * @param nonce The nonce, that is used to prevent replay attacks. * @param maxQuantity The maximum quantity of tokens that can be minted with this signature. */ struct SignaturePackage { bytes32 hash; bytes signature; uint32 signatureValidUntil; uint64 nonce; uint16 maxQuantity; } /** * @title Art Dubai * @author DeployLabs.io * * @dev This contract is used as a base contract for all Art Dubai collections. */ abstract contract ArtDubai is ERC1155, ERC1155Supply, Ownable, DefaultOperatorFilterer { bytes8 internal immutable i_hashSalt; address internal immutable i_signerAddress; mapping(uint64 => bool) internal s_usedNonces; mapping(uint8 => SaleConditions) internal s_saleConditions; mapping(uint8 => mapping(address => uint16)) internal s_numberMinted; string internal s_baseTokenUri; constructor(bytes8 hashSalt, address signerAddress) ERC1155("") { i_hashSalt = hashSalt; i_signerAddress = signerAddress; } /** * @dev Mint a token to a specified wallet. * * @param signaturePackage The signature package for security. * @param mintTo The address to mint the token to. * @param tokenId The id of the token to mint. * @param quantity The quantity of tokens to mint. */ function mint( SignaturePackage calldata signaturePackage, address mintTo, uint8 tokenId, uint16 quantity ) external payable { SaleConditions memory conditions = s_saleConditions[tokenId]; if (!isTokenForSale(tokenId)) revert ArtDubai__TokenNotForSale(); if (msg.value != conditions.weiTokenPrice * quantity) revert ArtDubai__WrongEtherAmmount(); if (totalSupply(tokenId) + quantity > conditions.supplyLimit) revert ArtDubai__ExceedingMaxSupply(); if (s_numberMinted[tokenId][mintTo] + quantity > conditions.maxTokensPerWallet) revert ArtDubai__ExceedingTokensPerWalletLimit(); if (quantity > signaturePackage.maxQuantity) revert ArtDubai__ExceedingSignatureMaxQuantity(); if (signaturePackage.signatureValidUntil < block.timestamp) revert ArtDubai__SignatureExpired(); if (!_isCorrectMintOperationHash(signaturePackage, tokenId, mintTo)) revert ArtDubai__HashComparisonFailed(); if (!_isTrustedSigner(signaturePackage.hash, signaturePackage.signature)) revert ArtDubai__UntrustedSigner(); if (s_usedNonces[signaturePackage.nonce]) revert ArtDubai__SignatureAlreadyUsed(); s_numberMinted[tokenId][mintTo] += quantity; s_usedNonces[signaturePackage.nonce] = true; _mint(mintTo, tokenId, quantity, ""); } /** * @dev Withdraw the balance of the contract. * * @param to The address to send the balance to. */ function withdraw(address payable to) external onlyOwner { uint256 balance = address(this).balance; if (balance == 0) revert ArtDubai__NothingToWithdraw(); if (to == address(0)) revert ArtDubai__InvalidInput(); to.transfer(balance); } /** * @dev Set base URI for token metadata. * * @param baseUri The base URI for token metadata. */ function setBaseUri(string calldata baseUri) external onlyOwner { s_baseTokenUri = baseUri; } /** * @dev Sets sale conditions for a set of tokens. * * @param tokenIds Token IDs * @param saleConditions Sale conditions for each token */ function setSaleConditions( uint8[] calldata tokenIds, SaleConditions[] calldata saleConditions ) external onlyOwner { if (tokenIds.length != saleConditions.length) revert ArtDubai__InvalidInput(); for (uint8 i = 0; i < tokenIds.length; i++) { s_saleConditions[tokenIds[i]] = saleConditions[i]; } } /** * @dev Gets sale conditions for a token. * * @param tokenId Token ID * * @return conditions Sale conditions. */ function getSaleConditions( uint8 tokenId ) external view returns (SaleConditions memory conditions) { conditions = s_saleConditions[tokenId]; } /** * @dev Get the number of tokens minted by a wallet. * * @param tokenId The id of the token. * @param wallet The wallet to check. * * @return countMinted The number of tokens minted by the wallet. */ function getMintedCount( uint8 tokenId, address wallet ) external view returns (uint16 countMinted) { countMinted = s_numberMinted[tokenId][wallet]; } // Overrides for marketplace restrictions. function setApprovalForAll( address operator, bool approved ) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function safeTransferFrom( address from, address to, uint256 tokenId, uint256 amount, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, amount, data); } function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override onlyAllowedOperator(from) { super.safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Check, if a token is for sale. * * @param tokenId The id of the token. * * @return isForSale Whether the token is for sale. */ function isTokenForSale(uint8 tokenId) public view virtual returns (bool isForSale) { isForSale = s_saleConditions[tokenId].supplyLimit > 0; } /** * @dev Get data used to generate the signature. * * @return hashSalt The hash salt. * @return signerAddress The signer address. */ function getSignatureData() public view returns (bytes8 hashSalt, address signerAddress) { hashSalt = i_hashSalt; signerAddress = i_signerAddress; } /** * @dev Get the URI for a token. * * @param tokenId The token ID. * * @return uri The URI for the token. */ function uri(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(s_baseTokenUri, Strings.toString(tokenId))); } // Override for ERC1155Supply. function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } /** * @dev Check whether a message hash is the one that has been signed. * * @param signaturePackage The signature package. * @param tokenId The id of the token. * @param mintTo The address to mint to. * * @return isCorrectMintOperationHash Whether the message hash matches the one that has been signed. */ function _isCorrectMintOperationHash( SignaturePackage calldata signaturePackage, uint8 tokenId, address mintTo ) internal view returns (bool isCorrectMintOperationHash) { bytes memory message = abi.encodePacked( i_hashSalt, mintTo, uint64(block.chainid), tokenId, signaturePackage.maxQuantity, signaturePackage.signatureValidUntil, signaturePackage.nonce ); bytes32 messageHash = keccak256(message); isCorrectMintOperationHash = messageHash == signaturePackage.hash; } /** * @dev Check whether a message was signed by a trusted address. * * @param hash The hash of the message. * @param signature The signature of the message. * * @return isTrustedSigner Whether the message was signed by a trusted address. */ function _isTrustedSigner( bytes32 hash, bytes memory signature ) internal view returns (bool isTrustedSigner) { isTrustedSigner = i_signerAddress == ECDSA.recover(hash, signature); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArtDubai__ExceedingMaxSupply","type":"error"},{"inputs":[],"name":"ArtDubai__ExceedingSignatureMaxQuantity","type":"error"},{"inputs":[],"name":"ArtDubai__ExceedingTokensPerWalletLimit","type":"error"},{"inputs":[],"name":"ArtDubai__HashComparisonFailed","type":"error"},{"inputs":[],"name":"ArtDubai__InvalidInput","type":"error"},{"inputs":[],"name":"ArtDubai__NothingToWithdraw","type":"error"},{"inputs":[],"name":"ArtDubai__SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"ArtDubai__SignatureExpired","type":"error"},{"inputs":[],"name":"ArtDubai__TokenNotForSale","type":"error"},{"inputs":[],"name":"ArtDubai__UntrustedSigner","type":"error"},{"inputs":[],"name":"ArtDubai__WrongEtherAmmount","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenId","type":"uint8"},{"internalType":"address","name":"wallet","type":"address"}],"name":"getMintedCount","outputs":[{"internalType":"uint16","name":"countMinted","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenId","type":"uint8"}],"name":"getSaleConditions","outputs":[{"components":[{"internalType":"uint16","name":"supplyLimit","type":"uint16"},{"internalType":"uint16","name":"maxTokensPerWallet","type":"uint16"},{"internalType":"uint256","name":"weiTokenPrice","type":"uint256"}],"internalType":"struct SaleConditions","name":"conditions","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignatureData","outputs":[{"internalType":"bytes8","name":"hashSalt","type":"bytes8"},{"internalType":"address","name":"signerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenId","type":"uint8"}],"name":"isTokenForSale","outputs":[{"internalType":"bool","name":"isForSale","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint32","name":"signatureValidUntil","type":"uint32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint16","name":"maxQuantity","type":"uint16"}],"internalType":"struct SignaturePackage","name":"signaturePackage","type":"tuple"},{"internalType":"address","name":"mintTo","type":"address"},{"internalType":"uint8","name":"tokenId","type":"uint8"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"tokenIds","type":"uint8[]"},{"components":[{"internalType":"uint16","name":"supplyLimit","type":"uint16"},{"internalType":"uint16","name":"maxTokensPerWallet","type":"uint16"},{"internalType":"uint256","name":"weiTokenPrice","type":"uint256"}],"internalType":"struct SaleConditions[]","name":"saleConditions","type":"tuple[]"}],"name":"setSaleConditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506739431b51cb437b2260c01b73b3b322858b8d0b055d492e167a2440192a7fa642733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806020016040528060008152506200006b81620002fd60201b60201c565b506200008c620000806200031260201b60201c565b6200031a60201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200028157801562000147576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200010d92919062000425565b600060405180830381600087803b1580156200012857600080fd5b505af11580156200013d573d6000803e3d6000fd5b5050505062000280565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000201576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620001c792919062000425565b600060405180830381600087803b158015620001e257600080fd5b505af1158015620001f7573d6000803e3d6000fd5b505050506200027f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200024a919062000452565b600060405180830381600087803b1580156200026557600080fd5b505af11580156200027a573d6000803e3d6000fd5b505050505b5b5b50508177ffffffffffffffffffffffffffffffffffffffffffffffff191660808177ffffffffffffffffffffffffffffffffffffffffffffffff1916815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505050620007d0565b80600290816200030e9190620006e9565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200040d82620003e0565b9050919050565b6200041f8162000400565b82525050565b60006040820190506200043c600083018562000414565b6200044b602083018462000414565b9392505050565b600060208201905062000469600083018462000414565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004f157607f821691505b602082108103620005075762000506620004a9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005717fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000532565b6200057d868362000532565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005ca620005c4620005be8462000595565b6200059f565b62000595565b9050919050565b6000819050919050565b620005e683620005a9565b620005fe620005f582620005d1565b8484546200053f565b825550505050565b600090565b6200061562000606565b62000622818484620005db565b505050565b5b818110156200064a576200063e6000826200060b565b60018101905062000628565b5050565b601f821115620006995762000663816200050d565b6200066e8462000522565b810160208510156200067e578190505b620006966200068d8562000522565b83018262000627565b50505b505050565b600082821c905092915050565b6000620006be600019846008026200069e565b1980831691505092915050565b6000620006d98383620006ab565b9150826002028217905092915050565b620006f4826200046f565b67ffffffffffffffff81111562000710576200070f6200047a565b5b6200071c8254620004d8565b620007298282856200064e565b600060209050601f8311600181146200076157600084156200074c578287015190505b620007588582620006cb565b865550620007c8565b601f19841662000771866200050d565b60005b828110156200079b5784890151825560018201915060208501945060208101905062000774565b86831015620007bb5784890151620007b7601f891682620006ab565b8355505b6001600288020188555050505b505050505050565b60805160a0516151b4620008046000396000818161103a01526116d6015260008181611017015261161201526151b46000f3fe6080604052600436106101345760003560e01c8063715018a6116100ab578063bd85b0391161006f578063bd85b0391461043d578063e5b8fb921461047a578063e985e9c5146104a3578063f006ad97146104e0578063f242432a1461051d578063f2fde38b1461054657610134565b8063715018a61461037d5780638da5cb5b14610394578063900af192146103bf578063a0bcfc7f146103eb578063a22cb4651461041457610134565b80632eb2c2d6116100fd5780632eb2c2d61461026a5780634163933a1461029357806341f43434146102af5780634e1273f4146102da5780634f558e791461031757806351cff8d91461035457610134565b8062fdd58e1461013957806301ffc9a7146101765780630e89341c146101b357806314119bb7146101f0578063235f0e931461022d575b600080fd5b34801561014557600080fd5b50610160600480360381019061015b9190612d14565b61056f565b60405161016d9190612d63565b60405180910390f35b34801561018257600080fd5b5061019d60048036038101906101989190612dd6565b610637565b6040516101aa9190612e1e565b60405180910390f35b3480156101bf57600080fd5b506101da60048036038101906101d59190612e39565b610719565b6040516101e79190612ef6565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190612f51565b61074d565b6040516102249190612fec565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190613007565b6107ca565b6040516102619190613056565b60405180910390f35b34801561027657600080fd5b50610291600480360381019061028c919061326e565b610839565b005b6102ad60048036038101906102a8919061338d565b61088c565b005b3480156102bb57600080fd5b506102c4610d9d565b6040516102d1919061346f565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061354d565b610daf565b60405161030e9190613674565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190612e39565b610ec8565b60405161034b9190612e1e565b60405180910390f35b34801561036057600080fd5b5061037b600480360381019061037691906136d4565b610edc565b005b34801561038957600080fd5b50610392610fd4565b005b3480156103a057600080fd5b506103a9610fe8565b6040516103b69190613710565b60405180910390f35b3480156103cb57600080fd5b506103d4611012565b6040516103e2929190613766565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d91906137ea565b61105f565b005b34801561042057600080fd5b5061043b60048036038101906104369190613863565b61107d565b005b34801561044957600080fd5b50610464600480360381019061045f9190612e39565b611096565b6040516104719190612d63565b60405180910390f35b34801561048657600080fd5b506104a1600480360381019061049c919061394f565b6110b3565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906139d0565b611193565b6040516104d79190612e1e565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190612f51565b611227565b6040516105149190612e1e565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f9190613a10565b611261565b005b34801561055257600080fd5b5061056d60048036038101906105689190613aa7565b6112b4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690613b46565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070257507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610712575061071182611337565b5b9050919050565b60606008610726836113a1565b604051602001610737929190613c9a565b6040516020818303038152906040529050919050565b610755612c43565b600660008360ff1660ff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050919050565b6000600760008460ff1660ff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610877576108763361146f565b5b610884868686868661156c565b505050505050565b6000600660008460ff1660ff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900461ffff1661ffff1661ffff168152602001600182015481525050905061090783611227565b61093d576040517fee19d49100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161ffff1681604001516109519190613ced565b3414610989576040517f26c3439000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000015161ffff168261ffff166109a38560ff16611096565b6109ad9190613d2f565b11156109e5576040517fd8ea507600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015161ffff1682600760008660ff1660ff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff16610a5e9190613d63565b61ffff161115610a9a576040517f5b3e6f0000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846080016020810190610aad9190613d99565b61ffff168261ffff161115610aee576040517f8d515e9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42856040016020810190610b029190613e02565b63ffffffff161015610b40576040517f1eee9c0700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b4b85848661160d565b610b81576040517fff39ee9500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610be18560000135868060200190610b999190613e3e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116b2565b610c17576040517f1490dab400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60056000866060016020810190610c2e9190613ee1565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610c95576040517fa2a6490500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760008560ff1660ff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900461ffff16610d089190613d63565b92506101000a81548161ffff021916908361ffff160217905550600160056000876060016020810190610d3b9190613ee1565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d96848460ff168461ffff1660405180602001604052806000815250611714565b5050505050565b6daaeb6d7670e522a718067333cd4e81565b60608151835114610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90613f80565b60405180910390fd5b6000835167ffffffffffffffff811115610e1257610e11613076565b5b604051908082528060200260200182016040528015610e405781602001602082028036833780820191505090505b50905060005b8451811015610ebd57610e8d858281518110610e6557610e64613fa0565b5b6020026020010151858381518110610e8057610e7f613fa0565b5b602002602001015161056f565b828281518110610ea057610e9f613fa0565b5b60200260200101818152505080610eb690613fcf565b9050610e46565b508091505092915050565b600080610ed483611096565b119050919050565b610ee46118c4565b600047905060008103610f23576040517f895dcf4500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f89576040517fcaa9014f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fcf573d6000803e3d6000fd5b505050565b610fdc6118c4565b610fe66000611942565b565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f000000000000000000000000000000000000000000000000000000000000000091507f000000000000000000000000000000000000000000000000000000000000000090509091565b6110676118c4565b8181600891826110789291906141af565b505050565b816110878161146f565b6110918383611a08565b505050565b600060036000838152602001908152602001600020549050919050565b6110bb6118c4565b8181905084849050146110fa576040517fcaa9014f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b848490508160ff16101561118c5782828260ff1681811061112157611120613fa0565b5b9050606002016006600087878560ff1681811061114157611140613fa0565b5b90506020020160208101906111569190612f51565b60ff1660ff1681526020019081526020016000208181611176919061444d565b90505080806111849061445b565b9150506110fd565b5050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080600660008460ff1660ff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff16119050919050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461129f5761129e3361146f565b5b6112ac8686868686611a1e565b505050505050565b6112bc6118c4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361132b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611322906144f6565b60405180910390fd5b61133481611942565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060016113b084611abf565b01905060008167ffffffffffffffff8111156113cf576113ce613076565b5b6040519080825280601f01601f1916602001820160405280156114015781602001600182028036833780820191505090505b509050600082602001820190505b600115611464578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161145857611457614516565b5b0494506000850361140f575b819350505050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611569576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016114e6929190614545565b602060405180830381865afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190614583565b61156857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161155f9190613710565b60405180910390fd5b5b50565b611574611c12565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115ba57506115b9856115b4611c12565b611193565b5b6115f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f090614622565b60405180910390fd5b6116068585858585611c1a565b5050505050565b6000807f00000000000000000000000000000000000000000000000000000000000000008346868860800160208101906116479190613d99565b89604001602081019061165a9190613e02565b8a606001602081019061166d9190613ee1565b6040516020016116839796959493929190614783565b604051602081830303815290604052905060008180519060200120905085600001358114925050509392505050565b60006116be8383611f3b565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177a90614876565b60405180910390fd5b600061178d611c12565b9050600061179a85611f62565b905060006117a785611f62565b90506117b883600089858589611fdc565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118179190613d2f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611895929190614896565b60405180910390a46118ac83600089858589611ff2565b6118bb83600089898989611ffa565b50505050505050565b6118cc611c12565b73ffffffffffffffffffffffffffffffffffffffff166118ea610fe8565b73ffffffffffffffffffffffffffffffffffffffff1614611940576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119379061490b565b60405180910390fd5b565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611a1a611a13611c12565b83836121d1565b5050565b611a26611c12565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a6c5750611a6b85611a66611c12565b611193565b5b611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290614622565b60405180910390fd5b611ab8858585858561233d565b5050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611b1d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611b1357611b12614516565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611b5a576d04ee2d6d415b85acef81000000008381611b5057611b4f614516565b5b0492506020810190505b662386f26fc100008310611b8957662386f26fc100008381611b7f57611b7e614516565b5b0492506010810190505b6305f5e1008310611bb2576305f5e1008381611ba857611ba7614516565b5b0492506008810190505b6127108310611bd7576127108381611bcd57611bcc614516565b5b0492506004810190505b60648310611bfa5760648381611bf057611bef614516565b5b0492506002810190505b600a8310611c09576001810190505b80915050919050565b600033905090565b8151835114611c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c559061499d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc490614a2f565b60405180910390fd5b6000611cd7611c12565b9050611ce7818787878787611fdc565b60005b8451811015611e98576000858281518110611d0857611d07613fa0565b5b602002602001015190506000858381518110611d2757611d26613fa0565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf90614ac1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e7d9190613d2f565b9250508190555050505080611e9190613fcf565b9050611cea565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f0f929190614ae1565b60405180910390a4611f25818787878787611ff2565b611f338187878787876125d8565b505050505050565b6000806000611f4a85856127af565b91509150611f5781612800565b819250505092915050565b60606000600167ffffffffffffffff811115611f8157611f80613076565b5b604051908082528060200260200182016040528015611faf5781602001602082028036833780820191505090505b5090508281600081518110611fc757611fc6613fa0565b5b60200260200101818152505080915050919050565b611fea868686868686612966565b505050505050565b505050505050565b6120198473ffffffffffffffffffffffffffffffffffffffff16612b36565b156121c9578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161205f959493929190614b6d565b6020604051808303816000875af192505050801561209b57506040513d601f19601f820116820180604052508101906120989190614bdc565b60015b612140576120a7614c16565b806308c379a00361210357506120bb614c38565b806120c65750612105565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa9190612ef6565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213790614d3a565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146121c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121be90614dcc565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361223f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223690614e5e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123309190612e1e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a390614a2f565b60405180910390fd5b60006123b6611c12565b905060006123c385611f62565b905060006123d085611f62565b90506123e0838989858589611fdc565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e90614ac1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461252c9190613d2f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516125a9929190614896565b60405180910390a46125bf848a8a86868a611ff2565b6125cd848a8a8a8a8a611ffa565b505050505050505050565b6125f78473ffffffffffffffffffffffffffffffffffffffff16612b36565b156127a7578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161263d959493929190614e7e565b6020604051808303816000875af192505050801561267957506040513d601f19601f820116820180604052508101906126769190614bdc565b60015b61271e57612685614c16565b806308c379a0036126e15750612699614c38565b806126a457506126e3565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d89190612ef6565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271590614d3a565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279c90614dcc565b60405180910390fd5b505b505050505050565b60008060418351036127f05760008060006020860151925060408601519150606086015160001a90506127e487828585612b59565b945094505050506127f9565b60006002915091505b9250929050565b6000600481111561281457612813614ee6565b5b81600481111561282757612826614ee6565b5b0315612963576001600481111561284157612840614ee6565b5b81600481111561285457612853614ee6565b5b03612894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288b90614f61565b60405180910390fd5b600260048111156128a8576128a7614ee6565b5b8160048111156128bb576128ba614ee6565b5b036128fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f290614fcd565b60405180910390fd5b6003600481111561290f5761290e614ee6565b5b81600481111561292257612921614ee6565b5b03612962576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129599061505f565b60405180910390fd5b5b50565b612974868686868686612c3b565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612a255760005b8351811015612a23578281815181106129c7576129c6613fa0565b5b6020026020010151600360008684815181106129e6576129e5613fa0565b5b602002602001015181526020019081526020016000206000828254612a0b9190613d2f565b9250508190555080612a1c90613fcf565b90506129ab565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612b2e5760005b8351811015612b2c576000848281518110612a7a57612a79613fa0565b5b602002602001015190506000848381518110612a9957612a98613fa0565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af5906150f1565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612b2590613fcf565b9050612a5c565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612b94576000600391509150612c32565b600060018787878760405160008152602001604052604051612bb99493929190615139565b6020604051602081039080840390855afa158015612bdb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c2957600060019250925050612c32565b80600092509250505b94509492505050565b505050505050565b6040518060600160405280600061ffff168152602001600061ffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cab82612c80565b9050919050565b612cbb81612ca0565b8114612cc657600080fd5b50565b600081359050612cd881612cb2565b92915050565b6000819050919050565b612cf181612cde565b8114612cfc57600080fd5b50565b600081359050612d0e81612ce8565b92915050565b60008060408385031215612d2b57612d2a612c76565b5b6000612d3985828601612cc9565b9250506020612d4a85828601612cff565b9150509250929050565b612d5d81612cde565b82525050565b6000602082019050612d786000830184612d54565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612db381612d7e565b8114612dbe57600080fd5b50565b600081359050612dd081612daa565b92915050565b600060208284031215612dec57612deb612c76565b5b6000612dfa84828501612dc1565b91505092915050565b60008115159050919050565b612e1881612e03565b82525050565b6000602082019050612e336000830184612e0f565b92915050565b600060208284031215612e4f57612e4e612c76565b5b6000612e5d84828501612cff565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ea0578082015181840152602081019050612e85565b60008484015250505050565b6000601f19601f8301169050919050565b6000612ec882612e66565b612ed28185612e71565b9350612ee2818560208601612e82565b612eeb81612eac565b840191505092915050565b60006020820190508181036000830152612f108184612ebd565b905092915050565b600060ff82169050919050565b612f2e81612f18565b8114612f3957600080fd5b50565b600081359050612f4b81612f25565b92915050565b600060208284031215612f6757612f66612c76565b5b6000612f7584828501612f3c565b91505092915050565b600061ffff82169050919050565b612f9581612f7e565b82525050565b612fa481612cde565b82525050565b606082016000820151612fc06000850182612f8c565b506020820151612fd36020850182612f8c565b506040820151612fe66040850182612f9b565b50505050565b60006060820190506130016000830184612faa565b92915050565b6000806040838503121561301e5761301d612c76565b5b600061302c85828601612f3c565b925050602061303d85828601612cc9565b9150509250929050565b61305081612f7e565b82525050565b600060208201905061306b6000830184613047565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6130ae82612eac565b810181811067ffffffffffffffff821117156130cd576130cc613076565b5b80604052505050565b60006130e0612c6c565b90506130ec82826130a5565b919050565b600067ffffffffffffffff82111561310c5761310b613076565b5b602082029050602081019050919050565b600080fd5b6000613135613130846130f1565b6130d6565b905080838252602082019050602084028301858111156131585761315761311d565b5b835b81811015613181578061316d8882612cff565b84526020840193505060208101905061315a565b5050509392505050565b600082601f8301126131a05761319f613071565b5b81356131b0848260208601613122565b91505092915050565b600080fd5b600067ffffffffffffffff8211156131d9576131d8613076565b5b6131e282612eac565b9050602081019050919050565b82818337600083830152505050565b600061321161320c846131be565b6130d6565b90508281526020810184848401111561322d5761322c6131b9565b5b6132388482856131ef565b509392505050565b600082601f83011261325557613254613071565b5b81356132658482602086016131fe565b91505092915050565b600080600080600060a0868803121561328a57613289612c76565b5b600061329888828901612cc9565b95505060206132a988828901612cc9565b945050604086013567ffffffffffffffff8111156132ca576132c9612c7b565b5b6132d68882890161318b565b935050606086013567ffffffffffffffff8111156132f7576132f6612c7b565b5b6133038882890161318b565b925050608086013567ffffffffffffffff81111561332457613323612c7b565b5b61333088828901613240565b9150509295509295909350565b600080fd5b600060a082840312156133585761335761333d565b5b81905092915050565b61336a81612f7e565b811461337557600080fd5b50565b60008135905061338781613361565b92915050565b600080600080608085870312156133a7576133a6612c76565b5b600085013567ffffffffffffffff8111156133c5576133c4612c7b565b5b6133d187828801613342565b94505060206133e287828801612cc9565b93505060406133f387828801612f3c565b925050606061340487828801613378565b91505092959194509250565b6000819050919050565b600061343561343061342b84612c80565b613410565b612c80565b9050919050565b60006134478261341a565b9050919050565b60006134598261343c565b9050919050565b6134698161344e565b82525050565b60006020820190506134846000830184613460565b92915050565b600067ffffffffffffffff8211156134a5576134a4613076565b5b602082029050602081019050919050565b60006134c96134c48461348a565b6130d6565b905080838252602082019050602084028301858111156134ec576134eb61311d565b5b835b8181101561351557806135018882612cc9565b8452602084019350506020810190506134ee565b5050509392505050565b600082601f83011261353457613533613071565b5b81356135448482602086016134b6565b91505092915050565b6000806040838503121561356457613563612c76565b5b600083013567ffffffffffffffff81111561358257613581612c7b565b5b61358e8582860161351f565b925050602083013567ffffffffffffffff8111156135af576135ae612c7b565b5b6135bb8582860161318b565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006135fd8383612f9b565b60208301905092915050565b6000602082019050919050565b6000613621826135c5565b61362b81856135d0565b9350613636836135e1565b8060005b8381101561366757815161364e88826135f1565b975061365983613609565b92505060018101905061363a565b5085935050505092915050565b6000602082019050818103600083015261368e8184613616565b905092915050565b60006136a182612c80565b9050919050565b6136b181613696565b81146136bc57600080fd5b50565b6000813590506136ce816136a8565b92915050565b6000602082840312156136ea576136e9612c76565b5b60006136f8848285016136bf565b91505092915050565b61370a81612ca0565b82525050565b60006020820190506137256000830184613701565b92915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b6137608161372b565b82525050565b600060408201905061377b6000830185613757565b6137886020830184613701565b9392505050565b600080fd5b60008083601f8401126137aa576137a9613071565b5b8235905067ffffffffffffffff8111156137c7576137c661378f565b5b6020830191508360018202830111156137e3576137e261311d565b5b9250929050565b6000806020838503121561380157613800612c76565b5b600083013567ffffffffffffffff81111561381f5761381e612c7b565b5b61382b85828601613794565b92509250509250929050565b61384081612e03565b811461384b57600080fd5b50565b60008135905061385d81613837565b92915050565b6000806040838503121561387a57613879612c76565b5b600061388885828601612cc9565b92505060206138998582860161384e565b9150509250929050565b60008083601f8401126138b9576138b8613071565b5b8235905067ffffffffffffffff8111156138d6576138d561378f565b5b6020830191508360208202830111156138f2576138f161311d565b5b9250929050565b60008083601f84011261390f5761390e613071565b5b8235905067ffffffffffffffff81111561392c5761392b61378f565b5b6020830191508360608202830111156139485761394761311d565b5b9250929050565b6000806000806040858703121561396957613968612c76565b5b600085013567ffffffffffffffff81111561398757613986612c7b565b5b613993878288016138a3565b9450945050602085013567ffffffffffffffff8111156139b6576139b5612c7b565b5b6139c2878288016138f9565b925092505092959194509250565b600080604083850312156139e7576139e6612c76565b5b60006139f585828601612cc9565b9250506020613a0685828601612cc9565b9150509250929050565b600080600080600060a08688031215613a2c57613a2b612c76565b5b6000613a3a88828901612cc9565b9550506020613a4b88828901612cc9565b9450506040613a5c88828901612cff565b9350506060613a6d88828901612cff565b925050608086013567ffffffffffffffff811115613a8e57613a8d612c7b565b5b613a9a88828901613240565b9150509295509295909350565b600060208284031215613abd57613abc612c76565b5b6000613acb84828501612cc9565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613b30602a83612e71565b9150613b3b82613ad4565b604082019050919050565b60006020820190508181036000830152613b5f81613b23565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613bad57607f821691505b602082108103613bc057613bbf613b66565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613bf381613b95565b613bfd8186613bc6565b94506001821660008114613c185760018114613c2d57613c60565b60ff1983168652811515820286019350613c60565b613c3685613bd1565b60005b83811015613c5857815481890152600182019150602081019050613c39565b838801955050505b50505092915050565b6000613c7482612e66565b613c7e8185613bc6565b9350613c8e818560208601612e82565b80840191505092915050565b6000613ca68285613be6565b9150613cb28284613c69565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cf882612cde565b9150613d0383612cde565b9250828202613d1181612cde565b91508282048414831517613d2857613d27613cbe565b5b5092915050565b6000613d3a82612cde565b9150613d4583612cde565b9250828201905080821115613d5d57613d5c613cbe565b5b92915050565b6000613d6e82612f7e565b9150613d7983612f7e565b9250828201905061ffff811115613d9357613d92613cbe565b5b92915050565b600060208284031215613daf57613dae612c76565b5b6000613dbd84828501613378565b91505092915050565b600063ffffffff82169050919050565b613ddf81613dc6565b8114613dea57600080fd5b50565b600081359050613dfc81613dd6565b92915050565b600060208284031215613e1857613e17612c76565b5b6000613e2684828501613ded565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613e5b57613e5a613e2f565b5b80840192508235915067ffffffffffffffff821115613e7d57613e7c613e34565b5b602083019250600182023603831315613e9957613e98613e39565b5b509250929050565b600067ffffffffffffffff82169050919050565b613ebe81613ea1565b8114613ec957600080fd5b50565b600081359050613edb81613eb5565b92915050565b600060208284031215613ef757613ef6612c76565b5b6000613f0584828501613ecc565b91505092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613f6a602983612e71565b9150613f7582613f0e565b604082019050919050565b60006020820190508181036000830152613f9981613f5d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613fda82612cde565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361400c5761400b613cbe565b5b600182019050919050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261406f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614032565b6140798683614032565b95508019841693508086168417925050509392505050565b60006140ac6140a76140a284612cde565b613410565b612cde565b9050919050565b6000819050919050565b6140c683614091565b6140da6140d2826140b3565b84845461403f565b825550505050565b600090565b6140ef6140e2565b6140fa8184846140bd565b505050565b5b8181101561411e576141136000826140e7565b600181019050614100565b5050565b601f8211156141635761413481613bd1565b61413d84614022565b8101602085101561414c578190505b61416061415885614022565b8301826140ff565b50505b505050565b600082821c905092915050565b600061418660001984600802614168565b1980831691505092915050565b600061419f8383614175565b9150826002028217905092915050565b6141b98383614017565b67ffffffffffffffff8111156141d2576141d1613076565b5b6141dc8254613b95565b6141e7828285614122565b6000601f8311600181146142165760008415614204578287013590505b61420e8582614193565b865550614276565b601f19841661422486613bd1565b60005b8281101561424c57848901358255600182019150602085019450602081019050614227565b868310156142695784890135614265601f891682614175565b8355505b6001600288020188555050505b50505050505050565b6000813561428c81613361565b80915050919050565b60008160001b9050919050565b600061ffff6142b084614295565b9350801983169250808416831791505092915050565b60006142e16142dc6142d784612f7e565b613410565b612f7e565b9050919050565b6000819050919050565b6142fb826142c6565b61430e614307826142e8565b83546142a2565b8255505050565b60008160101b9050919050565b600063ffff000061433284614315565b9350801983169250808416831791505092915050565b614351826142c6565b61436461435d826142e8565b8354614322565b8255505050565b6000813561437881612ce8565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6143ad84614295565b9350801983169250808416831791505092915050565b6143cc82614091565b6143df6143d8826140b3565b8354614381565b8255505050565b6000810160008301806143f88161427f565b905061440481846142f2565b5050506000810160208301806144198161427f565b90506144258184614348565b50505060018101604083018061443a8161436b565b905061444681846143c3565b5050505050565b61445782826143e6565b5050565b600061446682612f18565b915060ff820361447957614478613cbe565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006144e0602683612e71565b91506144eb82614484565b604082019050919050565b6000602082019050818103600083015261450f816144d3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060408201905061455a6000830185613701565b6145676020830184613701565b9392505050565b60008151905061457d81613837565b92915050565b60006020828403121561459957614598612c76565b5b60006145a78482850161456e565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061460c602e83612e71565b9150614617826145b0565b604082019050919050565b6000602082019050818103600083015261463b816145ff565b9050919050565b6000819050919050565b61465d6146588261372b565b614642565b82525050565b60008160601b9050919050565b600061467b82614663565b9050919050565b600061468d82614670565b9050919050565b6146a56146a082612ca0565b614682565b82525050565b60008160c01b9050919050565b60006146c3826146ab565b9050919050565b6146db6146d682613ea1565b6146b8565b82525050565b60008160f81b9050919050565b60006146f9826146e1565b9050919050565b61471161470c82612f18565b6146ee565b82525050565b60008160f01b9050919050565b600061472f82614717565b9050919050565b61474761474282612f7e565b614724565b82525050565b60008160e01b9050919050565b60006147658261474d565b9050919050565b61477d61477882613dc6565b61475a565b82525050565b600061478f828a61464c565b60088201915061479f8289614694565b6014820191506147af82886146ca565b6008820191506147bf8287614700565b6001820191506147cf8286614736565b6002820191506147df828561476c565b6004820191506147ef82846146ca565b60088201915081905098975050505050505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614860602183612e71565b915061486b82614804565b604082019050919050565b6000602082019050818103600083015261488f81614853565b9050919050565b60006040820190506148ab6000830185612d54565b6148b86020830184612d54565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148f5602083612e71565b9150614900826148bf565b602082019050919050565b60006020820190508181036000830152614924816148e8565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614987602883612e71565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614a19602583612e71565b9150614a24826149bd565b604082019050919050565b60006020820190508181036000830152614a4881614a0c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614aab602a83612e71565b9150614ab682614a4f565b604082019050919050565b60006020820190508181036000830152614ada81614a9e565b9050919050565b60006040820190508181036000830152614afb8185613616565b90508181036020830152614b0f8184613616565b90509392505050565b600081519050919050565b600082825260208201905092915050565b6000614b3f82614b18565b614b498185614b23565b9350614b59818560208601612e82565b614b6281612eac565b840191505092915050565b600060a082019050614b826000830188613701565b614b8f6020830187613701565b614b9c6040830186612d54565b614ba96060830185612d54565b8181036080830152614bbb8184614b34565b90509695505050505050565b600081519050614bd681612daa565b92915050565b600060208284031215614bf257614bf1612c76565b5b6000614c0084828501614bc7565b91505092915050565b60008160e01c9050919050565b600060033d1115614c355760046000803e614c32600051614c09565b90505b90565b600060443d10614cc557614c4a612c6c565b60043d036004823e80513d602482011167ffffffffffffffff82111715614c72575050614cc5565b808201805167ffffffffffffffff811115614c905750505050614cc5565b80602083010160043d038501811115614cad575050505050614cc5565b614cbc826020018501866130a5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614d24603483612e71565b9150614d2f82614cc8565b604082019050919050565b60006020820190508181036000830152614d5381614d17565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614db6602883612e71565b9150614dc182614d5a565b604082019050919050565b60006020820190508181036000830152614de581614da9565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614e48602983612e71565b9150614e5382614dec565b604082019050919050565b60006020820190508181036000830152614e7781614e3b565b9050919050565b600060a082019050614e936000830188613701565b614ea06020830187613701565b8181036040830152614eb28186613616565b90508181036060830152614ec68185613616565b90508181036080830152614eda8184614b34565b90509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614f4b601883612e71565b9150614f5682614f15565b602082019050919050565b60006020820190508181036000830152614f7a81614f3e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614fb7601f83612e71565b9150614fc282614f81565b602082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615049602283612e71565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006150db602883612e71565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b6000819050919050565b61512481615111565b82525050565b61513381612f18565b82525050565b600060808201905061514e600083018761511b565b61515b602083018661512a565b615168604083018561511b565b615175606083018461511b565b9594505050505056fea2646970667358221220b7a681d8f113c3f34c4dc21bc052be1ec44252a8041222ac9b4a755d89beda9d64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101345760003560e01c8063715018a6116100ab578063bd85b0391161006f578063bd85b0391461043d578063e5b8fb921461047a578063e985e9c5146104a3578063f006ad97146104e0578063f242432a1461051d578063f2fde38b1461054657610134565b8063715018a61461037d5780638da5cb5b14610394578063900af192146103bf578063a0bcfc7f146103eb578063a22cb4651461041457610134565b80632eb2c2d6116100fd5780632eb2c2d61461026a5780634163933a1461029357806341f43434146102af5780634e1273f4146102da5780634f558e791461031757806351cff8d91461035457610134565b8062fdd58e1461013957806301ffc9a7146101765780630e89341c146101b357806314119bb7146101f0578063235f0e931461022d575b600080fd5b34801561014557600080fd5b50610160600480360381019061015b9190612d14565b61056f565b60405161016d9190612d63565b60405180910390f35b34801561018257600080fd5b5061019d60048036038101906101989190612dd6565b610637565b6040516101aa9190612e1e565b60405180910390f35b3480156101bf57600080fd5b506101da60048036038101906101d59190612e39565b610719565b6040516101e79190612ef6565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190612f51565b61074d565b6040516102249190612fec565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190613007565b6107ca565b6040516102619190613056565b60405180910390f35b34801561027657600080fd5b50610291600480360381019061028c919061326e565b610839565b005b6102ad60048036038101906102a8919061338d565b61088c565b005b3480156102bb57600080fd5b506102c4610d9d565b6040516102d1919061346f565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061354d565b610daf565b60405161030e9190613674565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190612e39565b610ec8565b60405161034b9190612e1e565b60405180910390f35b34801561036057600080fd5b5061037b600480360381019061037691906136d4565b610edc565b005b34801561038957600080fd5b50610392610fd4565b005b3480156103a057600080fd5b506103a9610fe8565b6040516103b69190613710565b60405180910390f35b3480156103cb57600080fd5b506103d4611012565b6040516103e2929190613766565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d91906137ea565b61105f565b005b34801561042057600080fd5b5061043b60048036038101906104369190613863565b61107d565b005b34801561044957600080fd5b50610464600480360381019061045f9190612e39565b611096565b6040516104719190612d63565b60405180910390f35b34801561048657600080fd5b506104a1600480360381019061049c919061394f565b6110b3565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906139d0565b611193565b6040516104d79190612e1e565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190612f51565b611227565b6040516105149190612e1e565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f9190613a10565b611261565b005b34801561055257600080fd5b5061056d60048036038101906105689190613aa7565b6112b4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690613b46565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070257507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610712575061071182611337565b5b9050919050565b60606008610726836113a1565b604051602001610737929190613c9a565b6040516020818303038152906040529050919050565b610755612c43565b600660008360ff1660ff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050919050565b6000600760008460ff1660ff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610877576108763361146f565b5b610884868686868661156c565b505050505050565b6000600660008460ff1660ff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900461ffff1661ffff1661ffff168152602001600182015481525050905061090783611227565b61093d576040517fee19d49100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161ffff1681604001516109519190613ced565b3414610989576040517f26c3439000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000015161ffff168261ffff166109a38560ff16611096565b6109ad9190613d2f565b11156109e5576040517fd8ea507600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015161ffff1682600760008660ff1660ff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff16610a5e9190613d63565b61ffff161115610a9a576040517f5b3e6f0000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846080016020810190610aad9190613d99565b61ffff168261ffff161115610aee576040517f8d515e9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42856040016020810190610b029190613e02565b63ffffffff161015610b40576040517f1eee9c0700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b4b85848661160d565b610b81576040517fff39ee9500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610be18560000135868060200190610b999190613e3e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116b2565b610c17576040517f1490dab400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60056000866060016020810190610c2e9190613ee1565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610c95576040517fa2a6490500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760008560ff1660ff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900461ffff16610d089190613d63565b92506101000a81548161ffff021916908361ffff160217905550600160056000876060016020810190610d3b9190613ee1565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d96848460ff168461ffff1660405180602001604052806000815250611714565b5050505050565b6daaeb6d7670e522a718067333cd4e81565b60608151835114610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90613f80565b60405180910390fd5b6000835167ffffffffffffffff811115610e1257610e11613076565b5b604051908082528060200260200182016040528015610e405781602001602082028036833780820191505090505b50905060005b8451811015610ebd57610e8d858281518110610e6557610e64613fa0565b5b6020026020010151858381518110610e8057610e7f613fa0565b5b602002602001015161056f565b828281518110610ea057610e9f613fa0565b5b60200260200101818152505080610eb690613fcf565b9050610e46565b508091505092915050565b600080610ed483611096565b119050919050565b610ee46118c4565b600047905060008103610f23576040517f895dcf4500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f89576040517fcaa9014f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fcf573d6000803e3d6000fd5b505050565b610fdc6118c4565b610fe66000611942565b565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f39431b51cb437b2200000000000000000000000000000000000000000000000091507f000000000000000000000000b3b322858b8d0b055d492e167a2440192a7fa64290509091565b6110676118c4565b8181600891826110789291906141af565b505050565b816110878161146f565b6110918383611a08565b505050565b600060036000838152602001908152602001600020549050919050565b6110bb6118c4565b8181905084849050146110fa576040517fcaa9014f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b848490508160ff16101561118c5782828260ff1681811061112157611120613fa0565b5b9050606002016006600087878560ff1681811061114157611140613fa0565b5b90506020020160208101906111569190612f51565b60ff1660ff1681526020019081526020016000208181611176919061444d565b90505080806111849061445b565b9150506110fd565b5050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080600660008460ff1660ff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff16119050919050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461129f5761129e3361146f565b5b6112ac8686868686611a1e565b505050505050565b6112bc6118c4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361132b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611322906144f6565b60405180910390fd5b61133481611942565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060016113b084611abf565b01905060008167ffffffffffffffff8111156113cf576113ce613076565b5b6040519080825280601f01601f1916602001820160405280156114015781602001600182028036833780820191505090505b509050600082602001820190505b600115611464578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161145857611457614516565b5b0494506000850361140f575b819350505050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611569576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016114e6929190614545565b602060405180830381865afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190614583565b61156857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161155f9190613710565b60405180910390fd5b5b50565b611574611c12565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115ba57506115b9856115b4611c12565b611193565b5b6115f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f090614622565b60405180910390fd5b6116068585858585611c1a565b5050505050565b6000807f39431b51cb437b220000000000000000000000000000000000000000000000008346868860800160208101906116479190613d99565b89604001602081019061165a9190613e02565b8a606001602081019061166d9190613ee1565b6040516020016116839796959493929190614783565b604051602081830303815290604052905060008180519060200120905085600001358114925050509392505050565b60006116be8383611f3b565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000b3b322858b8d0b055d492e167a2440192a7fa64273ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177a90614876565b60405180910390fd5b600061178d611c12565b9050600061179a85611f62565b905060006117a785611f62565b90506117b883600089858589611fdc565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118179190613d2f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611895929190614896565b60405180910390a46118ac83600089858589611ff2565b6118bb83600089898989611ffa565b50505050505050565b6118cc611c12565b73ffffffffffffffffffffffffffffffffffffffff166118ea610fe8565b73ffffffffffffffffffffffffffffffffffffffff1614611940576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119379061490b565b60405180910390fd5b565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611a1a611a13611c12565b83836121d1565b5050565b611a26611c12565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a6c5750611a6b85611a66611c12565b611193565b5b611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290614622565b60405180910390fd5b611ab8858585858561233d565b5050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611b1d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611b1357611b12614516565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611b5a576d04ee2d6d415b85acef81000000008381611b5057611b4f614516565b5b0492506020810190505b662386f26fc100008310611b8957662386f26fc100008381611b7f57611b7e614516565b5b0492506010810190505b6305f5e1008310611bb2576305f5e1008381611ba857611ba7614516565b5b0492506008810190505b6127108310611bd7576127108381611bcd57611bcc614516565b5b0492506004810190505b60648310611bfa5760648381611bf057611bef614516565b5b0492506002810190505b600a8310611c09576001810190505b80915050919050565b600033905090565b8151835114611c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c559061499d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc490614a2f565b60405180910390fd5b6000611cd7611c12565b9050611ce7818787878787611fdc565b60005b8451811015611e98576000858281518110611d0857611d07613fa0565b5b602002602001015190506000858381518110611d2757611d26613fa0565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf90614ac1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e7d9190613d2f565b9250508190555050505080611e9190613fcf565b9050611cea565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f0f929190614ae1565b60405180910390a4611f25818787878787611ff2565b611f338187878787876125d8565b505050505050565b6000806000611f4a85856127af565b91509150611f5781612800565b819250505092915050565b60606000600167ffffffffffffffff811115611f8157611f80613076565b5b604051908082528060200260200182016040528015611faf5781602001602082028036833780820191505090505b5090508281600081518110611fc757611fc6613fa0565b5b60200260200101818152505080915050919050565b611fea868686868686612966565b505050505050565b505050505050565b6120198473ffffffffffffffffffffffffffffffffffffffff16612b36565b156121c9578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161205f959493929190614b6d565b6020604051808303816000875af192505050801561209b57506040513d601f19601f820116820180604052508101906120989190614bdc565b60015b612140576120a7614c16565b806308c379a00361210357506120bb614c38565b806120c65750612105565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa9190612ef6565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213790614d3a565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146121c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121be90614dcc565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361223f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223690614e5e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123309190612e1e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a390614a2f565b60405180910390fd5b60006123b6611c12565b905060006123c385611f62565b905060006123d085611f62565b90506123e0838989858589611fdc565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e90614ac1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461252c9190613d2f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516125a9929190614896565b60405180910390a46125bf848a8a86868a611ff2565b6125cd848a8a8a8a8a611ffa565b505050505050505050565b6125f78473ffffffffffffffffffffffffffffffffffffffff16612b36565b156127a7578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161263d959493929190614e7e565b6020604051808303816000875af192505050801561267957506040513d601f19601f820116820180604052508101906126769190614bdc565b60015b61271e57612685614c16565b806308c379a0036126e15750612699614c38565b806126a457506126e3565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d89190612ef6565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271590614d3a565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279c90614dcc565b60405180910390fd5b505b505050505050565b60008060418351036127f05760008060006020860151925060408601519150606086015160001a90506127e487828585612b59565b945094505050506127f9565b60006002915091505b9250929050565b6000600481111561281457612813614ee6565b5b81600481111561282757612826614ee6565b5b0315612963576001600481111561284157612840614ee6565b5b81600481111561285457612853614ee6565b5b03612894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288b90614f61565b60405180910390fd5b600260048111156128a8576128a7614ee6565b5b8160048111156128bb576128ba614ee6565b5b036128fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f290614fcd565b60405180910390fd5b6003600481111561290f5761290e614ee6565b5b81600481111561292257612921614ee6565b5b03612962576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129599061505f565b60405180910390fd5b5b50565b612974868686868686612c3b565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612a255760005b8351811015612a23578281815181106129c7576129c6613fa0565b5b6020026020010151600360008684815181106129e6576129e5613fa0565b5b602002602001015181526020019081526020016000206000828254612a0b9190613d2f565b9250508190555080612a1c90613fcf565b90506129ab565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612b2e5760005b8351811015612b2c576000848281518110612a7a57612a79613fa0565b5b602002602001015190506000848381518110612a9957612a98613fa0565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af5906150f1565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612b2590613fcf565b9050612a5c565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612b94576000600391509150612c32565b600060018787878760405160008152602001604052604051612bb99493929190615139565b6020604051602081039080840390855afa158015612bdb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c2957600060019250925050612c32565b80600092509250505b94509492505050565b505050505050565b6040518060600160405280600061ffff168152602001600061ffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cab82612c80565b9050919050565b612cbb81612ca0565b8114612cc657600080fd5b50565b600081359050612cd881612cb2565b92915050565b6000819050919050565b612cf181612cde565b8114612cfc57600080fd5b50565b600081359050612d0e81612ce8565b92915050565b60008060408385031215612d2b57612d2a612c76565b5b6000612d3985828601612cc9565b9250506020612d4a85828601612cff565b9150509250929050565b612d5d81612cde565b82525050565b6000602082019050612d786000830184612d54565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612db381612d7e565b8114612dbe57600080fd5b50565b600081359050612dd081612daa565b92915050565b600060208284031215612dec57612deb612c76565b5b6000612dfa84828501612dc1565b91505092915050565b60008115159050919050565b612e1881612e03565b82525050565b6000602082019050612e336000830184612e0f565b92915050565b600060208284031215612e4f57612e4e612c76565b5b6000612e5d84828501612cff565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ea0578082015181840152602081019050612e85565b60008484015250505050565b6000601f19601f8301169050919050565b6000612ec882612e66565b612ed28185612e71565b9350612ee2818560208601612e82565b612eeb81612eac565b840191505092915050565b60006020820190508181036000830152612f108184612ebd565b905092915050565b600060ff82169050919050565b612f2e81612f18565b8114612f3957600080fd5b50565b600081359050612f4b81612f25565b92915050565b600060208284031215612f6757612f66612c76565b5b6000612f7584828501612f3c565b91505092915050565b600061ffff82169050919050565b612f9581612f7e565b82525050565b612fa481612cde565b82525050565b606082016000820151612fc06000850182612f8c565b506020820151612fd36020850182612f8c565b506040820151612fe66040850182612f9b565b50505050565b60006060820190506130016000830184612faa565b92915050565b6000806040838503121561301e5761301d612c76565b5b600061302c85828601612f3c565b925050602061303d85828601612cc9565b9150509250929050565b61305081612f7e565b82525050565b600060208201905061306b6000830184613047565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6130ae82612eac565b810181811067ffffffffffffffff821117156130cd576130cc613076565b5b80604052505050565b60006130e0612c6c565b90506130ec82826130a5565b919050565b600067ffffffffffffffff82111561310c5761310b613076565b5b602082029050602081019050919050565b600080fd5b6000613135613130846130f1565b6130d6565b905080838252602082019050602084028301858111156131585761315761311d565b5b835b81811015613181578061316d8882612cff565b84526020840193505060208101905061315a565b5050509392505050565b600082601f8301126131a05761319f613071565b5b81356131b0848260208601613122565b91505092915050565b600080fd5b600067ffffffffffffffff8211156131d9576131d8613076565b5b6131e282612eac565b9050602081019050919050565b82818337600083830152505050565b600061321161320c846131be565b6130d6565b90508281526020810184848401111561322d5761322c6131b9565b5b6132388482856131ef565b509392505050565b600082601f83011261325557613254613071565b5b81356132658482602086016131fe565b91505092915050565b600080600080600060a0868803121561328a57613289612c76565b5b600061329888828901612cc9565b95505060206132a988828901612cc9565b945050604086013567ffffffffffffffff8111156132ca576132c9612c7b565b5b6132d68882890161318b565b935050606086013567ffffffffffffffff8111156132f7576132f6612c7b565b5b6133038882890161318b565b925050608086013567ffffffffffffffff81111561332457613323612c7b565b5b61333088828901613240565b9150509295509295909350565b600080fd5b600060a082840312156133585761335761333d565b5b81905092915050565b61336a81612f7e565b811461337557600080fd5b50565b60008135905061338781613361565b92915050565b600080600080608085870312156133a7576133a6612c76565b5b600085013567ffffffffffffffff8111156133c5576133c4612c7b565b5b6133d187828801613342565b94505060206133e287828801612cc9565b93505060406133f387828801612f3c565b925050606061340487828801613378565b91505092959194509250565b6000819050919050565b600061343561343061342b84612c80565b613410565b612c80565b9050919050565b60006134478261341a565b9050919050565b60006134598261343c565b9050919050565b6134698161344e565b82525050565b60006020820190506134846000830184613460565b92915050565b600067ffffffffffffffff8211156134a5576134a4613076565b5b602082029050602081019050919050565b60006134c96134c48461348a565b6130d6565b905080838252602082019050602084028301858111156134ec576134eb61311d565b5b835b8181101561351557806135018882612cc9565b8452602084019350506020810190506134ee565b5050509392505050565b600082601f83011261353457613533613071565b5b81356135448482602086016134b6565b91505092915050565b6000806040838503121561356457613563612c76565b5b600083013567ffffffffffffffff81111561358257613581612c7b565b5b61358e8582860161351f565b925050602083013567ffffffffffffffff8111156135af576135ae612c7b565b5b6135bb8582860161318b565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006135fd8383612f9b565b60208301905092915050565b6000602082019050919050565b6000613621826135c5565b61362b81856135d0565b9350613636836135e1565b8060005b8381101561366757815161364e88826135f1565b975061365983613609565b92505060018101905061363a565b5085935050505092915050565b6000602082019050818103600083015261368e8184613616565b905092915050565b60006136a182612c80565b9050919050565b6136b181613696565b81146136bc57600080fd5b50565b6000813590506136ce816136a8565b92915050565b6000602082840312156136ea576136e9612c76565b5b60006136f8848285016136bf565b91505092915050565b61370a81612ca0565b82525050565b60006020820190506137256000830184613701565b92915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b6137608161372b565b82525050565b600060408201905061377b6000830185613757565b6137886020830184613701565b9392505050565b600080fd5b60008083601f8401126137aa576137a9613071565b5b8235905067ffffffffffffffff8111156137c7576137c661378f565b5b6020830191508360018202830111156137e3576137e261311d565b5b9250929050565b6000806020838503121561380157613800612c76565b5b600083013567ffffffffffffffff81111561381f5761381e612c7b565b5b61382b85828601613794565b92509250509250929050565b61384081612e03565b811461384b57600080fd5b50565b60008135905061385d81613837565b92915050565b6000806040838503121561387a57613879612c76565b5b600061388885828601612cc9565b92505060206138998582860161384e565b9150509250929050565b60008083601f8401126138b9576138b8613071565b5b8235905067ffffffffffffffff8111156138d6576138d561378f565b5b6020830191508360208202830111156138f2576138f161311d565b5b9250929050565b60008083601f84011261390f5761390e613071565b5b8235905067ffffffffffffffff81111561392c5761392b61378f565b5b6020830191508360608202830111156139485761394761311d565b5b9250929050565b6000806000806040858703121561396957613968612c76565b5b600085013567ffffffffffffffff81111561398757613986612c7b565b5b613993878288016138a3565b9450945050602085013567ffffffffffffffff8111156139b6576139b5612c7b565b5b6139c2878288016138f9565b925092505092959194509250565b600080604083850312156139e7576139e6612c76565b5b60006139f585828601612cc9565b9250506020613a0685828601612cc9565b9150509250929050565b600080600080600060a08688031215613a2c57613a2b612c76565b5b6000613a3a88828901612cc9565b9550506020613a4b88828901612cc9565b9450506040613a5c88828901612cff565b9350506060613a6d88828901612cff565b925050608086013567ffffffffffffffff811115613a8e57613a8d612c7b565b5b613a9a88828901613240565b9150509295509295909350565b600060208284031215613abd57613abc612c76565b5b6000613acb84828501612cc9565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613b30602a83612e71565b9150613b3b82613ad4565b604082019050919050565b60006020820190508181036000830152613b5f81613b23565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613bad57607f821691505b602082108103613bc057613bbf613b66565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613bf381613b95565b613bfd8186613bc6565b94506001821660008114613c185760018114613c2d57613c60565b60ff1983168652811515820286019350613c60565b613c3685613bd1565b60005b83811015613c5857815481890152600182019150602081019050613c39565b838801955050505b50505092915050565b6000613c7482612e66565b613c7e8185613bc6565b9350613c8e818560208601612e82565b80840191505092915050565b6000613ca68285613be6565b9150613cb28284613c69565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cf882612cde565b9150613d0383612cde565b9250828202613d1181612cde565b91508282048414831517613d2857613d27613cbe565b5b5092915050565b6000613d3a82612cde565b9150613d4583612cde565b9250828201905080821115613d5d57613d5c613cbe565b5b92915050565b6000613d6e82612f7e565b9150613d7983612f7e565b9250828201905061ffff811115613d9357613d92613cbe565b5b92915050565b600060208284031215613daf57613dae612c76565b5b6000613dbd84828501613378565b91505092915050565b600063ffffffff82169050919050565b613ddf81613dc6565b8114613dea57600080fd5b50565b600081359050613dfc81613dd6565b92915050565b600060208284031215613e1857613e17612c76565b5b6000613e2684828501613ded565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613e5b57613e5a613e2f565b5b80840192508235915067ffffffffffffffff821115613e7d57613e7c613e34565b5b602083019250600182023603831315613e9957613e98613e39565b5b509250929050565b600067ffffffffffffffff82169050919050565b613ebe81613ea1565b8114613ec957600080fd5b50565b600081359050613edb81613eb5565b92915050565b600060208284031215613ef757613ef6612c76565b5b6000613f0584828501613ecc565b91505092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613f6a602983612e71565b9150613f7582613f0e565b604082019050919050565b60006020820190508181036000830152613f9981613f5d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613fda82612cde565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361400c5761400b613cbe565b5b600182019050919050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261406f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614032565b6140798683614032565b95508019841693508086168417925050509392505050565b60006140ac6140a76140a284612cde565b613410565b612cde565b9050919050565b6000819050919050565b6140c683614091565b6140da6140d2826140b3565b84845461403f565b825550505050565b600090565b6140ef6140e2565b6140fa8184846140bd565b505050565b5b8181101561411e576141136000826140e7565b600181019050614100565b5050565b601f8211156141635761413481613bd1565b61413d84614022565b8101602085101561414c578190505b61416061415885614022565b8301826140ff565b50505b505050565b600082821c905092915050565b600061418660001984600802614168565b1980831691505092915050565b600061419f8383614175565b9150826002028217905092915050565b6141b98383614017565b67ffffffffffffffff8111156141d2576141d1613076565b5b6141dc8254613b95565b6141e7828285614122565b6000601f8311600181146142165760008415614204578287013590505b61420e8582614193565b865550614276565b601f19841661422486613bd1565b60005b8281101561424c57848901358255600182019150602085019450602081019050614227565b868310156142695784890135614265601f891682614175565b8355505b6001600288020188555050505b50505050505050565b6000813561428c81613361565b80915050919050565b60008160001b9050919050565b600061ffff6142b084614295565b9350801983169250808416831791505092915050565b60006142e16142dc6142d784612f7e565b613410565b612f7e565b9050919050565b6000819050919050565b6142fb826142c6565b61430e614307826142e8565b83546142a2565b8255505050565b60008160101b9050919050565b600063ffff000061433284614315565b9350801983169250808416831791505092915050565b614351826142c6565b61436461435d826142e8565b8354614322565b8255505050565b6000813561437881612ce8565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6143ad84614295565b9350801983169250808416831791505092915050565b6143cc82614091565b6143df6143d8826140b3565b8354614381565b8255505050565b6000810160008301806143f88161427f565b905061440481846142f2565b5050506000810160208301806144198161427f565b90506144258184614348565b50505060018101604083018061443a8161436b565b905061444681846143c3565b5050505050565b61445782826143e6565b5050565b600061446682612f18565b915060ff820361447957614478613cbe565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006144e0602683612e71565b91506144eb82614484565b604082019050919050565b6000602082019050818103600083015261450f816144d3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060408201905061455a6000830185613701565b6145676020830184613701565b9392505050565b60008151905061457d81613837565b92915050565b60006020828403121561459957614598612c76565b5b60006145a78482850161456e565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061460c602e83612e71565b9150614617826145b0565b604082019050919050565b6000602082019050818103600083015261463b816145ff565b9050919050565b6000819050919050565b61465d6146588261372b565b614642565b82525050565b60008160601b9050919050565b600061467b82614663565b9050919050565b600061468d82614670565b9050919050565b6146a56146a082612ca0565b614682565b82525050565b60008160c01b9050919050565b60006146c3826146ab565b9050919050565b6146db6146d682613ea1565b6146b8565b82525050565b60008160f81b9050919050565b60006146f9826146e1565b9050919050565b61471161470c82612f18565b6146ee565b82525050565b60008160f01b9050919050565b600061472f82614717565b9050919050565b61474761474282612f7e565b614724565b82525050565b60008160e01b9050919050565b60006147658261474d565b9050919050565b61477d61477882613dc6565b61475a565b82525050565b600061478f828a61464c565b60088201915061479f8289614694565b6014820191506147af82886146ca565b6008820191506147bf8287614700565b6001820191506147cf8286614736565b6002820191506147df828561476c565b6004820191506147ef82846146ca565b60088201915081905098975050505050505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614860602183612e71565b915061486b82614804565b604082019050919050565b6000602082019050818103600083015261488f81614853565b9050919050565b60006040820190506148ab6000830185612d54565b6148b86020830184612d54565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148f5602083612e71565b9150614900826148bf565b602082019050919050565b60006020820190508181036000830152614924816148e8565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614987602883612e71565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614a19602583612e71565b9150614a24826149bd565b604082019050919050565b60006020820190508181036000830152614a4881614a0c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614aab602a83612e71565b9150614ab682614a4f565b604082019050919050565b60006020820190508181036000830152614ada81614a9e565b9050919050565b60006040820190508181036000830152614afb8185613616565b90508181036020830152614b0f8184613616565b90509392505050565b600081519050919050565b600082825260208201905092915050565b6000614b3f82614b18565b614b498185614b23565b9350614b59818560208601612e82565b614b6281612eac565b840191505092915050565b600060a082019050614b826000830188613701565b614b8f6020830187613701565b614b9c6040830186612d54565b614ba96060830185612d54565b8181036080830152614bbb8184614b34565b90509695505050505050565b600081519050614bd681612daa565b92915050565b600060208284031215614bf257614bf1612c76565b5b6000614c0084828501614bc7565b91505092915050565b60008160e01c9050919050565b600060033d1115614c355760046000803e614c32600051614c09565b90505b90565b600060443d10614cc557614c4a612c6c565b60043d036004823e80513d602482011167ffffffffffffffff82111715614c72575050614cc5565b808201805167ffffffffffffffff811115614c905750505050614cc5565b80602083010160043d038501811115614cad575050505050614cc5565b614cbc826020018501866130a5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614d24603483612e71565b9150614d2f82614cc8565b604082019050919050565b60006020820190508181036000830152614d5381614d17565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614db6602883612e71565b9150614dc182614d5a565b604082019050919050565b60006020820190508181036000830152614de581614da9565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614e48602983612e71565b9150614e5382614dec565b604082019050919050565b60006020820190508181036000830152614e7781614e3b565b9050919050565b600060a082019050614e936000830188613701565b614ea06020830187613701565b8181036040830152614eb28186613616565b90508181036060830152614ec68185613616565b90508181036080830152614eda8184614b34565b90509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614f4b601883612e71565b9150614f5682614f15565b602082019050919050565b60006020820190508181036000830152614f7a81614f3e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614fb7601f83612e71565b9150614fc282614f81565b602082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615049602283612e71565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006150db602883612e71565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b6000819050919050565b61512481615111565b82525050565b61513381612f18565b82525050565b600060808201905061514e600083018761511b565b61515b602083018661512a565b615168604083018561511b565b615175606083018461511b565b9594505050505056fea2646970667358221220b7a681d8f113c3f34c4dc21bc052be1ec44252a8041222ac9b4a755d89beda9d64736f6c63430008110033
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.