ERC-721
Overview
Max Total Supply
36 WOTM-OG
Holders
18
Total Transfers
-
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:
Wotm
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "./Ownable.sol"; import "./ERC721Royalty.sol"; import "./ERC721.sol"; import "./ERC2981.sol"; import "./Address.sol"; contract Wotm is ERC721Royalty, Ownable { mapping(address => bool) public isMinter; uint256 public totalSupply = 0; uint256 public maxSupply = 137; uint256 public transferThreshold = 137; string public baseURI; address public burnProxy; event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); constructor(address _treasure) ERC721("WOTM.ai","WOTM-OG") { _setDefaultRoyalty(_treasure, 314); // 3.14% fees } function mints(address to,uint256[] memory tokenId) external { require(isMinter[msg.sender] || msg.sender == owner(), "Not a minter"); for(uint256 i = 0 ; i < tokenId.length; i++){ require(tokenId[i] > 0 && tokenId[i] <= maxSupply,"Bad token Ids"); _safeMint(to, tokenId[i]); totalSupply = totalSupply + 1; } } function burn(uint256 tokenId) public virtual { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _burn(tokenId); } function burnByProxy(uint256[] memory tokenIds ) external { require(burnProxy == msg.sender, "Not allowed"); for(uint i=0; i<tokenIds.length; i++){ _burn(tokenIds[i]); } } function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal virtual override( ERC721) { // forbid transfer if all token are not minted. if(to!=address(0) && from!=address(0)) { require(totalSupply >= transferThreshold, "Token is locked"); } super._beforeTokenTransfer(from, to, tokenId,batchSize); } //METADATA URI BUILDER function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); // Concatenate the baseURI and the tokenId as the tokenId should // just be appended at the end to access the token metadata return string(abi.encodePacked(baseURI, Strings.toString(tokenId), ".json")); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(_baseURI(), "contract.json")); } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; emit BatchMetadataUpdate(1, type(uint256).max); } function setMinter(address _minter, bool _isMinter) public onlyOwner { require(_minter != address(0), "Invalid address"); isMinter[_minter] = _isMinter; } function setBurnProxy(address _burnProxy) external onlyOwner { require(_burnProxy != address(0),"Bad proxy address"); burnProxy = _burnProxy; } function setRoyalties(address _treasure, uint96 _amount) external onlyOwner { _setDefaultRoyalty(_treasure, _amount); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Royalty) returns (bool) { return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); } function approve(address operator, uint256 tokenId) public override { require(totalSupply >= transferThreshold, "Token is locked"); super.approve(operator, tokenId); } function setApprovalForAll(address operator, bool approved) public override { require(totalSupply >= transferThreshold, "Token is locked"); super.setApprovalForAll(operator, approved); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 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 (last updated v4.9.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "./IERC2981.sol"; import "./ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @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, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "./ERC721.sol"; import "./ERC2981.sol"; import "./ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// 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.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "./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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./Math.sol"; import "./SignedMath.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_treasure","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnByProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"mints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","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":"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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_burnProxy","type":"address"}],"name":"setBurnProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_isMinter","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasure","type":"address"},{"internalType":"uint96","name":"_amount","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600a556089600b556089600c553480156200002057600080fd5b506040516200261038038062002610833981016040819052620000439162000230565b60405180604001604052806007815260200166574f544d2e616960c81b81525060405180604001604052806007815260200166574f544d2d4f4760c81b815250816002908162000094919062000307565b506003620000a3828262000307565b505050620000c0620000ba620000d560201b60201c565b620000d9565b620000ce8161013a6200012b565b50620003d3565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200019f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620001f75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000196565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000602082840312156200024357600080fd5b81516001600160a01b03811681146200025b57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200028d57607f821691505b602082108103620002ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030257600081815260208120601f850160051c81016020861015620002dd5750805b601f850160051c820191505b81811015620002fe57828155600101620002e9565b5050505b505050565b81516001600160401b0381111562000323576200032362000262565b6200033b8162000334845462000278565b84620002b4565b602080601f8311600181146200037357600084156200035a5750858301515b600019600386901b1c1916600185901b178555620002fe565b600085815260208120601f198616915b82811015620003a45788860151825594840194600190910190840162000383565b5085821015620003c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61222d80620003e36000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063c87b56dd116100a2578063e049d49d11610071578063e049d49d14610418578063e8a3d4851461042b578063e985e9c514610433578063f2fde38b1461044657600080fd5b8063c87b56dd146103d6578063cf456ae7146103e9578063d0b11937146103fc578063d5abeb011461040f57600080fd5b8063aa271e1a116100de578063aa271e1a1461037a578063b88d4fde1461039d578063ba3e5041146103b0578063c21b471b146103c357600080fd5b8063715018a6146103465780638da5cb5b1461034e57806395d89b411461035f578063a22cb4651461036757600080fd5b806342842e0e1161018757806355f804b31161015657806355f804b3146103055780636352211e146103185780636c0360eb1461032b57806370a082311461033357600080fd5b806342842e0e146102c357806342966c68146102d657806346737747146102e95780634f4479e1146102f257600080fd5b8063095ea7b3116101c3578063095ea7b31461025257806318160ddd1461026757806323b872dd1461027e5780632a55205a1461029157600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004611982565b610459565b60405190151581526020015b60405180910390f35b61021a610484565b60405161020991906119f6565b61023a610235366004611a09565b610516565b6040516001600160a01b039091168152602001610209565b610265610260366004611a3e565b61053d565b005b610270600a5481565b604051908152602001610209565b61026561028c366004611a68565b610578565b6102a461029f366004611aa4565b6105af565b604080516001600160a01b039093168352602083019190915201610209565b6102656102d1366004611a68565b61065b565b6102656102e4366004611a09565b610676565b610270600c5481565b610265610300366004611b8d565b6106a7565b610265610313366004611c33565b6107dc565b61023a610326366004611a09565b61082f565b61021a61088f565b610270610341366004611c7c565b61091d565b6102656109a3565b6008546001600160a01b031661023a565b61021a6109b7565b610265610375366004611c97565b6109c6565b6101fd610388366004611c7c565b60096020526000908152604090205460ff1681565b6102656103ab366004611cd3565b6109f4565b6102656103be366004611d4f565b610a2c565b6102656103d1366004611d84565b610ab4565b61021a6103e4366004611a09565b610ac6565b6102656103f7366004611c97565b610b5f565b61026561040a366004611c7c565b610bda565b610270600b5481565b600e5461023a906001600160a01b031681565b61021a610c4e565b6101fd610441366004611dbc565b610c89565b610265610454366004611c7c565b610cb7565b60006001600160e01b03198216632483248360e11b148061047e575061047e82610d2d565b92915050565b60606002805461049390611def565b80601f01602080910402602001604051908101604052809291908181526020018280546104bf90611def565b801561050c5780601f106104e15761010080835404028352916020019161050c565b820191906000526020600020905b8154815290600101906020018083116104ef57829003601f168201915b5050505050905090565b600061052182610d38565b506000908152600660205260409020546001600160a01b031690565b600c54600a54101561056a5760405162461bcd60e51b815260040161056190611e29565b60405180910390fd5b6105748282610d97565b5050565b610583335b82610ea7565b61059f5760405162461bcd60e51b815260040161056190611e52565b6105aa838383610f06565b505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106245750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610643906001600160601b031687611eb5565b61064d9190611ecc565b915196919550909350505050565b6105aa838383604051806020016040528060008152506109f4565b61067f3361057d565b61069b5760405162461bcd60e51b815260040161056190611e52565b6106a481611077565b50565b3360009081526009602052604090205460ff16806106cf57506008546001600160a01b031633145b61070a5760405162461bcd60e51b815260206004820152600c60248201526b2737ba10309036b4b73a32b960a11b6044820152606401610561565b60005b81518110156105aa57600082828151811061072a5761072a611eee565b602002602001015111801561075a5750600b5482828151811061074f5761074f611eee565b602002602001015111155b6107965760405162461bcd60e51b815260206004820152600d60248201526c42616420746f6b656e2049647360981b6044820152606401610561565b6107b9838383815181106107ac576107ac611eee565b6020026020010151611091565b600a546107c7906001611f04565b600a55806107d481611f17565b91505061070d565b6107e46110ab565b600d6107f08282611f7e565b50604080516001815260001960208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a150565b6000818152600460205260408120546001600160a01b03168061047e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610561565b600d805461089c90611def565b80601f01602080910402602001604051908101604052809291908181526020018280546108c890611def565b80156109155780601f106108ea57610100808354040283529160200191610915565b820191906000526020600020905b8154815290600101906020018083116108f857829003601f168201915b505050505081565b60006001600160a01b0382166109875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610561565b506001600160a01b031660009081526005602052604090205490565b6109ab6110ab565b6109b56000611105565b565b60606003805461049390611def565b600c54600a5410156109ea5760405162461bcd60e51b815260040161056190611e29565b6105748282611157565b6109fe3383610ea7565b610a1a5760405162461bcd60e51b815260040161056190611e52565b610a2684848484611162565b50505050565b600e546001600160a01b03163314610a745760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610561565b60005b815181101561057457610aa2828281518110610a9557610a95611eee565b6020026020010151611077565b80610aac81611f17565b915050610a77565b610abc6110ab565b6105748282611195565b6000818152600460205260409020546060906001600160a01b0316610b2d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610561565b600d610b3883611292565b604051602001610b4992919061203e565b6040516020818303038152906040529050919050565b610b676110ab565b6001600160a01b038216610baf5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610561565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b610be26110ab565b6001600160a01b038116610c2c5760405162461bcd60e51b81526020600482015260116024820152704261642070726f7879206164647265737360781b6044820152606401610561565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060610c6560408051602081019091526000815290565b604051602001610c7591906120d5565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cbf6110ab565b6001600160a01b038116610d245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610561565b6106a481611105565b600061047e82611325565b6000818152600460205260409020546001600160a01b03166106a45760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610561565b6000610da28261082f565b9050806001600160a01b0316836001600160a01b031603610e0f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610561565b336001600160a01b0382161480610e2b5750610e2b8133610c89565b610e9d5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610561565b6105aa8383611365565b600080610eb38361082f565b9050806001600160a01b0316846001600160a01b03161480610eda5750610eda8185610c89565b80610efe5750836001600160a01b0316610ef384610516565b6001600160a01b0316145b949350505050565b826001600160a01b0316610f198261082f565b6001600160a01b031614610f3f5760405162461bcd60e51b815260040161056190612106565b6001600160a01b038216610fa15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610561565b610fae83838360016113d3565b826001600160a01b0316610fc18261082f565b6001600160a01b031614610fe75760405162461bcd60e51b815260040161056190612106565b600081815260066020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260058552838620805460001901905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61108081611421565b600090815260016020526040812055565b6105748282604051806020016040528060008152506114c4565b6008546001600160a01b031633146109b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6105743383836114f7565b61116d848484610f06565b611179848484846115c5565b610a265760405162461bcd60e51b81526004016105619061214b565b6127106001600160601b03821611156112035760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610561565b6001600160a01b0382166112595760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610561565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6060600061129f836116c6565b600101905060008167ffffffffffffffff8111156112bf576112bf611ac6565b6040519080825280601f01601f1916602001820160405280156112e9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112f357509392505050565b60006001600160e01b031982166380ac58cd60e01b148061135657506001600160e01b03198216635b5e139f60e01b145b8061047e575061047e8261179e565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061139a8261082f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316158015906113f357506001600160a01b03841615155b1561141c57600c54600a54101561141c5760405162461bcd60e51b815260040161056190611e29565b610a26565b600061142c8261082f565b905061143c8160008460016113d3565b6114458261082f565b600083815260066020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526005845282852080546000190190558785526004909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6114ce83836117d3565b6114db60008484846115c5565b6105aa5760405162461bcd60e51b81526004016105619061214b565b816001600160a01b0316836001600160a01b0316036115585760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610561565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b156116bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061160990339089908890889060040161219d565b6020604051808303816000875af1925050508015611644575060408051601f3d908101601f19168201909252611641918101906121da565b60015b6116a1573d808015611672576040519150601f19603f3d011682016040523d82523d6000602084013e611677565b606091505b5080516000036116995760405162461bcd60e51b81526004016105619061214b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610efe565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117055772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611731576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061174f57662386f26fc10000830492506010015b6305f5e1008310611767576305f5e100830492506008015b612710831061177b57612710830492506004015b6064831061178d576064830492506002015b600a831061047e5760010192915050565b60006001600160e01b0319821663152a902d60e11b148061047e57506301ffc9a760e01b6001600160e01b031983161461047e565b6001600160a01b0382166118295760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610561565b6000818152600460205260409020546001600160a01b03161561188e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610561565b61189c6000838360016113d3565b6000818152600460205260409020546001600160a01b0316156119015760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610561565b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146106a457600080fd5b60006020828403121561199457600080fd5b813561199f8161196c565b9392505050565b60005b838110156119c15781810151838201526020016119a9565b50506000910152565b600081518084526119e28160208601602086016119a6565b601f01601f19169290920160200192915050565b60208152600061199f60208301846119ca565b600060208284031215611a1b57600080fd5b5035919050565b80356001600160a01b0381168114611a3957600080fd5b919050565b60008060408385031215611a5157600080fd5b611a5a83611a22565b946020939093013593505050565b600080600060608486031215611a7d57600080fd5b611a8684611a22565b9250611a9460208501611a22565b9150604084013590509250925092565b60008060408385031215611ab757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611b0557611b05611ac6565b604052919050565b600082601f830112611b1e57600080fd5b8135602067ffffffffffffffff821115611b3a57611b3a611ac6565b8160051b611b49828201611adc565b9283528481018201928281019087851115611b6357600080fd5b83870192505b84831015611b8257823582529183019190830190611b69565b979650505050505050565b60008060408385031215611ba057600080fd5b611ba983611a22565b9150602083013567ffffffffffffffff811115611bc557600080fd5b611bd185828601611b0d565b9150509250929050565b600067ffffffffffffffff831115611bf557611bf5611ac6565b611c08601f8401601f1916602001611adc565b9050828152838383011115611c1c57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611c4557600080fd5b813567ffffffffffffffff811115611c5c57600080fd5b8201601f81018413611c6d57600080fd5b610efe84823560208401611bdb565b600060208284031215611c8e57600080fd5b61199f82611a22565b60008060408385031215611caa57600080fd5b611cb383611a22565b915060208301358015158114611cc857600080fd5b809150509250929050565b60008060008060808587031215611ce957600080fd5b611cf285611a22565b9350611d0060208601611a22565b925060408501359150606085013567ffffffffffffffff811115611d2357600080fd5b8501601f81018713611d3457600080fd5b611d4387823560208401611bdb565b91505092959194509250565b600060208284031215611d6157600080fd5b813567ffffffffffffffff811115611d7857600080fd5b610efe84828501611b0d565b60008060408385031215611d9757600080fd5b611da083611a22565b915060208301356001600160601b0381168114611cc857600080fd5b60008060408385031215611dcf57600080fd5b611dd883611a22565b9150611de660208401611a22565b90509250929050565b600181811c90821680611e0357607f821691505b602082108103611e2357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761047e5761047e611e9f565b600082611ee957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8082018082111561047e5761047e611e9f565b600060018201611f2957611f29611e9f565b5060010190565b601f8211156105aa57600081815260208120601f850160051c81016020861015611f575750805b601f850160051c820191505b81811015611f7657828155600101611f63565b505050505050565b815167ffffffffffffffff811115611f9857611f98611ac6565b611fac81611fa68454611def565b84611f30565b602080601f831160018114611fe15760008415611fc95750858301515b600019600386901b1c1916600185901b178555611f76565b600085815260208120601f198616915b8281101561201057888601518255948401946001909101908401611ff1565b508582101561202e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461204c81611def565b600182811680156120645760018114612079576120a8565b60ff19841687528215158302870194506120a8565b8860005260208060002060005b8581101561209f5781548a820152908401908201612086565b50505082870194505b5050505083516120bc8183602088016119a6565b64173539b7b760d91b9101908152600501949350505050565b600082516120e78184602087016119a6565b6c31b7b73a3930b1ba173539b7b760991b920191825250600d01919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121d0908301846119ca565b9695505050505050565b6000602082840312156121ec57600080fd5b815161199f8161196c56fea264697066735822122095edf2d17a8ab21367e93de178a90bfcfeee743bf42d5bc287e0709601297f0864736f6c63430008130033000000000000000000000000ded13c512900393425f5f55a8670008628f3daf7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063c87b56dd116100a2578063e049d49d11610071578063e049d49d14610418578063e8a3d4851461042b578063e985e9c514610433578063f2fde38b1461044657600080fd5b8063c87b56dd146103d6578063cf456ae7146103e9578063d0b11937146103fc578063d5abeb011461040f57600080fd5b8063aa271e1a116100de578063aa271e1a1461037a578063b88d4fde1461039d578063ba3e5041146103b0578063c21b471b146103c357600080fd5b8063715018a6146103465780638da5cb5b1461034e57806395d89b411461035f578063a22cb4651461036757600080fd5b806342842e0e1161018757806355f804b31161015657806355f804b3146103055780636352211e146103185780636c0360eb1461032b57806370a082311461033357600080fd5b806342842e0e146102c357806342966c68146102d657806346737747146102e95780634f4479e1146102f257600080fd5b8063095ea7b3116101c3578063095ea7b31461025257806318160ddd1461026757806323b872dd1461027e5780632a55205a1461029157600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004611982565b610459565b60405190151581526020015b60405180910390f35b61021a610484565b60405161020991906119f6565b61023a610235366004611a09565b610516565b6040516001600160a01b039091168152602001610209565b610265610260366004611a3e565b61053d565b005b610270600a5481565b604051908152602001610209565b61026561028c366004611a68565b610578565b6102a461029f366004611aa4565b6105af565b604080516001600160a01b039093168352602083019190915201610209565b6102656102d1366004611a68565b61065b565b6102656102e4366004611a09565b610676565b610270600c5481565b610265610300366004611b8d565b6106a7565b610265610313366004611c33565b6107dc565b61023a610326366004611a09565b61082f565b61021a61088f565b610270610341366004611c7c565b61091d565b6102656109a3565b6008546001600160a01b031661023a565b61021a6109b7565b610265610375366004611c97565b6109c6565b6101fd610388366004611c7c565b60096020526000908152604090205460ff1681565b6102656103ab366004611cd3565b6109f4565b6102656103be366004611d4f565b610a2c565b6102656103d1366004611d84565b610ab4565b61021a6103e4366004611a09565b610ac6565b6102656103f7366004611c97565b610b5f565b61026561040a366004611c7c565b610bda565b610270600b5481565b600e5461023a906001600160a01b031681565b61021a610c4e565b6101fd610441366004611dbc565b610c89565b610265610454366004611c7c565b610cb7565b60006001600160e01b03198216632483248360e11b148061047e575061047e82610d2d565b92915050565b60606002805461049390611def565b80601f01602080910402602001604051908101604052809291908181526020018280546104bf90611def565b801561050c5780601f106104e15761010080835404028352916020019161050c565b820191906000526020600020905b8154815290600101906020018083116104ef57829003601f168201915b5050505050905090565b600061052182610d38565b506000908152600660205260409020546001600160a01b031690565b600c54600a54101561056a5760405162461bcd60e51b815260040161056190611e29565b60405180910390fd5b6105748282610d97565b5050565b610583335b82610ea7565b61059f5760405162461bcd60e51b815260040161056190611e52565b6105aa838383610f06565b505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106245750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610643906001600160601b031687611eb5565b61064d9190611ecc565b915196919550909350505050565b6105aa838383604051806020016040528060008152506109f4565b61067f3361057d565b61069b5760405162461bcd60e51b815260040161056190611e52565b6106a481611077565b50565b3360009081526009602052604090205460ff16806106cf57506008546001600160a01b031633145b61070a5760405162461bcd60e51b815260206004820152600c60248201526b2737ba10309036b4b73a32b960a11b6044820152606401610561565b60005b81518110156105aa57600082828151811061072a5761072a611eee565b602002602001015111801561075a5750600b5482828151811061074f5761074f611eee565b602002602001015111155b6107965760405162461bcd60e51b815260206004820152600d60248201526c42616420746f6b656e2049647360981b6044820152606401610561565b6107b9838383815181106107ac576107ac611eee565b6020026020010151611091565b600a546107c7906001611f04565b600a55806107d481611f17565b91505061070d565b6107e46110ab565b600d6107f08282611f7e565b50604080516001815260001960208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a150565b6000818152600460205260408120546001600160a01b03168061047e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610561565b600d805461089c90611def565b80601f01602080910402602001604051908101604052809291908181526020018280546108c890611def565b80156109155780601f106108ea57610100808354040283529160200191610915565b820191906000526020600020905b8154815290600101906020018083116108f857829003601f168201915b505050505081565b60006001600160a01b0382166109875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610561565b506001600160a01b031660009081526005602052604090205490565b6109ab6110ab565b6109b56000611105565b565b60606003805461049390611def565b600c54600a5410156109ea5760405162461bcd60e51b815260040161056190611e29565b6105748282611157565b6109fe3383610ea7565b610a1a5760405162461bcd60e51b815260040161056190611e52565b610a2684848484611162565b50505050565b600e546001600160a01b03163314610a745760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610561565b60005b815181101561057457610aa2828281518110610a9557610a95611eee565b6020026020010151611077565b80610aac81611f17565b915050610a77565b610abc6110ab565b6105748282611195565b6000818152600460205260409020546060906001600160a01b0316610b2d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610561565b600d610b3883611292565b604051602001610b4992919061203e565b6040516020818303038152906040529050919050565b610b676110ab565b6001600160a01b038216610baf5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610561565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b610be26110ab565b6001600160a01b038116610c2c5760405162461bcd60e51b81526020600482015260116024820152704261642070726f7879206164647265737360781b6044820152606401610561565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060610c6560408051602081019091526000815290565b604051602001610c7591906120d5565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cbf6110ab565b6001600160a01b038116610d245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610561565b6106a481611105565b600061047e82611325565b6000818152600460205260409020546001600160a01b03166106a45760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610561565b6000610da28261082f565b9050806001600160a01b0316836001600160a01b031603610e0f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610561565b336001600160a01b0382161480610e2b5750610e2b8133610c89565b610e9d5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610561565b6105aa8383611365565b600080610eb38361082f565b9050806001600160a01b0316846001600160a01b03161480610eda5750610eda8185610c89565b80610efe5750836001600160a01b0316610ef384610516565b6001600160a01b0316145b949350505050565b826001600160a01b0316610f198261082f565b6001600160a01b031614610f3f5760405162461bcd60e51b815260040161056190612106565b6001600160a01b038216610fa15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610561565b610fae83838360016113d3565b826001600160a01b0316610fc18261082f565b6001600160a01b031614610fe75760405162461bcd60e51b815260040161056190612106565b600081815260066020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260058552838620805460001901905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61108081611421565b600090815260016020526040812055565b6105748282604051806020016040528060008152506114c4565b6008546001600160a01b031633146109b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6105743383836114f7565b61116d848484610f06565b611179848484846115c5565b610a265760405162461bcd60e51b81526004016105619061214b565b6127106001600160601b03821611156112035760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610561565b6001600160a01b0382166112595760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610561565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6060600061129f836116c6565b600101905060008167ffffffffffffffff8111156112bf576112bf611ac6565b6040519080825280601f01601f1916602001820160405280156112e9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112f357509392505050565b60006001600160e01b031982166380ac58cd60e01b148061135657506001600160e01b03198216635b5e139f60e01b145b8061047e575061047e8261179e565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061139a8261082f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316158015906113f357506001600160a01b03841615155b1561141c57600c54600a54101561141c5760405162461bcd60e51b815260040161056190611e29565b610a26565b600061142c8261082f565b905061143c8160008460016113d3565b6114458261082f565b600083815260066020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526005845282852080546000190190558785526004909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6114ce83836117d3565b6114db60008484846115c5565b6105aa5760405162461bcd60e51b81526004016105619061214b565b816001600160a01b0316836001600160a01b0316036115585760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610561565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b156116bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061160990339089908890889060040161219d565b6020604051808303816000875af1925050508015611644575060408051601f3d908101601f19168201909252611641918101906121da565b60015b6116a1573d808015611672576040519150601f19603f3d011682016040523d82523d6000602084013e611677565b606091505b5080516000036116995760405162461bcd60e51b81526004016105619061214b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610efe565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117055772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611731576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061174f57662386f26fc10000830492506010015b6305f5e1008310611767576305f5e100830492506008015b612710831061177b57612710830492506004015b6064831061178d576064830492506002015b600a831061047e5760010192915050565b60006001600160e01b0319821663152a902d60e11b148061047e57506301ffc9a760e01b6001600160e01b031983161461047e565b6001600160a01b0382166118295760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610561565b6000818152600460205260409020546001600160a01b03161561188e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610561565b61189c6000838360016113d3565b6000818152600460205260409020546001600160a01b0316156119015760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610561565b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146106a457600080fd5b60006020828403121561199457600080fd5b813561199f8161196c565b9392505050565b60005b838110156119c15781810151838201526020016119a9565b50506000910152565b600081518084526119e28160208601602086016119a6565b601f01601f19169290920160200192915050565b60208152600061199f60208301846119ca565b600060208284031215611a1b57600080fd5b5035919050565b80356001600160a01b0381168114611a3957600080fd5b919050565b60008060408385031215611a5157600080fd5b611a5a83611a22565b946020939093013593505050565b600080600060608486031215611a7d57600080fd5b611a8684611a22565b9250611a9460208501611a22565b9150604084013590509250925092565b60008060408385031215611ab757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611b0557611b05611ac6565b604052919050565b600082601f830112611b1e57600080fd5b8135602067ffffffffffffffff821115611b3a57611b3a611ac6565b8160051b611b49828201611adc565b9283528481018201928281019087851115611b6357600080fd5b83870192505b84831015611b8257823582529183019190830190611b69565b979650505050505050565b60008060408385031215611ba057600080fd5b611ba983611a22565b9150602083013567ffffffffffffffff811115611bc557600080fd5b611bd185828601611b0d565b9150509250929050565b600067ffffffffffffffff831115611bf557611bf5611ac6565b611c08601f8401601f1916602001611adc565b9050828152838383011115611c1c57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611c4557600080fd5b813567ffffffffffffffff811115611c5c57600080fd5b8201601f81018413611c6d57600080fd5b610efe84823560208401611bdb565b600060208284031215611c8e57600080fd5b61199f82611a22565b60008060408385031215611caa57600080fd5b611cb383611a22565b915060208301358015158114611cc857600080fd5b809150509250929050565b60008060008060808587031215611ce957600080fd5b611cf285611a22565b9350611d0060208601611a22565b925060408501359150606085013567ffffffffffffffff811115611d2357600080fd5b8501601f81018713611d3457600080fd5b611d4387823560208401611bdb565b91505092959194509250565b600060208284031215611d6157600080fd5b813567ffffffffffffffff811115611d7857600080fd5b610efe84828501611b0d565b60008060408385031215611d9757600080fd5b611da083611a22565b915060208301356001600160601b0381168114611cc857600080fd5b60008060408385031215611dcf57600080fd5b611dd883611a22565b9150611de660208401611a22565b90509250929050565b600181811c90821680611e0357607f821691505b602082108103611e2357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761047e5761047e611e9f565b600082611ee957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8082018082111561047e5761047e611e9f565b600060018201611f2957611f29611e9f565b5060010190565b601f8211156105aa57600081815260208120601f850160051c81016020861015611f575750805b601f850160051c820191505b81811015611f7657828155600101611f63565b505050505050565b815167ffffffffffffffff811115611f9857611f98611ac6565b611fac81611fa68454611def565b84611f30565b602080601f831160018114611fe15760008415611fc95750858301515b600019600386901b1c1916600185901b178555611f76565b600085815260208120601f198616915b8281101561201057888601518255948401946001909101908401611ff1565b508582101561202e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461204c81611def565b600182811680156120645760018114612079576120a8565b60ff19841687528215158302870194506120a8565b8860005260208060002060005b8581101561209f5781548a820152908401908201612086565b50505082870194505b5050505083516120bc8183602088016119a6565b64173539b7b760d91b9101908152600501949350505050565b600082516120e78184602087016119a6565b6c31b7b73a3930b1ba173539b7b760991b920191825250600d01919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121d0908301846119ca565b9695505050505050565b6000602082840312156121ec57600080fd5b815161199f8161196c56fea264697066735822122095edf2d17a8ab21367e93de178a90bfcfeee743bf42d5bc287e0709601297f0864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ded13c512900393425f5f55a8670008628f3daf7
-----Decoded View---------------
Arg [0] : _treasure (address): 0xDed13C512900393425f5f55a8670008628f3DAF7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ded13c512900393425f5f55a8670008628f3daf7
Deployed Bytecode Sourcemap
185:3572:15:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3138:203;;;;;;:::i;:::-;;:::i;:::-;;;565:14:16;;558:22;540:41;;528:2;513:18;3138:203:15;;;;;;;;2406:98:4;;;:::i;:::-;;;;;;;:::i;3870:167::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:16;;;1679:51;;1667:2;1652:18;3870:167:4;1533:203:16;3347:188:15;;;;;;:::i;:::-;;:::i;:::-;;284:30;;;;;;;;;2324:25:16;;;2312:2;2297:18;284:30:15;2178:177:16;4547:296:4;;;;;;:::i;:::-;;:::i;1632:428:3:-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:16;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;1632:428:3;2946:274:16;4909:149:4;;;;;;:::i;:::-;;:::i;1070:186:15:-;;;;;;:::i;:::-;;:::i;358:38::-;;;;;;690:374;;;;;;:::i;:::-;;:::i;2488:144::-;;;;;;:::i;:::-;;:::i;2125:219:4:-;;;;;;:::i;:::-;;:::i;403:21:15:-;;;:::i;1864:204:4:-;;;;;;:::i;:::-;;:::i;1817:101:12:-;;;:::i;1194:85::-;1266:6;;-1:-1:-1;;;;;1266:6:12;1194:85;;2568:102:4;;;:::i;3542:207:15:-;;;;;;:::i;:::-;;:::i;237:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5124:276:4;;;;;;:::i;:::-;;:::i;1262:211:15:-;;;;;;:::i;:::-;;:::i;2996:132::-;;;;;;:::i;:::-;;:::i;1939:396::-;;;;;;:::i;:::-;;:::i;2639:174::-;;;;;;:::i;:::-;;:::i;2819:171::-;;;;;;:::i;:::-;;:::i;321:30::-;;;;;;439:24;;;;;-1:-1:-1;;;;;439:24:15;;;2348:134;;;:::i;4323:162:4:-;;;;;;:::i;:::-;;:::i;2067:198:12:-;;;;;;:::i;:::-;;:::i;3138:203:15:-;3238:4;-1:-1:-1;;;;;;3261:33:15;;-1:-1:-1;;;3261:33:15;;:73;;;3298:36;3322:11;3298:23;:36::i;:::-;3254:80;3138:203;-1:-1:-1;;3138:203:15:o;2406:98:4:-;2460:13;2492:5;2485:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2406:98;:::o;3870:167::-;3946:7;3965:23;3980:7;3965:14;:23::i;:::-;-1:-1:-1;4006:24:4;;;;:15;:24;;;;;;-1:-1:-1;;;;;4006:24:4;;3870:167::o;3347:188:15:-;3449:17;;3434:11;;:32;;3426:60;;;;-1:-1:-1;;;3426:60:15;;;;;;;:::i;:::-;;;;;;;;;3496:32;3510:8;3520:7;3496:13;:32::i;:::-;3347:188;;:::o;4547:296:4:-;4706:41;719:10:1;4725:12:4;4739:7;4706:18;:41::i;:::-;4698:99;;;;-1:-1:-1;;;4698:99:4;;;;;;;:::i;:::-;4808:28;4818:4;4824:2;4828:7;4808:9;:28::i;:::-;4547:296;;;:::o;1632:428:3:-;1727:7;1784:26;;;:17;:26;;;;;;;;1755:55;;;;;;;;;-1:-1:-1;;;;;1755:55:3;;;;;-1:-1:-1;;;1755:55:3;;;-1:-1:-1;;;;;1755:55:3;;;;;;;;1727:7;;1821:90;;-1:-1:-1;1871:29:3;;;;;;;;;-1:-1:-1;1871:29:3;-1:-1:-1;;;;;1871:29:3;;;;-1:-1:-1;;;1871:29:3;;-1:-1:-1;;;;;1871:29:3;;;;;1821:90;1958:23;;;;1921:21;;2418:5;;1946:35;;-1:-1:-1;;;;;1946:35:3;:9;:35;:::i;:::-;1945:57;;;;:::i;:::-;2021:16;;;;;-1:-1:-1;1632:428:3;;-1:-1:-1;;;;1632:428:3:o;4909:149:4:-;5012:39;5029:4;5035:2;5039:7;5012:39;;;;;;;;;;;;:16;:39::i;1070:186:15:-;1134:41;719:10:1;1153:12:15;640:96:1;1134:41:15;1126:99;;;;-1:-1:-1;;;1126:99:15;;;;;;;:::i;:::-;1235:14;1241:7;1235:5;:14::i;:::-;1070:186;:::o;690:374::-;778:10;769:20;;;;:8;:20;;;;;;;;;:45;;-1:-1:-1;1266:6:12;;-1:-1:-1;;;;;1266:6:12;793:10:15;:21;769:45;761:70;;;;-1:-1:-1;;;761:70:15;;9857:2:16;761:70:15;;;9839:21:16;9896:2;9876:18;;;9869:30;-1:-1:-1;;;9915:18:16;;;9908:42;9967:18;;761:70:15;9655:336:16;761:70:15;845:9;841:217;865:7;:14;861:1;:18;841:217;;;920:1;907:7;915:1;907:10;;;;;;;;:::i;:::-;;;;;;;:14;:41;;;;;939:9;;925:7;933:1;925:10;;;;;;;;:::i;:::-;;;;;;;:23;;907:41;899:66;;;;-1:-1:-1;;;899:66:15;;10330:2:16;899:66:15;;;10312:21:16;10369:2;10349:18;;;10342:30;-1:-1:-1;;;10388:18:16;;;10381:43;10441:18;;899:66:15;10128:337:16;899:66:15;979:25;989:2;993:7;1001:1;993:10;;;;;;;;:::i;:::-;;;;;;;979:9;:25::i;:::-;1032:11;;:15;;1046:1;1032:15;:::i;:::-;1018:11;:29;881:3;;;;:::i;:::-;;;;841:217;;2488:144;1087:13:12;:11;:13::i;:::-;2556:7:15::1;:13;2566:3:::0;2556:7;:13:::1;:::i;:::-;-1:-1:-1::0;2584:41:15::1;::::0;;2604:1:::1;13126:25:16::0;;-1:-1:-1;;13182:2:16;13167:18;;13160:34;2584:41:15::1;::::0;13099:18:16;2584:41:15::1;;;;;;;2488:144:::0;:::o;2125:219:4:-;2197:7;6729:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6729:16:4;;2259:56;;;;-1:-1:-1;;;2259:56:4;;13407:2:16;2259:56:4;;;13389:21:16;13446:2;13426:18;;;13419:30;-1:-1:-1;;;13465:18:16;;;13458:54;13529:18;;2259:56:4;13205:348:16;403:21:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1864:204:4:-;1936:7;-1:-1:-1;;;;;1963:19:4;;1955:73;;;;-1:-1:-1;;;1955:73:4;;13760:2:16;1955:73:4;;;13742:21:16;13799:2;13779:18;;;13772:30;13838:34;13818:18;;;13811:62;-1:-1:-1;;;13889:18:16;;;13882:39;13938:19;;1955:73:4;13558:405:16;1955:73:4;-1:-1:-1;;;;;;2045:16:4;;;;;:9;:16;;;;;;;1864:204::o;1817:101:12:-;1087:13;:11;:13::i;:::-;1881:30:::1;1908:1;1881:18;:30::i;:::-;1817:101::o:0;2568:102:4:-;2624:13;2656:7;2649:14;;;;;:::i;3542:207:15:-;3652:17;;3637:11;;:32;;3629:60;;;;-1:-1:-1;;;3629:60:15;;;;;;;:::i;:::-;3699:43;3723:8;3733;3699:23;:43::i;5124:276:4:-;5254:41;719:10:1;5287:7:4;5254:18;:41::i;:::-;5246:99;;;;-1:-1:-1;;;5246:99:4;;;;;;;:::i;:::-;5355:38;5369:4;5375:2;5379:7;5388:4;5355:13;:38::i;:::-;5124:276;;;;:::o;1262:211:15:-;1338:9;;-1:-1:-1;;;;;1338:9:15;1351:10;1338:23;1330:47;;;;-1:-1:-1;;;1330:47:15;;14170:2:16;1330:47:15;;;14152:21:16;14209:2;14189:18;;;14182:30;-1:-1:-1;;;14228:18:16;;;14221:41;14279:18;;1330:47:15;13968:335:16;1330:47:15;1391:6;1387:80;1403:8;:15;1401:1;:17;1387:80;;;1438:18;1444:8;1453:1;1444:11;;;;;;;;:::i;:::-;;;;;;;1438:5;:18::i;:::-;1420:3;;;;:::i;:::-;;;;1387:80;;2996:132;1087:13:12;:11;:13::i;:::-;3082:38:15::1;3101:9;3112:7;3082:18;:38::i;1939:396::-:0;7120:4:4;6729:16;;;:7;:16;;;;;;2012:13:15;;-1:-1:-1;;;;;6729:16:4;2041:60:15;;;;-1:-1:-1;;;2041:60:15;;14510:2:16;2041:60:15;;;14492:21:16;14549:2;14529:18;;;14522:30;14588:33;14568:18;;;14561:61;14639:18;;2041:60:15;14308:355:16;2041:60:15;2283:7;2292:25;2309:7;2292:16;:25::i;:::-;2266:61;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2252:76;;1939:396;;;:::o;2639:174::-;1087:13:12;:11;:13::i;:::-;-1:-1:-1;;;;;2726:21:15;::::1;2718:49;;;::::0;-1:-1:-1;;;2718:49:15;;16062:2:16;2718:49:15::1;::::0;::::1;16044:21:16::0;16101:2;16081:18;;;16074:30;-1:-1:-1;;;16120:18:16;;;16113:45;16175:18;;2718:49:15::1;15860:339:16::0;2718:49:15::1;-1:-1:-1::0;;;;;2777:17:15;;;::::1;;::::0;;;:8:::1;:17;::::0;;;;:29;;-1:-1:-1;;2777:29:15::1;::::0;::::1;;::::0;;;::::1;::::0;;2639:174::o;2819:171::-;1087:13:12;:11;:13::i;:::-;-1:-1:-1;;;;;2898:24:15;::::1;2890:53;;;::::0;-1:-1:-1;;;2890:53:15;;16406:2:16;2890:53:15::1;::::0;::::1;16388:21:16::0;16445:2;16425:18;;;16418:30;-1:-1:-1;;;16464:18:16;;;16457:47;16521:18;;2890:53:15::1;16204:341:16::0;2890:53:15::1;2961:9;:22:::0;;-1:-1:-1;;;;;;2961:22:15::1;-1:-1:-1::0;;;;;2961:22:15;;;::::1;::::0;;;::::1;::::0;;2819:171::o;2348:134::-;2392:13;2446:10;3330:9:4;;;;;;;;;-1:-1:-1;3330:9:4;;;3254:92;2446:10:15;2429:45;;;;;;;;:::i;:::-;;;;;;;;;;;;;2415:60;;2348:134;:::o;4323:162:4:-;-1:-1:-1;;;;;4443:25:4;;;4420:4;4443:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4323:162::o;2067:198:12:-;1087:13;:11;:13::i;:::-;-1:-1:-1;;;;;2155:22:12;::::1;2147:73;;;::::0;-1:-1:-1;;;2147:73:12;;17222:2:16;2147:73:12::1;::::0;::::1;17204:21:16::0;17261:2;17241:18;;;17234:30;17300:34;17280:18;;;17273:62;-1:-1:-1;;;17351:18:16;;;17344:36;17397:19;;2147:73:12::1;17020:402:16::0;2147:73:12::1;2230:28;2249:8;2230:18;:28::i;1076:168:5:-:0;1178:4;1201:36;1225:11;1201:23;:36::i;13175:133:4:-;7120:4;6729:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6729:16:4;13248:53;;;;-1:-1:-1;;;13248:53:4;;13407:2:16;13248:53:4;;;13389:21:16;13446:2;13426:18;;;13419:30;-1:-1:-1;;;13465:18:16;;;13458:54;13529:18;;13248:53:4;13205:348:16;3403:406:4;3483:13;3499:23;3514:7;3499:14;:23::i;:::-;3483:39;;3546:5;-1:-1:-1;;;;;3540:11:4;:2;-1:-1:-1;;;;;3540:11:4;;3532:57;;;;-1:-1:-1;;;3532:57:4;;17629:2:16;3532:57:4;;;17611:21:16;17668:2;17648:18;;;17641:30;17707:34;17687:18;;;17680:62;-1:-1:-1;;;17758:18:16;;;17751:31;17799:19;;3532:57:4;17427:397:16;3532:57:4;719:10:1;-1:-1:-1;;;;;3621:21:4;;;;:62;;-1:-1:-1;3646:37:4;3663:5;719:10:1;4323:162:4;:::i;3646:37::-;3600:170;;;;-1:-1:-1;;;3600:170:4;;18031:2:16;3600:170:4;;;18013:21:16;18070:2;18050:18;;;18043:30;18109:34;18089:18;;;18082:62;18180:31;18160:18;;;18153:59;18229:19;;3600:170:4;17829:425:16;3600:170:4;3781:21;3790:2;3794:7;3781:8;:21::i;7339:261::-;7432:4;7448:13;7464:23;7479:7;7464:14;:23::i;:::-;7448:39;;7516:5;-1:-1:-1;;;;;7505:16:4;:7;-1:-1:-1;;;;;7505:16:4;;:52;;;;7525:32;7542:5;7549:7;7525:16;:32::i;:::-;7505:87;;;;7585:7;-1:-1:-1;;;;;7561:31:4;:20;7573:7;7561:11;:20::i;:::-;-1:-1:-1;;;;;7561:31:4;;7505:87;7497:96;7339:261;-1:-1:-1;;;;7339:261:4:o;11192:1203::-;11316:4;-1:-1:-1;;;;;11289:31:4;:23;11304:7;11289:14;:23::i;:::-;-1:-1:-1;;;;;11289:31:4;;11281:81;;;;-1:-1:-1;;;11281:81:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;11380:16:4;;11372:65;;;;-1:-1:-1;;;11372:65:4;;18867:2:16;11372:65:4;;;18849:21:16;18906:2;18886:18;;;18879:30;18945:34;18925:18;;;18918:62;-1:-1:-1;;;18996:18:16;;;18989:34;19040:19;;11372:65:4;18665:400:16;11372:65:4;11448:42;11469:4;11475:2;11479:7;11488:1;11448:20;:42::i;:::-;11617:4;-1:-1:-1;;;;;11590:31:4;:23;11605:7;11590:14;:23::i;:::-;-1:-1:-1;;;;;11590:31:4;;11582:81;;;;-1:-1:-1;;;11582:81:4;;;;;;;:::i;:::-;11732:24;;;;:15;:24;;;;;;;;11725:31;;-1:-1:-1;;;;;;11725:31:4;;;;;;-1:-1:-1;;;;;12200:15:4;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;12200:20:4;;;12234:13;;;;;;;;;:18;;11725:31;12234:18;;;12272:16;;;:7;:16;;;;;;:21;;;;;;;;;;12309:27;;11748:7;;12309:27;;;4547:296;;;:::o;1371:132:5:-;1439:20;1451:7;1439:11;:20::i;:::-;3988:26:3;;;;:17;:26;;;;;3981:33;1070:186:15:o;7930:108:4:-;8005:26;8015:2;8019:7;8005:26;;;;;;;;;;;;:9;:26::i;1352:130:12:-;1266:6;;-1:-1:-1;;;;;1266:6:12;719:10:1;1415:23:12;1407:68;;;;-1:-1:-1;;;1407:68:12;;19272:2:16;1407:68:12;;;19254:21:16;;;19291:18;;;19284:30;19350:34;19330:18;;;19323:62;19402:18;;1407:68:12;19070:356:16;2419:187:12;2511:6;;;-1:-1:-1;;;;;2527:17:12;;;-1:-1:-1;;;;;;2527:17:12;;;;;;;2559:40;;2511:6;;;2527:17;2511:6;;2559:40;;2492:16;;2559:40;2482:124;2419:187;:::o;4104:153:4:-;4198:52;719:10:1;4231:8:4;4241;4198:18;:52::i;6261:267::-;6373:28;6383:4;6389:2;6393:7;6373:9;:28::i;:::-;6419:47;6442:4;6448:2;6452:7;6461:4;6419:22;:47::i;:::-;6411:110;;;;-1:-1:-1;;;6411:110:4;;;;;;;:::i;2691:327:3:-;2418:5;-1:-1:-1;;;;;2793:33:3;;;;2785:88;;;;-1:-1:-1;;;2785:88:3;;20052:2:16;2785:88:3;;;20034:21:16;20091:2;20071:18;;;20064:30;20130:34;20110:18;;;20103:62;-1:-1:-1;;;20181:18:16;;;20174:40;20231:19;;2785:88:3;19850:406:16;2785:88:3;-1:-1:-1;;;;;2891:22:3;;2883:60;;;;-1:-1:-1;;;2883:60:3;;20463:2:16;2883:60:3;;;20445:21:16;20502:2;20482:18;;;20475:30;20541:27;20521:18;;;20514:55;20586:18;;2883:60:3;20261:349:16;2883:60:3;2976:35;;;;;;;;;-1:-1:-1;;;;;2976:35:3;;;;;;-1:-1:-1;;;;;2976:35:3;;;;;;;;;;-1:-1:-1;;;2954:57:3;;;;-1:-1:-1;2954:57:3;2691:327::o;437:696:14:-;493:13;542:14;559:17;570:5;559:10;:17::i;:::-;579:1;559:21;542:38;;594:20;628:6;617:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;617:18:14;-1:-1:-1;594:41:14;-1:-1:-1;755:28:14;;;771:2;755:28;810:280;-1:-1:-1;;841:5:14;-1:-1:-1;;;975:2:14;964:14;;959:30;841:5;946:44;1034:2;1025:11;;;-1:-1:-1;1054:21:14;810:280;1054:21;-1:-1:-1;1110:6:14;437:696;-1:-1:-1;;;437:696:14:o;1505:300:4:-;1607:4;-1:-1:-1;;;;;;1642:40:4;;-1:-1:-1;;;1642:40:4;;:104;;-1:-1:-1;;;;;;;1698:48:4;;-1:-1:-1;;;1698:48:4;1642:104;:156;;;;1762:36;1786:11;1762:23;:36::i;12507:171::-;12581:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;12581:29:4;-1:-1:-1;;;;;12581:29:4;;;;;;;;:24;;12634:23;12581:24;12634:14;:23::i;:::-;-1:-1:-1;;;;;12625:46:4;;;;;;;;;;;12507:171;;:::o;1479:427:15:-;-1:-1:-1;;;;;1714:14:15;;;;;;:34;;-1:-1:-1;;;;;;1732:16:15;;;;1714:34;1711:124;;;1787:17;;1772:11;;:32;;1764:60;;;;-1:-1:-1;;;1764:60:15;;;;;;;:::i;:::-;1844:55;5124:276:4;10106:762;10165:13;10181:23;10196:7;10181:14;:23::i;:::-;10165:39;;10215:51;10236:5;10251:1;10255:7;10264:1;10215:20;:51::i;:::-;10376:23;10391:7;10376:14;:23::i;:::-;10444:24;;;;:15;:24;;;;;;;;10437:31;;-1:-1:-1;;;;;;10437:31:4;;;;;;-1:-1:-1;;;;;10684:16:4;;;;;:9;:16;;;;;:21;;-1:-1:-1;;10684:21:4;;;10732:16;;;:7;:16;;;;;;10725:23;;;;;;;10764:36;10368:31;;-1:-1:-1;10460:7:4;;10764:36;;10444:24;;10764:36;3347:188:15;;:::o;8259:279:4:-;8353:18;8359:2;8363:7;8353:5;:18::i;:::-;8402:53;8433:1;8437:2;8441:7;8450:4;8402:22;:53::i;:::-;8381:150;;;;-1:-1:-1;;;8381:150:4;;;;;;;:::i;12814:277::-;12934:8;-1:-1:-1;;;;;12925:17:4;:5;-1:-1:-1;;;;;12925:17:4;;12917:55;;;;-1:-1:-1;;;12917:55:4;;20817:2:16;12917:55:4;;;20799:21:16;20856:2;20836:18;;;20829:30;20895:27;20875:18;;;20868:55;20940:18;;12917:55:4;20615:349:16;12917:55:4;-1:-1:-1;;;;;12982:25:4;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;12982:46:4;;;;;;;;;;13043:41;;540::16;;;13043::4;;513:18:16;13043:41:4;;;;;;;12814:277;;;:::o;13860:831::-;14009:4;-1:-1:-1;;;;;14029:13:4;;1702:19:0;:23;14025:660:4;;14064:71;;-1:-1:-1;;;14064:71:4;;-1:-1:-1;;;;;14064:36:4;;;;;:71;;719:10:1;;14115:4:4;;14121:7;;14130:4;;14064:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14064:71:4;;;;;;;;-1:-1:-1;;14064:71:4;;;;;;;;;;;;:::i;:::-;;;14060:573;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14302:6;:13;14319:1;14302:18;14298:321;;14344:60;;-1:-1:-1;;;14344:60:4;;;;;;;:::i;14298:321::-;14571:6;14565:13;14556:6;14552:2;14548:15;14541:38;14060:573;-1:-1:-1;;;;;;14185:51:4;-1:-1:-1;;;14185:51:4;;-1:-1:-1;14178:58:4;;14025:660;-1:-1:-1;14670:4:4;13860:831;;;;;;:::o;10139:916:11:-;10192:7;;-1:-1:-1;;;10267:17:11;;10263:103;;-1:-1:-1;;;10304:17:11;;;-1:-1:-1;10349:2:11;10339:12;10263:103;10392:8;10383:5;:17;10379:103;;10429:8;10420:17;;;-1:-1:-1;10465:2:11;10455:12;10379:103;10508:8;10499:5;:17;10495:103;;10545:8;10536:17;;;-1:-1:-1;10581:2:11;10571:12;10495:103;10624:7;10615:5;:16;10611:100;;10660:7;10651:16;;;-1:-1:-1;10695:1:11;10685:11;10611:100;10737:7;10728:5;:16;10724:100;;10773:7;10764:16;;;-1:-1:-1;10808:1:11;10798:11;10724:100;10850:7;10841:5;:16;10837:100;;10886:7;10877:16;;;-1:-1:-1;10921:1:11;10911:11;10837:100;10963:7;10954:5;:16;10950:66;;11000:1;10990:11;11042:6;10139:916;-1:-1:-1;;10139:916:11:o;1369:213:3:-;1471:4;-1:-1:-1;;;;;;1494:41:3;;-1:-1:-1;;;1494:41:3;;:81;;-1:-1:-1;;;;;;;;;;937:40:2;;;1539:36:3;829:155:2;8860:920:4;-1:-1:-1;;;;;8939:16:4;;8931:61;;;;-1:-1:-1;;;8931:61:4;;21919:2:16;8931:61:4;;;21901:21:16;;;21938:18;;;21931:30;21997:34;21977:18;;;21970:62;22049:18;;8931:61:4;21717:356:16;8931:61:4;7120:4;6729:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6729:16:4;7143:31;9002:58;;;;-1:-1:-1;;;9002:58:4;;22280:2:16;9002:58:4;;;22262:21:16;22319:2;22299:18;;;22292:30;22358;22338:18;;;22331:58;22406:18;;9002:58:4;22078:352:16;9002:58:4;9071:48;9100:1;9104:2;9108:7;9117:1;9071:20;:48::i;:::-;7120:4;6729:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6729:16:4;7143:31;9206:58;;;;-1:-1:-1;;;9206:58:4;;22280:2:16;9206:58:4;;;22262:21:16;22319:2;22299:18;;;22292:30;22358;22338:18;;;22331:58;22406:18;;9206:58:4;22078:352:16;9206:58:4;-1:-1:-1;;;;;9606:13:4;;;;;;:9;:13;;;;;;;;:18;;9623:1;9606:18;;;9645:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9645:21:4;;;;;9682:33;9653:7;;9606:13;;9682:33;;9606:13;;9682:33;3347:188:15;;:::o;14:131:16:-;-1:-1:-1;;;;;;88:32:16;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:16:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:16;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:16;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:16:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:16;;1348:180;-1:-1:-1;1348:180:16:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:16;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:16:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:16;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:16:o;3225:127::-;3286:10;3281:3;3277:20;3274:1;3267:31;3317:4;3314:1;3307:15;3341:4;3338:1;3331:15;3357:275;3428:2;3422:9;3493:2;3474:13;;-1:-1:-1;;3470:27:16;3458:40;;3528:18;3513:34;;3549:22;;;3510:62;3507:88;;;3575:18;;:::i;:::-;3611:2;3604:22;3357:275;;-1:-1:-1;3357:275:16:o;3637:712::-;3691:5;3744:3;3737:4;3729:6;3725:17;3721:27;3711:55;;3762:1;3759;3752:12;3711:55;3798:6;3785:20;3824:4;3847:18;3843:2;3840:26;3837:52;;;3869:18;;:::i;:::-;3915:2;3912:1;3908:10;3938:28;3962:2;3958;3954:11;3938:28;:::i;:::-;4000:15;;;4070;;;4066:24;;;4031:12;;;;4102:15;;;4099:35;;;4130:1;4127;4120:12;4099:35;4166:2;4158:6;4154:15;4143:26;;4178:142;4194:6;4189:3;4186:15;4178:142;;;4260:17;;4248:30;;4211:12;;;;4298;;;;4178:142;;;4338:5;3637:712;-1:-1:-1;;;;;;;3637:712:16:o;4354:422::-;4447:6;4455;4508:2;4496:9;4487:7;4483:23;4479:32;4476:52;;;4524:1;4521;4514:12;4476:52;4547:29;4566:9;4547:29;:::i;:::-;4537:39;;4627:2;4616:9;4612:18;4599:32;4654:18;4646:6;4643:30;4640:50;;;4686:1;4683;4676:12;4640:50;4709:61;4762:7;4753:6;4742:9;4738:22;4709:61;:::i;:::-;4699:71;;;4354:422;;;;;:::o;4781:407::-;4846:5;4880:18;4872:6;4869:30;4866:56;;;4902:18;;:::i;:::-;4940:57;4985:2;4964:15;;-1:-1:-1;;4960:29:16;4991:4;4956:40;4940:57;:::i;:::-;4931:66;;5020:6;5013:5;5006:21;5060:3;5051:6;5046:3;5042:16;5039:25;5036:45;;;5077:1;5074;5067:12;5036:45;5126:6;5121:3;5114:4;5107:5;5103:16;5090:43;5180:1;5173:4;5164:6;5157:5;5153:18;5149:29;5142:40;4781:407;;;;;:::o;5193:451::-;5262:6;5315:2;5303:9;5294:7;5290:23;5286:32;5283:52;;;5331:1;5328;5321:12;5283:52;5371:9;5358:23;5404:18;5396:6;5393:30;5390:50;;;5436:1;5433;5426:12;5390:50;5459:22;;5512:4;5504:13;;5500:27;-1:-1:-1;5490:55:16;;5541:1;5538;5531:12;5490:55;5564:74;5630:7;5625:2;5612:16;5607:2;5603;5599:11;5564:74;:::i;5649:186::-;5708:6;5761:2;5749:9;5740:7;5736:23;5732:32;5729:52;;;5777:1;5774;5767:12;5729:52;5800:29;5819:9;5800:29;:::i;5840:347::-;5905:6;5913;5966:2;5954:9;5945:7;5941:23;5937:32;5934:52;;;5982:1;5979;5972:12;5934:52;6005:29;6024:9;6005:29;:::i;:::-;5995:39;;6084:2;6073:9;6069:18;6056:32;6131:5;6124:13;6117:21;6110:5;6107:32;6097:60;;6153:1;6150;6143:12;6097:60;6176:5;6166:15;;;5840:347;;;;;:::o;6192:667::-;6287:6;6295;6303;6311;6364:3;6352:9;6343:7;6339:23;6335:33;6332:53;;;6381:1;6378;6371:12;6332:53;6404:29;6423:9;6404:29;:::i;:::-;6394:39;;6452:38;6486:2;6475:9;6471:18;6452:38;:::i;:::-;6442:48;;6537:2;6526:9;6522:18;6509:32;6499:42;;6592:2;6581:9;6577:18;6564:32;6619:18;6611:6;6608:30;6605:50;;;6651:1;6648;6641:12;6605:50;6674:22;;6727:4;6719:13;;6715:27;-1:-1:-1;6705:55:16;;6756:1;6753;6746:12;6705:55;6779:74;6845:7;6840:2;6827:16;6822:2;6818;6814:11;6779:74;:::i;:::-;6769:84;;;6192:667;;;;;;;:::o;6864:348::-;6948:6;7001:2;6989:9;6980:7;6976:23;6972:32;6969:52;;;7017:1;7014;7007:12;6969:52;7057:9;7044:23;7090:18;7082:6;7079:30;7076:50;;;7122:1;7119;7112:12;7076:50;7145:61;7198:7;7189:6;7178:9;7174:22;7145:61;:::i;7217:366::-;7284:6;7292;7345:2;7333:9;7324:7;7320:23;7316:32;7313:52;;;7361:1;7358;7351:12;7313:52;7384:29;7403:9;7384:29;:::i;:::-;7374:39;;7463:2;7452:9;7448:18;7435:32;-1:-1:-1;;;;;7500:5:16;7496:38;7489:5;7486:49;7476:77;;7549:1;7546;7539:12;7588:260;7656:6;7664;7717:2;7705:9;7696:7;7692:23;7688:32;7685:52;;;7733:1;7730;7723:12;7685:52;7756:29;7775:9;7756:29;:::i;:::-;7746:39;;7804:38;7838:2;7827:9;7823:18;7804:38;:::i;:::-;7794:48;;7588:260;;;;;:::o;7853:380::-;7932:1;7928:12;;;;7975;;;7996:61;;8050:4;8042:6;8038:17;8028:27;;7996:61;8103:2;8095:6;8092:14;8072:18;8069:38;8066:161;;8149:10;8144:3;8140:20;8137:1;8130:31;8184:4;8181:1;8174:15;8212:4;8209:1;8202:15;8066:161;;7853:380;;;:::o;8238:339::-;8440:2;8422:21;;;8479:2;8459:18;;;8452:30;-1:-1:-1;;;8513:2:16;8498:18;;8491:45;8568:2;8553:18;;8238:339::o;8582:409::-;8784:2;8766:21;;;8823:2;8803:18;;;8796:30;8862:34;8857:2;8842:18;;8835:62;-1:-1:-1;;;8928:2:16;8913:18;;8906:43;8981:3;8966:19;;8582:409::o;8996:127::-;9057:10;9052:3;9048:20;9045:1;9038:31;9088:4;9085:1;9078:15;9112:4;9109:1;9102:15;9128:168;9201:9;;;9232;;9249:15;;;9243:22;;9229:37;9219:71;;9270:18;;:::i;9433:217::-;9473:1;9499;9489:132;;9543:10;9538:3;9534:20;9531:1;9524:31;9578:4;9575:1;9568:15;9606:4;9603:1;9596:15;9489:132;-1:-1:-1;9635:9:16;;9433:217::o;9996:127::-;10057:10;10052:3;10048:20;10045:1;10038:31;10088:4;10085:1;10078:15;10112:4;10109:1;10102:15;10470:125;10535:9;;;10556:10;;;10553:36;;;10569:18;;:::i;10600:135::-;10639:3;10660:17;;;10657:43;;10680:18;;:::i;:::-;-1:-1:-1;10727:1:16;10716:13;;10600:135::o;10866:545::-;10968:2;10963:3;10960:11;10957:448;;;11004:1;11029:5;11025:2;11018:17;11074:4;11070:2;11060:19;11144:2;11132:10;11128:19;11125:1;11121:27;11115:4;11111:38;11180:4;11168:10;11165:20;11162:47;;;-1:-1:-1;11203:4:16;11162:47;11258:2;11253:3;11249:12;11246:1;11242:20;11236:4;11232:31;11222:41;;11313:82;11331:2;11324:5;11321:13;11313:82;;;11376:17;;;11357:1;11346:13;11313:82;;;11317:3;;;10866:545;;;:::o;11587:1352::-;11713:3;11707:10;11740:18;11732:6;11729:30;11726:56;;;11762:18;;:::i;:::-;11791:97;11881:6;11841:38;11873:4;11867:11;11841:38;:::i;:::-;11835:4;11791:97;:::i;:::-;11943:4;;12007:2;11996:14;;12024:1;12019:663;;;;12726:1;12743:6;12740:89;;;-1:-1:-1;12795:19:16;;;12789:26;12740:89;-1:-1:-1;;11544:1:16;11540:11;;;11536:24;11532:29;11522:40;11568:1;11564:11;;;11519:57;12842:81;;11989:944;;12019:663;10813:1;10806:14;;;10850:4;10837:18;;-1:-1:-1;;12055:20:16;;;12173:236;12187:7;12184:1;12181:14;12173:236;;;12276:19;;;12270:26;12255:42;;12368:27;;;;12336:1;12324:14;;;;12203:19;;12173:236;;;12177:3;12437:6;12428:7;12425:19;12422:201;;;12498:19;;;12492:26;-1:-1:-1;;12581:1:16;12577:14;;;12593:3;12573:24;12569:37;12565:42;12550:58;12535:74;;12422:201;-1:-1:-1;;;;;12669:1:16;12653:14;;;12649:22;12636:36;;-1:-1:-1;11587:1352:16:o;14668:1187::-;14945:3;14974:1;15007:6;15001:13;15037:36;15063:9;15037:36;:::i;:::-;15092:1;15109:18;;;15136:133;;;;15283:1;15278:356;;;;15102:532;;15136:133;-1:-1:-1;;15169:24:16;;15157:37;;15242:14;;15235:22;15223:35;;15214:45;;;-1:-1:-1;15136:133:16;;15278:356;15309:6;15306:1;15299:17;15339:4;15384:2;15381:1;15371:16;15409:1;15423:165;15437:6;15434:1;15431:13;15423:165;;;15515:14;;15502:11;;;15495:35;15558:16;;;;15452:10;;15423:165;;;15427:3;;;15617:6;15612:3;15608:16;15601:23;;15102:532;;;;;15665:6;15659:13;15681:68;15740:8;15735:3;15728:4;15720:6;15716:17;15681:68;:::i;:::-;-1:-1:-1;;;15771:18:16;;15798:22;;;15847:1;15836:13;;14668:1187;-1:-1:-1;;;;14668:1187:16:o;16550:465::-;16782:3;16820:6;16814:13;16836:66;16895:6;16890:3;16883:4;16875:6;16871:17;16836:66;:::i;:::-;-1:-1:-1;;;16924:16:16;;16949:30;;;-1:-1:-1;17006:2:16;16995:14;;16550:465;-1:-1:-1;16550:465:16:o;18259:401::-;18461:2;18443:21;;;18500:2;18480:18;;;18473:30;18539:34;18534:2;18519:18;;18512:62;-1:-1:-1;;;18605:2:16;18590:18;;18583:35;18650:3;18635:19;;18259:401::o;19431:414::-;19633:2;19615:21;;;19672:2;19652:18;;;19645:30;19711:34;19706:2;19691:18;;19684:62;-1:-1:-1;;;19777:2:16;19762:18;;19755:48;19835:3;19820:19;;19431:414::o;20969:489::-;-1:-1:-1;;;;;21238:15:16;;;21220:34;;21290:15;;21285:2;21270:18;;21263:43;21337:2;21322:18;;21315:34;;;21385:3;21380:2;21365:18;;21358:31;;;21163:4;;21406:46;;21432:19;;21424:6;21406:46;:::i;:::-;21398:54;20969:489;-1:-1:-1;;;;;;20969:489:16:o;21463:249::-;21532:6;21585:2;21573:9;21564:7;21560:23;21556:32;21553:52;;;21601:1;21598;21591:12;21553:52;21633:9;21627:16;21652:30;21676:5;21652:30;:::i
Swarm Source
ipfs://95edf2d17a8ab21367e93de178a90bfcfeee743bf42d5bc287e0709601297f08
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.