Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update Owner | 13614632 | 1143 days ago | IN | 0 ETH | 0.017142 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13614582 | 1143 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
ERC721Suika
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-14 */ // SPDX-License-Identifier: MIT /** MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKKKXXXXKKKKKKXXNWWMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWNXKKKKXXNWWWWMMWWWWMWWWWNXXXKKKXNWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMWNXKKKXNWMMMMMMMMMNOdxKWMMMMMMMMWNXKKKXNWMMMMMMMMMMMMMM MMMMMMMMMMMMMWXKKKNWMMMMMMMMMMMMNx:;;l0WMMMMMMMMMMMWNK0KXWMMMMMMMMMMMM MMMMMMMMMMMWXKKXWMMMMMMMMMMMMMMXd:;;;;cOWMMMMMMMMMMMMMWXKKXWMMMMMMMMMM MMMMMMMMMWNKKXWMMMMMMMMMMMMMMWKo;;col:;:kNMMMMMMMMMMMMMMWX0KNWMMMMMMMM MMMMMMMMWX0XWMMMMMMMMMMMMMMMWOl;;oKWXkc;:dXMMMMMMMMMMMMMMMWX0XWMMMMMMM MMMMMMMNKKNWMMMMMMMMMMMMMMMNkc;:dXMMMWOc;;oKWMMMMMMMMMMMMMMWNKKNMMMMMM MMMMMMNKKNMMMMMMMMMMMMMMMMNx:;:xNMMMMMW0l;;l0WMMMMMMMWMMMMMMMNKKNMMMMM MMMMMNKKNMMMMMMMMMMMMMMMMXd:;ckNMMMMMMMMKo:;cOWMMMMXkxkXWMMMMMNKKNMMMM MMMMWK0NMMMMMMMMMMMMMMMWKo;;l0WMMMMMMMMMMXx:;:xNMMW0lccxXMMMMMMN0KWMMM MMMMX0XWMMMMMMWWMMMMMMWOl;;oKWMMMMMMMMMMMMNkc;:dXMMNklcoKMMMMMMMX0XMMM MMMWKKNMMWK0OkkkkkkKWNkc;:dXMMMMMMMMMMMMMMMWOl;;oKWMXdcxNMMMMMMMNKKWMM MMMN0XWMMWNXX0OdlccdKOc;:xNMMMWXKKXNWNNNNWWMW0o;;l0WNkdKWMMMMMMMWX0NMM MMMX0XMMMMMMMMMN0dlcdOxoONMMMMW0xdddddodxk0KNWXd:;l0Kx0WMMMMMMMMMX0XMM MMMX0NMMMMMMMMMMWXxlcoOXWMMMMWKkolclodkKNNNNWWMNxcxOkKWMMMMMMMMMMX0XMM MMMX0XMMMMMMMMMMMMNklclkNMMWXklccodxdodKWMMMMMMMNKOkKWMMMMMMMMMMMX0XMM MMMN0XWMMMMMMMMMMMMNOoclxXN0occcdKX0xlco0WMMMMMMNOOXMMMMMMMMMMMMMX0NMM MMMWKKWMMMMMMMMMMMMMW0dccoxocccdKWMWNklclONMMMMXOONMMMMMMMMMMMMMWKKWMM MMMMX0XMMMMMMMMMMMMMMWKdcccccco0WMMMMNOoclkNWWKk0NMMMMMMMMMMMMMMX0XWMM MMMMWKKNMMMMMMMMMMMMMMMXxlcccckNMMMMMMW0oclxK0kKWMMMMMMMMMMMMMMNKKWMMM MMMMMN0KWMMMMMMMMMMMMMMMNklccoKWMMMMMMMWKdlcoxKWMMMMMMMMMMMMMMWK0NMMMM MMMMMMN0KWMMMMMMMMMMMMMMMNOod0KXWMMMMMMNK0xoxXWMMMMMMMMMMMMMMWK0NMMMMM MMMMMMMN0KNMMMMMMMMMMMMMMMWXKkll0WMMMMXdcoOKNMMMMMMMMMMMMMMMNK0NMMMMMM MMMMMMMMNK0XWMMMMMMMMMMMMMMMNd:;cOWMWKo:;c0WMMMMMMMMMMMMMMWX0KNMMMMMMM MMMMMMMMMWXKKNWMMMMMMMMMMMMMMXd:;cx0kl;;l0WMMMMMMMMMMMMMWNKKXWMMMMMMMM MMMMMMMMMMMWX0KNWMMMMMMMMMMMMMNkc;;::;:oKWMMMMMMMMMMMMWNK0XWMMMMMMMMMM MMMMMMMMMMMMMNXKKXNWMMMMMMMMMMMWOc;;;:dXMMMMMMMMMMMWNXKKXWMMMMMMMMMMMM MMMMMMMMMMMMMMMWNKKKXNWMMMMMMMMMW0l:ckNMMMMMMMMMWNXKKKNWMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWNXKKKXXNWWWMMMMX0KWMMMWWWNXXKKKXNWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKXXXXXXXXXXKKKKXXNWWMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNNNNNNWWWMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ---------------------- [ WPSmartContracts.com ] ---------------------- [ Blockchain Made Easy ] | | ERC-721 NFT Token Marketplace | |---------------------------- | | Flavors | | > Suika v.2: Standard ERC-721 Token with Marketplace | Supports Payment with Tokens, and royalties | */ pragma solidity ^0.8.2; /** * @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); } /** * @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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; } /** * @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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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; } } /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } /** * @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; } } /** * @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: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 overriden 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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: transfer caller is not owner nor 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: transfer caller is not owner nor 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 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 _owners[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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @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 of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @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 { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } } /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } contract ERC721Mochi is ERC721, ERC721Enumerable, ERC721URIStorage, AccessControlEnumerable, ERC721Burnable { using Counters for Counters.Counter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Counters.Counter private _tokenIdCounter; bool public anyoneCanMint; constructor(address owner, string memory name, string memory symbol, bool _anyoneCanMint) ERC721(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, owner); _setupRole(MINTER_ROLE, owner); anyoneCanMint = _anyoneCanMint; } function autoMint(string memory _tokenURI, address to) public onlyMinter { uint id; do { _tokenIdCounter.increment(); id = _tokenIdCounter.current(); } while(_exists(id)); _mint(to, id); _setTokenURI(id, _tokenURI); } function mint(address to, uint256 tokenId) public onlyMinter { _mint(to, tokenId); } function safeMint(address to, uint256 tokenId) public onlyMinter { _safeMint(to, tokenId); } function isMinter(address account) public view returns (bool) { return hasRole(MINTER_ROLE, account); } function safeMint(address to, uint256 tokenId, bytes memory _data) public onlyMinter { _safeMint(to, tokenId, _data); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { ERC721URIStorage._burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, AccessControlEnumerable) returns (bool) { return super.supportsInterface(interfaceId); } function addMinter(address account) public onlyRole(MINTER_ROLE) { grantRole(MINTER_ROLE, account); } function canIMint() public view returns (bool) { return anyoneCanMint || isMinter(msg.sender); } /** * Open modifier to anyone can mint possibility */ modifier onlyMinter() { string memory mensaje; require( canIMint(), "MinterRole: caller does not have the Minter role" ); _; } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } contract EIP20 { uint256 public totalSupply; uint256 constant private MAX_UINT256 = 2**256 - 1; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowed; /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functionality. Some wallets/interfaces might not even bother to look at this information. */ string public name; //fancy name: eg Simon Bucks uint8 public decimals; //How many decimals to show. string public symbol; //An identifier: eg SBX event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); constructor( uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol ) { balances[msg.sender] = _initialAmount; // Give the creator all initial tokens totalSupply = _initialAmount; // Update total supply name = _tokenName; // Set the name for display purposes decimals = _decimalUnits; // Amount of decimals for display purposes symbol = _tokenSymbol; // Set the symbol for display purposes } function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); //solhint-disable-line indent, no-unused-vars return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { uint256 _allowance = allowed[_from][msg.sender]; require(balances[_from] >= _value && _allowance >= _value); balances[_to] += _value; balances[_from] -= _value; if (_allowance < MAX_UINT256) { allowed[_from][msg.sender] -= _value; } emit Transfer(_from, _to, _value); //solhint-disable-line indent, no-unused-vars return true; } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); //solhint-disable-line indent, no-unused-vars return true; } function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; } } /** * @title ERC721Suika * ERC-721 Marketplace with tokens and royalties support */ contract ERC721Suika is ERC721Mochi, ReentrancyGuard { using SafeMath for uint256; using Address for address payable; using Address for address; // admin address, the owner of the marketplace address payable admin; address public contract_owner; // ERC20 token to be used for payments EIP20 public payment_token; // commission rate is a value from 0 to 100 uint256 commissionRate; // royalties commission rate is a value from 0 to 100 uint256 royaltiesCommissionRate; // nft item creators list, used to pay royalties mapping(uint256 => address) public creators; // last price sold or auctioned mapping(uint256 => uint256) public soldFor; // Mapping from token ID to sell price in Ether or to bid price, depending if it is an auction or not mapping(uint256 => uint256) public sellBidPrice; // Mapping payment address for tokenId mapping(uint256 => address payable) private _wallets; event Sale(uint256 indexed tokenId, address indexed from, address indexed to, uint256 value); event Commission(uint256 indexed tokenId, address indexed to, uint256 value, uint256 rate, uint256 total); event Royalty(uint256 indexed tokenId, address indexed to, uint256 value, uint256 rate, uint256 total); // Auction data struct Auction { // Parameters of the auction. Times are either // absolute unix timestamps (seconds since 1970-01-01) // or time periods in seconds. address payable beneficiary; uint auctionEnd; // Current state of the auction. address payable highestBidder; uint highestBid; // Set to true at the end, disallows any change bool open; // minimum reserve price in wei uint256 reserve; } // mapping auctions for each tokenId mapping(uint256 => Auction) public auctions; // Events that will be fired on changes. event Refund(address bidder, uint amount); event HighestBidIncreased(address indexed bidder, uint amount, uint256 tokenId); event AuctionEnded(address winner, uint amount); event LimitSell(address indexed from, address indexed to, uint256 amount); event LimitBuy(address indexed from, address indexed to, uint256 amount); event MarketSell(address indexed from, address indexed to, uint256 amount); event MarketBuy(address indexed from, address indexed to, uint256 amount); constructor( EIP20 _payment_token, address _owner, address payable _admin, uint256 _commissionRate, uint256 _royaltiesCommissionRate, string memory name, string memory symbol, bool _anyoneCanMint) ERC721Mochi(_owner, name, symbol, _anyoneCanMint) { admin = _admin; contract_owner = _owner; require(_commissionRate<=100, "ERC721Suika: Commission rate has to be between 0 and 100"); commissionRate = _commissionRate; royaltiesCommissionRate = _royaltiesCommissionRate; payment_token = _payment_token; } function canSell(uint256 tokenId) public view returns (bool) { return (ownerOf(tokenId)==msg.sender && !auctions[tokenId].open); } // Sell option for a fixed price function sell(uint256 tokenId, uint256 price, address payable wallet) public { // onlyOwner require(ownerOf(tokenId)==msg.sender, "ERC721Suika: Only owner can sell this item"); // cannot set a price if auction is activated require(!auctions[tokenId].open, "ERC721Suika: Cannot sell an item which has an active auction"); // set sell price for index sellBidPrice[tokenId] = price; // If price is zero, means not for sale if (price>0) { // approve the Index to the current contract approve(address(this), tokenId); // set wallet payment _wallets[tokenId] = wallet; } } // simple function to return the price of a tokenId // returns: sell price, bid price, sold price, only one can be non zero function getPrice(uint256 tokenId) public view returns (uint256, uint256, uint256) { if (sellBidPrice[tokenId]>0) return (sellBidPrice[tokenId], 0, 0); if (auctions[tokenId].highestBid>0) return (0, auctions[tokenId].highestBid, 0); return (0, 0, soldFor[tokenId]); } function canBuy(uint256 tokenId) public view returns (uint256) { if (!auctions[tokenId].open && sellBidPrice[tokenId]>0 && sellBidPrice[tokenId]>0 && getApproved(tokenId) == address(this)) { return sellBidPrice[tokenId]; } else { return 0; } } // Buy option function buy(uint256 tokenId) public nonReentrant { // is on sale require(!auctions[tokenId].open && sellBidPrice[tokenId]>0, "ERC721Suika: The collectible is not for sale"); // transfer ownership address owner = ownerOf(tokenId); require(msg.sender!=owner, "ERC721Suika: The seller cannot buy his own collectible"); // we need to call a transferFrom from this contract, which is the one with permission to sell the NFT callOptionalReturn(this, abi.encodeWithSelector(this.transferFrom.selector, owner, msg.sender, tokenId)); // calculate amounts uint256 amount4admin = sellBidPrice[tokenId].mul(commissionRate).div(100); uint256 amount4creator = sellBidPrice[tokenId].mul(royaltiesCommissionRate).div(100); uint256 amount4owner = sellBidPrice[tokenId].sub(amount4admin).sub(amount4creator); // to owner require(payment_token.transferFrom(msg.sender, _wallets[tokenId], amount4owner), "Transfer failed."); // to creator if (amount4creator>0) { require(payment_token.transferFrom(msg.sender, creators[tokenId], amount4creator), "Transfer failed."); } // to admin if (amount4admin>0) { require(payment_token.transferFrom(msg.sender, admin, amount4admin), "Transfer failed."); } emit Sale(tokenId, owner, msg.sender, sellBidPrice[tokenId]); emit Commission(tokenId, owner, sellBidPrice[tokenId], commissionRate, amount4admin); emit Royalty(tokenId, owner, sellBidPrice[tokenId], royaltiesCommissionRate, amount4creator); soldFor[tokenId] = sellBidPrice[tokenId]; // close the sell sellBidPrice[tokenId] = 0; delete _wallets[tokenId]; } function canAuction(uint256 tokenId) public view returns (bool) { return (ownerOf(tokenId)==msg.sender && !auctions[tokenId].open && sellBidPrice[tokenId]==0); } // Instantiate an auction contract for a tokenId function createAuction(uint256 tokenId, uint _closingTime, address payable _beneficiary, uint256 _reservePrice) public { require(sellBidPrice[tokenId]==0, "ERC721Suika: The selected NFT is open for sale, cannot be auctioned"); require(!auctions[tokenId].open, "ERC721Suika: The selected NFT already has an auction"); require(ownerOf(tokenId)==msg.sender, "ERC721Suika: Only owner can auction this item"); auctions[tokenId].beneficiary = _beneficiary; auctions[tokenId].auctionEnd = _closingTime; auctions[tokenId].reserve = _reservePrice; auctions[tokenId].open = true; // approve the Index to the current contract approve(address(this), tokenId); } function canBid(uint256 tokenId) public view returns (bool) { if (!msg.sender.isContract() && auctions[tokenId].open && block.timestamp <= auctions[tokenId].auctionEnd && msg.sender != ownerOf(tokenId) && getApproved(tokenId) == address(this) ) { return true; } else { return false; } } /// Overrides minting function to keep track of item creators function _mint(address to, uint256 tokenId) override internal { creators[tokenId] = msg.sender; super._mint(to, tokenId); } /// Bid on the auction with the value sent /// together with this transaction. /// The value will only be refunded if the /// auction is not won. function bid(uint256 tokenId, uint256 bid_value) public nonReentrant { // Contracts cannot bid, because they can block the auction with a reentrant attack require(!msg.sender.isContract(), "No script kiddies"); // auction has to be opened require(auctions[tokenId].open, "No opened auction found"); // approve was lost require(getApproved(tokenId) == address(this), "Cannot complete the auction"); // Revert the call if the bidding // period is over. require( block.timestamp <= auctions[tokenId].auctionEnd, "Auction already ended." ); // If the bid is not higher, send the // money back. require( bid_value > auctions[tokenId].highestBid, "There already is a higher bid." ); address owner = ownerOf(tokenId); require(msg.sender!=owner, "ERC721Suika: The owner cannot bid his own collectible"); // return the funds to the previous bidder, if there is one if (auctions[tokenId].highestBid>0) { require(payment_token.transfer(auctions[tokenId].highestBidder, auctions[tokenId].highestBid), "Transfer failed."); emit Refund(auctions[tokenId].highestBidder, auctions[tokenId].highestBid); } // now store the bid data auctions[tokenId].highestBidder = payable(msg.sender); // transfer tokens to contract require(payment_token.transferFrom(msg.sender, address(this), bid_value), "Transfer failed."); // register the highest bid value auctions[tokenId].highestBid = bid_value; emit HighestBidIncreased(msg.sender, bid_value, tokenId); } // anyone can execute withdraw if auction is opened and // the bid time expired and the reserve was not met // or // the auction is openen but the contract is unable to transfer function canWithdraw(uint256 tokenId) public view returns (bool) { if (auctions[tokenId].open && ( ( block.timestamp >= auctions[tokenId].auctionEnd && auctions[tokenId].highestBid > 0 && auctions[tokenId].highestBid<auctions[tokenId].reserve ) || getApproved(tokenId) != address(this) ) ) { return true; } else { return false; } } /// Withdraw a bid when the auction is not finalized function withdraw(uint256 tokenId) public nonReentrant { require(canWithdraw(tokenId), "Conditions to withdraw are not met"); // transfer funds to highest bidder always if (auctions[tokenId].highestBid > 0) { require(payment_token.transfer(auctions[tokenId].highestBidder, auctions[tokenId].highestBid), "Transfer failed."); } // finalize the auction delete auctions[tokenId]; } function canFinalize(uint256 tokenId) public view returns (bool) { if (auctions[tokenId].open && block.timestamp >= auctions[tokenId].auctionEnd && ( auctions[tokenId].highestBid>=auctions[tokenId].reserve || auctions[tokenId].highestBid==0 ) ) { return true; } else { return false; } } // implement the auctionFinalize including the NFT transfer logic function auctionFinalize(uint256 tokenId) public nonReentrant { require(canFinalize(tokenId), "Cannot finalize"); if (auctions[tokenId].highestBid>0) { // transfer the ownership of token to the highest bidder address payable _highestBidder = auctions[tokenId].highestBidder; // calculate payment amounts uint256 amount4admin = auctions[tokenId].highestBid.mul(commissionRate).div(100); uint256 amount4creator = auctions[tokenId].highestBid.mul(royaltiesCommissionRate).div(100); uint256 amount4owner = auctions[tokenId].highestBid.sub(amount4admin).sub(amount4creator); // to owner require(payment_token.transfer(auctions[tokenId].beneficiary, amount4owner), "Transfer failed."); // to creator if (amount4creator>0) { require(payment_token.transfer(creators[tokenId], amount4creator), "Transfer failed."); } // to admin if (amount4admin>0) { require(payment_token.transfer(admin, amount4admin), "Transfer failed."); } emit Sale(tokenId, auctions[tokenId].beneficiary, _highestBidder, auctions[tokenId].highestBid); emit Royalty(tokenId, auctions[tokenId].beneficiary, auctions[tokenId].highestBid, royaltiesCommissionRate, amount4creator); emit Commission(tokenId, auctions[tokenId].beneficiary, auctions[tokenId].highestBid, commissionRate, amount4admin); // transfer ownership address owner = ownerOf(tokenId); // we need to call a transferFrom from this contract, which is the one with permission to sell the NFT // transfer the NFT to the auction's highest bidder callOptionalReturn(this, abi.encodeWithSelector(this.transferFrom.selector, owner, _highestBidder, tokenId)); soldFor[tokenId] = auctions[tokenId].highestBid; } emit AuctionEnded(auctions[tokenId].highestBidder, auctions[tokenId].highestBid); // finalize the auction delete auctions[tokenId]; } // Bid query functions function highestBidder(uint256 tokenId) public view returns (address payable) { return auctions[tokenId].highestBidder; } function highestBid(uint256 tokenId) public view returns (uint256) { return auctions[tokenId].highestBid; } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC721 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC721: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC721: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC721: ERC20 operation did not succeed"); } } // update contract fields function updateAdmin(address payable _admin, uint256 _commissionRate, uint256 _royaltiesCommissionRate, bool _anyoneCanMint, EIP20 _payment_token) public { require(msg.sender==contract_owner, "Only contract owner can do this"); admin = _admin; commissionRate = _commissionRate; royaltiesCommissionRate = _royaltiesCommissionRate; anyoneCanMint = _anyoneCanMint; payment_token = _payment_token; } // update owner function updateOwner(address _contract_owner) public { require(msg.sender==contract_owner, "Only contract owner can do this"); // grant roles to new owner _setupRole(DEFAULT_ADMIN_ROLE, _contract_owner); _setupRole(MINTER_ROLE, _contract_owner); // revoke roles of old owner revokeRole(MINTER_ROLE, contract_owner); _setupRole(DEFAULT_ADMIN_ROLE, contract_owner); // change ownership contract_owner = _contract_owner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract EIP20","name":"_payment_token","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address payable","name":"_admin","type":"address"},{"internalType":"uint256","name":"_commissionRate","type":"uint256"},{"internalType":"uint256","name":"_royaltiesCommissionRate","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bool","name":"_anyoneCanMint","type":"bool"}],"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":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"Commission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"HighestBidIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LimitBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LimitSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MarketBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MarketSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"Royalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Sale","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"anyoneCanMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"auctionFinalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"auctionEnd","type":"uint256"},{"internalType":"address payable","name":"highestBidder","type":"address"},{"internalType":"uint256","name":"highestBid","type":"uint256"},{"internalType":"bool","name":"open","type":"bool"},{"internalType":"uint256","name":"reserve","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"autoMint","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"bid_value","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canAuction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canBid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canFinalize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canIMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canSell","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contract_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_closingTime","type":"uint256"},{"internalType":"address payable","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_reservePrice","type":"uint256"}],"name":"createAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"highestBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"highestBidder","outputs":[{"internalType":"address payable","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":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"payment_token","outputs":[{"internalType":"contract EIP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address payable","name":"wallet","type":"address"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sellBidPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"soldFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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 payable","name":"_admin","type":"address"},{"internalType":"uint256","name":"_commissionRate","type":"uint256"},{"internalType":"uint256","name":"_royaltiesCommissionRate","type":"uint256"},{"internalType":"bool","name":"_anyoneCanMint","type":"bool"},{"internalType":"contract EIP20","name":"_payment_token","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract_owner","type":"address"}],"name":"updateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004f9638038062004f96833981016040819052620000349162000463565b8683838382828160009080519060200190620000529291906200030a565b508051620000689060019060208401906200030a565b506200007a91506000905085620001a1565b620000a67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a685620001a1565b600e805491151560ff1990921691909117905550506001600f5550601080546001600160a01b038089166001600160a01b03199283161790925560118054928a169290911691909117905560648511156200016d5760405162461bcd60e51b815260206004820152603860248201527f4552433732315375696b613a20436f6d6d697373696f6e20726174652068617360448201527f20746f206265206265747765656e203020616e64203130300000000000000000606482015260840160405180910390fd5b5050506013919091556014555050601280546001600160a01b0319166001600160a01b0392909216919091179055620005a5565b620001b88282620001e460201b62002a8b1760201c565b6000828152600c60209081526040909120620001df91839062002a95620001f4821b17901c565b505050565b620001f0828262000214565b5050565b60006200020b836001600160a01b038416620002b8565b90505b92915050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16620001f0576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002743390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205462000301575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200020e565b5060006200020e565b828054620003189062000539565b90600052602060002090601f0160209004810192826200033c576000855562000387565b82601f106200035757805160ff191683800117855562000387565b8280016001018555821562000387579182015b82811115620003875782518255916020019190600101906200036a565b506200039592915062000399565b5090565b5b808211156200039557600081556001016200039a565b600082601f830112620003c1578081fd5b81516001600160401b0380821115620003de57620003de62000576565b604051601f8301601f19908116603f0116810190828211818310171562000409576200040962000576565b8160405283815260209250868385880101111562000425578485fd5b8491505b8382101562000448578582018301518183018401529082019062000429565b838211156200045957848385830101525b9695505050505050565b600080600080600080600080610100898b03121562000480578384fd5b88516200048d816200058c565b60208a0151909850620004a0816200058c565b60408a0151909750620004b3816200058c565b60608a015160808b015160a08c015192985090965094506001600160401b0380821115620004df578485fd5b620004ed8c838d01620003b0565b945060c08b015191508082111562000503578384fd5b50620005128b828c01620003b0565b92505060e0890151801515811462000528578182fd5b809150509295985092959890939650565b6002810460018216806200054e57607f821691505b602082108114156200057057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620005a257600080fd5b50565b6149e180620005b56000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c806389f4c0b1116101de578063b88d4fde1161010f578063d96a094a116100ad578063e985e9c51161007c578063e985e9c514610897578063ee1b59e4146108d3578063fa184c49146108db578063fbe85f06146108ee57610383565b8063d96a094a14610830578063dc16bd4314610843578063e4e2bfe414610856578063e75722301461086957610383565b8063cd53d08e116100e9578063cd53d08e146107cc578063d04c6983146107f5578063d539139314610808578063d547741f1461081d57610383565b8063b88d4fde14610793578063c87b56dd146107a6578063ca15c873146107b957610383565b8063a22cb4651161017c578063b13fbe9611610156578063b13fbe961461073d578063b14c63c51461074a578063b1cb48ef1461076d578063b2ecfad41461078057610383565b8063a22cb465146106f7578063a36b14621461070a578063aa271e1a1461072a57610383565b806395d89b41116101b857806395d89b41146106c1578063983b2d56146106c9578063a1448194146106dc578063a217fddf146106ef57610383565b806389f4c0b1146106885780639010d07c1461069b57806391d14854146106ae57610383565b8063384f58eb116102b8578063571a26a0116102565780636352211e116102305780636352211e1461063c57806370a082311461064f578063880cdc31146106625780638832e6e31461067557610383565b8063571a26a014610581578063598647f81461061657806361a09c971461062957610383565b806342842e0e1161029257806342842e0e1461051c57806342966c681461052f578063451df52e146105425780634f6ccce71461056e57610383565b8063384f58eb146104e35780633ca88a2f146104f657806340c10f191461050957610383565b806323b872dd116103255780632f2ff15d116102ff5780632f2ff15d146104975780632f745c59146104aa578063331c6587146104bd57806336568abe146104d057610383565b806323b872dd1461044e578063248a9ca3146104615780632e1a7d4d1461048457610383565b8063095ea7b311610361578063095ea7b3146103f0578063172b099d1461040557806318160ddd146104335780631ac70f6f1461043b57610383565b806301ffc9a71461038857806306fdde03146103b0578063081812fc146103c5575b600080fd5b61039b610396366004614447565b610901565b60405190151581526020015b60405180910390f35b6103b8610914565b6040516103a7919061469a565b6103d86103d33660046143ea565b6109a6565b6040516001600160a01b0390911681526020016103a7565b6104036103fe36600461434c565b610a33565b005b6104256104133660046143ea565b60176020526000908152604090205481565b6040519081526020016103a7565b600854610425565b61039b6104493660046143ea565b610b49565b61040361045c366004614275565b610b98565b61042561046f3660046143ea565b6000908152600b602052604090206001015490565b6104036104923660046143ea565b610bca565b6104036104a5366004614402565b610d79565b6104256104b836600461434c565b610d9b565b6012546103d8906001600160a01b031681565b6104036104de366004614402565b610e34565b6011546103d8906001600160a01b031681565b6104256105043660046143ea565b610e56565b61040361051736600461434c565b610edc565b61040361052a366004614275565b610f0c565b61040361053d3660046143ea565b610f27565b6103d86105503660046143ea565b6000908152601960205260409020600201546001600160a01b031690565b61042561057c3660046143ea565b610fa1565b6105d661058f3660046143ea565b6019602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0394851695939490921692909160ff9091169086565b604080516001600160a01b0397881681526020810196909652939095169284019290925260608301521515608082015260a081019190915260c0016103a7565b610403610624366004614426565b611042565b61040361063736600461447f565b6114ff565b6103d861064a3660046143ea565b611561565b61042561065d3660046141c3565b6115d8565b6104036106703660046141c3565b61165f565b610403610683366004614377565b61173b565b61039b6106963660046143ea565b61176c565b6103d86106a9366004614426565b6117fa565b61039b6106bc366004614402565b611819565b6103b8611844565b6104036106d73660046141c3565b611853565b6104036106ea36600461434c565b611889565b610425600081565b61040361070536600461431f565b6118b9565b6104256107183660046143ea565b60166020526000908152604090205481565b61039b6107383660046141c3565b61198b565b600e5461039b9060ff1681565b6104256107583660046143ea565b60009081526019602052604090206003015490565b61040361077b36600461450f565b6119a5565b61039b61078e3660046143ea565b611b78565b6104036107a13660046142b5565b611baf565b6103b86107b43660046143ea565b611be1565b6104256107c73660046143ea565b611bec565b6103d86107da3660046143ea565b6015602052600090815260409020546001600160a01b031681565b6104036108033660046144d7565b611c03565b61042560008051602061498c83398151915281565b61040361082b366004614402565b611d4d565b61040361083e3660046143ea565b611d57565b6104036108513660046143ea565b6122e6565b61039b6108643660046143ea565b61283b565b61087c6108773660046143ea565b6128b3565b604080519384526020840192909252908201526060016103a7565b61039b6108a536600461423d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61039b612932565b6104036108e93660046141df565b61294f565b61039b6108fc3660046143ea565b6129f6565b600061090c82612aaa565b90505b919050565b606060008054610923906148a6565b80601f016020809104026020016040519081016040528092919081815260200182805461094f906148a6565b801561099c5780601f106109715761010080835404028352916020019161099c565b820191906000526020600020905b81548152906001019060200180831161097f57829003601f168201915b5050505050905090565b60006109b182612acf565b610a175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a3e82611561565b9050806001600160a01b0316836001600160a01b03161415610aac5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a0e565b336001600160a01b0382161480610ac85750610ac881336108a5565b610b3a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0e565b610b448383612aec565b505050565b600033610b5583611561565b6001600160a01b0316148015610b7d575060008281526019602052604090206004015460ff16155b801561090c5750506000908152601760205260409020541590565b610ba3335b82612b5a565b610bbf5760405162461bcd60e51b8152600401610a0e90614779565b610b44838383612c44565b6002600f541415610bed5760405162461bcd60e51b8152600401610a0e906147ca565b6002600f55610bfb816129f6565b610c525760405162461bcd60e51b815260206004820152602260248201527f436f6e646974696f6e7320746f20776974686472617720617265206e6f74206d604482015261195d60f21b6064820152608401610a0e565b60008181526019602052604090206003015415610d2657601254600082815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b158015610cd257600080fd5b505af1158015610ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0a91906143ce565b610d265760405162461bcd60e51b8152600401610a0e9061474f565b600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b610d838282612def565b6000828152600c60205260409020610b449082612a95565b6000610da6836115d8565b8210610e085760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a0e565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b610e3e8282612e15565b6000828152600c60205260409020610b449082612e8f565b60008181526019602052604081206004015460ff16158015610e85575060008281526017602052604090205415155b8015610e9e575060008281526017602052604090205415155b8015610eba575030610eaf836109a6565b6001600160a01b0316145b15610ed4575060008181526017602052604090205461090f565b50600061090f565b6060610ee6612932565b610f025760405162461bcd60e51b8152600401610a0e906146ff565b610b448383612ea4565b610b4483838360405180602001604052806000815250611baf565b610f3033610b9d565b610f955760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a0e565b610f9e81612ecc565b50565b6000610fac60085490565b821061100f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a0e565b6008828154811061103057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6002600f5414156110655760405162461bcd60e51b8152600401610a0e906147ca565b6002600f55333b156110ad5760405162461bcd60e51b81526020600482015260116024820152704e6f20736372697074206b69646469657360781b6044820152606401610a0e565b60008281526019602052604090206004015460ff1661110e5760405162461bcd60e51b815260206004820152601760248201527f4e6f206f70656e65642061756374696f6e20666f756e640000000000000000006044820152606401610a0e565b30611118836109a6565b6001600160a01b03161461116e5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420636f6d706c657465207468652061756374696f6e00000000006044820152606401610a0e565b6000828152601960205260409020600101544211156111c85760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71030b63932b0b23c9032b73232b21760511b6044820152606401610a0e565b60008281526019602052604090206003015481116112285760405162461bcd60e51b815260206004820152601e60248201527f546865726520616c7265616479206973206120686967686572206269642e00006044820152606401610a0e565b600061123383611561565b9050336001600160a01b03821614156112ac5760405162461bcd60e51b815260206004820152603560248201527f4552433732315375696b613a20546865206f776e65722063616e6e6f742062696044820152746420686973206f776e20636f6c6c65637469626c6560581b6064820152608401610a0e565b600083815260196020526040902060030154156113df57601254600084815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b15801561132c57600080fd5b505af1158015611340573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136491906143ce565b6113805760405162461bcd60e51b8152600401610a0e9061474f565b600083815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d910160405180910390a15b6000838152601960205260409081902060020180546001600160a01b0319163390811790915560125491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916114379130908790600401614639565b602060405180830381600087803b15801561145157600080fd5b505af1158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906143ce565b6114a55760405162461bcd60e51b8152600401610a0e9061474f565b600083815260196020908152604091829020600301849055815184815290810185905233917fdafc4a123c6bb3b49dd38a0cba299808581a0126a37248a5f1102d5e5fa06337910160405180910390a250506001600f5550565b6060611509612932565b6115255760405162461bcd60e51b8152600401610a0e906146ff565b60005b611536600d80546001019055565b50600d5461154381612acf565b611528576115518382612ea4565b61155b8185612ed5565b50505050565b6000818152600260205260408120546001600160a01b03168061090c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a0e565b60006001600160a01b0382166116435760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a0e565b506001600160a01b031660009081526003602052604090205490565b6011546001600160a01b031633146116b95760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0e565b6116c4600082612f60565b6116dc60008051602061498c83398151915282612f60565b6011546117019060008051602061498c833981519152906001600160a01b0316611d4d565b601154611719906000906001600160a01b0316612f60565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6060611745612932565b6117615760405162461bcd60e51b8152600401610a0e906146ff565b61155b848484612f6a565b6000333b15801561178e575060008281526019602052604090206004015460ff165b80156117ab57506000828152601960205260409020600101544211155b80156117d157506117bb82611561565b6001600160a01b0316336001600160a01b031614155b80156117ed5750306117e2836109a6565b6001600160a01b0316145b15610ed45750600161090f565b6000828152600c602052604081206118129083612f9d565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610923906148a6565b60008051602061498c83398151915261186d81335b612fa9565b61188560008051602061498c83398151915283610d79565b5050565b6060611893612932565b6118af5760405162461bcd60e51b8152600401610a0e906146ff565b610b44838361300d565b6001600160a01b0382163314156119125760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0e565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161197f911515815260200190565b60405180910390a35050565b600061090c60008051602061498c83398151915283611819565b60008481526017602052604090205415611a335760405162461bcd60e51b815260206004820152604360248201527f4552433732315375696b613a205468652073656c6563746564204e465420697360448201527f206f70656e20666f722073616c652c2063616e6e6f742062652061756374696f6064820152621b995960ea1b608482015260a401610a0e565b60008481526019602052604090206004015460ff1615611ab25760405162461bcd60e51b815260206004820152603460248201527f4552433732315375696b613a205468652073656c6563746564204e465420616c6044820152733932b0b23c903430b99030b71030bab1ba34b7b760611b6064820152608401610a0e565b33611abc85611561565b6001600160a01b031614611b285760405162461bcd60e51b815260206004820152602d60248201527f4552433732315375696b613a204f6e6c79206f776e65722063616e206175637460448201526c696f6e2074686973206974656d60981b6064820152608401610a0e565b600084815260196020526040902080546001600160a01b0319166001600160a01b0384161781556001808201859055600582018390556004909101805460ff1916909117905561155b3085610a33565b600033611b8483611561565b6001600160a01b031614801561090c57505060009081526019602052604090206004015460ff161590565b611bb93383612b5a565b611bd55760405162461bcd60e51b8152600401610a0e90614779565b61155b84848484613027565b606061090c8261305a565b6000818152600c6020526040812061090c906131ca565b33611c0d84611561565b6001600160a01b031614611c765760405162461bcd60e51b815260206004820152602a60248201527f4552433732315375696b613a204f6e6c79206f776e65722063616e2073656c6c6044820152692074686973206974656d60b01b6064820152608401610a0e565b60008381526019602052604090206004015460ff1615611cfe5760405162461bcd60e51b815260206004820152603c60248201527f4552433732315375696b613a2043616e6e6f742073656c6c20616e206974656d60448201527f2077686963682068617320616e206163746976652061756374696f6e000000006064820152608401610a0e565b60008381526017602052604090208290558115610b4457611d1f3084610a33565b600083815260186020526040902080546001600160a01b0383166001600160a01b0319909116179055505050565b610e3e82826131d4565b6002600f541415611d7a5760405162461bcd60e51b8152600401610a0e906147ca565b6002600f5560008181526019602052604090206004015460ff16158015611dae575060008181526017602052604090205415155b611e0f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732315375696b613a2054686520636f6c6c65637469626c652069732060448201526b6e6f7420666f722073616c6560a01b6064820152608401610a0e565b6000611e1a82611561565b9050336001600160a01b0382161415611e945760405162461bcd60e51b815260206004820152603660248201527f4552433732315375696b613a205468652073656c6c65722063616e6e6f742062604482015275757920686973206f776e20636f6c6c65637469626c6560501b6064820152608401610a0e565b611eec306323b872dd60e01b833386604051602401611eb593929190614639565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526131fa565b6013546000838152601760205260408120549091611f1791606491611f119190613385565b90613391565b60145460008581526017602052604081205492935091611f3d91606491611f1191613385565b60008581526017602052604081205491925090611f66908390611f60908661339d565b9061339d565b601254600087815260186020526040908190205490516323b872dd60e01b81529293506001600160a01b03918216926323b872dd92611fae9233929116908690600401614639565b602060405180830381600087803b158015611fc857600080fd5b505af1158015611fdc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200091906143ce565b61201c5760405162461bcd60e51b8152600401610a0e9061474f565b81156120d657601254600086815260156020526040908190205490516323b872dd60e01b81526001600160a01b03928316926323b872dd92612068923392909116908790600401614639565b602060405180830381600087803b15801561208257600080fd5b505af1158015612096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ba91906143ce565b6120d65760405162461bcd60e51b8152600401610a0e9061474f565b8215612183576012546010546040516323b872dd60e01b81526001600160a01b03928316926323b872dd92612115923392909116908890600401614639565b602060405180830381600087803b15801561212f57600080fd5b505af1158015612143573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061216791906143ce565b6121835760405162461bcd60e51b8152600401610a0e9061474f565b336001600160a01b0316846001600160a01b0316867f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe601760008a8152602001908152602001600020546040516121dc91815260200190565b60405180910390a4600085815260176020908152604091829020546013548351918252918101919091529081018490526001600160a01b0385169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600085815260176020908152604091829020546014548351918252918101919091529081018390526001600160a01b0385169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a3505050600091825250601760209081526040808320805460168452828520558390556018909152902080546001600160a01b03191690556001600f55565b6002600f5414156123095760405162461bcd60e51b8152600401610a0e906147ca565b6002600f556123178161283b565b6123555760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f742066696e616c697a6560881b6044820152606401610a0e565b6000818152601960205260409020600301541561278a57600081815260196020526040812060028101546013546003909201546001600160a01b0390911692916123a691606491611f119190613385565b601454600085815260196020526040812060030154929350916123cf91606491611f1191613385565b600085815260196020526040812060030154919250906123f5908390611f60908661339d565b6012546000878152601960205260409081902054905163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b15801561245457600080fd5b505af1158015612468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248c91906143ce565b6124a85760405162461bcd60e51b8152600401610a0e9061474f565b811561255f576012546000868152601560205260409081902054905163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb90604401602060405180830381600087803b15801561250b57600080fd5b505af115801561251f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254391906143ce565b61255f5760405162461bcd60e51b8152600401610a0e9061474f565b82156126095760125460105460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb90604401602060405180830381600087803b1580156125b557600080fd5b505af11580156125c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ed91906143ce565b6126095760405162461bcd60e51b8152600401610a0e9061474f565b600085815260196020908152604091829020805460039091015492519283526001600160a01b038781169391169188917f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe910160405180910390a460008581526019602090815260409182902080546003909101546014548451918252928101929092529181018490526001600160a01b039091169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a360008581526019602090815260409182902080546003909101546013548451918252928101929092529181018590526001600160a01b039091169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600061274386611561565b9050612766306323b872dd60e01b83888a604051602401611eb593929190614639565b50505060008381526019602090815260408083206003015460169092529091205550505b600081815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fdaec4582d5d9595688c8c98545fdd1c696d41c6aeaeb636737e84ed2f5c00eda910160405180910390a1600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b60008181526019602052604081206004015460ff16801561286d57506000828152601960205260409020600101544210155b80156117ed5750600082815260196020526040902060058101546003909101541015806117ed5750600082815260196020526040902060030154610ed45750600161090f565b60008181526017602052604081205481908190156128e457505050600081815260176020526040812054908061292b565b60008481526019602052604090206003015415612916575050506000818152601960205260408120600301548161292b565b50505060008181526016602052604081205481905b9193909250565b600e5460009060ff168061294a575061294a3361198b565b905090565b6011546001600160a01b031633146129a95760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0e565b601080546001600160a01b039687166001600160a01b031991821617909155601394909455601492909255600e805491151560ff1990921691909117905560128054919093169116179055565b60008181526019602052604081206004015460ff1680156117ed57506000828152601960205260409020600101544210801590612a43575060008281526019602052604090206003015415155b8015612a65575060008281526019602052604090206005810154600390910154105b806117ed575030612a75836109a6565b6001600160a01b031614610ed45750600161090f565b61188582826133a9565b6000611812836001600160a01b03841661342f565b60006001600160e01b03198216635a05180f60e01b148061090c575061090c8261347e565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b2182611561565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b6582612acf565b612bc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a0e565b6000612bd183611561565b9050806001600160a01b0316846001600160a01b03161480612c0c5750836001600160a01b0316612c01846109a6565b6001600160a01b0316145b80612c3c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c5782611561565b6001600160a01b031614612cbf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a0e565b6001600160a01b038216612d215760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a0e565b612d2c8383836134a3565b612d37600082612aec565b6001600160a01b0383166000908152600360205260408120805460019290612d6090849061484c565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d8e908490614801565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612e0b8133611868565b610b4483836133a9565b6001600160a01b0381163314612e855760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a0e565b61188582826134ae565b6000611812836001600160a01b038416613515565b600081815260156020526040902080546001600160a01b031916331790556118858282613632565b610f9e81613771565b612ede82612acf565b612f415760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a0e565b6000828152600a602090815260409091208251610b449284019061405d565b610d838282612a8b565b612f748383612ea4565b612f8160008484846137b1565b610b445760405162461bcd60e51b8152600401610a0e906146ad565b600061181283836138be565b612fb38282611819565b61188557612fcb816001600160a01b031660146138f6565b612fd68360206138f6565b604051602001612fe79291906145c4565b60408051601f198184030181529082905262461bcd60e51b8252610a0e9160040161469a565b611885828260405180602001604052806000815250612f6a565b613032848484612c44565b61303e848484846137b1565b61155b5760405162461bcd60e51b8152600401610a0e906146ad565b606061306582612acf565b6130cb5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a0e565b6000828152600a6020526040812080546130e4906148a6565b80601f0160208091040260200160405190810160405280929190818152602001828054613110906148a6565b801561315d5780601f106131325761010080835404028352916020019161315d565b820191906000526020600020905b81548152906001019060200180831161314057829003601f168201915b50505050509050600061317b60408051602081019091526000815290565b905080516000141561318f5750905061090f565b8151156131c15780826040516020016131a9929190614595565b6040516020818303038152906040529250505061090f565b612c3c84613ad8565b600061090c825490565b6000828152600b60205260409020600101546131f08133611868565b610b4483836134ae565b6001600160a01b0382163b6132515760405162461bcd60e51b815260206004820181905260248201527f536166654552433732313a2063616c6c20746f206e6f6e2d636f6e74726163746044820152606401610a0e565b600080836001600160a01b03168360405161326c9190614579565b6000604051808303816000865af19150503d80600081146132a9576040519150601f19603f3d011682016040523d82523d6000602084013e6132ae565b606091505b50915091508161330a5760405162461bcd60e51b815260206004820152602160248201527f536166654552433732313a206c6f772d6c6576656c2063616c6c206661696c656044820152601960fa1b6064820152608401610a0e565b80511561155b578080602001905181019061332591906143ce565b61155b5760405162461bcd60e51b815260206004820152602b60248201527f536166654552433732313a204552433230206f7065726174696f6e206469642060448201526a1b9bdd081cdd58d8d9595960aa1b6064820152608401610a0e565b6000611812828461482d565b60006118128284614819565b6000611812828461484c565b6133b38282611819565b611885576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461347657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e2e565b506000610e2e565b60006001600160e01b03198216637965db0b60e01b148061090c575061090c82613baf565b610b44838383613bd4565b6134b88282611819565b15611885576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561362857600061353960018361484c565b855490915060009061354d9060019061484c565b90508181146135ce57600086600001828154811061357b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106135ac57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135ed57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e2e565b6000915050610e2e565b6001600160a01b0382166136885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0e565b61369181612acf565b156136de5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0e565b6136ea600083836134a3565b6001600160a01b0382166000908152600360205260408120805460019290613713908490614801565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61377a81613c91565b6000818152600a602052604090208054613793906148a6565b159050610f9e576000818152600a60205260408120610f9e916140e1565b60006001600160a01b0384163b156138b357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137f590339089908890889060040161465d565b602060405180830381600087803b15801561380f57600080fd5b505af192505050801561383f575060408051601f3d908101601f1916820190925261383c91810190614463565b60015b613899573d80801561386d576040519150601f19603f3d011682016040523d82523d6000602084013e613872565b606091505b5080516138915760405162461bcd60e51b8152600401610a0e906146ad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c3c565b506001949350505050565b60008260000182815481106138e357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6060600061390583600261482d565b613910906002614801565b67ffffffffffffffff81111561393657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613960576020820181803683370190505b509050600360fc1b8160008151811061398957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106139c657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006139ea84600261482d565b6139f5906001614801565b90505b6001811115613a89576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613a3757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613a5b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613a828161488f565b90506139f8565b5083156118125760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a0e565b6060613ae382612acf565b613b475760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a0e565b6000613b5e60408051602081019091526000815290565b90506000815111613b7e5760405180602001604052806000815250611812565b80613b8884613d38565b604051602001613b99929190614595565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b148061090c575061090c82613e53565b6001600160a01b038316613c2f57613c2a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613c52565b816001600160a01b0316836001600160a01b031614613c5257613c528382613ea3565b6001600160a01b038216613c6e57613c6981613f40565b610b44565b826001600160a01b0316826001600160a01b031614610b4457610b448282614019565b6000613c9c82611561565b9050613caa816000846134a3565b613cb5600083612aec565b6001600160a01b0381166000908152600360205260408120805460019290613cde90849061484c565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613d5d57506040805180820190915260018152600360fc1b602082015261090f565b8160005b8115613d875780613d71816148e1565b9150613d809050600a83614819565b9150613d61565b60008167ffffffffffffffff811115613db057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613dda576020820181803683370190505b5090505b8415612c3c57613def60018361484c565b9150613dfc600a866148fc565b613e07906030614801565b60f81b818381518110613e2a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613e4c600a86614819565b9450613dde565b60006001600160e01b031982166380ac58cd60e01b1480613e8457506001600160e01b03198216635b5e139f60e01b145b8061090c57506301ffc9a760e01b6001600160e01b031983161461090c565b60006001613eb0846115d8565b613eba919061484c565b600083815260076020526040902054909150808214613f0d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613f529060019061484c565b60008381526009602052604081205460088054939450909284908110613f8857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613fb757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ffd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614024836115d8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614069906148a6565b90600052602060002090601f01602090048101928261408b57600085556140d1565b82601f106140a457805160ff19168380011785556140d1565b828001600101855582156140d1579182015b828111156140d15782518255916020019190600101906140b6565b506140dd929150614119565b5090565b5080546140ed906148a6565b6000825580601f106140ff5750610f9e565b601f016020900490600052602060002090810190610f9e91905b5b808211156140dd576000815560010161411a565b600067ffffffffffffffff808411156141495761414961493c565b604051601f8501601f19908116603f011681019082821181831017156141715761417161493c565b8160405280935085815286868601111561418a57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126141b4578081fd5b6118128383356020850161412e565b6000602082840312156141d4578081fd5b813561181281614952565b600080600080600060a086880312156141f6578081fd5b853561420181614952565b94506020860135935060408601359250606086013561421f81614967565b9150608086013561422f81614952565b809150509295509295909350565b6000806040838503121561424f578182fd5b823561425a81614952565b9150602083013561426a81614952565b809150509250929050565b600080600060608486031215614289578283fd5b833561429481614952565b925060208401356142a481614952565b929592945050506040919091013590565b600080600080608085870312156142ca578384fd5b84356142d581614952565b935060208501356142e581614952565b925060408501359150606085013567ffffffffffffffff811115614307578182fd5b614313878288016141a4565b91505092959194509250565b60008060408385031215614331578182fd5b823561433c81614952565b9150602083013561426a81614967565b6000806040838503121561435e578182fd5b823561436981614952565b946020939093013593505050565b60008060006060848603121561438b578283fd5b833561439681614952565b925060208401359150604084013567ffffffffffffffff8111156143b8578182fd5b6143c4868287016141a4565b9150509250925092565b6000602082840312156143df578081fd5b815161181281614967565b6000602082840312156143fb578081fd5b5035919050565b60008060408385031215614414578182fd5b82359150602083013561426a81614952565b60008060408385031215614438578182fd5b50508035926020909101359150565b600060208284031215614458578081fd5b813561181281614975565b600060208284031215614474578081fd5b815161181281614975565b60008060408385031215614491578182fd5b823567ffffffffffffffff8111156144a7578283fd5b8301601f810185136144b7578283fd5b6144c68582356020840161412e565b925050602083013561426a81614952565b6000806000606084860312156144eb578081fd5b8335925060208401359150604084013561450481614952565b809150509250925092565b60008060008060808587031215614524578182fd5b8435935060208501359250604085013561453d81614952565b9396929550929360600135925050565b60008151808452614565816020860160208601614863565b601f01601f19169290920160200192915050565b6000825161458b818460208701614863565b9190910192915050565b600083516145a7818460208801614863565b8351908301906145bb818360208801614863565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516145fc816017850160208801614863565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161462d816028840160208801614863565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906146909083018461454d565b9695505050505050565b600060208252611812602083018461454d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561481457614814614910565b500190565b60008261482857614828614926565b500490565b600081600019048311821515161561484757614847614910565b500290565b60008282101561485e5761485e614910565b500390565b60005b8381101561487e578181015183820152602001614866565b8381111561155b5750506000910152565b60008161489e5761489e614910565b506000190190565b6002810460018216806148ba57607f821691505b602082108114156148db57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148f5576148f5614910565b5060010190565b60008261490b5761490b614926565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f9e57600080fd5b8015158114610f9e57600080fd5b6001600160e01b031981168114610f9e57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a264697066735822122001dbc355acd7f27d5b94710529e93d205125609036854e62678a001b07b5dc8764736f6c6343000802003300000000000000000000000065f9a292f1aeed5d755aa2fd2fb17ab2e9431447000000000000000000000000df0d65cece2eb2d50d2242fa86ee8fb4e7136fa4000000000000000000000000f72cd6d56d07968d780633728d08f29f1599aa33000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000015536f4d6565204e465420436f6c6c65637469626c6500000000000000000000000000000000000000000000000000000000000000000000000000000000000003534e430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c806389f4c0b1116101de578063b88d4fde1161010f578063d96a094a116100ad578063e985e9c51161007c578063e985e9c514610897578063ee1b59e4146108d3578063fa184c49146108db578063fbe85f06146108ee57610383565b8063d96a094a14610830578063dc16bd4314610843578063e4e2bfe414610856578063e75722301461086957610383565b8063cd53d08e116100e9578063cd53d08e146107cc578063d04c6983146107f5578063d539139314610808578063d547741f1461081d57610383565b8063b88d4fde14610793578063c87b56dd146107a6578063ca15c873146107b957610383565b8063a22cb4651161017c578063b13fbe9611610156578063b13fbe961461073d578063b14c63c51461074a578063b1cb48ef1461076d578063b2ecfad41461078057610383565b8063a22cb465146106f7578063a36b14621461070a578063aa271e1a1461072a57610383565b806395d89b41116101b857806395d89b41146106c1578063983b2d56146106c9578063a1448194146106dc578063a217fddf146106ef57610383565b806389f4c0b1146106885780639010d07c1461069b57806391d14854146106ae57610383565b8063384f58eb116102b8578063571a26a0116102565780636352211e116102305780636352211e1461063c57806370a082311461064f578063880cdc31146106625780638832e6e31461067557610383565b8063571a26a014610581578063598647f81461061657806361a09c971461062957610383565b806342842e0e1161029257806342842e0e1461051c57806342966c681461052f578063451df52e146105425780634f6ccce71461056e57610383565b8063384f58eb146104e35780633ca88a2f146104f657806340c10f191461050957610383565b806323b872dd116103255780632f2ff15d116102ff5780632f2ff15d146104975780632f745c59146104aa578063331c6587146104bd57806336568abe146104d057610383565b806323b872dd1461044e578063248a9ca3146104615780632e1a7d4d1461048457610383565b8063095ea7b311610361578063095ea7b3146103f0578063172b099d1461040557806318160ddd146104335780631ac70f6f1461043b57610383565b806301ffc9a71461038857806306fdde03146103b0578063081812fc146103c5575b600080fd5b61039b610396366004614447565b610901565b60405190151581526020015b60405180910390f35b6103b8610914565b6040516103a7919061469a565b6103d86103d33660046143ea565b6109a6565b6040516001600160a01b0390911681526020016103a7565b6104036103fe36600461434c565b610a33565b005b6104256104133660046143ea565b60176020526000908152604090205481565b6040519081526020016103a7565b600854610425565b61039b6104493660046143ea565b610b49565b61040361045c366004614275565b610b98565b61042561046f3660046143ea565b6000908152600b602052604090206001015490565b6104036104923660046143ea565b610bca565b6104036104a5366004614402565b610d79565b6104256104b836600461434c565b610d9b565b6012546103d8906001600160a01b031681565b6104036104de366004614402565b610e34565b6011546103d8906001600160a01b031681565b6104256105043660046143ea565b610e56565b61040361051736600461434c565b610edc565b61040361052a366004614275565b610f0c565b61040361053d3660046143ea565b610f27565b6103d86105503660046143ea565b6000908152601960205260409020600201546001600160a01b031690565b61042561057c3660046143ea565b610fa1565b6105d661058f3660046143ea565b6019602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0394851695939490921692909160ff9091169086565b604080516001600160a01b0397881681526020810196909652939095169284019290925260608301521515608082015260a081019190915260c0016103a7565b610403610624366004614426565b611042565b61040361063736600461447f565b6114ff565b6103d861064a3660046143ea565b611561565b61042561065d3660046141c3565b6115d8565b6104036106703660046141c3565b61165f565b610403610683366004614377565b61173b565b61039b6106963660046143ea565b61176c565b6103d86106a9366004614426565b6117fa565b61039b6106bc366004614402565b611819565b6103b8611844565b6104036106d73660046141c3565b611853565b6104036106ea36600461434c565b611889565b610425600081565b61040361070536600461431f565b6118b9565b6104256107183660046143ea565b60166020526000908152604090205481565b61039b6107383660046141c3565b61198b565b600e5461039b9060ff1681565b6104256107583660046143ea565b60009081526019602052604090206003015490565b61040361077b36600461450f565b6119a5565b61039b61078e3660046143ea565b611b78565b6104036107a13660046142b5565b611baf565b6103b86107b43660046143ea565b611be1565b6104256107c73660046143ea565b611bec565b6103d86107da3660046143ea565b6015602052600090815260409020546001600160a01b031681565b6104036108033660046144d7565b611c03565b61042560008051602061498c83398151915281565b61040361082b366004614402565b611d4d565b61040361083e3660046143ea565b611d57565b6104036108513660046143ea565b6122e6565b61039b6108643660046143ea565b61283b565b61087c6108773660046143ea565b6128b3565b604080519384526020840192909252908201526060016103a7565b61039b6108a536600461423d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61039b612932565b6104036108e93660046141df565b61294f565b61039b6108fc3660046143ea565b6129f6565b600061090c82612aaa565b90505b919050565b606060008054610923906148a6565b80601f016020809104026020016040519081016040528092919081815260200182805461094f906148a6565b801561099c5780601f106109715761010080835404028352916020019161099c565b820191906000526020600020905b81548152906001019060200180831161097f57829003601f168201915b5050505050905090565b60006109b182612acf565b610a175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a3e82611561565b9050806001600160a01b0316836001600160a01b03161415610aac5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a0e565b336001600160a01b0382161480610ac85750610ac881336108a5565b610b3a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0e565b610b448383612aec565b505050565b600033610b5583611561565b6001600160a01b0316148015610b7d575060008281526019602052604090206004015460ff16155b801561090c5750506000908152601760205260409020541590565b610ba3335b82612b5a565b610bbf5760405162461bcd60e51b8152600401610a0e90614779565b610b44838383612c44565b6002600f541415610bed5760405162461bcd60e51b8152600401610a0e906147ca565b6002600f55610bfb816129f6565b610c525760405162461bcd60e51b815260206004820152602260248201527f436f6e646974696f6e7320746f20776974686472617720617265206e6f74206d604482015261195d60f21b6064820152608401610a0e565b60008181526019602052604090206003015415610d2657601254600082815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b158015610cd257600080fd5b505af1158015610ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0a91906143ce565b610d265760405162461bcd60e51b8152600401610a0e9061474f565b600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b610d838282612def565b6000828152600c60205260409020610b449082612a95565b6000610da6836115d8565b8210610e085760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a0e565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b610e3e8282612e15565b6000828152600c60205260409020610b449082612e8f565b60008181526019602052604081206004015460ff16158015610e85575060008281526017602052604090205415155b8015610e9e575060008281526017602052604090205415155b8015610eba575030610eaf836109a6565b6001600160a01b0316145b15610ed4575060008181526017602052604090205461090f565b50600061090f565b6060610ee6612932565b610f025760405162461bcd60e51b8152600401610a0e906146ff565b610b448383612ea4565b610b4483838360405180602001604052806000815250611baf565b610f3033610b9d565b610f955760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a0e565b610f9e81612ecc565b50565b6000610fac60085490565b821061100f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a0e565b6008828154811061103057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6002600f5414156110655760405162461bcd60e51b8152600401610a0e906147ca565b6002600f55333b156110ad5760405162461bcd60e51b81526020600482015260116024820152704e6f20736372697074206b69646469657360781b6044820152606401610a0e565b60008281526019602052604090206004015460ff1661110e5760405162461bcd60e51b815260206004820152601760248201527f4e6f206f70656e65642061756374696f6e20666f756e640000000000000000006044820152606401610a0e565b30611118836109a6565b6001600160a01b03161461116e5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420636f6d706c657465207468652061756374696f6e00000000006044820152606401610a0e565b6000828152601960205260409020600101544211156111c85760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71030b63932b0b23c9032b73232b21760511b6044820152606401610a0e565b60008281526019602052604090206003015481116112285760405162461bcd60e51b815260206004820152601e60248201527f546865726520616c7265616479206973206120686967686572206269642e00006044820152606401610a0e565b600061123383611561565b9050336001600160a01b03821614156112ac5760405162461bcd60e51b815260206004820152603560248201527f4552433732315375696b613a20546865206f776e65722063616e6e6f742062696044820152746420686973206f776e20636f6c6c65637469626c6560581b6064820152608401610a0e565b600083815260196020526040902060030154156113df57601254600084815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b15801561132c57600080fd5b505af1158015611340573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136491906143ce565b6113805760405162461bcd60e51b8152600401610a0e9061474f565b600083815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d910160405180910390a15b6000838152601960205260409081902060020180546001600160a01b0319163390811790915560125491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916114379130908790600401614639565b602060405180830381600087803b15801561145157600080fd5b505af1158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906143ce565b6114a55760405162461bcd60e51b8152600401610a0e9061474f565b600083815260196020908152604091829020600301849055815184815290810185905233917fdafc4a123c6bb3b49dd38a0cba299808581a0126a37248a5f1102d5e5fa06337910160405180910390a250506001600f5550565b6060611509612932565b6115255760405162461bcd60e51b8152600401610a0e906146ff565b60005b611536600d80546001019055565b50600d5461154381612acf565b611528576115518382612ea4565b61155b8185612ed5565b50505050565b6000818152600260205260408120546001600160a01b03168061090c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a0e565b60006001600160a01b0382166116435760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a0e565b506001600160a01b031660009081526003602052604090205490565b6011546001600160a01b031633146116b95760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0e565b6116c4600082612f60565b6116dc60008051602061498c83398151915282612f60565b6011546117019060008051602061498c833981519152906001600160a01b0316611d4d565b601154611719906000906001600160a01b0316612f60565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6060611745612932565b6117615760405162461bcd60e51b8152600401610a0e906146ff565b61155b848484612f6a565b6000333b15801561178e575060008281526019602052604090206004015460ff165b80156117ab57506000828152601960205260409020600101544211155b80156117d157506117bb82611561565b6001600160a01b0316336001600160a01b031614155b80156117ed5750306117e2836109a6565b6001600160a01b0316145b15610ed45750600161090f565b6000828152600c602052604081206118129083612f9d565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610923906148a6565b60008051602061498c83398151915261186d81335b612fa9565b61188560008051602061498c83398151915283610d79565b5050565b6060611893612932565b6118af5760405162461bcd60e51b8152600401610a0e906146ff565b610b44838361300d565b6001600160a01b0382163314156119125760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0e565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161197f911515815260200190565b60405180910390a35050565b600061090c60008051602061498c83398151915283611819565b60008481526017602052604090205415611a335760405162461bcd60e51b815260206004820152604360248201527f4552433732315375696b613a205468652073656c6563746564204e465420697360448201527f206f70656e20666f722073616c652c2063616e6e6f742062652061756374696f6064820152621b995960ea1b608482015260a401610a0e565b60008481526019602052604090206004015460ff1615611ab25760405162461bcd60e51b815260206004820152603460248201527f4552433732315375696b613a205468652073656c6563746564204e465420616c6044820152733932b0b23c903430b99030b71030bab1ba34b7b760611b6064820152608401610a0e565b33611abc85611561565b6001600160a01b031614611b285760405162461bcd60e51b815260206004820152602d60248201527f4552433732315375696b613a204f6e6c79206f776e65722063616e206175637460448201526c696f6e2074686973206974656d60981b6064820152608401610a0e565b600084815260196020526040902080546001600160a01b0319166001600160a01b0384161781556001808201859055600582018390556004909101805460ff1916909117905561155b3085610a33565b600033611b8483611561565b6001600160a01b031614801561090c57505060009081526019602052604090206004015460ff161590565b611bb93383612b5a565b611bd55760405162461bcd60e51b8152600401610a0e90614779565b61155b84848484613027565b606061090c8261305a565b6000818152600c6020526040812061090c906131ca565b33611c0d84611561565b6001600160a01b031614611c765760405162461bcd60e51b815260206004820152602a60248201527f4552433732315375696b613a204f6e6c79206f776e65722063616e2073656c6c6044820152692074686973206974656d60b01b6064820152608401610a0e565b60008381526019602052604090206004015460ff1615611cfe5760405162461bcd60e51b815260206004820152603c60248201527f4552433732315375696b613a2043616e6e6f742073656c6c20616e206974656d60448201527f2077686963682068617320616e206163746976652061756374696f6e000000006064820152608401610a0e565b60008381526017602052604090208290558115610b4457611d1f3084610a33565b600083815260186020526040902080546001600160a01b0383166001600160a01b0319909116179055505050565b610e3e82826131d4565b6002600f541415611d7a5760405162461bcd60e51b8152600401610a0e906147ca565b6002600f5560008181526019602052604090206004015460ff16158015611dae575060008181526017602052604090205415155b611e0f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732315375696b613a2054686520636f6c6c65637469626c652069732060448201526b6e6f7420666f722073616c6560a01b6064820152608401610a0e565b6000611e1a82611561565b9050336001600160a01b0382161415611e945760405162461bcd60e51b815260206004820152603660248201527f4552433732315375696b613a205468652073656c6c65722063616e6e6f742062604482015275757920686973206f776e20636f6c6c65637469626c6560501b6064820152608401610a0e565b611eec306323b872dd60e01b833386604051602401611eb593929190614639565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526131fa565b6013546000838152601760205260408120549091611f1791606491611f119190613385565b90613391565b60145460008581526017602052604081205492935091611f3d91606491611f1191613385565b60008581526017602052604081205491925090611f66908390611f60908661339d565b9061339d565b601254600087815260186020526040908190205490516323b872dd60e01b81529293506001600160a01b03918216926323b872dd92611fae9233929116908690600401614639565b602060405180830381600087803b158015611fc857600080fd5b505af1158015611fdc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200091906143ce565b61201c5760405162461bcd60e51b8152600401610a0e9061474f565b81156120d657601254600086815260156020526040908190205490516323b872dd60e01b81526001600160a01b03928316926323b872dd92612068923392909116908790600401614639565b602060405180830381600087803b15801561208257600080fd5b505af1158015612096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ba91906143ce565b6120d65760405162461bcd60e51b8152600401610a0e9061474f565b8215612183576012546010546040516323b872dd60e01b81526001600160a01b03928316926323b872dd92612115923392909116908890600401614639565b602060405180830381600087803b15801561212f57600080fd5b505af1158015612143573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061216791906143ce565b6121835760405162461bcd60e51b8152600401610a0e9061474f565b336001600160a01b0316846001600160a01b0316867f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe601760008a8152602001908152602001600020546040516121dc91815260200190565b60405180910390a4600085815260176020908152604091829020546013548351918252918101919091529081018490526001600160a01b0385169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600085815260176020908152604091829020546014548351918252918101919091529081018390526001600160a01b0385169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a3505050600091825250601760209081526040808320805460168452828520558390556018909152902080546001600160a01b03191690556001600f55565b6002600f5414156123095760405162461bcd60e51b8152600401610a0e906147ca565b6002600f556123178161283b565b6123555760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f742066696e616c697a6560881b6044820152606401610a0e565b6000818152601960205260409020600301541561278a57600081815260196020526040812060028101546013546003909201546001600160a01b0390911692916123a691606491611f119190613385565b601454600085815260196020526040812060030154929350916123cf91606491611f1191613385565b600085815260196020526040812060030154919250906123f5908390611f60908661339d565b6012546000878152601960205260409081902054905163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b15801561245457600080fd5b505af1158015612468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248c91906143ce565b6124a85760405162461bcd60e51b8152600401610a0e9061474f565b811561255f576012546000868152601560205260409081902054905163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb90604401602060405180830381600087803b15801561250b57600080fd5b505af115801561251f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254391906143ce565b61255f5760405162461bcd60e51b8152600401610a0e9061474f565b82156126095760125460105460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb90604401602060405180830381600087803b1580156125b557600080fd5b505af11580156125c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ed91906143ce565b6126095760405162461bcd60e51b8152600401610a0e9061474f565b600085815260196020908152604091829020805460039091015492519283526001600160a01b038781169391169188917f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe910160405180910390a460008581526019602090815260409182902080546003909101546014548451918252928101929092529181018490526001600160a01b039091169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a360008581526019602090815260409182902080546003909101546013548451918252928101929092529181018590526001600160a01b039091169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600061274386611561565b9050612766306323b872dd60e01b83888a604051602401611eb593929190614639565b50505060008381526019602090815260408083206003015460169092529091205550505b600081815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fdaec4582d5d9595688c8c98545fdd1c696d41c6aeaeb636737e84ed2f5c00eda910160405180910390a1600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b60008181526019602052604081206004015460ff16801561286d57506000828152601960205260409020600101544210155b80156117ed5750600082815260196020526040902060058101546003909101541015806117ed5750600082815260196020526040902060030154610ed45750600161090f565b60008181526017602052604081205481908190156128e457505050600081815260176020526040812054908061292b565b60008481526019602052604090206003015415612916575050506000818152601960205260408120600301548161292b565b50505060008181526016602052604081205481905b9193909250565b600e5460009060ff168061294a575061294a3361198b565b905090565b6011546001600160a01b031633146129a95760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0e565b601080546001600160a01b039687166001600160a01b031991821617909155601394909455601492909255600e805491151560ff1990921691909117905560128054919093169116179055565b60008181526019602052604081206004015460ff1680156117ed57506000828152601960205260409020600101544210801590612a43575060008281526019602052604090206003015415155b8015612a65575060008281526019602052604090206005810154600390910154105b806117ed575030612a75836109a6565b6001600160a01b031614610ed45750600161090f565b61188582826133a9565b6000611812836001600160a01b03841661342f565b60006001600160e01b03198216635a05180f60e01b148061090c575061090c8261347e565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b2182611561565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b6582612acf565b612bc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a0e565b6000612bd183611561565b9050806001600160a01b0316846001600160a01b03161480612c0c5750836001600160a01b0316612c01846109a6565b6001600160a01b0316145b80612c3c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c5782611561565b6001600160a01b031614612cbf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a0e565b6001600160a01b038216612d215760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a0e565b612d2c8383836134a3565b612d37600082612aec565b6001600160a01b0383166000908152600360205260408120805460019290612d6090849061484c565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d8e908490614801565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612e0b8133611868565b610b4483836133a9565b6001600160a01b0381163314612e855760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a0e565b61188582826134ae565b6000611812836001600160a01b038416613515565b600081815260156020526040902080546001600160a01b031916331790556118858282613632565b610f9e81613771565b612ede82612acf565b612f415760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a0e565b6000828152600a602090815260409091208251610b449284019061405d565b610d838282612a8b565b612f748383612ea4565b612f8160008484846137b1565b610b445760405162461bcd60e51b8152600401610a0e906146ad565b600061181283836138be565b612fb38282611819565b61188557612fcb816001600160a01b031660146138f6565b612fd68360206138f6565b604051602001612fe79291906145c4565b60408051601f198184030181529082905262461bcd60e51b8252610a0e9160040161469a565b611885828260405180602001604052806000815250612f6a565b613032848484612c44565b61303e848484846137b1565b61155b5760405162461bcd60e51b8152600401610a0e906146ad565b606061306582612acf565b6130cb5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a0e565b6000828152600a6020526040812080546130e4906148a6565b80601f0160208091040260200160405190810160405280929190818152602001828054613110906148a6565b801561315d5780601f106131325761010080835404028352916020019161315d565b820191906000526020600020905b81548152906001019060200180831161314057829003601f168201915b50505050509050600061317b60408051602081019091526000815290565b905080516000141561318f5750905061090f565b8151156131c15780826040516020016131a9929190614595565b6040516020818303038152906040529250505061090f565b612c3c84613ad8565b600061090c825490565b6000828152600b60205260409020600101546131f08133611868565b610b4483836134ae565b6001600160a01b0382163b6132515760405162461bcd60e51b815260206004820181905260248201527f536166654552433732313a2063616c6c20746f206e6f6e2d636f6e74726163746044820152606401610a0e565b600080836001600160a01b03168360405161326c9190614579565b6000604051808303816000865af19150503d80600081146132a9576040519150601f19603f3d011682016040523d82523d6000602084013e6132ae565b606091505b50915091508161330a5760405162461bcd60e51b815260206004820152602160248201527f536166654552433732313a206c6f772d6c6576656c2063616c6c206661696c656044820152601960fa1b6064820152608401610a0e565b80511561155b578080602001905181019061332591906143ce565b61155b5760405162461bcd60e51b815260206004820152602b60248201527f536166654552433732313a204552433230206f7065726174696f6e206469642060448201526a1b9bdd081cdd58d8d9595960aa1b6064820152608401610a0e565b6000611812828461482d565b60006118128284614819565b6000611812828461484c565b6133b38282611819565b611885576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461347657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e2e565b506000610e2e565b60006001600160e01b03198216637965db0b60e01b148061090c575061090c82613baf565b610b44838383613bd4565b6134b88282611819565b15611885576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561362857600061353960018361484c565b855490915060009061354d9060019061484c565b90508181146135ce57600086600001828154811061357b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106135ac57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135ed57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e2e565b6000915050610e2e565b6001600160a01b0382166136885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0e565b61369181612acf565b156136de5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0e565b6136ea600083836134a3565b6001600160a01b0382166000908152600360205260408120805460019290613713908490614801565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61377a81613c91565b6000818152600a602052604090208054613793906148a6565b159050610f9e576000818152600a60205260408120610f9e916140e1565b60006001600160a01b0384163b156138b357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137f590339089908890889060040161465d565b602060405180830381600087803b15801561380f57600080fd5b505af192505050801561383f575060408051601f3d908101601f1916820190925261383c91810190614463565b60015b613899573d80801561386d576040519150601f19603f3d011682016040523d82523d6000602084013e613872565b606091505b5080516138915760405162461bcd60e51b8152600401610a0e906146ad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c3c565b506001949350505050565b60008260000182815481106138e357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6060600061390583600261482d565b613910906002614801565b67ffffffffffffffff81111561393657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613960576020820181803683370190505b509050600360fc1b8160008151811061398957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106139c657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006139ea84600261482d565b6139f5906001614801565b90505b6001811115613a89576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613a3757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613a5b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613a828161488f565b90506139f8565b5083156118125760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a0e565b6060613ae382612acf565b613b475760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a0e565b6000613b5e60408051602081019091526000815290565b90506000815111613b7e5760405180602001604052806000815250611812565b80613b8884613d38565b604051602001613b99929190614595565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b148061090c575061090c82613e53565b6001600160a01b038316613c2f57613c2a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613c52565b816001600160a01b0316836001600160a01b031614613c5257613c528382613ea3565b6001600160a01b038216613c6e57613c6981613f40565b610b44565b826001600160a01b0316826001600160a01b031614610b4457610b448282614019565b6000613c9c82611561565b9050613caa816000846134a3565b613cb5600083612aec565b6001600160a01b0381166000908152600360205260408120805460019290613cde90849061484c565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613d5d57506040805180820190915260018152600360fc1b602082015261090f565b8160005b8115613d875780613d71816148e1565b9150613d809050600a83614819565b9150613d61565b60008167ffffffffffffffff811115613db057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613dda576020820181803683370190505b5090505b8415612c3c57613def60018361484c565b9150613dfc600a866148fc565b613e07906030614801565b60f81b818381518110613e2a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613e4c600a86614819565b9450613dde565b60006001600160e01b031982166380ac58cd60e01b1480613e8457506001600160e01b03198216635b5e139f60e01b145b8061090c57506301ffc9a760e01b6001600160e01b031983161461090c565b60006001613eb0846115d8565b613eba919061484c565b600083815260076020526040902054909150808214613f0d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613f529060019061484c565b60008381526009602052604081205460088054939450909284908110613f8857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613fb757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ffd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614024836115d8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614069906148a6565b90600052602060002090601f01602090048101928261408b57600085556140d1565b82601f106140a457805160ff19168380011785556140d1565b828001600101855582156140d1579182015b828111156140d15782518255916020019190600101906140b6565b506140dd929150614119565b5090565b5080546140ed906148a6565b6000825580601f106140ff5750610f9e565b601f016020900490600052602060002090810190610f9e91905b5b808211156140dd576000815560010161411a565b600067ffffffffffffffff808411156141495761414961493c565b604051601f8501601f19908116603f011681019082821181831017156141715761417161493c565b8160405280935085815286868601111561418a57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126141b4578081fd5b6118128383356020850161412e565b6000602082840312156141d4578081fd5b813561181281614952565b600080600080600060a086880312156141f6578081fd5b853561420181614952565b94506020860135935060408601359250606086013561421f81614967565b9150608086013561422f81614952565b809150509295509295909350565b6000806040838503121561424f578182fd5b823561425a81614952565b9150602083013561426a81614952565b809150509250929050565b600080600060608486031215614289578283fd5b833561429481614952565b925060208401356142a481614952565b929592945050506040919091013590565b600080600080608085870312156142ca578384fd5b84356142d581614952565b935060208501356142e581614952565b925060408501359150606085013567ffffffffffffffff811115614307578182fd5b614313878288016141a4565b91505092959194509250565b60008060408385031215614331578182fd5b823561433c81614952565b9150602083013561426a81614967565b6000806040838503121561435e578182fd5b823561436981614952565b946020939093013593505050565b60008060006060848603121561438b578283fd5b833561439681614952565b925060208401359150604084013567ffffffffffffffff8111156143b8578182fd5b6143c4868287016141a4565b9150509250925092565b6000602082840312156143df578081fd5b815161181281614967565b6000602082840312156143fb578081fd5b5035919050565b60008060408385031215614414578182fd5b82359150602083013561426a81614952565b60008060408385031215614438578182fd5b50508035926020909101359150565b600060208284031215614458578081fd5b813561181281614975565b600060208284031215614474578081fd5b815161181281614975565b60008060408385031215614491578182fd5b823567ffffffffffffffff8111156144a7578283fd5b8301601f810185136144b7578283fd5b6144c68582356020840161412e565b925050602083013561426a81614952565b6000806000606084860312156144eb578081fd5b8335925060208401359150604084013561450481614952565b809150509250925092565b60008060008060808587031215614524578182fd5b8435935060208501359250604085013561453d81614952565b9396929550929360600135925050565b60008151808452614565816020860160208601614863565b601f01601f19169290920160200192915050565b6000825161458b818460208701614863565b9190910192915050565b600083516145a7818460208801614863565b8351908301906145bb818360208801614863565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516145fc816017850160208801614863565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161462d816028840160208801614863565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906146909083018461454d565b9695505050505050565b600060208252611812602083018461454d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561481457614814614910565b500190565b60008261482857614828614926565b500490565b600081600019048311821515161561484757614847614910565b500290565b60008282101561485e5761485e614910565b500390565b60005b8381101561487e578181015183820152602001614866565b8381111561155b5750506000910152565b60008161489e5761489e614910565b506000190190565b6002810460018216806148ba57607f821691505b602082108114156148db57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148f5576148f5614910565b5060010190565b60008261490b5761490b614926565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f9e57600080fd5b8015158114610f9e57600080fd5b6001600160e01b031981168114610f9e57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a264697066735822122001dbc355acd7f27d5b94710529e93d205125609036854e62678a001b07b5dc8764736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000065f9a292f1aeed5d755aa2fd2fb17ab2e9431447000000000000000000000000df0d65cece2eb2d50d2242fa86ee8fb4e7136fa4000000000000000000000000f72cd6d56d07968d780633728d08f29f1599aa33000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000015536f4d6565204e465420436f6c6c65637469626c6500000000000000000000000000000000000000000000000000000000000000000000000000000000000003534e430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _payment_token (address): 0x65F9A292f1AEED5D755Aa2fD2Fb17AB2E9431447
Arg [1] : _owner (address): 0xDF0D65CEce2Eb2D50d2242Fa86eE8FB4e7136fa4
Arg [2] : _admin (address): 0xF72cd6d56D07968D780633728d08f29F1599Aa33
Arg [3] : _commissionRate (uint256): 3
Arg [4] : _royaltiesCommissionRate (uint256): 25
Arg [5] : name (string): SoMee NFT Collectible
Arg [6] : symbol (string): SNC
Arg [7] : _anyoneCanMint (bool): True
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000065f9a292f1aeed5d755aa2fd2fb17ab2e9431447
Arg [1] : 000000000000000000000000df0d65cece2eb2d50d2242fa86ee8fb4e7136fa4
Arg [2] : 000000000000000000000000f72cd6d56d07968d780633728d08f29f1599aa33
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [9] : 536f4d6565204e465420436f6c6c65637469626c650000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 534e430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
87878:17058:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74587:237;;;;;;:::i;:::-;;:::i;:::-;;;13482:14:1;;13475:22;13457:41;;13445:2;13430:18;74587:237:0;;;;;;;;23704:100;;;:::i;:::-;;;;;;;:::i;25263:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;10188:32:1;;;10170:51;;10158:2;10143:18;25263:221:0;10125:102:1;24786:411:0;;;;;;:::i;:::-;;:::i;:::-;;88736:47;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;13655:25:1;;;13643:2;13628:18;88736:47:0;13610:76:1;37212:113:0;37300:10;:17;37212:113;;94552:175;;;;;;:::i;:::-;;:::i;26153:339::-;;;;;;:::i;:::-;;:::i;52930:123::-;;;;;;:::i;:::-;52996:7;53023:12;;;:6;:12;;;;;:22;;;;52930:123;98924:458;;;;;;:::i;:::-;;:::i;70294:196::-;;;;;;:::i;:::-;;:::i;36880:256::-;;;;;;:::i;:::-;;:::i;88213:26::-;;;;;-1:-1:-1;;;;;88213:26:0;;;70879:205;;;;;;:::i;:::-;;:::i;88131:29::-;;;;;-1:-1:-1;;;;;88131:29:0;;;92395:301;;;;;;:::i;:::-;;:::i;73543:98::-;;;;;;:::i;:::-;;:::i;26563:185::-;;;;;;:::i;:::-;;:::i;44873:245::-;;;;;;:::i;:::-;;:::i;102117:135::-;;;;;;:::i;:::-;102178:15;102213:17;;;:8;:17;;;;;:31;;;-1:-1:-1;;;;;102213:31:0;;102117:135;37402:233;;;;;;:::i;:::-;;:::i;89800:43::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;89800:43:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11112:15:1;;;11094:34;;11159:2;11144:18;;11137:34;;;;11207:15;;;;11187:18;;;11180:43;;;;11254:2;11239:18;;11232:34;11310:14;11303:22;11297:3;11282:19;;11275:51;11074:3;11342:19;;11335:35;;;;11043:3;11028:19;89800:43:0;11010:366:1;96340:1771:0;;;;;;:::i;:::-;;:::i;73246:289::-;;;;;;:::i;:::-;;:::i;23398:239::-;;;;;;:::i;:::-;;:::i;23128:208::-;;;;;;:::i;:::-;;:::i;104416:515::-;;;;;;:::i;:::-;;:::i;73888:133::-;;;;;;:::i;:::-;;:::i;95540:405::-;;;;;;:::i;:::-;;:::i;69749:145::-;;;;;;:::i;:::-;;:::i;51815:139::-;;;;;;:::i;:::-;;:::i;23873:104::-;;;:::i;74832:115::-;;;;;;:::i;:::-;;:::i;73649:106::-;;;;;;:::i;:::-;;:::i;50906:49::-;;50951:4;50906:49;;25556:295;;;;;;:::i;:::-;;:::i;88574:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;73763:117;;;;;;:::i;:::-;;:::i;72955:25::-;;;;;;;;;102260:121;;;;;;:::i;:::-;102318:7;102345:17;;;:8;:17;;;;;:28;;;;102260:121;94789:743;;;;;;:::i;:::-;;:::i;91012:144::-;;;;;;:::i;:::-;;:::i;26819:328::-;;;;;;:::i;:::-;;:::i;74383:196::-;;;;;;:::i;:::-;;:::i;70068:134::-;;;;;;:::i;:::-;;:::i;88481:43::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;88481:43:0;;;91202:744;;;;;;:::i;:::-;;:::i;72839:62::-;;-1:-1:-1;;;;;;;;;;;72839:62:0;;70583:201;;;;;;:::i;:::-;;:::i;92723:1821::-;;;;;;:::i;:::-;;:::i;99897:2184::-;;;;;;:::i;:::-;;:::i;99390:428::-;;;;;;:::i;:::-;;:::i;92088:299::-;;;;;;:::i;:::-;;:::i;:::-;;;;31817:25:1;;;31873:2;31858:18;;31851:34;;;;31901:18;;;31894:34;31805:2;31790:18;92088:299:0;31772:162:1;25922:164:0;;;;;;:::i;:::-;-1:-1:-1;;;;;26043:25:0;;;26019:4;26043:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;25922:164;74955:110;;;:::i;103929:454::-;;;;;;:::i;:::-;;:::i;98318:540::-;;;;;;:::i;:::-;;:::i;74587:237::-;74751:4;74780:36;74804:11;74780:23;:36::i;:::-;74773:43;;74587:237;;;;:::o;23704:100::-;23758:13;23791:5;23784:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23704:100;:::o;25263:221::-;25339:7;25367:16;25375:7;25367;:16::i;:::-;25359:73;;;;-1:-1:-1;;;25359:73:0;;24244:2:1;25359:73:0;;;24226:21:1;24283:2;24263:18;;;24256:30;24322:34;24302:18;;;24295:62;-1:-1:-1;;;24373:18:1;;;24366:42;24425:19;;25359:73:0;;;;;;;;;-1:-1:-1;25452:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;25452:24:0;;25263:221::o;24786:411::-;24867:13;24883:23;24898:7;24883:14;:23::i;:::-;24867:39;;24931:5;-1:-1:-1;;;;;24925:11:0;:2;-1:-1:-1;;;;;24925:11:0;;;24917:57;;;;-1:-1:-1;;;24917:57:0;;27033:2:1;24917:57:0;;;27015:21:1;27072:2;27052:18;;;27045:30;27111:34;27091:18;;;27084:62;-1:-1:-1;;;27162:18:1;;;27155:31;27203:19;;24917:57:0;27005:223:1;24917:57:0;18551:10;-1:-1:-1;;;;;25009:21:0;;;;:62;;-1:-1:-1;25034:37:0;25051:5;18551:10;25058:12;18471:98;25034:37;24987:168;;;;-1:-1:-1;;;24987:168:0;;19664:2:1;24987:168:0;;;19646:21:1;19703:2;19683:18;;;19676:30;19742:34;19722:18;;;19715:62;19813:26;19793:18;;;19786:54;19857:19;;24987:168:0;19636:246:1;24987:168:0;25168:21;25177:2;25181:7;25168:8;:21::i;:::-;24786:411;;;:::o;94552:175::-;94610:4;94653:10;94635:16;94643:7;94635;:16::i;:::-;-1:-1:-1;;;;;94635:28:0;;:55;;;;-1:-1:-1;94668:17:0;;;;:8;:17;;;;;:22;;;;;94667:23;94635:55;:83;;;;-1:-1:-1;;94694:21:0;;;;:12;:21;;;;;;:24;;94552:175::o;26153:339::-;26348:41;18551:10;26367:12;26381:7;26348:18;:41::i;:::-;26340:103;;;;-1:-1:-1;;;26340:103:0;;;;;;;:::i;:::-;26456:28;26466:4;26472:2;26476:7;26456:9;:28::i;98924:458::-;76997:1;77595:7;;:19;;77587:63;;;;-1:-1:-1;;;77587:63:0;;;;;;;:::i;:::-;76997:1;77728:7;:18;99000:20:::1;99012:7:::0;99000:11:::1;:20::i;:::-;98992:67;;;::::0;-1:-1:-1;;;98992:67:0;;29786:2:1;98992:67:0::1;::::0;::::1;29768:21:1::0;29825:2;29805:18;;;29798:30;29864:34;29844:18;;;29837:62;-1:-1:-1;;;29915:18:1;;;29908:32;29957:19;;98992:67:0::1;29758:224:1::0;98992:67:0::1;99159:1;99128:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:32;99124:179:::1;;99185:13;::::0;::::1;99208:17:::0;;;:8:::1;:17;::::0;;;;;;:31:::1;::::0;::::1;::::0;99241:28:::1;::::0;;::::1;::::0;99185:85;;-1:-1:-1;;;99185:85:0;;-1:-1:-1;;;;;99208:31:0;;::::1;99185:85;::::0;::::1;10638:51:1::0;10705:18;;;10698:34;;;;99185:13:0;;::::1;::::0;:22:::1;::::0;10611:18:1;;99185:85:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99177:114;;;;-1:-1:-1::0;;;99177:114:0::1;;;;;;;:::i;:::-;99355:17;::::0;;;:8:::1;:17;::::0;;;;99348:24;;-1:-1:-1;;;;;;99348:24:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;99348:24:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;77907:7;:22;98924:458::o;70294:196::-;70410:30;70426:4;70432:7;70410:15;:30::i;:::-;70451:18;;;;:12;:18;;;;;:31;;70474:7;70451:22;:31::i;36880:256::-;36977:7;37013:23;37030:5;37013:16;:23::i;:::-;37005:5;:31;36997:87;;;;-1:-1:-1;;;36997:87:0;;15890:2:1;36997:87:0;;;15872:21:1;15929:2;15909:18;;;15902:30;15968:34;15948:18;;;15941:62;-1:-1:-1;;;16019:18:1;;;16012:41;16070:19;;36997:87:0;15862:233:1;36997:87:0;-1:-1:-1;;;;;;37102:19:0;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;36880:256;;;;;:::o;70879:205::-;70998:33;71017:4;71023:7;70998:18;:33::i;:::-;71042:18;;;;:12;:18;;;;;:34;;71068:7;71042:25;:34::i;92395:301::-;92449:7;92474:17;;;:8;:17;;;;;:22;;;;;92473:23;:50;;;;-1:-1:-1;92522:1:0;92500:21;;;:12;:21;;;;;;:23;;92473:50;:77;;;;-1:-1:-1;92549:1:0;92527:21;;;:12;:21;;;;;;:23;;92473:77;:118;;;;-1:-1:-1;92586:4:0;92554:20;92566:7;92554:11;:20::i;:::-;-1:-1:-1;;;;;92554:37:0;;92473:118;92469:220;;;-1:-1:-1;92615:21:0;;;;:12;:21;;;;;;92608:28;;92469:220;-1:-1:-1;92676:1:0;92669:8;;73543:98;75177:21;75231:10;:8;:10::i;:::-;75209:108;;;;-1:-1:-1;;;75209:108:0;;;;;;;:::i;:::-;73615:18:::1;73621:2;73625:7;73615:5;:18::i;26563:185::-:0;26701:39;26718:4;26724:2;26728:7;26701:39;;;;;;;;;;;;:16;:39::i;44873:245::-;44991:41;18551:10;45010:12;18471:98;44991:41;44983:102;;;;-1:-1:-1;;;44983:102:0;;30549:2:1;44983:102:0;;;30531:21:1;30588:2;30568:18;;;30561:30;30627:34;30607:18;;;30600:62;-1:-1:-1;;;30678:18:1;;;30671:46;30734:19;;44983:102:0;30521:238:1;44983:102:0;45096:14;45102:7;45096:5;:14::i;:::-;44873:245;:::o;37402:233::-;37477:7;37513:30;37300:10;:17;37212:113;;37513:30;37505:5;:38;37497:95;;;;-1:-1:-1;;;37497:95:0;;28609:2:1;37497:95:0;;;28591:21:1;28648:2;28628:18;;;28621:30;28687:34;28667:18;;;28660:62;-1:-1:-1;;;28738:18:1;;;28731:42;28790:19;;37497:95:0;28581:234:1;37497:95:0;37610:10;37621:5;37610:17;;;;;;-1:-1:-1;;;37610:17:0;;;;;;;;;;;;;;;;;37603:24;;37402:233;;;:::o;96340:1771::-;76997:1;77595:7;;:19;;77587:63;;;;-1:-1:-1;;;77587:63:0;;;;;;;:::i;:::-;76997:1;77728:7;:18;96524:10:::1;10923:20:::0;10971:8;96515:54:::1;;;::::0;-1:-1:-1;;;96515:54:0;;26687:2:1;96515:54:0::1;::::0;::::1;26669:21:1::0;26726:2;26706:18;;;26699:30;-1:-1:-1;;;26745:18:1;;;26738:47;26802:18;;96515:54:0::1;26659:167:1::0;96515:54:0::1;96627:17;::::0;;;:8:::1;:17;::::0;;;;:22:::1;;::::0;::::1;;96619:58;;;::::0;-1:-1:-1;;;96619:58:0;;29434:2:1;96619:58:0::1;::::0;::::1;29416:21:1::0;29473:2;29453:18;;;29446:30;29512:25;29492:18;;;29485:53;29555:18;;96619:58:0::1;29406:173:1::0;96619:58:0::1;96759:4;96727:20;96739:7:::0;96727:11:::1;:20::i;:::-;-1:-1:-1::0;;;;;96727:37:0::1;;96719:77;;;::::0;-1:-1:-1;;;96719:77:0;;14700:2:1;96719:77:0::1;::::0;::::1;14682:21:1::0;14739:2;14719:18;;;14712:30;14778:29;14758:18;;;14751:57;14825:18;;96719:77:0::1;14672:177:1::0;96719:77:0::1;96921:17;::::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;96902:15:::1;:47;;96880:119;;;::::0;-1:-1:-1;;;96880:119:0;;18541:2:1;96880:119:0::1;::::0;::::1;18523:21:1::0;18580:2;18560:18;;;18553:30;-1:-1:-1;;;18599:18:1;;;18592:52;18661:18;;96880:119:0::1;18513:172:1::0;96880:119:0::1;97117:17;::::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;97105:40;::::1;97083:120;;;::::0;-1:-1:-1;;;97083:120:0;;19305:2:1;97083:120:0::1;::::0;::::1;19287:21:1::0;19344:2;19324:18;;;19317:30;19383:32;19363:18;;;19356:60;19433:18;;97083:120:0::1;19277:180:1::0;97083:120:0::1;97216:13;97232:16;97240:7;97232;:16::i;:::-;97216:32:::0;-1:-1:-1;97267:10:0::1;-1:-1:-1::0;;;;;97267:17:0;::::1;;;97259:83;;;::::0;-1:-1:-1;;;97259:83:0;;22144:2:1;97259:83:0::1;::::0;::::1;22126:21:1::0;22183:2;22163:18;;;22156:30;22222:34;22202:18;;;22195:62;-1:-1:-1;;;22273:18:1;;;22266:51;22334:19;;97259:83:0::1;22116:243:1::0;97259:83:0::1;97457:1;97428:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:30;97424:266:::1;;97483:13;::::0;::::1;97506:17:::0;;;:8:::1;:17;::::0;;;;;;:31:::1;::::0;::::1;::::0;97539:28:::1;::::0;;::::1;::::0;97483:85;;-1:-1:-1;;;97483:85:0;;-1:-1:-1;;;;;97506:31:0;;::::1;97483:85;::::0;::::1;10638:51:1::0;10705:18;;;10698:34;;;;97483:13:0;;::::1;::::0;:22:::1;::::0;10611:18:1;;97483:85:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97475:114;;;;-1:-1:-1::0;;;97475:114:0::1;;;;;;;:::i;:::-;97616:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:31:::1;::::0;::::1;::::0;97649:28:::1;::::0;;::::1;::::0;97609:69;;-1:-1:-1;;;;;97616:31:0;;::::1;10638:51:1::0;;10705:18;;;10698:34;;;;97609:69:0::1;::::0;10611:18:1;97609:69:0::1;;;;;;;97424:266;97737:17;::::0;;;:8:::1;:17;::::0;;;;;;:31:::1;;:53:::0;;-1:-1:-1;;;;;;97737:53:0::1;97779:10;97737:53:::0;;::::1;::::0;;;97851:13:::1;::::0;:64;;-1:-1:-1;;;97851:64:0;;-1:-1:-1;;;;;97851:13:0;;;::::1;::::0;:26:::1;::::0;:64:::1;::::0;97898:4:::1;::::0;97905:9;;97851:64:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97843:93;;;;-1:-1:-1::0;;;97843:93:0::1;;;;;;;:::i;:::-;97992:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:28:::1;;:40:::0;;;98050:51;;31536:25:1;;;31577:18;;;31570:34;;;98070:10:0::1;::::0;98050:51:::1;::::0;31509:18:1;98050:51:0::1;;;;;;;-1:-1:-1::0;;76953:1:0;77907:7;:22;-1:-1:-1;96340:1771:0:o;73246:289::-;75177:21;75231:10;:8;:10::i;:::-;75209:108;;;;-1:-1:-1;;;75209:108:0;;;;;;;:::i;:::-;73330:7:::1;73348:118;73364:27;:15;72295:19:::0;;72313:1;72295:19;;;72206:127;73364:27:::1;-1:-1:-1::0;73409:15:0::1;72176:14:::0;73453:11:::1;72176:14:::0;73453:7:::1;:11::i;:::-;73348:118;;73476:13;73482:2;73486;73476:5;:13::i;:::-;73500:27;73513:2;73517:9;73500:12;:27::i;:::-;75328:1;73246:289:::0;;;:::o;23398:239::-;23470:7;23506:16;;;:7;:16;;;;;;-1:-1:-1;;;;;23506:16:0;23541:19;23533:73;;;;-1:-1:-1;;;23533:73:0;;20500:2:1;23533:73:0;;;20482:21:1;20539:2;20519:18;;;20512:30;20578:34;20558:18;;;20551:62;-1:-1:-1;;;20629:18:1;;;20622:39;20678:19;;23533:73:0;20472:231:1;23128:208:0;23200:7;-1:-1:-1;;;;;23228:19:0;;23220:74;;;;-1:-1:-1;;;23220:74:0;;20089:2:1;23220:74:0;;;20071:21:1;20128:2;20108:18;;;20101:30;20167:34;20147:18;;;20140:62;-1:-1:-1;;;20218:18:1;;;20211:40;20268:19;;23220:74:0;20061:232:1;23220:74:0;-1:-1:-1;;;;;;23312:16:0;;;;;:9;:16;;;;;;;23128:208::o;104416:515::-;104502:14;;-1:-1:-1;;;;;104502:14:0;104490:10;:26;104482:70;;;;-1:-1:-1;;;104482:70:0;;16721:2:1;104482:70:0;;;16703:21:1;16760:2;16740:18;;;16733:30;16799:33;16779:18;;;16772:61;16850:18;;104482:70:0;16693:181:1;104482:70:0;104602:47;50951:4;104633:15;104602:10;:47::i;:::-;104660:40;-1:-1:-1;;;;;;;;;;;104684:15:0;104660:10;:40::i;:::-;104775:14;;104751:39;;-1:-1:-1;;;;;;;;;;;72877:24:0;-1:-1:-1;;;;;104775:14:0;104751:10;:39::i;:::-;104832:14;;104801:46;;50951:4;;-1:-1:-1;;;;;104832:14:0;104801:10;:46::i;:::-;104889:14;:32;;-1:-1:-1;;;;;;104889:32:0;-1:-1:-1;;;;;104889:32:0;;;;;;;;;;104416:515::o;73888:133::-;75177:21;75231:10;:8;:10::i;:::-;75209:108;;;;-1:-1:-1;;;75209:108:0;;;;;;;:::i;:::-;73984:29:::1;73994:2;73998:7;74007:5;73984:9;:29::i;95540:405::-:0;95594:4;95616:10;10923:20;10971:8;;;95615:63;;-1:-1:-1;95656:17:0;;;;:8;:17;;;;;:22;;;;;95615:63;:127;;;;-1:-1:-1;95714:17:0;;;;:8;:17;;;;;:28;;;95695:15;:47;;95615:127;:174;;;;;95773:16;95781:7;95773;:16::i;:::-;-1:-1:-1;;;;;95759:30:0;:10;-1:-1:-1;;;;;95759:30:0;;;95615:174;:228;;;;-1:-1:-1;95838:4:0;95806:20;95818:7;95806:11;:20::i;:::-;-1:-1:-1;;;;;95806:37:0;;95615:228;95611:327;;;-1:-1:-1;95877:4:0;95870:11;;69749:145;69831:7;69858:18;;;:12;:18;;;;;:28;;69880:5;69858:21;:28::i;:::-;69851:35;69749:145;-1:-1:-1;;;69749:145:0:o;51815:139::-;51893:4;51917:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;51917:29:0;;;;;;;;;;;;;;;51815:139::o;23873:104::-;23929:13;23962:7;23955:14;;;;;:::i;74832:115::-;-1:-1:-1;;;;;;;;;;;51397:30:0;72877:24;18551:10;51414:12;51397:10;:30::i;:::-;74908:31:::1;-1:-1:-1::0;;;;;;;;;;;74931:7:0::1;74908:9;:31::i;:::-;74832:115:::0;;:::o;73649:106::-;75177:21;75231:10;:8;:10::i;:::-;75209:108;;;;-1:-1:-1;;;75209:108:0;;;;;;;:::i;:::-;73725:22:::1;73735:2;73739:7;73725:9;:22::i;25556:295::-:0;-1:-1:-1;;;;;25659:24:0;;18551:10;25659:24;;25651:62;;;;-1:-1:-1;;;25651:62:0;;17843:2:1;25651:62:0;;;17825:21:1;17882:2;17862:18;;;17855:30;17921:27;17901:18;;;17894:55;17966:18;;25651:62:0;17815:175:1;25651:62:0;18551:10;25726:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;25726:42:0;;;;;;;;;;:53;;-1:-1:-1;;25726:53:0;;;;;;;:42;-1:-1:-1;;;;;25795:48:0;;25834:8;25795:48;;;;13482:14:1;13475:22;13457:41;;13445:2;13430:18;;13412:92;25795:48:0;;;;;;;;25556:295;;:::o;73763:117::-;73819:4;73843:29;-1:-1:-1;;;;;;;;;;;73864:7:0;73843;:29::i;94789:743::-;94929:21;;;;:12;:21;;;;;;:24;94921:104;;;;-1:-1:-1;;;94921:104:0;;22566:2:1;94921:104:0;;;22548:21:1;22605:2;22585:18;;;22578:30;22644:34;22624:18;;;22617:62;22715:34;22695:18;;;22688:62;-1:-1:-1;;;22766:19:1;;;22759:34;22810:19;;94921:104:0;22538:297:1;94921:104:0;95045:17;;;;:8;:17;;;;;:22;;;;;95044:23;95036:88;;;;-1:-1:-1;;;95036:88:0;;15469:2:1;95036:88:0;;;15451:21:1;15508:2;15488:18;;;15481:30;15547:34;15527:18;;;15520:62;-1:-1:-1;;;15598:18:1;;;15591:50;15658:19;;95036:88:0;15441:242:1;95036:88:0;95161:10;95143:16;95151:7;95143;:16::i;:::-;-1:-1:-1;;;;;95143:28:0;;95135:86;;;;-1:-1:-1;;;95135:86:0;;25447:2:1;95135:86:0;;;25429:21:1;25486:2;25466:18;;;25459:30;25525:34;25505:18;;;25498:62;-1:-1:-1;;;25576:18:1;;;25569:43;25629:19;;95135:86:0;25419:235:1;95135:86:0;95234:17;;;;:8;:17;;;;;:44;;-1:-1:-1;;;;;;95234:44:0;-1:-1:-1;;;;;95234:44:0;;;;;-1:-1:-1;95289:28:0;;;:43;;;95343:25;;;:41;;;95395:22;;;;:29;;-1:-1:-1;;95395:29:0;;;;;;95491:31;95507:4;95234:17;95491:7;:31::i;91012:144::-;91067:4;91110:10;91092:16;91100:7;91092;:16::i;:::-;-1:-1:-1;;;;;91092:28:0;;:55;;;;-1:-1:-1;;91125:17:0;;;;:8;:17;;;;;:22;;;;;91124:23;;91012:144::o;26819:328::-;26994:41;18551:10;27027:7;26994:18;:41::i;:::-;26986:103;;;;-1:-1:-1;;;26986:103:0;;;;;;;:::i;:::-;27100:39;27114:4;27120:2;27124:7;27133:5;27100:13;:39::i;74383:196::-;74510:13;74548:23;74563:7;74548:14;:23::i;70068:134::-;70140:7;70167:18;;;:12;:18;;;;;:27;;:25;:27::i;91202:744::-;91340:10;91322:16;91330:7;91322;:16::i;:::-;-1:-1:-1;;;;;91322:28:0;;91314:83;;;;-1:-1:-1;;;91314:83:0;;27435:2:1;91314:83:0;;;27417:21:1;27474:2;27454:18;;;27447:30;27513:34;27493:18;;;27486:62;-1:-1:-1;;;27564:18:1;;;27557:40;27614:19;;91314:83:0;27407:232:1;91314:83:0;91474:17;;;;:8;:17;;;;;:22;;;;;91473:23;91465:96;;;;-1:-1:-1;;;91465:96:0;;24657:2:1;91465:96:0;;;24639:21:1;24696:2;24676:18;;;24669:30;24735:34;24715:18;;;24708:62;24806:30;24786:18;;;24779:58;24854:19;;91465:96:0;24629:250:1;91465:96:0;91611:21;;;;:12;:21;;;;;:29;;;91706:7;;91702:235;;91790:31;91806:4;91813:7;91790;:31::i;:::-;91885:17;;;;:8;:17;;;;;:26;;-1:-1:-1;;;;;91885:26:0;;-1:-1:-1;;;;;;91885:26:0;;;;;;91202:744;;;:::o;70583:201::-;70700:31;70717:4;70723:7;70700:16;:31::i;92723:1821::-;76997:1;77595:7;;:19;;77587:63;;;;-1:-1:-1;;;77587:63:0;;;;;;;:::i;:::-;76997:1;77728:7;:18;92818:17:::1;::::0;;;:8:::1;:17;::::0;;;;:22:::1;;::::0;::::1;;92817:23;:50:::0;::::1;;;-1:-1:-1::0;92866:1:0::1;92844:21:::0;;;:12:::1;:21;::::0;;;;;:23;;92817:50:::1;92809:107;;;::::0;-1:-1:-1;;;92809:107:0;;15056:2:1;92809:107:0::1;::::0;::::1;15038:21:1::0;15095:2;15075:18;;;15068:30;15134:34;15114:18;;;15107:62;-1:-1:-1;;;15185:18:1;;;15178:42;15237:19;;92809:107:0::1;15028:234:1::0;92809:107:0::1;92960:13;92976:16;92984:7;92976;:16::i;:::-;92960:32:::0;-1:-1:-1;93013:10:0::1;-1:-1:-1::0;;;;;93013:17:0;::::1;;;93005:84;;;::::0;-1:-1:-1;;;93005:84:0;;23042:2:1;93005:84:0::1;::::0;::::1;23024:21:1::0;23081:2;23061:18;;;23054:30;23120:34;23100:18;;;23093:62;-1:-1:-1;;;23171:18:1;;;23164:52;23233:19;;93005:84:0::1;23014:244:1::0;93005:84:0::1;93214:104;93233:4;93262:26;;;93290:5;93297:10;93309:7;93239:78;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;93239:78:0;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;93239:78:0::1;-1:-1:-1::0;;;;;;93239:78:0;;::::1;::::0;;;::::1;::::0;;;93214:18:::1;:104::i;:::-;93410:14;::::0;93361:20:::1;93384:21:::0;;;:12:::1;:21;::::0;;;;;93361:20;;93384:50:::1;::::0;93430:3:::1;::::0;93384:41:::1;::::0;:21;:25:::1;:41::i;:::-;:45:::0;::::1;:50::i;:::-;93496:23;::::0;93445:22:::1;93470:21:::0;;;:12:::1;:21;::::0;;;;;93361:73;;-1:-1:-1;93445:22:0;93470:59:::1;::::0;93525:3:::1;::::0;93470:50:::1;::::0;:25:::1;:50::i;:59::-;93540:20;93563:21:::0;;;:12:::1;:21;::::0;;;;;93445:84;;-1:-1:-1;93540:20:0;93563:59:::1;::::0;93445:84;;93563:39:::1;::::0;93589:12;93563:25:::1;:39::i;:::-;:43:::0;::::1;:59::i;:::-;93664:13;::::0;::::1;93703:17:::0;;;:8:::1;:17;::::0;;;;;;;93664:71;;-1:-1:-1;;;93664:71:0;;93540:82;;-1:-1:-1;;;;;;93664:13:0;;::::1;::::0;:26:::1;::::0;:71:::1;::::0;93691:10:::1;::::0;93703:17;::::1;::::0;93540:82;;93664:71:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93656:100;;;;-1:-1:-1::0;;;93656:100:0::1;;;;;;;:::i;:::-;93796:16:::0;;93792:151:::1;;93837:13;::::0;::::1;93876:17:::0;;;:8:::1;:17;::::0;;;;;;;93837:73;;-1:-1:-1;;;93837:73:0;;-1:-1:-1;;;;;93837:13:0;;::::1;::::0;:26:::1;::::0;:73:::1;::::0;93864:10:::1;::::0;93876:17;;::::1;::::0;93895:14;;93837:73:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93829:102;;;;-1:-1:-1::0;;;93829:102:0::1;;;;;;;:::i;:::-;93980:14:::0;;93976:135:::1;;94019:13;::::0;94058:5:::1;::::0;94019:59:::1;::::0;-1:-1:-1;;;94019:59:0;;-1:-1:-1;;;;;94019:13:0;;::::1;::::0;:26:::1;::::0;:59:::1;::::0;94046:10:::1;::::0;94058:5;;::::1;::::0;94065:12;;94019:59:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94011:88;;;;-1:-1:-1::0;;;94011:88:0::1;;;;;;;:::i;:::-;94149:10;-1:-1:-1::0;;;;;94128:55:0::1;94142:5;-1:-1:-1::0;;;;;94128:55:0::1;94133:7;94128:55;94161:12;:21;94174:7;94161:21;;;;;;;;;;;;94128:55;;;;13655:25:1::0;;13643:2;13628:18;;13610:76;94128:55:0::1;;;;;;;;94226:21;::::0;;;:12:::1;:21;::::0;;;;;;;;;94249:14:::1;::::0;94199:79;;31817:25:1;;;31858:18;;;31851:34;;;;31901:18;;;31894:34;;;-1:-1:-1;;;;;94199:79:0;::::1;::::0;94210:7;;94199:79:::1;::::0;31805:2:1;31790:18;94199:79:0::1;;;;;;;94318:21;::::0;;;:12:::1;:21;::::0;;;;;;;;;94341:23:::1;::::0;94294:87;;31817:25:1;;;31858:18;;;31851:34;;;;31901:18;;;31894:34;;;-1:-1:-1;;;;;94294:87:0;::::1;::::0;94302:7;;94294:87:::1;::::0;31805:2:1;31790:18;94294:87:0::1;;;;;;;-1:-1:-1::0;;;94413:21:0::1;::::0;;;-1:-1:-1;94413:12:0::1;:21;::::0;;;;;;;;;94394:7:::1;:16:::0;;;;;:40;94474:25;;;94517:8:::1;:17:::0;;;;;94510:24;;-1:-1:-1;;;;;;94510:24:0::1;::::0;;-1:-1:-1;77907:7:0;:22;92723:1821::o;99897:2184::-;76997:1;77595:7;;:19;;77587:63;;;;-1:-1:-1;;;77587:63:0;;;;;;;:::i;:::-;76997:1;77728:7;:18;99980:20:::1;99992:7:::0;99980:11:::1;:20::i;:::-;99972:48;;;::::0;-1:-1:-1;;;99972:48:0;;18197:2:1;99972:48:0::1;::::0;::::1;18179:21:1::0;18236:2;18216:18;;;18209:30;-1:-1:-1;;;18255:18:1;;;18248:45;18310:18;;99972:48:0::1;18169:165:1::0;99972:48:0::1;100066:1;100037:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:30;100033:1876:::1;;100156:30;100189:17:::0;;;:8:::1;:17;::::0;;;;:31:::1;::::0;::::1;::::0;100335:14:::1;::::0;100302:28:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;100189:31:0;;::::1;::::0;100156:30;100302:57:::1;::::0;100355:3:::1;::::0;100302:48:::1;::::0;:28;:32:::1;:48::i;:57::-;100432:23;::::0;100374:22:::1;100399:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;100279:80;;-1:-1:-1;100374:22:0;100399:66:::1;::::0;100461:3:::1;::::0;100399:57:::1;::::0;:32:::1;:57::i;:66::-;100480:20;100503:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;100374:91;;-1:-1:-1;100480:20:0;100503:66:::1;::::0;100374:91;;100503:46:::1;::::0;100536:12;100503:32:::1;:46::i;:66::-;100619:13;::::0;::::1;100642:17:::0;;;:8:::1;:17;::::0;;;;;;:29;100619:67;;-1:-1:-1;;;100619:67:0;;-1:-1:-1;;;;;100642:29:0;;::::1;100619:67;::::0;::::1;10638:51:1::0;10705:18;;;10698:34;;;100480:89:0;;-1:-1:-1;100619:13:0::1;::::0;:22:::1;::::0;10611:18:1;;100619:67:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100611:96;;;;-1:-1:-1::0;;;100611:96:0::1;;;;;;;:::i;:::-;100755:16:::0;;100751:143:::1;;100800:13;::::0;::::1;100823:17:::0;;;:8:::1;:17;::::0;;;;;;;100800:57;;-1:-1:-1;;;100800:57:0;;-1:-1:-1;;;;;100823:17:0;;::::1;100800:57;::::0;::::1;10638:51:1::0;10705:18;;;10698:34;;;100800:13:0;::::1;::::0;:22:::1;::::0;10611:18:1;;100800:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100792:86;;;;-1:-1:-1::0;;;100792:86:0::1;;;;;;;:::i;:::-;100939:14:::0;;100935:127:::1;;100982:13;::::0;101005:5:::1;::::0;100982:43:::1;::::0;-1:-1:-1;;;100982:43:0;;-1:-1:-1;;;;;101005:5:0;;::::1;100982:43;::::0;::::1;10638:51:1::0;10705:18;;;10698:34;;;100982:13:0;::::1;::::0;:22:::1;::::0;10611:18:1;;100982:43:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100974:72;;;;-1:-1:-1::0;;;100974:72:0::1;;;;;;;:::i;:::-;101097:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;101144:28:::1;::::0;;::::1;::::0;101083:90;;13655:25:1;;;-1:-1:-1;;;;;101083:90:0;;::::1;::::0;101097:29;::::1;::::0;:17;;101083:90:::1;::::0;13628:18:1;101083:90:0::1;;;;;;;101210:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;101241:28:::1;::::0;;::::1;::::0;101271:23:::1;::::0;101193:118;;31817:25:1;;;31858:18;;;31851:34;;;;31901:18;;;31894:34;;;-1:-1:-1;;;;;101210:29:0;;::::1;::::0;:17;;101193:118:::1;::::0;31805:2:1;31790:18;101193:118:0::1;;;;;;;101351:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;101382:28:::1;::::0;;::::1;::::0;101412:14:::1;::::0;101331:110;;31817:25:1;;;31858:18;;;31851:34;;;;31901:18;;;31894:34;;;-1:-1:-1;;;;;101351:29:0;;::::1;::::0;:17;;101331:110:::1;::::0;31805:2:1;31790:18;101331:110:0::1;;;;;;;101493:13;101509:16;101517:7;101509;:16::i;:::-;101493:32;;101723:108;101742:4;101771:26;;;101799:5;101806:14;101822:7;101748:82;;;;;;;;;;:::i;101723:108::-;-1:-1:-1::0;;;101867:17:0::1;::::0;;;:8:::1;:17;::::0;;;;;;;:28:::1;;::::0;101848:7:::1;:16:::0;;;;;;:47;-1:-1:-1;;100033:1876:0::1;101939:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:31:::1;::::0;::::1;::::0;101972:28:::1;::::0;;::::1;::::0;101926:75;;-1:-1:-1;;;;;101939:31:0;;::::1;10638:51:1::0;;10705:18;;;10698:34;;;;101926:75:0::1;::::0;10611:18:1;101926:75:0::1;;;;;;;102054:17;::::0;;;:8:::1;:17;::::0;;;;102047:24;;-1:-1:-1;;;;;;102047:24:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;102047:24:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;77907:7;:22;99897:2184::o;99390:428::-;99449:4;99470:17;;;:8;:17;;;;;:22;;;;;:87;;;;-1:-1:-1;99529:17:0;;;;:8;:17;;;;;:28;;;99510:15;:47;;99470:87;:246;;;;-1:-1:-1;99623:17:0;;;;:8;:17;;;;;:25;;;;99593:28;;;;;:55;;;:108;;-1:-1:-1;99670:17:0;;;;:8;:17;;;;;:28;;;99466:345;;-1:-1:-1;99750:4:0;99743:11;;92088:299;92144:7;92186:21;;;:12;:21;;;;;;92144:7;;;;92186:23;92182:65;;-1:-1:-1;;;92219:21:0;;;;:12;:21;;;;;;;;92211:36;;92182:65;92291:1;92262:17;;;:8;:17;;;;;:28;;;:30;92258:79;;-1:-1:-1;;;92302:1:0;92305:17;;;:8;:17;;;;;:28;;;92302:1;92294:43;;92258:79;-1:-1:-1;;;92356:1:0;92362:16;;;:7;:16;;;;;;92356:1;;92088:299;;;;;;:::o;74955:110::-;75020:13;;74996:4;;75020:13;;;:37;;;75037:20;75046:10;75037:8;:20::i;:::-;75013:44;;74955:110;:::o;103929:454::-;104114:14;;-1:-1:-1;;;;;104114:14:0;104102:10;:26;104094:70;;;;-1:-1:-1;;;104094:70:0;;16721:2:1;104094:70:0;;;16703:21:1;16760:2;16740:18;;;16733:30;16799:33;16779:18;;;16772:61;16850:18;;104094:70:0;16693:181:1;104094:70:0;104175:5;:14;;-1:-1:-1;;;;;104175:14:0;;;-1:-1:-1;;;;;;104175:14:0;;;;;;;104200;:32;;;;104243:23;:50;;;;104304:13;:30;;;;;-1:-1:-1;;104304:30:0;;;;;;;;;104345:13;:30;;;;;;;;;;;103929:454::o;98318:540::-;98377:4;98398:17;;;:8;:17;;;;;:22;;;;;:358;;;;-1:-1:-1;98499:17:0;;;;:8;:17;;;;;:28;;;98480:15;:47;;;;:104;;-1:-1:-1;98583:1:0;98552:17;;;:8;:17;;;;;:28;;;:32;;98480:104;:183;;;;-1:-1:-1;98638:17:0;;;;:8;:17;;;;;:25;;;;98609:28;;;;;:54;98480:183;98457:284;;;-1:-1:-1;98736:4:0;98704:20;98716:7;98704:11;:20::i;:::-;-1:-1:-1;;;;;98704:37:0;;98394:457;;-1:-1:-1;98790:4:0;98783:11;;55164:112;55243:25;55254:4;55260:7;55243:10;:25::i;63846:152::-;63916:4;63940:50;63945:3;-1:-1:-1;;;;;63965:23:0;;63940:4;:50::i;68936:214::-;69021:4;-1:-1:-1;;;;;;69045:57:0;;-1:-1:-1;;;69045:57:0;;:97;;;69106:36;69130:11;69106:23;:36::i;28657:127::-;28722:4;28746:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28746:16:0;:30;;;28657:127::o;32639:174::-;32714:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;32714:29:0;-1:-1:-1;;;;;32714:29:0;;;;;;;;:24;;32768:23;32714:24;32768:14;:23::i;:::-;-1:-1:-1;;;;;32759:46:0;;;;;;;;;;;32639:174;;:::o;28951:348::-;29044:4;29069:16;29077:7;29069;:16::i;:::-;29061:73;;;;-1:-1:-1;;;29061:73:0;;18892:2:1;29061:73:0;;;18874:21:1;18931:2;18911:18;;;18904:30;18970:34;18950:18;;;18943:62;-1:-1:-1;;;19021:18:1;;;19014:42;19073:19;;29061:73:0;18864:234:1;29061:73:0;29145:13;29161:23;29176:7;29161:14;:23::i;:::-;29145:39;;29214:5;-1:-1:-1;;;;;29203:16:0;:7;-1:-1:-1;;;;;29203:16:0;;:51;;;;29247:7;-1:-1:-1;;;;;29223:31:0;:20;29235:7;29223:11;:20::i;:::-;-1:-1:-1;;;;;29223:31:0;;29203:51;:87;;;-1:-1:-1;;;;;;26043:25:0;;;26019:4;26043:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;29258:32;29195:96;28951:348;-1:-1:-1;;;;28951:348:0:o;31943:578::-;32102:4;-1:-1:-1;;;;;32075:31:0;:23;32090:7;32075:14;:23::i;:::-;-1:-1:-1;;;;;32075:31:0;;32067:85;;;;-1:-1:-1;;;32067:85:0;;25861:2:1;32067:85:0;;;25843:21:1;25900:2;25880:18;;;25873:30;25939:34;25919:18;;;25912:62;-1:-1:-1;;;25990:18:1;;;25983:39;26039:19;;32067:85:0;25833:231:1;32067:85:0;-1:-1:-1;;;;;32171:16:0;;32163:65;;;;-1:-1:-1;;;32163:65:0;;17438:2:1;32163:65:0;;;17420:21:1;17477:2;17457:18;;;17450:30;17516:34;17496:18;;;17489:62;-1:-1:-1;;;17567:18:1;;;17560:34;17611:19;;32163:65:0;17410:226:1;32163:65:0;32241:39;32262:4;32268:2;32272:7;32241:20;:39::i;:::-;32345:29;32362:1;32366:7;32345:8;:29::i;:::-;-1:-1:-1;;;;;32387:15:0;;;;;;:9;:15;;;;;:20;;32406:1;;32387:15;:20;;32406:1;;32387:20;:::i;:::-;;;;-1:-1:-1;;;;;;;32418:13:0;;;;;;:9;:13;;;;;:18;;32435:1;;32418:13;:18;;32435:1;;32418:18;:::i;:::-;;;;-1:-1:-1;;32447:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;32447:21:0;-1:-1:-1;;;;;32447:21:0;;;;;;;;;32486:27;;32447:16;;32486:27;;;;;;;31943:578;;;:::o;53315:147::-;52996:7;53023:12;;;:6;:12;;;;;:22;;;51397:30;51408:4;18551:10;51414:12;18471:98;51397:30;53429:25:::1;53440:4;53446:7;53429:10;:25::i;54363:218::-:0;-1:-1:-1;;;;;54459:23:0;;18551:10;54459:23;54451:83;;;;-1:-1:-1;;;54451:83:0;;30966:2:1;54451:83:0;;;30948:21:1;31005:2;30985:18;;;30978:30;31044:34;31024:18;;;31017:62;-1:-1:-1;;;31095:18:1;;;31088:45;31150:19;;54451:83:0;30938:237:1;54451:83:0;54547:26;54559:4;54565:7;54547:11;:26::i;64174:158::-;64247:4;64271:53;64279:3;-1:-1:-1;;;;;64299:23:0;;64271:7;:53::i;96020:146::-;96093:17;;;;:8;:17;;;;;:30;;-1:-1:-1;;;;;;96093:30:0;96113:10;96093:30;;;96134:24;96146:2;96102:7;96134:11;:24::i;74029:134::-;74124:31;74147:7;74124:22;:31::i;43871:217::-;43971:16;43979:7;43971;:16::i;:::-;43963:75;;;;-1:-1:-1;;;43963:75:0;;20910:2:1;43963:75:0;;;20892:21:1;20949:2;20929:18;;;20922:30;20988:34;20968:18;;;20961:62;-1:-1:-1;;;21039:18:1;;;21032:44;21093:19;;43963:75:0;20882:236:1;43963:75:0;44049:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;71177:169::-;71265:31;71282:4;71288:7;71265:16;:31::i;29978:321::-;30108:18;30114:2;30118:7;30108:5;:18::i;:::-;30159:54;30190:1;30194:2;30198:7;30207:5;30159:22;:54::i;:::-;30137:154;;;;-1:-1:-1;;;30137:154:0;;;;;;;:::i;65142:158::-;65216:7;65267:22;65271:3;65283:5;65267:3;:22::i;52244:497::-;52325:22;52333:4;52339:7;52325;:22::i;:::-;52320:414;;52513:41;52541:7;-1:-1:-1;;;;;52513:41:0;52551:2;52513:19;:41::i;:::-;52627:38;52655:4;52662:2;52627:19;:38::i;:::-;52418:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;52418:270:0;;;;;;;;;;-1:-1:-1;;;52364:358:0;;;;;;;:::i;29641:110::-;29717:26;29727:2;29731:7;29717:26;;;;;;;;;;;;:9;:26::i;28029:315::-;28186:28;28196:4;28202:2;28206:7;28186:9;:28::i;:::-;28233:48;28256:4;28262:2;28266:7;28275:5;28233:22;:48::i;:::-;28225:111;;;;-1:-1:-1;;;28225:111:0;;;;;;;:::i;43036:679::-;43109:13;43143:16;43151:7;43143;:16::i;:::-;43135:78;;;;-1:-1:-1;;;43135:78:0;;23826:2:1;43135:78:0;;;23808:21:1;23865:2;23845:18;;;23838:30;23904:34;23884:18;;;23877:62;-1:-1:-1;;;23955:18:1;;;23948:47;24012:19;;43135:78:0;23798:239:1;43135:78:0;43226:23;43252:19;;;:10;:19;;;;;43226:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43282:18;43303:10;24707:9;;;;;;;;;-1:-1:-1;24707:9:0;;24630:94;;43303:10;43282:31;;43395:4;43389:18;43411:1;43389:23;43385:72;;;-1:-1:-1;43436:9:0;-1:-1:-1;43429:16:0;;43385:72;43561:23;;:27;43557:108;;43636:4;43642:9;43619:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;43605:48;;;;;;43557:108;43684:23;43699:7;43684:14;:23::i;64671:117::-;64734:7;64761:19;64769:3;72176:14;;72084:114;53707:149;52996:7;53023:12;;;:6;:12;;;;;:22;;;51397:30;51408:4;18551:10;51414:12;18471:98;51397:30;53822:26:::1;53834:4;53840:7;53822:11;:26::i;102772:1118::-:0;-1:-1:-1;;;;;103377:25:0;;10923:20;103369:72;;;;-1:-1:-1;;;103369:72:0;;25086:2:1;103369:72:0;;;25068:21:1;;;25105:18;;;25098:30;25164:34;25144:18;;;25137:62;25216:18;;103369:72:0;25058:182:1;103369:72:0;103515:12;103529:23;103564:5;-1:-1:-1;;;;;103556:19:0;103576:4;103556:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103514:67;;;;103600:7;103592:53;;;;-1:-1:-1;;;103592:53:0;;21325:2:1;103592:53:0;;;21307:21:1;21364:2;21344:18;;;21337:30;21403:34;21383:18;;;21376:62;-1:-1:-1;;;21454:18:1;;;21447:31;21495:19;;103592:53:0;21297:223:1;103592:53:0;103662:17;;:21;103658:225;;103804:10;103793:30;;;;;;;;;;;;:::i;:::-;103785:86;;;;-1:-1:-1;;;103785:86:0;;29022:2:1;103785:86:0;;;29004:21:1;29061:2;29041:18;;;29034:30;29100:34;29080:18;;;29073:62;-1:-1:-1;;;29151:18:1;;;29144:41;29202:19;;103785:86:0;28994:233:1;81383:98:0;81441:7;81468:5;81472:1;81468;:5;:::i;81782:98::-;81840:7;81867:5;81871:1;81867;:5;:::i;81026:98::-;81084:7;81111:5;81115:1;81111;:5;:::i;55667:229::-;55742:22;55750:4;55756:7;55742;:22::i;:::-;55737:152;;55781:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55781:29:0;;;;;;;;;:36;;-1:-1:-1;;55781:36:0;55813:4;55781:36;;;55864:12;18551:10;18471:98;;55864:12;-1:-1:-1;;;;;55837:40:0;55855:7;-1:-1:-1;;;;;55837:40:0;55849:4;55837:40;;;;;;;;;;55667:229;;:::o;57761:414::-;57824:4;59954:19;;;:12;;;:19;;;;;;57841:327;;-1:-1:-1;57884:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;58067:18;;58045:19;;;:12;;;:19;;;;;;:40;;;;58100:11;;57841:327;-1:-1:-1;58151:5:0;58144:12;;51519:204;51604:4;-1:-1:-1;;;;;;51628:47:0;;-1:-1:-1;;;51628:47:0;;:87;;;51679:36;51703:11;51679:23;:36::i;74171:204::-;74322:45;74349:4;74355:2;74359:7;74322:26;:45::i;55904:230::-;55979:22;55987:4;55993:7;55979;:22::i;:::-;55975:152;;;56050:5;56018:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;56018:29:0;;;;;;;;;;:37;;-1:-1:-1;;56018:37:0;;;56075:40;18551:10;;56018:12;;56075:40;;56050:5;56075:40;55904:230;;:::o;58351:1420::-;58417:4;58556:19;;;:12;;;:19;;;;;;58592:15;;58588:1176;;58967:21;58991:14;59004:1;58991:10;:14;:::i;:::-;59040:18;;58967:38;;-1:-1:-1;59020:17:0;;59040:22;;59061:1;;59040:22;:::i;:::-;59020:42;;59096:13;59083:9;:26;59079:405;;59130:17;59150:3;:11;;59162:9;59150:22;;;;;;-1:-1:-1;;;59150:22:0;;;;;;;;;;;;;;;;;59130:42;;59304:9;59275:3;:11;;59287:13;59275:26;;;;;;-1:-1:-1;;;59275:26:0;;;;;;;;;;;;;;;;;;;;:38;;;;59389:23;;;:12;;;:23;;;;;:36;;;59079:405;59565:17;;:3;;:17;;;-1:-1:-1;;;59565:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;59660:3;:12;;:19;59673:5;59660:19;;;;;;;;;;;59653:26;;;59703:4;59696:11;;;;;;;58588:1176;59747:5;59740:12;;;;;30635:382;-1:-1:-1;;;;;30715:16:0;;30707:61;;;;-1:-1:-1;;;30707:61:0;;23465:2:1;30707:61:0;;;23447:21:1;;;23484:18;;;23477:30;23543:34;23523:18;;;23516:62;23595:18;;30707:61:0;23437:182:1;30707:61:0;30788:16;30796:7;30788;:16::i;:::-;30787:17;30779:58;;;;-1:-1:-1;;;30779:58:0;;17081:2:1;30779:58:0;;;17063:21:1;17120:2;17100:18;;;17093:30;17159;17139:18;;;17132:58;17207:18;;30779:58:0;17053:178:1;30779:58:0;30850:45;30879:1;30883:2;30887:7;30850:20;:45::i;:::-;-1:-1:-1;;;;;30908:13:0;;;;;;:9;:13;;;;;:18;;30925:1;;30908:13;:18;;30925:1;;30908:18;:::i;:::-;;;;-1:-1:-1;;30937:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30937:21:0;-1:-1:-1;;;;;30937:21:0;;;;;;;;30976:33;;30937:16;;;30976:33;;30937:16;;30976:33;30635:382;;:::o;44317:206::-;44386:20;44398:7;44386:11;:20::i;:::-;44429:19;;;;:10;:19;;;;;44423:33;;;;;:::i;:::-;:38;;-1:-1:-1;44419:97:0;;44485:19;;;;:10;:19;;;;;44478:26;;;:::i;33378:799::-;33533:4;-1:-1:-1;;;;;33554:13:0;;10923:20;10971:8;33550:620;;33590:72;;-1:-1:-1;;;33590:72:0;;-1:-1:-1;;;;;33590:36:0;;;;;:72;;18551:10;;33641:4;;33647:7;;33656:5;;33590:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33590:72:0;;;;;;;;-1:-1:-1;;33590:72:0;;;;;;;;;;;;:::i;:::-;;;33586:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33832:13:0;;33828:272;;33875:60;;-1:-1:-1;;;33875:60:0;;;;;;;:::i;33828:272::-;34050:6;34044:13;34035:6;34031:2;34027:15;34020:38;33586:529;-1:-1:-1;;;;;;33713:51:0;-1:-1:-1;;;33713:51:0;;-1:-1:-1;33706:58:0;;33550:620;-1:-1:-1;34154:4:0;33378:799;;;;;;:::o;60535:120::-;60602:7;60629:3;:11;;60641:5;60629:18;;;;;;-1:-1:-1;;;60629:18:0;;;;;;;;;;;;;;;;;60622:25;;60535:120;;;;:::o;20212:451::-;20287:13;20313:19;20345:10;20349:6;20345:1;:10;:::i;:::-;:14;;20358:1;20345:14;:::i;:::-;20335:25;;;;;;-1:-1:-1;;;20335:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20335:25:0;;20313:47;;-1:-1:-1;;;20371:6:0;20378:1;20371:9;;;;;;-1:-1:-1;;;20371:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;20371:15:0;;;;;;;;;-1:-1:-1;;;20397:6:0;20404:1;20397:9;;;;;;-1:-1:-1;;;20397:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;20397:15:0;;;;;;;;-1:-1:-1;20428:9:0;20440:10;20444:6;20440:1;:10;:::i;:::-;:14;;20453:1;20440:14;:::i;:::-;20428:26;;20423:135;20460:1;20456;:5;20423:135;;;-1:-1:-1;;;20508:5:0;20516:3;20508:11;20495:25;;;;;-1:-1:-1;;;20495:25:0;;;;;;;;;;;;20483:6;20490:1;20483:9;;;;;;-1:-1:-1;;;20483:9:0;;;;;;;;;;;;:37;-1:-1:-1;;;;;20483:37:0;;;;;;;;-1:-1:-1;20545:1:0;20535:11;;;;;20463:3;;;:::i;:::-;;;20423:135;;;-1:-1:-1;20576:10:0;;20568:55;;;;-1:-1:-1;;;20568:55:0;;14339:2:1;20568:55:0;;;14321:21:1;;;14358:18;;;14351:30;14417:34;14397:18;;;14390:62;14469:18;;20568:55:0;14311:182:1;24048:334:0;24121:13;24155:16;24163:7;24155;:16::i;:::-;24147:76;;;;-1:-1:-1;;;24147:76:0;;26271:2:1;24147:76:0;;;26253:21:1;26310:2;26290:18;;;26283:30;26349:34;26329:18;;;26322:62;-1:-1:-1;;;26400:18:1;;;26393:45;26455:19;;24147:76:0;26243:237:1;24147:76:0;24236:21;24260:10;24707:9;;;;;;;;;-1:-1:-1;24707:9:0;;24630:94;;24260:10;24236:34;;24312:1;24294:7;24288:21;:25;:86;;;;;;;;;;;;;;;;;24340:7;24349:18;:7;:16;:18::i;:::-;24323:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;24281:93;24048:334;-1:-1:-1;;;24048:334:0:o;36572:224::-;36674:4;-1:-1:-1;;;;;;36698:50:0;;-1:-1:-1;;;36698:50:0;;:90;;;36752:36;36776:11;36752:23;:36::i;38248:589::-;-1:-1:-1;;;;;38454:18:0;;38450:187;;38489:40;38521:7;39664:10;:17;;39637:24;;;;:15;:24;;;;;:44;;;39692:24;;;;;;;;;;;;39560:164;38489:40;38450:187;;;38559:2;-1:-1:-1;;;;;38551:10:0;:4;-1:-1:-1;;;;;38551:10:0;;38547:90;;38578:47;38611:4;38617:7;38578:32;:47::i;:::-;-1:-1:-1;;;;;38651:16:0;;38647:183;;38684:45;38721:7;38684:36;:45::i;:::-;38647:183;;;38757:4;-1:-1:-1;;;;;38751:10:0;:2;-1:-1:-1;;;;;38751:10:0;;38747:83;;38778:40;38806:2;38810:7;38778:27;:40::i;31246:360::-;31306:13;31322:23;31337:7;31322:14;:23::i;:::-;31306:39;;31358:48;31379:5;31394:1;31398:7;31358:20;:48::i;:::-;31447:29;31464:1;31468:7;31447:8;:29::i;:::-;-1:-1:-1;;;;;31489:16:0;;;;;;:9;:16;;;;;:21;;31509:1;;31489:16;:21;;31509:1;;31489:21;:::i;:::-;;;;-1:-1:-1;;31528:16:0;;;;:7;:16;;;;;;31521:23;;-1:-1:-1;;;;;;31521:23:0;;;31562:36;31536:7;;31528:16;-1:-1:-1;;;;;31562:36:0;;;;;31528:16;;31562:36;31246:360;;:::o;18911:723::-;18967:13;19188:10;19184:53;;-1:-1:-1;19215:10:0;;;;;;;;;;;;-1:-1:-1;;;19215:10:0;;;;;;19184:53;19262:5;19247:12;19303:78;19310:9;;19303:78;;19336:8;;;;:::i;:::-;;-1:-1:-1;19359:10:0;;-1:-1:-1;19367:2:0;19359:10;;:::i;:::-;;;19303:78;;;19391:19;19423:6;19413:17;;;;;;-1:-1:-1;;;19413:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19413:17:0;;19391:39;;19441:154;19448:10;;19441:154;;19475:11;19485:1;19475:11;;:::i;:::-;;-1:-1:-1;19544:10:0;19552:2;19544:5;:10;:::i;:::-;19531:24;;:2;:24;:::i;:::-;19518:39;;19501:6;19508;19501:14;;;;;;-1:-1:-1;;;19501:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;19501:56:0;;;;;;;;-1:-1:-1;19572:11:0;19581:2;19572:11;;:::i;:::-;;;19441:154;;22759:305;22861:4;-1:-1:-1;;;;;;22898:40:0;;-1:-1:-1;;;22898:40:0;;:105;;-1:-1:-1;;;;;;;22955:48:0;;-1:-1:-1;;;22955:48:0;22898:105;:158;;;-1:-1:-1;;;;;;;;;;21477:40:0;;;23020:36;21368:157;40351:988;40617:22;40667:1;40642:22;40659:4;40642:16;:22::i;:::-;:26;;;;:::i;:::-;40679:18;40700:26;;;:17;:26;;;;;;40617:51;;-1:-1:-1;40833:28:0;;;40829:328;;-1:-1:-1;;;;;40900:18:0;;40878:19;40900:18;;;:12;:18;;;;;;;;:34;;;;;;;;;40951:30;;;;;;:44;;;41068:30;;:17;:30;;;;;:43;;;40829:328;-1:-1:-1;41253:26:0;;;;:17;:26;;;;;;;;41246:33;;;-1:-1:-1;;;;;41297:18:0;;;;;:12;:18;;;;;:34;;;;;;;41290:41;40351:988::o;41634:1079::-;41912:10;:17;41887:22;;41912:21;;41932:1;;41912:21;:::i;:::-;41944:18;41965:24;;;:15;:24;;;;;;42338:10;:26;;41887:46;;-1:-1:-1;41965:24:0;;41887:46;;42338:26;;;;-1:-1:-1;;;42338:26:0;;;;;;;;;;;;;;;;;42316:48;;42402:11;42377:10;42388;42377:22;;;;;;-1:-1:-1;;;42377:22:0;;;;;;;;;;;;;;;;;;;;:36;;;;42482:28;;;:15;:28;;;;;;;:41;;;42654:24;;;;;42647:31;42689:10;:16;;;;;-1:-1:-1;;;42689:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;41634:1079;;;;:::o;39138:221::-;39223:14;39240:20;39257:2;39240:16;:20::i;:::-;-1:-1:-1;;;;;39271:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;39316:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;39138:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:228::-;;745:3;738:4;730:6;726:17;722:27;712:2;;767:5;760;753:20;712:2;793:79;868:3;859:6;846:20;839:4;831:6;827:17;793:79;:::i;883:257::-;;995:2;983:9;974:7;970:23;966:32;963:2;;;1016:6;1008;1001:22;963:2;1060:9;1047:23;1079:31;1104:5;1079:31;:::i;1145:693::-;;;;;;1344:3;1332:9;1323:7;1319:23;1315:33;1312:2;;;1366:6;1358;1351:22;1312:2;1410:9;1397:23;1429:31;1454:5;1429:31;:::i;:::-;1479:5;-1:-1:-1;1531:2:1;1516:18;;1503:32;;-1:-1:-1;1582:2:1;1567:18;;1554:32;;-1:-1:-1;1638:2:1;1623:18;;1610:32;1651:30;1610:32;1651:30;:::i;:::-;1700:7;-1:-1:-1;1759:3:1;1744:19;;1731:33;1773;1731;1773;:::i;:::-;1825:7;1815:17;;;1302:536;;;;;;;;:::o;1843:398::-;;;1972:2;1960:9;1951:7;1947:23;1943:32;1940:2;;;1993:6;1985;1978:22;1940:2;2037:9;2024:23;2056:31;2081:5;2056:31;:::i;:::-;2106:5;-1:-1:-1;2163:2:1;2148:18;;2135:32;2176:33;2135:32;2176:33;:::i;:::-;2228:7;2218:17;;;1930:311;;;;;:::o;2246:466::-;;;;2392:2;2380:9;2371:7;2367:23;2363:32;2360:2;;;2413:6;2405;2398:22;2360:2;2457:9;2444:23;2476:31;2501:5;2476:31;:::i;:::-;2526:5;-1:-1:-1;2583:2:1;2568:18;;2555:32;2596:33;2555:32;2596:33;:::i;:::-;2350:362;;2648:7;;-1:-1:-1;;;2702:2:1;2687:18;;;;2674:32;;2350:362::o;2717:685::-;;;;;2889:3;2877:9;2868:7;2864:23;2860:33;2857:2;;;2911:6;2903;2896:22;2857:2;2955:9;2942:23;2974:31;2999:5;2974:31;:::i;:::-;3024:5;-1:-1:-1;3081:2:1;3066:18;;3053:32;3094:33;3053:32;3094:33;:::i;:::-;3146:7;-1:-1:-1;3200:2:1;3185:18;;3172:32;;-1:-1:-1;3255:2:1;3240:18;;3227:32;3282:18;3271:30;;3268:2;;;3319:6;3311;3304:22;3268:2;3347:49;3388:7;3379:6;3368:9;3364:22;3347:49;:::i;:::-;3337:59;;;2847:555;;;;;;;:::o;3407:392::-;;;3533:2;3521:9;3512:7;3508:23;3504:32;3501:2;;;3554:6;3546;3539:22;3501:2;3598:9;3585:23;3617:31;3642:5;3617:31;:::i;:::-;3667:5;-1:-1:-1;3724:2:1;3709:18;;3696:32;3737:30;3696:32;3737:30;:::i;3804:325::-;;;3933:2;3921:9;3912:7;3908:23;3904:32;3901:2;;;3954:6;3946;3939:22;3901:2;3998:9;3985:23;4017:31;4042:5;4017:31;:::i;:::-;4067:5;4119:2;4104:18;;;;4091:32;;-1:-1:-1;;;3891:238:1:o;4134:543::-;;;;4289:2;4277:9;4268:7;4264:23;4260:32;4257:2;;;4310:6;4302;4295:22;4257:2;4354:9;4341:23;4373:31;4398:5;4373:31;:::i;:::-;4423:5;-1:-1:-1;4475:2:1;4460:18;;4447:32;;-1:-1:-1;4530:2:1;4515:18;;4502:32;4557:18;4546:30;;4543:2;;;4594:6;4586;4579:22;4543:2;4622:49;4663:7;4654:6;4643:9;4639:22;4622:49;:::i;:::-;4612:59;;;4247:430;;;;;:::o;4682:255::-;;4802:2;4790:9;4781:7;4777:23;4773:32;4770:2;;;4823:6;4815;4808:22;4770:2;4860:9;4854:16;4879:28;4901:5;4879:28;:::i;4942:190::-;;5054:2;5042:9;5033:7;5029:23;5025:32;5022:2;;;5075:6;5067;5060:22;5022:2;-1:-1:-1;5103:23:1;;5012:120;-1:-1:-1;5012:120:1:o;5137:325::-;;;5266:2;5254:9;5245:7;5241:23;5237:32;5234:2;;;5287:6;5279;5272:22;5234:2;5328:9;5315:23;5305:33;;5388:2;5377:9;5373:18;5360:32;5401:31;5426:5;5401:31;:::i;5467:258::-;;;5596:2;5584:9;5575:7;5571:23;5567:32;5564:2;;;5617:6;5609;5602:22;5564:2;-1:-1:-1;;5645:23:1;;;5715:2;5700:18;;;5687:32;;-1:-1:-1;5554:171:1:o;5730:255::-;;5841:2;5829:9;5820:7;5816:23;5812:32;5809:2;;;5862:6;5854;5847:22;5809:2;5906:9;5893:23;5925:30;5949:5;5925:30;:::i;5990:259::-;;6112:2;6100:9;6091:7;6087:23;6083:32;6080:2;;;6133:6;6125;6118:22;6080:2;6170:9;6164:16;6189:30;6213:5;6189:30;:::i;6254:619::-;;;6393:2;6381:9;6372:7;6368:23;6364:32;6361:2;;;6414:6;6406;6399:22;6361:2;6459:9;6446:23;6492:18;6484:6;6481:30;6478:2;;;6529:6;6521;6514:22;6478:2;6557:22;;6610:4;6602:13;;6598:27;-1:-1:-1;6588:2:1;;6644:6;6636;6629:22;6588:2;6672:75;6739:7;6734:2;6721:16;6714:4;6710:2;6706:13;6672:75;:::i;:::-;6662:85;;;6797:4;6786:9;6782:20;6769:34;6812:31;6837:5;6812:31;:::i;7336:401::-;;;;7490:2;7478:9;7469:7;7465:23;7461:32;7458:2;;;7511:6;7503;7496:22;7458:2;7552:9;7539:23;7529:33;;7609:2;7598:9;7594:18;7581:32;7571:42;;7663:2;7652:9;7648:18;7635:32;7676:31;7701:5;7676:31;:::i;:::-;7726:5;7716:15;;;7448:289;;;;;:::o;7742:470::-;;;;;7913:3;7901:9;7892:7;7888:23;7884:33;7881:2;;;7935:6;7927;7920:22;7881:2;7976:9;7963:23;7953:33;;8033:2;8022:9;8018:18;8005:32;7995:42;;8087:2;8076:9;8072:18;8059:32;8100:31;8125:5;8100:31;:::i;:::-;7871:341;;;;-1:-1:-1;8150:5:1;;8202:2;8187:18;8174:32;;-1:-1:-1;;7871:341:1:o;8217:257::-;;8296:5;8290:12;8323:6;8318:3;8311:19;8339:63;8395:6;8388:4;8383:3;8379:14;8372:4;8365:5;8361:16;8339:63;:::i;:::-;8456:2;8435:15;-1:-1:-1;;8431:29:1;8422:39;;;;8463:4;8418:50;;8266:208;-1:-1:-1;;8266:208:1:o;8479:274::-;;8646:6;8640:13;8662:53;8708:6;8703:3;8696:4;8688:6;8684:17;8662:53;:::i;:::-;8731:16;;;;;8616:137;-1:-1:-1;;8616:137:1:o;8758:470::-;;8975:6;8969:13;8991:53;9037:6;9032:3;9025:4;9017:6;9013:17;8991:53;:::i;:::-;9107:13;;9066:16;;;;9129:57;9107:13;9066:16;9163:4;9151:17;;9129:57;:::i;:::-;9202:20;;8945:283;-1:-1:-1;;;;8945:283:1:o;9233:786::-;;9644:25;9639:3;9632:38;9699:6;9693:13;9715:62;9770:6;9765:2;9760:3;9756:12;9749:4;9741:6;9737:17;9715:62;:::i;:::-;-1:-1:-1;;;9836:2:1;9796:16;;;9828:11;;;9821:40;9886:13;;9908:63;9886:13;9957:2;9949:11;;9942:4;9930:17;;9908:63;:::i;:::-;9991:17;10010:2;9987:26;;9622:397;-1:-1:-1;;;;9622:397:1:o;11381:391::-;-1:-1:-1;;;;;11655:15:1;;;11637:34;;11707:15;;;;11702:2;11687:18;;11680:43;11754:2;11739:18;;11732:34;;;;11587:2;11572:18;;11554:218::o;12545:488::-;-1:-1:-1;;;;;12814:15:1;;;12796:34;;12866:15;;12861:2;12846:18;;12839:43;12913:2;12898:18;;12891:34;;;12961:3;12956:2;12941:18;;12934:31;;;12545:488;;12982:45;;13007:19;;12999:6;12982:45;:::i;:::-;12974:53;12748:285;-1:-1:-1;;;;;;12748:285:1:o;13913:219::-;;14062:2;14051:9;14044:21;14082:44;14122:2;14111:9;14107:18;14099:6;14082:44;:::i;16100:414::-;16302:2;16284:21;;;16341:2;16321:18;;;16314:30;16380:34;16375:2;16360:18;;16353:62;-1:-1:-1;;;16446:2:1;16431:18;;16424:48;16504:3;16489:19;;16274:240::o;21525:412::-;21727:2;21709:21;;;21766:2;21746:18;;;21739:30;21805:34;21800:2;21785:18;;21778:62;-1:-1:-1;;;21871:2:1;21856:18;;21849:46;21927:3;21912:19;;21699:238::o;27644:340::-;27846:2;27828:21;;;27885:2;27865:18;;;27858:30;-1:-1:-1;;;27919:2:1;27904:18;;27897:46;27975:2;27960:18;;27818:166::o;27989:413::-;28191:2;28173:21;;;28230:2;28210:18;;;28203:30;28269:34;28264:2;28249:18;;28242:62;-1:-1:-1;;;28335:2:1;28320:18;;28313:47;28392:3;28377:19;;28163:239::o;29987:355::-;30189:2;30171:21;;;30228:2;30208:18;;;30201:30;30267:33;30262:2;30247:18;;30240:61;30333:2;30318:18;;30161:181::o;31939:128::-;;32010:1;32006:6;32003:1;32000:13;31997:2;;;32016:18;;:::i;:::-;-1:-1:-1;32052:9:1;;31987:80::o;32072:120::-;;32138:1;32128:2;;32143:18;;:::i;:::-;-1:-1:-1;32177:9:1;;32118:74::o;32197:168::-;;32303:1;32299;32295:6;32291:14;32288:1;32285:21;32280:1;32273:9;32266:17;32262:45;32259:2;;;32310:18;;:::i;:::-;-1:-1:-1;32350:9:1;;32249:116::o;32370:125::-;;32438:1;32435;32432:8;32429:2;;;32443:18;;:::i;:::-;-1:-1:-1;32480:9:1;;32419:76::o;32500:258::-;32572:1;32582:113;32596:6;32593:1;32590:13;32582:113;;;32672:11;;;32666:18;32653:11;;;32646:39;32618:2;32611:10;32582:113;;;32713:6;32710:1;32707:13;32704:2;;;-1:-1:-1;;32748:1:1;32730:16;;32723:27;32553:205::o;32763:136::-;;32830:5;32820:2;;32839:18;;:::i;:::-;-1:-1:-1;;;32875:18:1;;32810:89::o;32904:380::-;32989:1;32979:12;;33036:1;33026:12;;;33047:2;;33101:4;33093:6;33089:17;33079:27;;33047:2;33154;33146:6;33143:14;33123:18;33120:38;33117:2;;;33200:10;33195:3;33191:20;33188:1;33181:31;33235:4;33232:1;33225:15;33263:4;33260:1;33253:15;33117:2;;32959:325;;;:::o;33289:135::-;;-1:-1:-1;;33349:17:1;;33346:2;;;33369:18;;:::i;:::-;-1:-1:-1;33416:1:1;33405:13;;33336:88::o;33429:112::-;;33487:1;33477:2;;33492:18;;:::i;:::-;-1:-1:-1;33526:9:1;;33467:74::o;33546:127::-;33607:10;33602:3;33598:20;33595:1;33588:31;33638:4;33635:1;33628:15;33662:4;33659:1;33652:15;33678:127;33739:10;33734:3;33730:20;33727:1;33720:31;33770:4;33767:1;33760:15;33794:4;33791:1;33784:15;33810:127;33871:10;33866:3;33862:20;33859:1;33852:31;33902:4;33899:1;33892:15;33926:4;33923:1;33916:15;33942:131;-1:-1:-1;;;;;34017:31:1;;34007:42;;33997:2;;34063:1;34060;34053:12;34078:118;34164:5;34157:13;34150:21;34143:5;34140:32;34130:2;;34186:1;34183;34176:12;34201:131;-1:-1:-1;;;;;;34275:32:1;;34265:43;;34255:2;;34322:1;34319;34312:12
Swarm Source
ipfs://01dbc355acd7f27d5b94710529e93d205125609036854e62678a001b07b5dc87
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.