Overview
POL Balance
0 POL
POL Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 55 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Sell | 29402449 | 917 days ago | IN | 0 POL | 0.00491949 | ||||
Sell | 29402449 | 917 days ago | IN | 0 POL | 0.02211248 | ||||
Sell | 29402449 | 917 days ago | IN | 0 POL | 0.02703904 | ||||
Sell | 29402449 | 917 days ago | IN | 0 POL | 0.01039695 | ||||
Auto Mint | 29401658 | 917 days ago | IN | 0 POL | 0.0073703 | ||||
Sell | 29401611 | 917 days ago | IN | 0 POL | 0.00294692 | ||||
Auto Mint | 29401582 | 917 days ago | IN | 0 POL | 0.00818607 | ||||
Sell | 29401522 | 917 days ago | IN | 0 POL | 0.00291174 | ||||
Auto Mint | 29401482 | 917 days ago | IN | 0 POL | 0.00940814 | ||||
Sell | 29401438 | 917 days ago | IN | 0 POL | 0.00297909 | ||||
Auto Mint | 29401248 | 917 days ago | IN | 0 POL | 0.0081039 | ||||
Sell | 29401200 | 917 days ago | IN | 0 POL | 0.00339104 | ||||
Auto Mint | 29401155 | 917 days ago | IN | 0 POL | 0.0084715 | ||||
Sell | 29401106 | 917 days ago | IN | 0 POL | 0.00329391 | ||||
Auto Mint | 29401066 | 917 days ago | IN | 0 POL | 0.00864809 | ||||
Sell | 29400919 | 917 days ago | IN | 0 POL | 0.00494838 | ||||
Auto Mint | 29400879 | 917 days ago | IN | 0 POL | 0.01287201 | ||||
Sell | 29400828 | 917 days ago | IN | 0 POL | 0.0061854 | ||||
Auto Mint | 29400806 | 917 days ago | IN | 0 POL | 0.01255727 | ||||
Sell | 29400776 | 917 days ago | IN | 0 POL | 0.00364598 | ||||
Auto Mint | 29400751 | 917 days ago | IN | 0 POL | 0.00991731 | ||||
Sell | 29400711 | 917 days ago | IN | 0 POL | 0.00473072 | ||||
Auto Mint | 29400645 | 917 days ago | IN | 0 POL | 0.01189947 | ||||
Sell | 29400594 | 917 days ago | IN | 0 POL | 0.00375565 | ||||
Auto Mint | 29400552 | 917 days ago | IN | 0 POL | 0.00984719 |
Loading...
Loading
Contract Name:
BEP40comNFTs
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-06-10 */ // SPDX-License-Identifier: MIT /** ██████╗ ███████╗██████╗ ██╗ ██╗ ██████╗ ██████╗ ██████╗ ███╗ ███╗ ███╗ ██╗███████╗████████╗███████╗ ██╔══██╗██╔════╝██╔══██╗██║ ██║██╔═████╗ ██╔════╝██╔═══██╗████╗ ████║ ████╗ ██║██╔════╝╚══██╔══╝██╔════╝ ██████╔╝█████╗ ██████╔╝███████║██║██╔██║ ██║ ██║ ██║██╔████╔██║ ██╔██╗ ██║█████╗ ██║ ███████╗ ██╔══██╗██╔══╝ ██╔═══╝ ╚════██║████╔╝██║ ██║ ██║ ██║██║╚██╔╝██║ ██║╚██╗██║██╔══╝ ██║ ╚════██║ ██████╔╝███████╗██║ ██║╚██████╔╝██╗╚██████╗╚██████╔╝██║ ╚═╝ ██║ ██║ ╚████║██║ ██║ ███████║ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚══════╝ ---------------------- [ bep40.com ] ---------------------- [ Make your life easier with BEP40! ] | | ERC-721 NFT Token Marketplace | |---------------------------- | | Flavors | | > BEP40.COM NFTs 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 BEP40NFTs 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 BEP40.COM NFTs * ERC-721 Marketplace with tokens and royalties support */ contract BEP40comNFTs is BEP40NFTs, 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) BEP40NFTs(_owner, name, symbol, _anyoneCanMint) { admin = _admin; contract_owner = _owner; require(_commissionRate<=100, "BEP40NFTs: 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, "BEP40NFTs: Only owner can sell this item"); // cannot set a price if auction is activated require(!auctions[tokenId].open, "BEP40NFTs: 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, "BEP40NFTs: The collectible is not for sale"); // transfer ownership address owner = ownerOf(tokenId); require(msg.sender!=owner, "BEP40NFTs: 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, "BEP40NFTs: The selected NFT is open for sale, cannot be auctioned"); require(!auctions[tokenId].open, "BEP40NFTs: The selected NFT already has an auction"); require(ownerOf(tokenId)==msg.sender, "BEP40NFTs: 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, "BEP40NFTs: 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
60806040523480156200001157600080fd5b5060405162004ee238038062004ee2833981016040819052620000349162000467565b8683838382828160009080519060200190620000529291906200030a565b508051620000689060019060208401906200030a565b506200007a91506000905085620001a1565b620000a67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a685620001a1565b600e805491151560ff1990921691909117905550506001600f5550601080546001600160a01b038089166001600160a01b03199283161790925560118054928a169290911691909117905560648511156200016d5760405162461bcd60e51b815260206004820152603660248201527f42455034304e4654733a20436f6d6d697373696f6e207261746520686173207460448201527f6f206265206265747765656e203020616e642031303000000000000000000000606482015260840160405180910390fd5b5050506013919091556014555050601280546001600160a01b0319166001600160a01b0392909216919091179055620005ad565b620001b88282620001e460201b62002a5a1760201c565b6000828152600c60209081526040909120620001df91839062002a64620001f4821b17901c565b505050565b620001f0828262000214565b5050565b60006200020b836001600160a01b038416620002b8565b90505b92915050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16620001f0576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002743390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205462000301575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200020e565b5060006200020e565b828054620003189062000541565b90600052602060002090601f0160209004810192826200033c576000855562000387565b82601f106200035757805160ff191683800117855562000387565b8280016001018555821562000387579182015b82811115620003875782518255916020019190600101906200036a565b506200039592915062000399565b5090565b5b808211156200039557600081556001016200039a565b600082601f830112620003c257600080fd5b81516001600160401b0380821115620003df57620003df6200057e565b604051601f8301601f19908116603f011681019082821181831017156200040a576200040a6200057e565b816040528381526020925086838588010111156200042757600080fd5b600091505b838210156200044b57858201830151818301840152908201906200042c565b838211156200045d5760008385830101525b9695505050505050565b600080600080600080600080610100898b0312156200048557600080fd5b8851620004928162000594565b60208a0151909850620004a58162000594565b60408a0151909750620004b88162000594565b60608a015160808b015160a08c015192985090965094506001600160401b0380821115620004e557600080fd5b620004f38c838d01620003b0565b945060c08b01519150808211156200050a57600080fd5b50620005198b828c01620003b0565b92505060e089015180151581146200053057600080fd5b809150509295985092959890939650565b600181811c908216806200055657607f821691505b602082108114156200057857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620005aa57600080fd5b50565b61492580620005bd6000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c806389f4c0b1116101de578063b88d4fde1161010f578063d96a094a116100ad578063e985e9c51161007c578063e985e9c514610897578063ee1b59e4146108d3578063fa184c49146108db578063fbe85f06146108ee57600080fd5b8063d96a094a14610830578063dc16bd4314610843578063e4e2bfe414610856578063e75722301461086957600080fd5b8063cd53d08e116100e9578063cd53d08e146107cc578063d04c6983146107f5578063d539139314610808578063d547741f1461081d57600080fd5b8063b88d4fde14610793578063c87b56dd146107a6578063ca15c873146107b957600080fd5b8063a22cb4651161017c578063b13fbe9611610156578063b13fbe961461073d578063b14c63c51461074a578063b1cb48ef1461076d578063b2ecfad41461078057600080fd5b8063a22cb465146106f7578063a36b14621461070a578063aa271e1a1461072a57600080fd5b806395d89b41116101b857806395d89b41146106c1578063983b2d56146106c9578063a1448194146106dc578063a217fddf146106ef57600080fd5b806389f4c0b1146106885780639010d07c1461069b57806391d14854146106ae57600080fd5b8063384f58eb116102b8578063571a26a0116102565780636352211e116102305780636352211e1461063c57806370a082311461064f578063880cdc31146106625780638832e6e31461067557600080fd5b8063571a26a014610581578063598647f81461061657806361a09c971461062957600080fd5b806342842e0e1161029257806342842e0e1461051c57806342966c681461052f578063451df52e146105425780634f6ccce71461056e57600080fd5b8063384f58eb146104e35780633ca88a2f146104f657806340c10f191461050957600080fd5b806323b872dd116103255780632f2ff15d116102ff5780632f2ff15d146104975780632f745c59146104aa578063331c6587146104bd57806336568abe146104d057600080fd5b806323b872dd1461044e578063248a9ca3146104615780632e1a7d4d1461048457600080fd5b8063095ea7b311610361578063095ea7b3146103f0578063172b099d1461040557806318160ddd146104335780631ac70f6f1461043b57600080fd5b806301ffc9a71461038857806306fdde03146103b0578063081812fc146103c5575b600080fd5b61039b610396366004614358565b610901565b60405190151581526020015b60405180910390f35b6103b8610912565b6040516103a791906145b2565b6103d86103d33660046142f8565b6109a4565b6040516001600160a01b0390911681526020016103a7565b6104036103fe366004614256565b610a31565b005b6104256104133660046142f8565b60176020526000908152604090205481565b6040519081526020016103a7565b600854610425565b61039b6104493660046142f8565b610b47565b61040361045c36600461417b565b610b96565b61042561046f3660046142f8565b6000908152600b602052604090206001015490565b6104036104923660046142f8565b610bc8565b6104036104a5366004614311565b610d77565b6104256104b8366004614256565b610d99565b6012546103d8906001600160a01b031681565b6104036104de366004614311565b610e2f565b6011546103d8906001600160a01b031681565b6104256105043660046142f8565b610e51565b610403610517366004614256565b610ed5565b61040361052a36600461417b565b610f05565b61040361053d3660046142f8565b610f20565b6103d86105503660046142f8565b6000908152601960205260409020600201546001600160a01b031690565b61042561057c3660046142f8565b610f9a565b6105d661058f3660046142f8565b6019602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0394851695939490921692909160ff9091169086565b604080516001600160a01b0397881681526020810196909652939095169284019290925260608301521515608082015260a081019190915260c0016103a7565b610403610624366004614336565b61102d565b610403610637366004614392565b6114e8565b6103d861064a3660046142f8565b61154a565b61042561065d3660046140c6565b6115c1565b6104036106703660046140c6565b611648565b610403610683366004614282565b611724565b61039b6106963660046142f8565b611755565b6103d86106a9366004614336565b6117e3565b61039b6106bc366004614311565b611802565b6103b861182d565b6104036106d73660046140c6565b61183c565b6104036106ea366004614256565b611871565b610425600081565b610403610705366004614228565b6118a1565b6104256107183660046142f8565b60166020526000908152604090205481565b61039b6107383660046140c6565b611966565b600e5461039b9060ff1681565b6104256107583660046142f8565b60009081526019602052604090206003015490565b61040361077b366004614426565b611980565b61039b61078e3660046142f8565b611b4d565b6104036107a13660046141bc565b611b84565b6103b86107b43660046142f8565b611bb6565b6104256107c73660046142f8565b611bc1565b6103d86107da3660046142f8565b6015602052600090815260409020546001600160a01b031681565b6104036108033660046143ed565b611bd8565b6104256000805160206148d083398151915281565b61040361082b366004614311565b611d20565b61040361083e3660046142f8565b611d2a565b6104036108513660046142f8565b6122b5565b61039b6108643660046142f8565b61280a565b61087c6108773660046142f8565b612882565b604080519384526020840192909252908201526060016103a7565b61039b6108a5366004614142565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61039b612901565b6104036108e93660046140e3565b61291e565b61039b6108fc3660046142f8565b6129c5565b600061090c82612a79565b92915050565b606060008054610921906147be565b80601f016020809104026020016040519081016040528092919081815260200182805461094d906147be565b801561099a5780601f1061096f5761010080835404028352916020019161099a565b820191906000526020600020905b81548152906001019060200180831161097d57829003601f168201915b5050505050905090565b60006109af82612a9e565b610a155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a3c8261154a565b9050806001600160a01b0316836001600160a01b03161415610aaa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a0c565b336001600160a01b0382161480610ac65750610ac681336108a5565b610b385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0c565b610b428383612abb565b505050565b600033610b538361154a565b6001600160a01b0316148015610b7b575060008281526019602052604090206004015460ff16155b801561090c5750506000908152601760205260409020541590565b610ba1335b82612b29565b610bbd5760405162461bcd60e51b8152600401610a0c90614691565b610b42838383612c13565b6002600f541415610beb5760405162461bcd60e51b8152600401610a0c906146e2565b6002600f55610bf9816129c5565b610c505760405162461bcd60e51b815260206004820152602260248201527f436f6e646974696f6e7320746f20776974686472617720617265206e6f74206d604482015261195d60f21b6064820152608401610a0c565b60008181526019602052604090206003015415610d2457601254600082815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b158015610cd057600080fd5b505af1158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0891906142db565b610d245760405162461bcd60e51b8152600401610a0c90614667565b600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b610d818282612dbe565b6000828152600c60205260409020610b429082612a64565b6000610da4836115c1565b8210610e065760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a0c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610e398282612de4565b6000828152600c60205260409020610b429082612e5e565b60008181526019602052604081206004015460ff16158015610e80575060008281526017602052604090205415155b8015610e99575060008281526017602052604090205415155b8015610eb5575030610eaa836109a4565b6001600160a01b0316145b15610ecd575060009081526017602052604090205490565b506000919050565b6060610edf612901565b610efb5760405162461bcd60e51b8152600401610a0c90614617565b610b428383612e73565b610b4283838360405180602001604052806000815250611b84565b610f2933610b9b565b610f8e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a0c565b610f9781612e9b565b50565b6000610fa560085490565b82106110085760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a0c565b6008828154811061101b5761101b61486a565b90600052602060002001549050919050565b6002600f5414156110505760405162461bcd60e51b8152600401610a0c906146e2565b6002600f55333b156110985760405162461bcd60e51b81526020600482015260116024820152704e6f20736372697074206b69646469657360781b6044820152606401610a0c565b60008281526019602052604090206004015460ff166110f95760405162461bcd60e51b815260206004820152601760248201527f4e6f206f70656e65642061756374696f6e20666f756e640000000000000000006044820152606401610a0c565b30611103836109a4565b6001600160a01b0316146111595760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420636f6d706c657465207468652061756374696f6e00000000006044820152606401610a0c565b6000828152601960205260409020600101544211156111b35760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71030b63932b0b23c9032b73232b21760511b6044820152606401610a0c565b60008281526019602052604090206003015481116112135760405162461bcd60e51b815260206004820152601e60248201527f546865726520616c7265616479206973206120686967686572206269642e00006044820152606401610a0c565b600061121e8361154a565b9050336001600160a01b03821614156112955760405162461bcd60e51b815260206004820152603360248201527f42455034304e4654733a20546865206f776e65722063616e6e6f742062696420604482015272686973206f776e20636f6c6c65637469626c6560681b6064820152608401610a0c565b600083815260196020526040902060030154156113c857601254600084815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b15801561131557600080fd5b505af1158015611329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134d91906142db565b6113695760405162461bcd60e51b8152600401610a0c90614667565b600083815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d910160405180910390a15b6000838152601960205260409081902060020180546001600160a01b0319163390811790915560125491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916114209130908790600401614551565b602060405180830381600087803b15801561143a57600080fd5b505af115801561144e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147291906142db565b61148e5760405162461bcd60e51b8152600401610a0c90614667565b600083815260196020908152604091829020600301849055815184815290810185905233917fdafc4a123c6bb3b49dd38a0cba299808581a0126a37248a5f1102d5e5fa06337910160405180910390a250506001600f5550565b60606114f2612901565b61150e5760405162461bcd60e51b8152600401610a0c90614617565b60005b61151f600d80546001019055565b50600d5461152c81612a9e565b6115115761153a8382612e73565b6115448185612ea4565b50505050565b6000818152600260205260408120546001600160a01b03168061090c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a0c565b60006001600160a01b03821661162c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a0c565b506001600160a01b031660009081526003602052604090205490565b6011546001600160a01b031633146116a25760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0c565b6116ad600082612f2f565b6116c56000805160206148d083398151915282612f2f565b6011546116ea906000805160206148d0833981519152906001600160a01b0316611d20565b601154611702906000906001600160a01b0316612f2f565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606061172e612901565b61174a5760405162461bcd60e51b8152600401610a0c90614617565b611544848484612f39565b6000333b158015611777575060008281526019602052604090206004015460ff165b801561179457506000828152601960205260409020600101544211155b80156117ba57506117a48261154a565b6001600160a01b0316336001600160a01b031614155b80156117d65750306117cb836109a4565b6001600160a01b0316145b15610ecd57506001919050565b6000828152600c602052604081206117fb9083612f6c565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610921906147be565b6000805160206148d08339815191526118558133612f78565b61186d6000805160206148d083398151915283610d77565b5050565b606061187b612901565b6118975760405162461bcd60e51b8152600401610a0c90614617565b610b428383612fdc565b6001600160a01b0382163314156118fa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061090c6000805160206148d083398151915283611802565b60008481526017602052604090205415611a0c5760405162461bcd60e51b815260206004820152604160248201527f42455034304e4654733a205468652073656c6563746564204e4654206973206f60448201527f70656e20666f722073616c652c2063616e6e6f742062652061756374696f6e656064820152601960fa1b608482015260a401610a0c565b60008481526019602052604090206004015460ff1615611a895760405162461bcd60e51b815260206004820152603260248201527f42455034304e4654733a205468652073656c6563746564204e465420616c726560448201527130b23c903430b99030b71030bab1ba34b7b760711b6064820152608401610a0c565b33611a938561154a565b6001600160a01b031614611afd5760405162461bcd60e51b815260206004820152602b60248201527f42455034304e4654733a204f6e6c79206f776e65722063616e2061756374696f60448201526a6e2074686973206974656d60a81b6064820152608401610a0c565b600084815260196020526040902080546001600160a01b0319166001600160a01b0384161781556001808201859055600582018390556004909101805460ff191690911790556115443085610a31565b600033611b598361154a565b6001600160a01b031614801561090c57505060009081526019602052604090206004015460ff161590565b611b8e3383612b29565b611baa5760405162461bcd60e51b8152600401610a0c90614691565b61154484848484612ff6565b606061090c82613029565b6000818152600c6020526040812061090c90613198565b33611be28461154a565b6001600160a01b031614611c495760405162461bcd60e51b815260206004820152602860248201527f42455034304e4654733a204f6e6c79206f776e65722063616e2073656c6c2074604482015267686973206974656d60c01b6064820152608401610a0c565b60008381526019602052604090206004015460ff1615611cd15760405162461bcd60e51b815260206004820152603a60248201527f42455034304e4654733a2043616e6e6f742073656c6c20616e206974656d207760448201527f686963682068617320616e206163746976652061756374696f6e0000000000006064820152608401610a0c565b60008381526017602052604090208290558115610b4257611cf23084610a31565b600083815260186020526040902080546001600160a01b0383166001600160a01b0319909116179055505050565b610e3982826131a2565b6002600f541415611d4d5760405162461bcd60e51b8152600401610a0c906146e2565b6002600f5560008181526019602052604090206004015460ff16158015611d81575060008181526017602052604090205415155b611de05760405162461bcd60e51b815260206004820152602a60248201527f42455034304e4654733a2054686520636f6c6c65637469626c65206973206e6f6044820152697420666f722073616c6560b01b6064820152608401610a0c565b6000611deb8261154a565b9050336001600160a01b0382161415611e635760405162461bcd60e51b815260206004820152603460248201527f42455034304e4654733a205468652073656c6c65722063616e6e6f742062757960448201527320686973206f776e20636f6c6c65637469626c6560601b6064820152608401610a0c565b611ebb306323b872dd60e01b833386604051602401611e8493929190614551565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526131c8565b6013546000838152601760205260408120549091611ee691606491611ee09190613353565b9061335f565b60145460008581526017602052604081205492935091611f0c91606491611ee091613353565b60008581526017602052604081205491925090611f35908390611f2f908661336b565b9061336b565b601254600087815260186020526040908190205490516323b872dd60e01b81529293506001600160a01b03918216926323b872dd92611f7d9233929116908690600401614551565b602060405180830381600087803b158015611f9757600080fd5b505af1158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf91906142db565b611feb5760405162461bcd60e51b8152600401610a0c90614667565b81156120a557601254600086815260156020526040908190205490516323b872dd60e01b81526001600160a01b03928316926323b872dd92612037923392909116908790600401614551565b602060405180830381600087803b15801561205157600080fd5b505af1158015612065573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208991906142db565b6120a55760405162461bcd60e51b8152600401610a0c90614667565b8215612152576012546010546040516323b872dd60e01b81526001600160a01b03928316926323b872dd926120e4923392909116908890600401614551565b602060405180830381600087803b1580156120fe57600080fd5b505af1158015612112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213691906142db565b6121525760405162461bcd60e51b8152600401610a0c90614667565b336001600160a01b0316846001600160a01b0316867f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe601760008a8152602001908152602001600020546040516121ab91815260200190565b60405180910390a4600085815260176020908152604091829020546013548351918252918101919091529081018490526001600160a01b0385169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600085815260176020908152604091829020546014548351918252918101919091529081018390526001600160a01b0385169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a3505050600091825250601760209081526040808320805460168452828520558390556018909152902080546001600160a01b03191690556001600f55565b6002600f5414156122d85760405162461bcd60e51b8152600401610a0c906146e2565b6002600f556122e68161280a565b6123245760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f742066696e616c697a6560881b6044820152606401610a0c565b6000818152601960205260409020600301541561275957600081815260196020526040812060028101546013546003909201546001600160a01b03909116929161237591606491611ee09190613353565b6014546000858152601960205260408120600301549293509161239e91606491611ee091613353565b600085815260196020526040812060030154919250906123c4908390611f2f908661336b565b6012546000878152601960205260409081902054905163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b15801561242357600080fd5b505af1158015612437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245b91906142db565b6124775760405162461bcd60e51b8152600401610a0c90614667565b811561252e576012546000868152601560205260409081902054905163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb90604401602060405180830381600087803b1580156124da57600080fd5b505af11580156124ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251291906142db565b61252e5760405162461bcd60e51b8152600401610a0c90614667565b82156125d85760125460105460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb90604401602060405180830381600087803b15801561258457600080fd5b505af1158015612598573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125bc91906142db565b6125d85760405162461bcd60e51b8152600401610a0c90614667565b600085815260196020908152604091829020805460039091015492519283526001600160a01b038781169391169188917f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe910160405180910390a460008581526019602090815260409182902080546003909101546014548451918252928101929092529181018490526001600160a01b039091169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a360008581526019602090815260409182902080546003909101546013548451918252928101929092529181018590526001600160a01b039091169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a360006127128661154a565b9050612735306323b872dd60e01b83888a604051602401611e8493929190614551565b50505060008381526019602090815260408083206003015460169092529091205550505b600081815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fdaec4582d5d9595688c8c98545fdd1c696d41c6aeaeb636737e84ed2f5c00eda910160405180910390a1600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b60008181526019602052604081206004015460ff16801561283c57506000828152601960205260409020600101544210155b80156117d65750600082815260196020526040902060058101546003909101541015806117d65750600082815260196020526040902060030154610ecd57506001919050565b60008181526017602052604081205481908190156128b35750505060008181526017602052604081205490806128fa565b600084815260196020526040902060030154156128e557505050600081815260196020526040812060030154816128fa565b50505060008181526016602052604081205481905b9193909250565b600e5460009060ff1680612919575061291933611966565b905090565b6011546001600160a01b031633146129785760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0c565b601080546001600160a01b039687166001600160a01b031991821617909155601394909455601492909255600e805491151560ff1990921691909117905560128054919093169116179055565b60008181526019602052604081206004015460ff1680156117d657506000828152601960205260409020600101544210801590612a12575060008281526019602052604090206003015415155b8015612a34575060008281526019602052604090206005810154600390910154105b806117d6575030612a44836109a4565b6001600160a01b031614610ecd57506001919050565b61186d8282613377565b60006117fb836001600160a01b0384166133fd565b60006001600160e01b03198216635a05180f60e01b148061090c575061090c8261344c565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612af08261154a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b3482612a9e565b612b955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a0c565b6000612ba08361154a565b9050806001600160a01b0316846001600160a01b03161480612bdb5750836001600160a01b0316612bd0846109a4565b6001600160a01b0316145b80612c0b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c268261154a565b6001600160a01b031614612c8e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a0c565b6001600160a01b038216612cf05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a0c565b612cfb838383613471565b612d06600082612abb565b6001600160a01b0383166000908152600360205260408120805460019290612d2f908490614764565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d5d908490614719565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612dda8133612f78565b610b428383613377565b6001600160a01b0381163314612e545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a0c565b61186d828261347c565b60006117fb836001600160a01b0384166134e3565b600081815260156020526040902080546001600160a01b0319163317905561186d82826135d6565b610f9781613715565b612ead82612a9e565b612f105760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a0c565b6000828152600a602090815260409091208251610b4292840190613f61565b610d818282612a5a565b612f438383612e73565b612f506000848484613755565b610b425760405162461bcd60e51b8152600401610a0c906145c5565b60006117fb8383613862565b612f828282611802565b61186d57612f9a816001600160a01b0316601461388c565b612fa583602061388c565b604051602001612fb69291906144dc565b60408051601f198184030181529082905262461bcd60e51b8252610a0c916004016145b2565b61186d828260405180602001604052806000815250612f39565b613001848484612c13565b61300d84848484613755565b6115445760405162461bcd60e51b8152600401610a0c906145c5565b606061303482612a9e565b61309a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a0c565b6000828152600a6020526040812080546130b3906147be565b80601f01602080910402602001604051908101604052809291908181526020018280546130df906147be565b801561312c5780601f106131015761010080835404028352916020019161312c565b820191906000526020600020905b81548152906001019060200180831161310f57829003601f168201915b50505050509050600061314a60408051602081019091526000815290565b905080516000141561315d575092915050565b81511561318f5780826040516020016131779291906144ad565b60405160208183030381529060405292505050919050565b612c0b84613a28565b600061090c825490565b6000828152600b60205260409020600101546131be8133612f78565b610b42838361347c565b6001600160a01b0382163b61321f5760405162461bcd60e51b815260206004820181905260248201527f536166654552433732313a2063616c6c20746f206e6f6e2d636f6e74726163746044820152606401610a0c565b600080836001600160a01b03168360405161323a9190614491565b6000604051808303816000865af19150503d8060008114613277576040519150601f19603f3d011682016040523d82523d6000602084013e61327c565b606091505b5091509150816132d85760405162461bcd60e51b815260206004820152602160248201527f536166654552433732313a206c6f772d6c6576656c2063616c6c206661696c656044820152601960fa1b6064820152608401610a0c565b80511561154457808060200190518101906132f391906142db565b6115445760405162461bcd60e51b815260206004820152602b60248201527f536166654552433732313a204552433230206f7065726174696f6e206469642060448201526a1b9bdd081cdd58d8d9595960aa1b6064820152608401610a0c565b60006117fb8284614745565b60006117fb8284614731565b60006117fb8284614764565b6133818282611802565b61186d576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133b93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546134445750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561090c565b50600061090c565b60006001600160e01b03198216637965db0b60e01b148061090c575061090c82613aff565b610b42838383613b24565b6134868282611802565b1561186d576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156135cc576000613507600183614764565b855490915060009061351b90600190614764565b905081811461358057600086600001828154811061353b5761353b61486a565b906000526020600020015490508087600001848154811061355e5761355e61486a565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061359157613591614854565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061090c565b600091505061090c565b6001600160a01b03821661362c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0c565b61363581612a9e565b156136825760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0c565b61368e60008383613471565b6001600160a01b03821660009081526003602052604081208054600192906136b7908490614719565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61371e81613bdc565b6000818152600a602052604090208054613737906147be565b159050610f97576000818152600a60205260408120610f9791613fe5565b60006001600160a01b0384163b1561385757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613799903390899088908890600401614575565b602060405180830381600087803b1580156137b357600080fd5b505af19250505080156137e3575060408051601f3d908101601f191682019092526137e091810190614375565b60015b61383d573d808015613811576040519150601f19603f3d011682016040523d82523d6000602084013e613816565b606091505b5080516138355760405162461bcd60e51b8152600401610a0c906145c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c0b565b506001949350505050565b60008260000182815481106138795761387961486a565b9060005260206000200154905092915050565b6060600061389b836002614745565b6138a6906002614719565b67ffffffffffffffff8111156138be576138be614880565b6040519080825280601f01601f1916602001820160405280156138e8576020820181803683370190505b509050600360fc1b816000815181106139035761390361486a565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106139325761393261486a565b60200101906001600160f81b031916908160001a9053506000613956846002614745565b613961906001614719565b90505b60018111156139d9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106139955761399561486a565b1a60f81b8282815181106139ab576139ab61486a565b60200101906001600160f81b031916908160001a90535060049490941c936139d2816147a7565b9050613964565b5083156117fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a0c565b6060613a3382612a9e565b613a975760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a0c565b6000613aae60408051602081019091526000815290565b90506000815111613ace57604051806020016040528060008152506117fb565b80613ad884613c83565b604051602001613ae99291906144ad565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b148061090c575061090c82613d81565b6001600160a01b038316613b7f57613b7a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613ba2565b816001600160a01b0316836001600160a01b031614613ba257613ba28382613dd1565b6001600160a01b038216613bb957610b4281613e6e565b826001600160a01b0316826001600160a01b031614610b4257610b428282613f1d565b6000613be78261154a565b9050613bf581600084613471565b613c00600083612abb565b6001600160a01b0381166000908152600360205260408120805460019290613c29908490614764565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613ca75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613cd15780613cbb816147f9565b9150613cca9050600a83614731565b9150613cab565b60008167ffffffffffffffff811115613cec57613cec614880565b6040519080825280601f01601f191660200182016040528015613d16576020820181803683370190505b5090505b8415612c0b57613d2b600183614764565b9150613d38600a86614814565b613d43906030614719565b60f81b818381518110613d5857613d5861486a565b60200101906001600160f81b031916908160001a905350613d7a600a86614731565b9450613d1a565b60006001600160e01b031982166380ac58cd60e01b1480613db257506001600160e01b03198216635b5e139f60e01b145b8061090c57506301ffc9a760e01b6001600160e01b031983161461090c565b60006001613dde846115c1565b613de89190614764565b600083815260076020526040902054909150808214613e3b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613e8090600190614764565b60008381526009602052604081205460088054939450909284908110613ea857613ea861486a565b906000526020600020015490508060088381548110613ec957613ec961486a565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613f0157613f01614854565b6001900381819060005260206000200160009055905550505050565b6000613f28836115c1565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613f6d906147be565b90600052602060002090601f016020900481019282613f8f5760008555613fd5565b82601f10613fa857805160ff1916838001178555613fd5565b82800160010185558215613fd5579182015b82811115613fd5578251825591602001919060010190613fba565b50613fe192915061401b565b5090565b508054613ff1906147be565b6000825580601f10614001575050565b601f016020900490600052602060002090810190610f9791905b5b80821115613fe1576000815560010161401c565b600067ffffffffffffffff8084111561404b5761404b614880565b604051601f8501601f19908116603f0116810190828211818310171561407357614073614880565b8160405280935085815286868601111561408c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126140b757600080fd5b6117fb83833560208501614030565b6000602082840312156140d857600080fd5b81356117fb81614896565b600080600080600060a086880312156140fb57600080fd5b853561410681614896565b945060208601359350604086013592506060860135614124816148ab565b9150608086013561413481614896565b809150509295509295909350565b6000806040838503121561415557600080fd5b823561416081614896565b9150602083013561417081614896565b809150509250929050565b60008060006060848603121561419057600080fd5b833561419b81614896565b925060208401356141ab81614896565b929592945050506040919091013590565b600080600080608085870312156141d257600080fd5b84356141dd81614896565b935060208501356141ed81614896565b925060408501359150606085013567ffffffffffffffff81111561421057600080fd5b61421c878288016140a6565b91505092959194509250565b6000806040838503121561423b57600080fd5b823561424681614896565b91506020830135614170816148ab565b6000806040838503121561426957600080fd5b823561427481614896565b946020939093013593505050565b60008060006060848603121561429757600080fd5b83356142a281614896565b925060208401359150604084013567ffffffffffffffff8111156142c557600080fd5b6142d1868287016140a6565b9150509250925092565b6000602082840312156142ed57600080fd5b81516117fb816148ab565b60006020828403121561430a57600080fd5b5035919050565b6000806040838503121561432457600080fd5b82359150602083013561417081614896565b6000806040838503121561434957600080fd5b50508035926020909101359150565b60006020828403121561436a57600080fd5b81356117fb816148b9565b60006020828403121561438757600080fd5b81516117fb816148b9565b600080604083850312156143a557600080fd5b823567ffffffffffffffff8111156143bc57600080fd5b8301601f810185136143cd57600080fd5b6143dc85823560208401614030565b925050602083013561417081614896565b60008060006060848603121561440257600080fd5b8335925060208401359150604084013561441b81614896565b809150509250925092565b6000806000806080858703121561443c57600080fd5b8435935060208501359250604085013561445581614896565b9396929550929360600135925050565b6000815180845261447d81602086016020860161477b565b601f01601f19169290920160200192915050565b600082516144a381846020870161477b565b9190910192915050565b600083516144bf81846020880161477b565b8351908301906144d381836020880161477b565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161451481601785016020880161477b565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161454581602884016020880161477b565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906145a890830184614465565b9695505050505050565b6020815260006117fb6020830184614465565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561472c5761472c614828565b500190565b6000826147405761474061483e565b500490565b600081600019048311821515161561475f5761475f614828565b500290565b60008282101561477657614776614828565b500390565b60005b8381101561479657818101518382015260200161477e565b838111156115445750506000910152565b6000816147b6576147b6614828565b506000190190565b600181811c908216806147d257607f821691505b602082108114156147f357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561480d5761480d614828565b5060010190565b6000826148235761482361483e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f9757600080fd5b8015158114610f9757600080fd5b6001600160e01b031981168114610f9757600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220c215662e7f98500d2330ef7dba3c59b651f29aedb408518a92f499736f455e6864736f6c634300080700330000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab0000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a4245503430204e4654730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054245503430000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c806389f4c0b1116101de578063b88d4fde1161010f578063d96a094a116100ad578063e985e9c51161007c578063e985e9c514610897578063ee1b59e4146108d3578063fa184c49146108db578063fbe85f06146108ee57600080fd5b8063d96a094a14610830578063dc16bd4314610843578063e4e2bfe414610856578063e75722301461086957600080fd5b8063cd53d08e116100e9578063cd53d08e146107cc578063d04c6983146107f5578063d539139314610808578063d547741f1461081d57600080fd5b8063b88d4fde14610793578063c87b56dd146107a6578063ca15c873146107b957600080fd5b8063a22cb4651161017c578063b13fbe9611610156578063b13fbe961461073d578063b14c63c51461074a578063b1cb48ef1461076d578063b2ecfad41461078057600080fd5b8063a22cb465146106f7578063a36b14621461070a578063aa271e1a1461072a57600080fd5b806395d89b41116101b857806395d89b41146106c1578063983b2d56146106c9578063a1448194146106dc578063a217fddf146106ef57600080fd5b806389f4c0b1146106885780639010d07c1461069b57806391d14854146106ae57600080fd5b8063384f58eb116102b8578063571a26a0116102565780636352211e116102305780636352211e1461063c57806370a082311461064f578063880cdc31146106625780638832e6e31461067557600080fd5b8063571a26a014610581578063598647f81461061657806361a09c971461062957600080fd5b806342842e0e1161029257806342842e0e1461051c57806342966c681461052f578063451df52e146105425780634f6ccce71461056e57600080fd5b8063384f58eb146104e35780633ca88a2f146104f657806340c10f191461050957600080fd5b806323b872dd116103255780632f2ff15d116102ff5780632f2ff15d146104975780632f745c59146104aa578063331c6587146104bd57806336568abe146104d057600080fd5b806323b872dd1461044e578063248a9ca3146104615780632e1a7d4d1461048457600080fd5b8063095ea7b311610361578063095ea7b3146103f0578063172b099d1461040557806318160ddd146104335780631ac70f6f1461043b57600080fd5b806301ffc9a71461038857806306fdde03146103b0578063081812fc146103c5575b600080fd5b61039b610396366004614358565b610901565b60405190151581526020015b60405180910390f35b6103b8610912565b6040516103a791906145b2565b6103d86103d33660046142f8565b6109a4565b6040516001600160a01b0390911681526020016103a7565b6104036103fe366004614256565b610a31565b005b6104256104133660046142f8565b60176020526000908152604090205481565b6040519081526020016103a7565b600854610425565b61039b6104493660046142f8565b610b47565b61040361045c36600461417b565b610b96565b61042561046f3660046142f8565b6000908152600b602052604090206001015490565b6104036104923660046142f8565b610bc8565b6104036104a5366004614311565b610d77565b6104256104b8366004614256565b610d99565b6012546103d8906001600160a01b031681565b6104036104de366004614311565b610e2f565b6011546103d8906001600160a01b031681565b6104256105043660046142f8565b610e51565b610403610517366004614256565b610ed5565b61040361052a36600461417b565b610f05565b61040361053d3660046142f8565b610f20565b6103d86105503660046142f8565b6000908152601960205260409020600201546001600160a01b031690565b61042561057c3660046142f8565b610f9a565b6105d661058f3660046142f8565b6019602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0394851695939490921692909160ff9091169086565b604080516001600160a01b0397881681526020810196909652939095169284019290925260608301521515608082015260a081019190915260c0016103a7565b610403610624366004614336565b61102d565b610403610637366004614392565b6114e8565b6103d861064a3660046142f8565b61154a565b61042561065d3660046140c6565b6115c1565b6104036106703660046140c6565b611648565b610403610683366004614282565b611724565b61039b6106963660046142f8565b611755565b6103d86106a9366004614336565b6117e3565b61039b6106bc366004614311565b611802565b6103b861182d565b6104036106d73660046140c6565b61183c565b6104036106ea366004614256565b611871565b610425600081565b610403610705366004614228565b6118a1565b6104256107183660046142f8565b60166020526000908152604090205481565b61039b6107383660046140c6565b611966565b600e5461039b9060ff1681565b6104256107583660046142f8565b60009081526019602052604090206003015490565b61040361077b366004614426565b611980565b61039b61078e3660046142f8565b611b4d565b6104036107a13660046141bc565b611b84565b6103b86107b43660046142f8565b611bb6565b6104256107c73660046142f8565b611bc1565b6103d86107da3660046142f8565b6015602052600090815260409020546001600160a01b031681565b6104036108033660046143ed565b611bd8565b6104256000805160206148d083398151915281565b61040361082b366004614311565b611d20565b61040361083e3660046142f8565b611d2a565b6104036108513660046142f8565b6122b5565b61039b6108643660046142f8565b61280a565b61087c6108773660046142f8565b612882565b604080519384526020840192909252908201526060016103a7565b61039b6108a5366004614142565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61039b612901565b6104036108e93660046140e3565b61291e565b61039b6108fc3660046142f8565b6129c5565b600061090c82612a79565b92915050565b606060008054610921906147be565b80601f016020809104026020016040519081016040528092919081815260200182805461094d906147be565b801561099a5780601f1061096f5761010080835404028352916020019161099a565b820191906000526020600020905b81548152906001019060200180831161097d57829003601f168201915b5050505050905090565b60006109af82612a9e565b610a155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a3c8261154a565b9050806001600160a01b0316836001600160a01b03161415610aaa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a0c565b336001600160a01b0382161480610ac65750610ac681336108a5565b610b385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0c565b610b428383612abb565b505050565b600033610b538361154a565b6001600160a01b0316148015610b7b575060008281526019602052604090206004015460ff16155b801561090c5750506000908152601760205260409020541590565b610ba1335b82612b29565b610bbd5760405162461bcd60e51b8152600401610a0c90614691565b610b42838383612c13565b6002600f541415610beb5760405162461bcd60e51b8152600401610a0c906146e2565b6002600f55610bf9816129c5565b610c505760405162461bcd60e51b815260206004820152602260248201527f436f6e646974696f6e7320746f20776974686472617720617265206e6f74206d604482015261195d60f21b6064820152608401610a0c565b60008181526019602052604090206003015415610d2457601254600082815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b158015610cd057600080fd5b505af1158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0891906142db565b610d245760405162461bcd60e51b8152600401610a0c90614667565b600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b610d818282612dbe565b6000828152600c60205260409020610b429082612a64565b6000610da4836115c1565b8210610e065760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a0c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610e398282612de4565b6000828152600c60205260409020610b429082612e5e565b60008181526019602052604081206004015460ff16158015610e80575060008281526017602052604090205415155b8015610e99575060008281526017602052604090205415155b8015610eb5575030610eaa836109a4565b6001600160a01b0316145b15610ecd575060009081526017602052604090205490565b506000919050565b6060610edf612901565b610efb5760405162461bcd60e51b8152600401610a0c90614617565b610b428383612e73565b610b4283838360405180602001604052806000815250611b84565b610f2933610b9b565b610f8e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a0c565b610f9781612e9b565b50565b6000610fa560085490565b82106110085760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a0c565b6008828154811061101b5761101b61486a565b90600052602060002001549050919050565b6002600f5414156110505760405162461bcd60e51b8152600401610a0c906146e2565b6002600f55333b156110985760405162461bcd60e51b81526020600482015260116024820152704e6f20736372697074206b69646469657360781b6044820152606401610a0c565b60008281526019602052604090206004015460ff166110f95760405162461bcd60e51b815260206004820152601760248201527f4e6f206f70656e65642061756374696f6e20666f756e640000000000000000006044820152606401610a0c565b30611103836109a4565b6001600160a01b0316146111595760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420636f6d706c657465207468652061756374696f6e00000000006044820152606401610a0c565b6000828152601960205260409020600101544211156111b35760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71030b63932b0b23c9032b73232b21760511b6044820152606401610a0c565b60008281526019602052604090206003015481116112135760405162461bcd60e51b815260206004820152601e60248201527f546865726520616c7265616479206973206120686967686572206269642e00006044820152606401610a0c565b600061121e8361154a565b9050336001600160a01b03821614156112955760405162461bcd60e51b815260206004820152603360248201527f42455034304e4654733a20546865206f776e65722063616e6e6f742062696420604482015272686973206f776e20636f6c6c65637469626c6560681b6064820152608401610a0c565b600083815260196020526040902060030154156113c857601254600084815260196020526040908190206002810154600390910154915163a9059cbb60e01b81526001600160a01b03918216600482015260248101929092529091169063a9059cbb90604401602060405180830381600087803b15801561131557600080fd5b505af1158015611329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134d91906142db565b6113695760405162461bcd60e51b8152600401610a0c90614667565b600083815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d910160405180910390a15b6000838152601960205260409081902060020180546001600160a01b0319163390811790915560125491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916114209130908790600401614551565b602060405180830381600087803b15801561143a57600080fd5b505af115801561144e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147291906142db565b61148e5760405162461bcd60e51b8152600401610a0c90614667565b600083815260196020908152604091829020600301849055815184815290810185905233917fdafc4a123c6bb3b49dd38a0cba299808581a0126a37248a5f1102d5e5fa06337910160405180910390a250506001600f5550565b60606114f2612901565b61150e5760405162461bcd60e51b8152600401610a0c90614617565b60005b61151f600d80546001019055565b50600d5461152c81612a9e565b6115115761153a8382612e73565b6115448185612ea4565b50505050565b6000818152600260205260408120546001600160a01b03168061090c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a0c565b60006001600160a01b03821661162c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a0c565b506001600160a01b031660009081526003602052604090205490565b6011546001600160a01b031633146116a25760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0c565b6116ad600082612f2f565b6116c56000805160206148d083398151915282612f2f565b6011546116ea906000805160206148d0833981519152906001600160a01b0316611d20565b601154611702906000906001600160a01b0316612f2f565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606061172e612901565b61174a5760405162461bcd60e51b8152600401610a0c90614617565b611544848484612f39565b6000333b158015611777575060008281526019602052604090206004015460ff165b801561179457506000828152601960205260409020600101544211155b80156117ba57506117a48261154a565b6001600160a01b0316336001600160a01b031614155b80156117d65750306117cb836109a4565b6001600160a01b0316145b15610ecd57506001919050565b6000828152600c602052604081206117fb9083612f6c565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610921906147be565b6000805160206148d08339815191526118558133612f78565b61186d6000805160206148d083398151915283610d77565b5050565b606061187b612901565b6118975760405162461bcd60e51b8152600401610a0c90614617565b610b428383612fdc565b6001600160a01b0382163314156118fa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061090c6000805160206148d083398151915283611802565b60008481526017602052604090205415611a0c5760405162461bcd60e51b815260206004820152604160248201527f42455034304e4654733a205468652073656c6563746564204e4654206973206f60448201527f70656e20666f722073616c652c2063616e6e6f742062652061756374696f6e656064820152601960fa1b608482015260a401610a0c565b60008481526019602052604090206004015460ff1615611a895760405162461bcd60e51b815260206004820152603260248201527f42455034304e4654733a205468652073656c6563746564204e465420616c726560448201527130b23c903430b99030b71030bab1ba34b7b760711b6064820152608401610a0c565b33611a938561154a565b6001600160a01b031614611afd5760405162461bcd60e51b815260206004820152602b60248201527f42455034304e4654733a204f6e6c79206f776e65722063616e2061756374696f60448201526a6e2074686973206974656d60a81b6064820152608401610a0c565b600084815260196020526040902080546001600160a01b0319166001600160a01b0384161781556001808201859055600582018390556004909101805460ff191690911790556115443085610a31565b600033611b598361154a565b6001600160a01b031614801561090c57505060009081526019602052604090206004015460ff161590565b611b8e3383612b29565b611baa5760405162461bcd60e51b8152600401610a0c90614691565b61154484848484612ff6565b606061090c82613029565b6000818152600c6020526040812061090c90613198565b33611be28461154a565b6001600160a01b031614611c495760405162461bcd60e51b815260206004820152602860248201527f42455034304e4654733a204f6e6c79206f776e65722063616e2073656c6c2074604482015267686973206974656d60c01b6064820152608401610a0c565b60008381526019602052604090206004015460ff1615611cd15760405162461bcd60e51b815260206004820152603a60248201527f42455034304e4654733a2043616e6e6f742073656c6c20616e206974656d207760448201527f686963682068617320616e206163746976652061756374696f6e0000000000006064820152608401610a0c565b60008381526017602052604090208290558115610b4257611cf23084610a31565b600083815260186020526040902080546001600160a01b0383166001600160a01b0319909116179055505050565b610e3982826131a2565b6002600f541415611d4d5760405162461bcd60e51b8152600401610a0c906146e2565b6002600f5560008181526019602052604090206004015460ff16158015611d81575060008181526017602052604090205415155b611de05760405162461bcd60e51b815260206004820152602a60248201527f42455034304e4654733a2054686520636f6c6c65637469626c65206973206e6f6044820152697420666f722073616c6560b01b6064820152608401610a0c565b6000611deb8261154a565b9050336001600160a01b0382161415611e635760405162461bcd60e51b815260206004820152603460248201527f42455034304e4654733a205468652073656c6c65722063616e6e6f742062757960448201527320686973206f776e20636f6c6c65637469626c6560601b6064820152608401610a0c565b611ebb306323b872dd60e01b833386604051602401611e8493929190614551565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526131c8565b6013546000838152601760205260408120549091611ee691606491611ee09190613353565b9061335f565b60145460008581526017602052604081205492935091611f0c91606491611ee091613353565b60008581526017602052604081205491925090611f35908390611f2f908661336b565b9061336b565b601254600087815260186020526040908190205490516323b872dd60e01b81529293506001600160a01b03918216926323b872dd92611f7d9233929116908690600401614551565b602060405180830381600087803b158015611f9757600080fd5b505af1158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf91906142db565b611feb5760405162461bcd60e51b8152600401610a0c90614667565b81156120a557601254600086815260156020526040908190205490516323b872dd60e01b81526001600160a01b03928316926323b872dd92612037923392909116908790600401614551565b602060405180830381600087803b15801561205157600080fd5b505af1158015612065573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208991906142db565b6120a55760405162461bcd60e51b8152600401610a0c90614667565b8215612152576012546010546040516323b872dd60e01b81526001600160a01b03928316926323b872dd926120e4923392909116908890600401614551565b602060405180830381600087803b1580156120fe57600080fd5b505af1158015612112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213691906142db565b6121525760405162461bcd60e51b8152600401610a0c90614667565b336001600160a01b0316846001600160a01b0316867f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe601760008a8152602001908152602001600020546040516121ab91815260200190565b60405180910390a4600085815260176020908152604091829020546013548351918252918101919091529081018490526001600160a01b0385169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a3600085815260176020908152604091829020546014548351918252918101919091529081018390526001600160a01b0385169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a3505050600091825250601760209081526040808320805460168452828520558390556018909152902080546001600160a01b03191690556001600f55565b6002600f5414156122d85760405162461bcd60e51b8152600401610a0c906146e2565b6002600f556122e68161280a565b6123245760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f742066696e616c697a6560881b6044820152606401610a0c565b6000818152601960205260409020600301541561275957600081815260196020526040812060028101546013546003909201546001600160a01b03909116929161237591606491611ee09190613353565b6014546000858152601960205260408120600301549293509161239e91606491611ee091613353565b600085815260196020526040812060030154919250906123c4908390611f2f908661336b565b6012546000878152601960205260409081902054905163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b15801561242357600080fd5b505af1158015612437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245b91906142db565b6124775760405162461bcd60e51b8152600401610a0c90614667565b811561252e576012546000868152601560205260409081902054905163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb90604401602060405180830381600087803b1580156124da57600080fd5b505af11580156124ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251291906142db565b61252e5760405162461bcd60e51b8152600401610a0c90614667565b82156125d85760125460105460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb90604401602060405180830381600087803b15801561258457600080fd5b505af1158015612598573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125bc91906142db565b6125d85760405162461bcd60e51b8152600401610a0c90614667565b600085815260196020908152604091829020805460039091015492519283526001600160a01b038781169391169188917f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe910160405180910390a460008581526019602090815260409182902080546003909101546014548451918252928101929092529181018490526001600160a01b039091169086907f69c21e0288fa2ee397e158571d58b093897385aaa1ccb8deacd82fc0e17a08bd9060600160405180910390a360008581526019602090815260409182902080546003909101546013548451918252928101929092529181018590526001600160a01b039091169086907fef7a63d352d8b0f42e35d7f8bd277ba75ba2ff721a50eaad4c62f1ee6561d5eb9060600160405180910390a360006127128661154a565b9050612735306323b872dd60e01b83888a604051602401611e8493929190614551565b50505060008381526019602090815260408083206003015460169092529091205550505b600081815260196020908152604091829020600281015460039091015483516001600160a01b039092168252918101919091527fdaec4582d5d9595688c8c98545fdd1c696d41c6aeaeb636737e84ed2f5c00eda910160405180910390a1600090815260196020526040812080546001600160a01b0319908116825560018083018490556002830180549092169091556003820183905560048201805460ff19169055600590910191909155600f55565b60008181526019602052604081206004015460ff16801561283c57506000828152601960205260409020600101544210155b80156117d65750600082815260196020526040902060058101546003909101541015806117d65750600082815260196020526040902060030154610ecd57506001919050565b60008181526017602052604081205481908190156128b35750505060008181526017602052604081205490806128fa565b600084815260196020526040902060030154156128e557505050600081815260196020526040812060030154816128fa565b50505060008181526016602052604081205481905b9193909250565b600e5460009060ff1680612919575061291933611966565b905090565b6011546001600160a01b031633146129785760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920636f6e7472616374206f776e65722063616e20646f2074686973006044820152606401610a0c565b601080546001600160a01b039687166001600160a01b031991821617909155601394909455601492909255600e805491151560ff1990921691909117905560128054919093169116179055565b60008181526019602052604081206004015460ff1680156117d657506000828152601960205260409020600101544210801590612a12575060008281526019602052604090206003015415155b8015612a34575060008281526019602052604090206005810154600390910154105b806117d6575030612a44836109a4565b6001600160a01b031614610ecd57506001919050565b61186d8282613377565b60006117fb836001600160a01b0384166133fd565b60006001600160e01b03198216635a05180f60e01b148061090c575061090c8261344c565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612af08261154a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b3482612a9e565b612b955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a0c565b6000612ba08361154a565b9050806001600160a01b0316846001600160a01b03161480612bdb5750836001600160a01b0316612bd0846109a4565b6001600160a01b0316145b80612c0b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c268261154a565b6001600160a01b031614612c8e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a0c565b6001600160a01b038216612cf05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a0c565b612cfb838383613471565b612d06600082612abb565b6001600160a01b0383166000908152600360205260408120805460019290612d2f908490614764565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d5d908490614719565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612dda8133612f78565b610b428383613377565b6001600160a01b0381163314612e545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a0c565b61186d828261347c565b60006117fb836001600160a01b0384166134e3565b600081815260156020526040902080546001600160a01b0319163317905561186d82826135d6565b610f9781613715565b612ead82612a9e565b612f105760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a0c565b6000828152600a602090815260409091208251610b4292840190613f61565b610d818282612a5a565b612f438383612e73565b612f506000848484613755565b610b425760405162461bcd60e51b8152600401610a0c906145c5565b60006117fb8383613862565b612f828282611802565b61186d57612f9a816001600160a01b0316601461388c565b612fa583602061388c565b604051602001612fb69291906144dc565b60408051601f198184030181529082905262461bcd60e51b8252610a0c916004016145b2565b61186d828260405180602001604052806000815250612f39565b613001848484612c13565b61300d84848484613755565b6115445760405162461bcd60e51b8152600401610a0c906145c5565b606061303482612a9e565b61309a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a0c565b6000828152600a6020526040812080546130b3906147be565b80601f01602080910402602001604051908101604052809291908181526020018280546130df906147be565b801561312c5780601f106131015761010080835404028352916020019161312c565b820191906000526020600020905b81548152906001019060200180831161310f57829003601f168201915b50505050509050600061314a60408051602081019091526000815290565b905080516000141561315d575092915050565b81511561318f5780826040516020016131779291906144ad565b60405160208183030381529060405292505050919050565b612c0b84613a28565b600061090c825490565b6000828152600b60205260409020600101546131be8133612f78565b610b42838361347c565b6001600160a01b0382163b61321f5760405162461bcd60e51b815260206004820181905260248201527f536166654552433732313a2063616c6c20746f206e6f6e2d636f6e74726163746044820152606401610a0c565b600080836001600160a01b03168360405161323a9190614491565b6000604051808303816000865af19150503d8060008114613277576040519150601f19603f3d011682016040523d82523d6000602084013e61327c565b606091505b5091509150816132d85760405162461bcd60e51b815260206004820152602160248201527f536166654552433732313a206c6f772d6c6576656c2063616c6c206661696c656044820152601960fa1b6064820152608401610a0c565b80511561154457808060200190518101906132f391906142db565b6115445760405162461bcd60e51b815260206004820152602b60248201527f536166654552433732313a204552433230206f7065726174696f6e206469642060448201526a1b9bdd081cdd58d8d9595960aa1b6064820152608401610a0c565b60006117fb8284614745565b60006117fb8284614731565b60006117fb8284614764565b6133818282611802565b61186d576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133b93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546134445750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561090c565b50600061090c565b60006001600160e01b03198216637965db0b60e01b148061090c575061090c82613aff565b610b42838383613b24565b6134868282611802565b1561186d576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156135cc576000613507600183614764565b855490915060009061351b90600190614764565b905081811461358057600086600001828154811061353b5761353b61486a565b906000526020600020015490508087600001848154811061355e5761355e61486a565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061359157613591614854565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061090c565b600091505061090c565b6001600160a01b03821661362c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0c565b61363581612a9e565b156136825760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0c565b61368e60008383613471565b6001600160a01b03821660009081526003602052604081208054600192906136b7908490614719565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61371e81613bdc565b6000818152600a602052604090208054613737906147be565b159050610f97576000818152600a60205260408120610f9791613fe5565b60006001600160a01b0384163b1561385757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613799903390899088908890600401614575565b602060405180830381600087803b1580156137b357600080fd5b505af19250505080156137e3575060408051601f3d908101601f191682019092526137e091810190614375565b60015b61383d573d808015613811576040519150601f19603f3d011682016040523d82523d6000602084013e613816565b606091505b5080516138355760405162461bcd60e51b8152600401610a0c906145c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c0b565b506001949350505050565b60008260000182815481106138795761387961486a565b9060005260206000200154905092915050565b6060600061389b836002614745565b6138a6906002614719565b67ffffffffffffffff8111156138be576138be614880565b6040519080825280601f01601f1916602001820160405280156138e8576020820181803683370190505b509050600360fc1b816000815181106139035761390361486a565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106139325761393261486a565b60200101906001600160f81b031916908160001a9053506000613956846002614745565b613961906001614719565b90505b60018111156139d9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106139955761399561486a565b1a60f81b8282815181106139ab576139ab61486a565b60200101906001600160f81b031916908160001a90535060049490941c936139d2816147a7565b9050613964565b5083156117fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a0c565b6060613a3382612a9e565b613a975760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a0c565b6000613aae60408051602081019091526000815290565b90506000815111613ace57604051806020016040528060008152506117fb565b80613ad884613c83565b604051602001613ae99291906144ad565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b148061090c575061090c82613d81565b6001600160a01b038316613b7f57613b7a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613ba2565b816001600160a01b0316836001600160a01b031614613ba257613ba28382613dd1565b6001600160a01b038216613bb957610b4281613e6e565b826001600160a01b0316826001600160a01b031614610b4257610b428282613f1d565b6000613be78261154a565b9050613bf581600084613471565b613c00600083612abb565b6001600160a01b0381166000908152600360205260408120805460019290613c29908490614764565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613ca75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613cd15780613cbb816147f9565b9150613cca9050600a83614731565b9150613cab565b60008167ffffffffffffffff811115613cec57613cec614880565b6040519080825280601f01601f191660200182016040528015613d16576020820181803683370190505b5090505b8415612c0b57613d2b600183614764565b9150613d38600a86614814565b613d43906030614719565b60f81b818381518110613d5857613d5861486a565b60200101906001600160f81b031916908160001a905350613d7a600a86614731565b9450613d1a565b60006001600160e01b031982166380ac58cd60e01b1480613db257506001600160e01b03198216635b5e139f60e01b145b8061090c57506301ffc9a760e01b6001600160e01b031983161461090c565b60006001613dde846115c1565b613de89190614764565b600083815260076020526040902054909150808214613e3b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613e8090600190614764565b60008381526009602052604081205460088054939450909284908110613ea857613ea861486a565b906000526020600020015490508060088381548110613ec957613ec961486a565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613f0157613f01614854565b6001900381819060005260206000200160009055905550505050565b6000613f28836115c1565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613f6d906147be565b90600052602060002090601f016020900481019282613f8f5760008555613fd5565b82601f10613fa857805160ff1916838001178555613fd5565b82800160010185558215613fd5579182015b82811115613fd5578251825591602001919060010190613fba565b50613fe192915061401b565b5090565b508054613ff1906147be565b6000825580601f10614001575050565b601f016020900490600052602060002090810190610f9791905b5b80821115613fe1576000815560010161401c565b600067ffffffffffffffff8084111561404b5761404b614880565b604051601f8501601f19908116603f0116810190828211818310171561407357614073614880565b8160405280935085815286868601111561408c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126140b757600080fd5b6117fb83833560208501614030565b6000602082840312156140d857600080fd5b81356117fb81614896565b600080600080600060a086880312156140fb57600080fd5b853561410681614896565b945060208601359350604086013592506060860135614124816148ab565b9150608086013561413481614896565b809150509295509295909350565b6000806040838503121561415557600080fd5b823561416081614896565b9150602083013561417081614896565b809150509250929050565b60008060006060848603121561419057600080fd5b833561419b81614896565b925060208401356141ab81614896565b929592945050506040919091013590565b600080600080608085870312156141d257600080fd5b84356141dd81614896565b935060208501356141ed81614896565b925060408501359150606085013567ffffffffffffffff81111561421057600080fd5b61421c878288016140a6565b91505092959194509250565b6000806040838503121561423b57600080fd5b823561424681614896565b91506020830135614170816148ab565b6000806040838503121561426957600080fd5b823561427481614896565b946020939093013593505050565b60008060006060848603121561429757600080fd5b83356142a281614896565b925060208401359150604084013567ffffffffffffffff8111156142c557600080fd5b6142d1868287016140a6565b9150509250925092565b6000602082840312156142ed57600080fd5b81516117fb816148ab565b60006020828403121561430a57600080fd5b5035919050565b6000806040838503121561432457600080fd5b82359150602083013561417081614896565b6000806040838503121561434957600080fd5b50508035926020909101359150565b60006020828403121561436a57600080fd5b81356117fb816148b9565b60006020828403121561438757600080fd5b81516117fb816148b9565b600080604083850312156143a557600080fd5b823567ffffffffffffffff8111156143bc57600080fd5b8301601f810185136143cd57600080fd5b6143dc85823560208401614030565b925050602083013561417081614896565b60008060006060848603121561440257600080fd5b8335925060208401359150604084013561441b81614896565b809150509250925092565b6000806000806080858703121561443c57600080fd5b8435935060208501359250604085013561445581614896565b9396929550929360600135925050565b6000815180845261447d81602086016020860161477b565b601f01601f19169290920160200192915050565b600082516144a381846020870161477b565b9190910192915050565b600083516144bf81846020880161477b565b8351908301906144d381836020880161477b565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161451481601785016020880161477b565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161454581602884016020880161477b565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906145a890830184614465565b9695505050505050565b6020815260006117fb6020830184614465565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561472c5761472c614828565b500190565b6000826147405761474061483e565b500490565b600081600019048311821515161561475f5761475f614828565b500290565b60008282101561477657614776614828565b500390565b60005b8381101561479657818101518382015260200161477e565b838111156115445750506000910152565b6000816147b6576147b6614828565b506000190190565b600181811c908216806147d257607f821691505b602082108114156147f357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561480d5761480d614828565b5060010190565b6000826148235761482361483e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f9757600080fd5b8015158114610f9757600080fd5b6001600160e01b031981168114610f9757600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220c215662e7f98500d2330ef7dba3c59b651f29aedb408518a92f499736f455e6864736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab0000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a4245503430204e4654730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054245503430000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _payment_token (address): 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619
Arg [1] : _owner (address): 0x0138193f900B61458d13d32B2Ffb85C6E134d6AB
Arg [2] : _admin (address): 0x0138193f900B61458d13d32B2Ffb85C6E134d6AB
Arg [3] : _commissionRate (uint256): 3
Arg [4] : _royaltiesCommissionRate (uint256): 3
Arg [5] : name (string): BEP40 NFTs
Arg [6] : symbol (string): BEP40
Arg [7] : _anyoneCanMint (bool): True
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [1] : 0000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab
Arg [2] : 0000000000000000000000000138193f900b61458d13d32b2ffb85c6e134d6ab
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 4245503430204e46547300000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 4245503430000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
87189:17037:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73895:237;;;;;;:::i;:::-;;:::i;:::-;;;13244:14:1;;13237:22;13219:41;;13207:2;13192:18;73895:237:0;;;;;;;;23014:100;;;:::i;:::-;;;;;;;:::i;24573:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;9950:32:1;;;9932:51;;9920:2;9905:18;24573:221:0;9786:203:1;24096:411:0;;;;;;:::i;:::-;;:::i;:::-;;88046:47;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;13417:25:1;;;13405:2;13390:18;88046:47:0;13271:177:1;36522:113:0;36610:10;:17;36522:113;;93850:175;;;;;;:::i;:::-;;:::i;25463:339::-;;;;;;:::i;:::-;;:::i;52240:123::-;;;;;;:::i;:::-;52306:7;52333:12;;;:6;:12;;;;;:22;;;;52240:123;98214:458;;;;;;:::i;:::-;;:::i;69604:196::-;;;;;;:::i;:::-;;:::i;36190:256::-;;;;;;:::i;:::-;;:::i;87523:26::-;;;;;-1:-1:-1;;;;;87523:26:0;;;70189:205;;;;;;:::i;:::-;;:::i;87441:29::-;;;;;-1:-1:-1;;;;;87441:29:0;;;91697:301;;;;;;:::i;:::-;;:::i;72851:98::-;;;;;;:::i;:::-;;:::i;25873:185::-;;;;;;:::i;:::-;;:::i;44183:245::-;;;;;;:::i;:::-;;:::i;101407:135::-;;;;;;:::i;:::-;101468:15;101503:17;;;:8;:17;;;;;:31;;;-1:-1:-1;;;;;101503:31:0;;101407:135;36712:233;;;;;;:::i;:::-;;:::i;89110:43::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;89110:43:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10874:15:1;;;10856:34;;10921:2;10906:18;;10899:34;;;;10969:15;;;;10949:18;;;10942:43;;;;11016:2;11001:18;;10994:34;11072:14;11065:22;11059:3;11044:19;;11037:51;10836:3;11104:19;;11097:35;;;;10805:3;10790:19;89110:43:0;10505:633:1;95632:1769:0;;;;;;:::i;:::-;;:::i;72554:289::-;;;;;;:::i;:::-;;:::i;22708:239::-;;;;;;:::i;:::-;;:::i;22438:208::-;;;;;;:::i;:::-;;:::i;103706:515::-;;;;;;:::i;:::-;;:::i;73196:133::-;;;;;;:::i;:::-;;:::i;94832:405::-;;;;;;:::i;:::-;;:::i;69059:145::-;;;;;;:::i;:::-;;:::i;51125:139::-;;;;;;:::i;:::-;;:::i;23183:104::-;;;:::i;74140:115::-;;;;;;:::i;:::-;;:::i;72957:106::-;;;;;;:::i;:::-;;:::i;50216:49::-;;50261:4;50216:49;;24866:295;;;;;;:::i;:::-;;:::i;87884:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;73071:117;;;;;;:::i;:::-;;:::i;72263:25::-;;;;;;;;;101550:121;;;;;;:::i;:::-;101608:7;101635:17;;;:8;:17;;;;;:28;;;;101550:121;94087:737;;;;;;:::i;:::-;;:::i;90318:144::-;;;;;;:::i;:::-;;:::i;26129:328::-;;;;;;:::i;:::-;;:::i;73691:196::-;;;;;;:::i;:::-;;:::i;69378:134::-;;;;;;:::i;:::-;;:::i;87791:43::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;87791:43:0;;;90508:740;;;;;;:::i;:::-;;:::i;72147:62::-;;-1:-1:-1;;;;;;;;;;;72147:62:0;;69893:201;;;;;;:::i;:::-;;:::i;92025:1817::-;;;;;;:::i;:::-;;:::i;99187:2184::-;;;;;;:::i;:::-;;:::i;98680:428::-;;;;;;:::i;:::-;;:::i;91390:299::-;;;;;;:::i;:::-;;:::i;:::-;;;;31563:25:1;;;31619:2;31604:18;;31597:34;;;;31647:18;;;31640:34;31551:2;31536:18;91390:299:0;31361:319:1;25232:164:0;;;;;;:::i;:::-;-1:-1:-1;;;;;25353:25:0;;;25329:4;25353:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;25232:164;74263:110;;;:::i;103219:454::-;;;;;;:::i;:::-;;:::i;97608:540::-;;;;;;:::i;:::-;;:::i;73895:237::-;74059:4;74088:36;74112:11;74088:23;:36::i;:::-;74081:43;73895:237;-1:-1:-1;;73895:237:0:o;23014:100::-;23068:13;23101:5;23094:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23014:100;:::o;24573:221::-;24649:7;24677:16;24685:7;24677;:16::i;:::-;24669:73;;;;-1:-1:-1;;;24669:73:0;;23949:2:1;24669:73:0;;;23931:21:1;23988:2;23968:18;;;23961:30;24027:34;24007:18;;;24000:62;-1:-1:-1;;;24078:18:1;;;24071:42;24130:19;;24669:73:0;;;;;;;;;-1:-1:-1;24762:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;24762:24:0;;24573:221::o;24096:411::-;24177:13;24193:23;24208:7;24193:14;:23::i;:::-;24177:39;;24241:5;-1:-1:-1;;;;;24235:11:0;:2;-1:-1:-1;;;;;24235:11:0;;;24227:57;;;;-1:-1:-1;;;24227:57:0;;26307:2:1;24227:57:0;;;26289:21:1;26346:2;26326:18;;;26319:30;26385:34;26365:18;;;26358:62;-1:-1:-1;;;26436:18:1;;;26429:31;26477:19;;24227:57:0;26105:397:1;24227:57:0;17861:10;-1:-1:-1;;;;;24319:21:0;;;;:62;;-1:-1:-1;24344:37:0;24361:5;17861:10;25232:164;:::i;24344:37::-;24297:168;;;;-1:-1:-1;;;24297:168:0;;20279:2:1;24297:168:0;;;20261:21:1;20318:2;20298:18;;;20291:30;20357:34;20337:18;;;20330:62;20428:26;20408:18;;;20401:54;20472:19;;24297:168:0;20077:420:1;24297:168:0;24478:21;24487:2;24491:7;24478:8;:21::i;:::-;24166:341;24096:411;;:::o;93850:175::-;93908:4;93951:10;93933:16;93941:7;93933;:16::i;:::-;-1:-1:-1;;;;;93933:28:0;;:55;;;;-1:-1:-1;93966:17:0;;;;:8;:17;;;;;:22;;;;;93965:23;93933:55;:83;;;;-1:-1:-1;;93992:21:0;;;;:12;:21;;;;;;:24;;93850:175::o;25463:339::-;25658:41;17861:10;25677:12;25691:7;25658:18;:41::i;:::-;25650:103;;;;-1:-1:-1;;;25650:103:0;;;;;;;:::i;:::-;25766:28;25776:4;25782:2;25786:7;25766:9;:28::i;98214:458::-;76305:1;76903:7;;:19;;76895:63;;;;-1:-1:-1;;;76895:63:0;;;;;;;:::i;:::-;76305:1;77036:7;:18;98290:20:::1;98302:7:::0;98290:11:::1;:20::i;:::-;98282:67;;;::::0;-1:-1:-1;;;98282:67:0;;29123:2:1;98282:67:0::1;::::0;::::1;29105:21:1::0;29162:2;29142:18;;;29135:30;29201:34;29181:18;;;29174:62;-1:-1:-1;;;29252:18:1;;;29245:32;29294:19;;98282:67:0::1;28921:398:1::0;98282:67:0::1;98449:1;98418:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:32;98414:179:::1;;98475:13;::::0;::::1;98498:17:::0;;;:8:::1;:17;::::0;;;;;;:31:::1;::::0;::::1;::::0;98531:28:::1;::::0;;::::1;::::0;98475:85;;-1:-1:-1;;;98475:85:0;;-1:-1:-1;;;;;98498:31:0;;::::1;98475:85;::::0;::::1;10400:51:1::0;10467:18;;;10460:34;;;;98475:13:0;;::::1;::::0;:22:::1;::::0;10373:18:1;;98475:85:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98467:114;;;;-1:-1:-1::0;;;98467:114:0::1;;;;;;;:::i;:::-;98645:17;::::0;;;:8:::1;:17;::::0;;;;98638:24;;-1:-1:-1;;;;;;98638:24:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;98638:24:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;77215:7;:22;98214:458::o;69604:196::-;69720:30;69736:4;69742:7;69720:15;:30::i;:::-;69761:18;;;;:12;:18;;;;;:31;;69784:7;69761:22;:31::i;36190:256::-;36287:7;36323:23;36340:5;36323:16;:23::i;:::-;36315:5;:31;36307:87;;;;-1:-1:-1;;;36307:87:0;;15239:2:1;36307:87:0;;;15221:21:1;15278:2;15258:18;;;15251:30;15317:34;15297:18;;;15290:62;-1:-1:-1;;;15368:18:1;;;15361:41;15419:19;;36307:87:0;15037:407:1;36307:87:0;-1:-1:-1;;;;;;36412:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;36190:256::o;70189:205::-;70308:33;70327:4;70333:7;70308:18;:33::i;:::-;70352:18;;;;:12;:18;;;;;:34;;70378:7;70352:25;:34::i;91697:301::-;91751:7;91776:17;;;:8;:17;;;;;:22;;;;;91775:23;:50;;;;-1:-1:-1;91824:1:0;91802:21;;;:12;:21;;;;;;:23;;91775:50;:77;;;;-1:-1:-1;91851:1:0;91829:21;;;:12;:21;;;;;;:23;;91775:77;:118;;;;-1:-1:-1;91888:4:0;91856:20;91868:7;91856:11;:20::i;:::-;-1:-1:-1;;;;;91856:37:0;;91775:118;91771:220;;;-1:-1:-1;91917:21:0;;;;:12;:21;;;;;;;91697:301::o;91771:220::-;-1:-1:-1;91978:1:0;;91697:301;-1:-1:-1;91697:301:0:o;72851:98::-;74485:21;74539:10;:8;:10::i;:::-;74517:108;;;;-1:-1:-1;;;74517:108:0;;;;;;;:::i;:::-;72923:18:::1;72929:2;72933:7;72923:5;:18::i;25873:185::-:0;26011:39;26028:4;26034:2;26038:7;26011:39;;;;;;;;;;;;:16;:39::i;44183:245::-;44301:41;17861:10;44320:12;17781:98;44301:41;44293:102;;;;-1:-1:-1;;;44293:102:0;;30295:2:1;44293:102:0;;;30277:21:1;30334:2;30314:18;;;30307:30;30373:34;30353:18;;;30346:62;-1:-1:-1;;;30424:18:1;;;30417:46;30480:19;;44293:102:0;30093:412:1;44293:102:0;44406:14;44412:7;44406:5;:14::i;:::-;44183:245;:::o;36712:233::-;36787:7;36823:30;36610:10;:17;;36522:113;36823:30;36815:5;:38;36807:95;;;;-1:-1:-1;;;36807:95:0;;27946:2:1;36807:95:0;;;27928:21:1;27985:2;27965:18;;;27958:30;28024:34;28004:18;;;27997:62;-1:-1:-1;;;28075:18:1;;;28068:42;28127:19;;36807:95:0;27744:408:1;36807:95:0;36920:10;36931:5;36920:17;;;;;;;;:::i;:::-;;;;;;;;;36913:24;;36712:233;;;:::o;95632:1769::-;76305:1;76903:7;;:19;;76895:63;;;;-1:-1:-1;;;76895:63:0;;;;;;;:::i;:::-;76305:1;77036:7;:18;95816:10:::1;10233:20:::0;10281:8;95807:54:::1;;;::::0;-1:-1:-1;;;95807:54:0;;25961:2:1;95807:54:0::1;::::0;::::1;25943:21:1::0;26000:2;25980:18;;;25973:30;-1:-1:-1;;;26019:18:1;;;26012:47;26076:18;;95807:54:0::1;25759:341:1::0;95807:54:0::1;95919:17;::::0;;;:8:::1;:17;::::0;;;;:22:::1;;::::0;::::1;;95911:58;;;::::0;-1:-1:-1;;;95911:58:0;;28771:2:1;95911:58:0::1;::::0;::::1;28753:21:1::0;28810:2;28790:18;;;28783:30;28849:25;28829:18;;;28822:53;28892:18;;95911:58:0::1;28569:347:1::0;95911:58:0::1;96051:4;96019:20;96031:7:::0;96019:11:::1;:20::i;:::-;-1:-1:-1::0;;;;;96019:37:0::1;;96011:77;;;::::0;-1:-1:-1;;;96011:77:0;;14462:2:1;96011:77:0::1;::::0;::::1;14444:21:1::0;14501:2;14481:18;;;14474:30;14540:29;14520:18;;;14513:57;14587:18;;96011:77:0::1;14260:351:1::0;96011:77:0::1;96213:17;::::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;96194:15:::1;:47;;96172:119;;;::::0;-1:-1:-1;;;96172:119:0;;18729:2:1;96172:119:0::1;::::0;::::1;18711:21:1::0;18768:2;18748:18;;;18741:30;-1:-1:-1;;;18787:18:1;;;18780:52;18849:18;;96172:119:0::1;18527:346:1::0;96172:119:0::1;96409:17;::::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;96397:40;::::1;96375:120;;;::::0;-1:-1:-1;;;96375:120:0;;19920:2:1;96375:120:0::1;::::0;::::1;19902:21:1::0;19959:2;19939:18;;;19932:30;19998:32;19978:18;;;19971:60;20048:18;;96375:120:0::1;19718:354:1::0;96375:120:0::1;96508:13;96524:16;96532:7;96524;:16::i;:::-;96508:32:::0;-1:-1:-1;96559:10:0::1;-1:-1:-1::0;;;;;96559:17:0;::::1;;;96551:81;;;::::0;-1:-1:-1;;;96551:81:0;;16787:2:1;96551:81:0::1;::::0;::::1;16769:21:1::0;16826:2;16806:18;;;16799:30;16865:34;16845:18;;;16838:62;-1:-1:-1;;;16916:18:1;;;16909:49;16975:19;;96551:81:0::1;16585:415:1::0;96551:81:0::1;96747:1;96718:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:30;96714:266:::1;;96773:13;::::0;::::1;96796:17:::0;;;:8:::1;:17;::::0;;;;;;:31:::1;::::0;::::1;::::0;96829:28:::1;::::0;;::::1;::::0;96773:85;;-1:-1:-1;;;96773:85:0;;-1:-1:-1;;;;;96796:31:0;;::::1;96773:85;::::0;::::1;10400:51:1::0;10467:18;;;10460:34;;;;96773:13:0;;::::1;::::0;:22:::1;::::0;10373:18:1;;96773:85:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96765:114;;;;-1:-1:-1::0;;;96765:114:0::1;;;;;;;:::i;:::-;96906:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:31:::1;::::0;::::1;::::0;96939:28:::1;::::0;;::::1;::::0;96899:69;;-1:-1:-1;;;;;96906:31:0;;::::1;10400:51:1::0;;10467:18;;;10460:34;;;;96899:69:0::1;::::0;10373:18:1;96899:69:0::1;;;;;;;96714:266;97027:17;::::0;;;:8:::1;:17;::::0;;;;;;:31:::1;;:53:::0;;-1:-1:-1;;;;;;97027:53:0::1;97069:10;97027:53:::0;;::::1;::::0;;;97141:13:::1;::::0;:64;;-1:-1:-1;;;97141:64:0;;-1:-1:-1;;;;;97141:13:0;;;::::1;::::0;:26:::1;::::0;:64:::1;::::0;97188:4:::1;::::0;97195:9;;97141:64:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97133:93;;;;-1:-1:-1::0;;;97133:93:0::1;;;;;;;:::i;:::-;97282:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:28:::1;;:40:::0;;;97340:51;;31282:25:1;;;31323:18;;;31316:34;;;97360:10:0::1;::::0;97340:51:::1;::::0;31255:18:1;97340:51:0::1;;;;;;;-1:-1:-1::0;;76261:1:0;77215:7;:22;-1:-1:-1;95632:1769:0:o;72554:289::-;74485:21;74539:10;:8;:10::i;:::-;74517:108;;;;-1:-1:-1;;;74517:108:0;;;;;;;:::i;:::-;72638:7:::1;72656:118;72672:27;:15;71605:19:::0;;71623:1;71605:19;;;71516:127;72672:27:::1;-1:-1:-1::0;72717:15:0::1;71486:14:::0;72761:11:::1;71486:14:::0;72761:7:::1;:11::i;:::-;72656:118;;72784:13;72790:2;72794;72784:5;:13::i;:::-;72808:27;72821:2;72825:9;72808:12;:27::i;:::-;72627:216;74474:171:::0;72554:289;;:::o;22708:239::-;22780:7;22816:16;;;:7;:16;;;;;;-1:-1:-1;;;;;22816:16:0;22851:19;22843:73;;;;-1:-1:-1;;;22843:73:0;;21115:2:1;22843:73:0;;;21097:21:1;21154:2;21134:18;;;21127:30;21193:34;21173:18;;;21166:62;-1:-1:-1;;;21244:18:1;;;21237:39;21293:19;;22843:73:0;20913:405:1;22438:208:0;22510:7;-1:-1:-1;;;;;22538:19:0;;22530:74;;;;-1:-1:-1;;;22530:74:0;;20704:2:1;22530:74:0;;;20686:21:1;20743:2;20723:18;;;20716:30;20782:34;20762:18;;;20755:62;-1:-1:-1;;;20833:18:1;;;20826:40;20883:19;;22530:74:0;20502:406:1;22530:74:0;-1:-1:-1;;;;;;22622:16:0;;;;;:9;:16;;;;;;;22438:208::o;103706:515::-;103792:14;;-1:-1:-1;;;;;103792:14:0;103780:10;:26;103772:70;;;;-1:-1:-1;;;103772:70:0;;16070:2:1;103772:70:0;;;16052:21:1;16109:2;16089:18;;;16082:30;16148:33;16128:18;;;16121:61;16199:18;;103772:70:0;15868:355:1;103772:70:0;103892:47;50261:4;103923:15;103892:10;:47::i;:::-;103950:40;-1:-1:-1;;;;;;;;;;;103974:15:0;103950:10;:40::i;:::-;104065:14;;104041:39;;-1:-1:-1;;;;;;;;;;;72185:24:0;-1:-1:-1;;;;;104065:14:0;104041:10;:39::i;:::-;104122:14;;104091:46;;50261:4;;-1:-1:-1;;;;;104122:14:0;104091:10;:46::i;:::-;104179:14;:32;;-1:-1:-1;;;;;;104179:32:0;-1:-1:-1;;;;;104179:32:0;;;;;;;;;;103706:515::o;73196:133::-;74485:21;74539:10;:8;:10::i;:::-;74517:108;;;;-1:-1:-1;;;74517:108:0;;;;;;;:::i;:::-;73292:29:::1;73302:2;73306:7;73315:5;73292:9;:29::i;94832:405::-:0;94886:4;94908:10;10233:20;10281:8;;;94907:63;;-1:-1:-1;94948:17:0;;;;:8;:17;;;;;:22;;;;;94907:63;:127;;;;-1:-1:-1;95006:17:0;;;;:8;:17;;;;;:28;;;94987:15;:47;;94907:127;:174;;;;;95065:16;95073:7;95065;:16::i;:::-;-1:-1:-1;;;;;95051:30:0;:10;-1:-1:-1;;;;;95051:30:0;;;94907:174;:228;;;;-1:-1:-1;95130:4:0;95098:20;95110:7;95098:11;:20::i;:::-;-1:-1:-1;;;;;95098:37:0;;94907:228;94903:327;;;-1:-1:-1;95169:4:0;;94832:405;-1:-1:-1;94832:405:0:o;69059:145::-;69141:7;69168:18;;;:12;:18;;;;;:28;;69190:5;69168:21;:28::i;:::-;69161:35;69059:145;-1:-1:-1;;;69059:145:0:o;51125:139::-;51203:4;51227:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;51227:29:0;;;;;;;;;;;;;;;51125:139::o;23183:104::-;23239:13;23272:7;23265:14;;;;;:::i;74140:115::-;-1:-1:-1;;;;;;;;;;;50707:30:0;72185:24;17861:10;50707;:30::i;:::-;74216:31:::1;-1:-1:-1::0;;;;;;;;;;;74239:7:0::1;74216:9;:31::i;:::-;74140:115:::0;;:::o;72957:106::-;74485:21;74539:10;:8;:10::i;:::-;74517:108;;;;-1:-1:-1;;;74517:108:0;;;;;;;:::i;:::-;73033:22:::1;73043:2;73047:7;73033:9;:22::i;24866:295::-:0;-1:-1:-1;;;;;24969:24:0;;17861:10;24969:24;;24961:62;;;;-1:-1:-1;;;24961:62:0;;17612:2:1;24961:62:0;;;17594:21:1;17651:2;17631:18;;;17624:30;17690:27;17670:18;;;17663:55;17735:18;;24961:62:0;17410:349:1;24961:62:0;17861:10;25036:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;25036:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;25036:53:0;;;;;;;;;;25105:48;;13219:41:1;;;25036:42:0;;17861:10;25105:48;;13192:18:1;25105:48:0;;;;;;;24866:295;;:::o;73071:117::-;73127:4;73151:29;-1:-1:-1;;;;;;;;;;;73172:7:0;73151;:29::i;94087:737::-;94227:21;;;;:12;:21;;;;;;:24;94219:102;;;;-1:-1:-1;;;94219:102:0;;26709:2:1;94219:102:0;;;26691:21:1;26748:2;26728:18;;;26721:30;26787:34;26767:18;;;26760:62;26858:34;26838:18;;;26831:62;-1:-1:-1;;;26909:19:1;;;26902:32;26951:19;;94219:102:0;26507:469:1;94219:102:0;94341:17;;;;:8;:17;;;;;:22;;;;;94340:23;94332:86;;;;-1:-1:-1;;;94332:86:0;;17966:2:1;94332:86:0;;;17948:21:1;18005:2;17985:18;;;17978:30;18044:34;18024:18;;;18017:62;-1:-1:-1;;;18095:18:1;;;18088:48;18153:19;;94332:86:0;17764:414:1;94332:86:0;94455:10;94437:16;94445:7;94437;:16::i;:::-;-1:-1:-1;;;;;94437:28:0;;94429:84;;;;-1:-1:-1;;;94429:84:0;;24723:2:1;94429:84:0;;;24705:21:1;24762:2;24742:18;;;24735:30;24801:34;24781:18;;;24774:62;-1:-1:-1;;;24852:18:1;;;24845:41;24903:19;;94429:84:0;24521:407:1;94429:84:0;94526:17;;;;:8;:17;;;;;:44;;-1:-1:-1;;;;;;94526:44:0;-1:-1:-1;;;;;94526:44:0;;;;;-1:-1:-1;94581:28:0;;;:43;;;94635:25;;;:41;;;94687:22;;;;:29;;-1:-1:-1;;94687:29:0;;;;;;94783:31;94799:4;94526:17;94783:7;:31::i;90318:144::-;90373:4;90416:10;90398:16;90406:7;90398;:16::i;:::-;-1:-1:-1;;;;;90398:28:0;;:55;;;;-1:-1:-1;;90431:17:0;;;;:8;:17;;;;;:22;;;;;90430:23;;90318:144::o;26129:328::-;26304:41;17861:10;26337:7;26304:18;:41::i;:::-;26296:103;;;;-1:-1:-1;;;26296:103:0;;;;;;;:::i;:::-;26410:39;26424:4;26430:2;26434:7;26443:5;26410:13;:39::i;73691:196::-;73818:13;73856:23;73871:7;73856:14;:23::i;69378:134::-;69450:7;69477:18;;;:12;:18;;;;;:27;;:25;:27::i;90508:740::-;90646:10;90628:16;90636:7;90628;:16::i;:::-;-1:-1:-1;;;;;90628:28:0;;90620:81;;;;-1:-1:-1;;;90620:81:0;;29526:2:1;90620:81:0;;;29508:21:1;29565:2;29545:18;;;29538:30;29604:34;29584:18;;;29577:62;-1:-1:-1;;;29655:18:1;;;29648:38;29703:19;;90620:81:0;29324:404:1;90620:81:0;90778:17;;;;:8;:17;;;;;:22;;;;;90777:23;90769:94;;;;-1:-1:-1;;;90769:94:0;;19493:2:1;90769:94:0;;;19475:21:1;19532:2;19512:18;;;19505:30;19571:34;19551:18;;;19544:62;19642:28;19622:18;;;19615:56;19688:19;;90769:94:0;19291:422:1;90769:94:0;90913:21;;;;:12;:21;;;;;:29;;;91008:7;;91004:235;;91092:31;91108:4;91115:7;91092;:31::i;:::-;91187:17;;;;:8;:17;;;;;:26;;-1:-1:-1;;;;;91187:26:0;;-1:-1:-1;;;;;;91187:26:0;;;;;;90508:740;;;:::o;69893:201::-;70010:31;70027:4;70033:7;70010:16;:31::i;92025:1817::-;76305:1;76903:7;;:19;;76895:63;;;;-1:-1:-1;;;76895:63:0;;;;;;;:::i;:::-;76305:1;77036:7;:18;92120:17:::1;::::0;;;:8:::1;:17;::::0;;;;:22:::1;;::::0;::::1;;92119:23;:50:::0;::::1;;;-1:-1:-1::0;92168:1:0::1;92146:21:::0;;;:12:::1;:21;::::0;;;;;:23;;92119:50:::1;92111:105;;;::::0;-1:-1:-1;;;92111:105:0;;22759:2:1;92111:105:0::1;::::0;::::1;22741:21:1::0;22798:2;22778:18;;;22771:30;22837:34;22817:18;;;22810:62;-1:-1:-1;;;22888:18:1;;;22881:40;22938:19;;92111:105:0::1;22557:406:1::0;92111:105:0::1;92260:13;92276:16;92284:7;92276;:16::i;:::-;92260:32:::0;-1:-1:-1;92313:10:0::1;-1:-1:-1::0;;;;;92313:17:0;::::1;;;92305:82;;;::::0;-1:-1:-1;;;92305:82:0;;14818:2:1;92305:82:0::1;::::0;::::1;14800:21:1::0;14857:2;14837:18;;;14830:30;14896:34;14876:18;;;14869:62;-1:-1:-1;;;14947:18:1;;;14940:50;15007:19;;92305:82:0::1;14616:416:1::0;92305:82:0::1;92512:104;92531:4;92560:26;;;92588:5;92595:10;92607:7;92537:78;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;92537:78:0;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;92537:78:0::1;-1:-1:-1::0;;;;;;92537:78:0;;::::1;::::0;;;::::1;::::0;;;92512:18:::1;:104::i;:::-;92708:14;::::0;92659:20:::1;92682:21:::0;;;:12:::1;:21;::::0;;;;;92659:20;;92682:50:::1;::::0;92728:3:::1;::::0;92682:41:::1;::::0;:21;:25:::1;:41::i;:::-;:45:::0;::::1;:50::i;:::-;92794:23;::::0;92743:22:::1;92768:21:::0;;;:12:::1;:21;::::0;;;;;92659:73;;-1:-1:-1;92743:22:0;92768:59:::1;::::0;92823:3:::1;::::0;92768:50:::1;::::0;:25:::1;:50::i;:59::-;92838:20;92861:21:::0;;;:12:::1;:21;::::0;;;;;92743:84;;-1:-1:-1;92838:20:0;92861:59:::1;::::0;92743:84;;92861:39:::1;::::0;92887:12;92861:25:::1;:39::i;:::-;:43:::0;::::1;:59::i;:::-;92962:13;::::0;::::1;93001:17:::0;;;:8:::1;:17;::::0;;;;;;;92962:71;;-1:-1:-1;;;92962:71:0;;92838:82;;-1:-1:-1;;;;;;92962:13:0;;::::1;::::0;:26:::1;::::0;:71:::1;::::0;92989:10:::1;::::0;93001:17;::::1;::::0;92838:82;;92962:71:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92954:100;;;;-1:-1:-1::0;;;92954:100:0::1;;;;;;;:::i;:::-;93094:16:::0;;93090:151:::1;;93135:13;::::0;::::1;93174:17:::0;;;:8:::1;:17;::::0;;;;;;;93135:73;;-1:-1:-1;;;93135:73:0;;-1:-1:-1;;;;;93135:13:0;;::::1;::::0;:26:::1;::::0;:73:::1;::::0;93162:10:::1;::::0;93174:17;;::::1;::::0;93193:14;;93135:73:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93127:102;;;;-1:-1:-1::0;;;93127:102:0::1;;;;;;;:::i;:::-;93278:14:::0;;93274:135:::1;;93317:13;::::0;93356:5:::1;::::0;93317:59:::1;::::0;-1:-1:-1;;;93317:59:0;;-1:-1:-1;;;;;93317:13:0;;::::1;::::0;:26:::1;::::0;:59:::1;::::0;93344:10:::1;::::0;93356:5;;::::1;::::0;93363:12;;93317:59:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93309:88;;;;-1:-1:-1::0;;;93309:88:0::1;;;;;;;:::i;:::-;93447:10;-1:-1:-1::0;;;;;93426:55:0::1;93440:5;-1:-1:-1::0;;;;;93426:55:0::1;93431:7;93426:55;93459:12;:21;93472:7;93459:21;;;;;;;;;;;;93426:55;;;;13417:25:1::0;;13405:2;13390:18;;13271:177;93426:55:0::1;;;;;;;;93524:21;::::0;;;:12:::1;:21;::::0;;;;;;;;;93547:14:::1;::::0;93497:79;;31563:25:1;;;31604:18;;;31597:34;;;;31647:18;;;31640:34;;;-1:-1:-1;;;;;93497:79:0;::::1;::::0;93508:7;;93497:79:::1;::::0;31551:2:1;31536:18;93497:79:0::1;;;;;;;93616:21;::::0;;;:12:::1;:21;::::0;;;;;;;;;93639:23:::1;::::0;93592:87;;31563:25:1;;;31604:18;;;31597:34;;;;31647:18;;;31640:34;;;-1:-1:-1;;;;;93592:87:0;::::1;::::0;93600:7;;93592:87:::1;::::0;31551:2:1;31536:18;93592:87:0::1;;;;;;;-1:-1:-1::0;;;93711:21:0::1;::::0;;;-1:-1:-1;93711:12:0::1;:21;::::0;;;;;;;;;93692:7:::1;:16:::0;;;;;:40;93772:25;;;93815:8:::1;:17:::0;;;;;93808:24;;-1:-1:-1;;;;;;93808:24:0::1;::::0;;-1:-1:-1;77215:7:0;:22;92025:1817::o;99187:2184::-;76305:1;76903:7;;:19;;76895:63;;;;-1:-1:-1;;;76895:63:0;;;;;;;:::i;:::-;76305:1;77036:7;:18;99270:20:::1;99282:7:::0;99270:11:::1;:20::i;:::-;99262:48;;;::::0;-1:-1:-1;;;99262:48:0;;18385:2:1;99262:48:0::1;::::0;::::1;18367:21:1::0;18424:2;18404:18;;;18397:30;-1:-1:-1;;;18443:18:1;;;18436:45;18498:18;;99262:48:0::1;18183:339:1::0;99262:48:0::1;99356:1;99327:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;:30;99323:1876:::1;;99446:30;99479:17:::0;;;:8:::1;:17;::::0;;;;:31:::1;::::0;::::1;::::0;99625:14:::1;::::0;99592:28:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;99479:31:0;;::::1;::::0;99446:30;99592:57:::1;::::0;99645:3:::1;::::0;99592:48:::1;::::0;:28;:32:::1;:48::i;:57::-;99722:23;::::0;99664:22:::1;99689:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;99569:80;;-1:-1:-1;99664:22:0;99689:66:::1;::::0;99751:3:::1;::::0;99689:57:::1;::::0;:32:::1;:57::i;:66::-;99770:20;99793:17:::0;;;:8:::1;:17;::::0;;;;:28:::1;;::::0;99664:91;;-1:-1:-1;99770:20:0;99793:66:::1;::::0;99664:91;;99793:46:::1;::::0;99826:12;99793:32:::1;:46::i;:66::-;99909:13;::::0;::::1;99932:17:::0;;;:8:::1;:17;::::0;;;;;;:29;99909:67;;-1:-1:-1;;;99909:67:0;;-1:-1:-1;;;;;99932:29:0;;::::1;99909:67;::::0;::::1;10400:51:1::0;10467:18;;;10460:34;;;99770:89:0;;-1:-1:-1;99909:13:0::1;::::0;:22:::1;::::0;10373:18:1;;99909:67:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99901:96;;;;-1:-1:-1::0;;;99901:96:0::1;;;;;;;:::i;:::-;100045:16:::0;;100041:143:::1;;100090:13;::::0;::::1;100113:17:::0;;;:8:::1;:17;::::0;;;;;;;100090:57;;-1:-1:-1;;;100090:57:0;;-1:-1:-1;;;;;100113:17:0;;::::1;100090:57;::::0;::::1;10400:51:1::0;10467:18;;;10460:34;;;100090:13:0;::::1;::::0;:22:::1;::::0;10373:18:1;;100090:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100082:86;;;;-1:-1:-1::0;;;100082:86:0::1;;;;;;;:::i;:::-;100229:14:::0;;100225:127:::1;;100272:13;::::0;100295:5:::1;::::0;100272:43:::1;::::0;-1:-1:-1;;;100272:43:0;;-1:-1:-1;;;;;100295:5:0;;::::1;100272:43;::::0;::::1;10400:51:1::0;10467:18;;;10460:34;;;100272:13:0;::::1;::::0;:22:::1;::::0;10373:18:1;;100272:43:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100264:72;;;;-1:-1:-1::0;;;100264:72:0::1;;;;;;;:::i;:::-;100387:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;100434:28:::1;::::0;;::::1;::::0;100373:90;;13417:25:1;;;-1:-1:-1;;;;;100373:90:0;;::::1;::::0;100387:29;::::1;::::0;:17;;100373:90:::1;::::0;13390:18:1;100373:90:0::1;;;;;;;100500:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;100531:28:::1;::::0;;::::1;::::0;100561:23:::1;::::0;100483:118;;31563:25:1;;;31604:18;;;31597:34;;;;31647:18;;;31640:34;;;-1:-1:-1;;;;;100500:29:0;;::::1;::::0;:17;;100483:118:::1;::::0;31551:2:1;31536:18;100483:118:0::1;;;;;;;100641:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:29;;100672:28:::1;::::0;;::::1;::::0;100702:14:::1;::::0;100621:110;;31563:25:1;;;31604:18;;;31597:34;;;;31647:18;;;31640:34;;;-1:-1:-1;;;;;100641:29:0;;::::1;::::0;:17;;100621:110:::1;::::0;31551:2:1;31536:18;100621:110:0::1;;;;;;;100783:13;100799:16;100807:7;100799;:16::i;:::-;100783:32;;101013:108;101032:4;101061:26;;;101089:5;101096:14;101112:7;101038:82;;;;;;;;;;:::i;101013:108::-;-1:-1:-1::0;;;101157:17:0::1;::::0;;;:8:::1;:17;::::0;;;;;;;:28:::1;;::::0;101138:7:::1;:16:::0;;;;;;:47;-1:-1:-1;;99323:1876:0::1;101229:17;::::0;;;:8:::1;:17;::::0;;;;;;;;:31:::1;::::0;::::1;::::0;101262:28:::1;::::0;;::::1;::::0;101216:75;;-1:-1:-1;;;;;101229:31:0;;::::1;10400:51:1::0;;10467:18;;;10460:34;;;;101216:75:0::1;::::0;10373:18:1;101216:75:0::1;;;;;;;101344:17;::::0;;;:8:::1;:17;::::0;;;;101337:24;;-1:-1:-1;;;;;;101337:24:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;101337:24:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;77215:7;:22;99187:2184::o;98680:428::-;98739:4;98760:17;;;:8;:17;;;;;:22;;;;;:87;;;;-1:-1:-1;98819:17:0;;;;:8;:17;;;;;:28;;;98800:15;:47;;98760:87;:246;;;;-1:-1:-1;98913:17:0;;;;:8;:17;;;;;:25;;;;98883:28;;;;;:55;;;:108;;-1:-1:-1;98960:17:0;;;;:8;:17;;;;;:28;;;98756:345;;-1:-1:-1;99040:4:0;;98680:428;-1:-1:-1;98680:428:0:o;91390:299::-;91446:7;91488:21;;;:12;:21;;;;;;91446:7;;;;91488:23;91484:65;;-1:-1:-1;;;91521:21:0;;;;:12;:21;;;;;;;;91513:36;;91484:65;91593:1;91564:17;;;:8;:17;;;;;:28;;;:30;91560:79;;-1:-1:-1;;;91604:1:0;91607:17;;;:8;:17;;;;;:28;;;91604:1;91596:43;;91560:79;-1:-1:-1;;;91658:1:0;91664:16;;;:7;:16;;;;;;91658:1;;91390:299;;;;;;:::o;74263:110::-;74328:13;;74304:4;;74328:13;;;:37;;;74345:20;74354:10;74345:8;:20::i;:::-;74321:44;;74263:110;:::o;103219:454::-;103404:14;;-1:-1:-1;;;;;103404:14:0;103392:10;:26;103384:70;;;;-1:-1:-1;;;103384:70:0;;16070:2:1;103384:70:0;;;16052:21:1;16109:2;16089:18;;;16082:30;16148:33;16128:18;;;16121:61;16199:18;;103384:70:0;15868:355:1;103384:70:0;103465:5;:14;;-1:-1:-1;;;;;103465:14:0;;;-1:-1:-1;;;;;;103465:14:0;;;;;;;103490;:32;;;;103533:23;:50;;;;103594:13;:30;;;;;-1:-1:-1;;103594:30:0;;;;;;;;;103635:13;:30;;;;;;;;;;;103219:454::o;97608:540::-;97667:4;97688:17;;;:8;:17;;;;;:22;;;;;:358;;;;-1:-1:-1;97789:17:0;;;;:8;:17;;;;;:28;;;97770:15;:47;;;;:104;;-1:-1:-1;97873:1:0;97842:17;;;:8;:17;;;;;:28;;;:32;;97770:104;:183;;;;-1:-1:-1;97928:17:0;;;;:8;:17;;;;;:25;;;;97899:28;;;;;:54;97770:183;97747:284;;;-1:-1:-1;98026:4:0;97994:20;98006:7;97994:11;:20::i;:::-;-1:-1:-1;;;;;97994:37:0;;97684:457;;-1:-1:-1;98080:4:0;;97608:540;-1:-1:-1;97608:540:0:o;54474:112::-;54553:25;54564:4;54570:7;54553:10;:25::i;63156:152::-;63226:4;63250:50;63255:3;-1:-1:-1;;;;;63275:23:0;;63250:4;:50::i;68246:214::-;68331:4;-1:-1:-1;;;;;;68355:57:0;;-1:-1:-1;;;68355:57:0;;:97;;;68416:36;68440:11;68416:23;:36::i;27967:127::-;28032:4;28056:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28056:16:0;:30;;;27967:127::o;31949:174::-;32024:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;32024:29:0;-1:-1:-1;;;;;32024:29:0;;;;;;;;:24;;32078:23;32024:24;32078:14;:23::i;:::-;-1:-1:-1;;;;;32069:46:0;;;;;;;;;;;31949:174;;:::o;28261:348::-;28354:4;28379:16;28387:7;28379;:16::i;:::-;28371:73;;;;-1:-1:-1;;;28371:73:0;;19080:2:1;28371:73:0;;;19062:21:1;19119:2;19099:18;;;19092:30;19158:34;19138:18;;;19131:62;-1:-1:-1;;;19209:18:1;;;19202:42;19261:19;;28371:73:0;18878:408:1;28371:73:0;28455:13;28471:23;28486:7;28471:14;:23::i;:::-;28455:39;;28524:5;-1:-1:-1;;;;;28513:16:0;:7;-1:-1:-1;;;;;28513:16:0;;:51;;;;28557:7;-1:-1:-1;;;;;28533:31:0;:20;28545:7;28533:11;:20::i;:::-;-1:-1:-1;;;;;28533:31:0;;28513:51;:87;;;-1:-1:-1;;;;;;25353:25:0;;;25329:4;25353:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;28568:32;28505:96;28261:348;-1:-1:-1;;;;28261:348:0:o;31253:578::-;31412:4;-1:-1:-1;;;;;31385:31:0;:23;31400:7;31385:14;:23::i;:::-;-1:-1:-1;;;;;31385:31:0;;31377:85;;;;-1:-1:-1;;;31377:85:0;;25135:2:1;31377:85:0;;;25117:21:1;25174:2;25154:18;;;25147:30;25213:34;25193:18;;;25186:62;-1:-1:-1;;;25264:18:1;;;25257:39;25313:19;;31377:85:0;24933:405:1;31377:85:0;-1:-1:-1;;;;;31481:16:0;;31473:65;;;;-1:-1:-1;;;31473:65:0;;17207:2:1;31473:65:0;;;17189:21:1;17246:2;17226:18;;;17219:30;17285:34;17265:18;;;17258:62;-1:-1:-1;;;17336:18:1;;;17329:34;17380:19;;31473:65:0;17005:400:1;31473:65:0;31551:39;31572:4;31578:2;31582:7;31551:20;:39::i;:::-;31655:29;31672:1;31676:7;31655:8;:29::i;:::-;-1:-1:-1;;;;;31697:15:0;;;;;;:9;:15;;;;;:20;;31716:1;;31697:15;:20;;31716:1;;31697:20;:::i;:::-;;;;-1:-1:-1;;;;;;;31728:13:0;;;;;;:9;:13;;;;;:18;;31745:1;;31728:13;:18;;31745:1;;31728:18;:::i;:::-;;;;-1:-1:-1;;31757:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;31757:21:0;-1:-1:-1;;;;;31757:21:0;;;;;;;;;31796:27;;31757:16;;31796:27;;;;;;;31253:578;;;:::o;52625:147::-;52306:7;52333:12;;;:6;:12;;;;;:22;;;50707:30;50718:4;17861:10;50707;:30::i;:::-;52739:25:::1;52750:4;52756:7;52739:10;:25::i;53673:218::-:0;-1:-1:-1;;;;;53769:23:0;;17861:10;53769:23;53761:83;;;;-1:-1:-1;;;53761:83:0;;30712:2:1;53761:83:0;;;30694:21:1;30751:2;30731:18;;;30724:30;30790:34;30770:18;;;30763:62;-1:-1:-1;;;30841:18:1;;;30834:45;30896:19;;53761:83:0;30510:411:1;53761:83:0;53857:26;53869:4;53875:7;53857:11;:26::i;63484:158::-;63557:4;63581:53;63589:3;-1:-1:-1;;;;;63609:23:0;;63581:7;:53::i;95312:146::-;95385:17;;;;:8;:17;;;;;:30;;-1:-1:-1;;;;;;95385:30:0;95405:10;95385:30;;;95426:24;95438:2;95394:7;95426:11;:24::i;73337:134::-;73432:31;73455:7;73432:22;:31::i;43181:217::-;43281:16;43289:7;43281;:16::i;:::-;43273:75;;;;-1:-1:-1;;;43273:75:0;;21525:2:1;43273:75:0;;;21507:21:1;21564:2;21544:18;;;21537:30;21603:34;21583:18;;;21576:62;-1:-1:-1;;;21654:18:1;;;21647:44;21708:19;;43273:75:0;21323:410:1;43273:75:0;43359:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;70487:169::-;70575:31;70592:4;70598:7;70575:16;:31::i;29288:321::-;29418:18;29424:2;29428:7;29418:5;:18::i;:::-;29469:54;29500:1;29504:2;29508:7;29517:5;29469:22;:54::i;:::-;29447:154;;;;-1:-1:-1;;;29447:154:0;;;;;;;:::i;64452:158::-;64526:7;64577:22;64581:3;64593:5;64577:3;:22::i;51554:497::-;51635:22;51643:4;51649:7;51635;:22::i;:::-;51630:414;;51823:41;51851:7;-1:-1:-1;;;;;51823:41:0;51861:2;51823:19;:41::i;:::-;51937:38;51965:4;51972:2;51937:19;:38::i;:::-;51728:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;51728:270:0;;;;;;;;;;-1:-1:-1;;;51674:358:0;;;;;;;:::i;28951:110::-;29027:26;29037:2;29041:7;29027:26;;;;;;;;;;;;:9;:26::i;27339:315::-;27496:28;27506:4;27512:2;27516:7;27496:9;:28::i;:::-;27543:48;27566:4;27572:2;27576:7;27585:5;27543:22;:48::i;:::-;27535:111;;;;-1:-1:-1;;;27535:111:0;;;;;;;:::i;42346:679::-;42419:13;42453:16;42461:7;42453;:16::i;:::-;42445:78;;;;-1:-1:-1;;;42445:78:0;;23531:2:1;42445:78:0;;;23513:21:1;23570:2;23550:18;;;23543:30;23609:34;23589:18;;;23582:62;-1:-1:-1;;;23660:18:1;;;23653:47;23717:19;;42445:78:0;23329:413:1;42445:78:0;42536:23;42562:19;;;:10;:19;;;;;42536:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42592:18;42613:10;24017:9;;;;;;;;;-1:-1:-1;24017:9:0;;;23940:94;42613:10;42592:31;;42705:4;42699:18;42721:1;42699:23;42695:72;;;-1:-1:-1;42746:9:0;42346:679;-1:-1:-1;;42346:679:0:o;42695:72::-;42871:23;;:27;42867:108;;42946:4;42952:9;42929:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;42915:48;;;;42346:679;;;:::o;42867:108::-;42994:23;43009:7;42994:14;:23::i;63981:117::-;64044:7;64071:19;64079:3;59465:18;;59382:109;53017:149;52306:7;52333:12;;;:6;:12;;;;;:22;;;50707:30;50718:4;17861:10;50707;:30::i;:::-;53132:26:::1;53144:4;53150:7;53132:11;:26::i;102062:1118::-:0;-1:-1:-1;;;;;102667:25:0;;10233:20;102659:72;;;;-1:-1:-1;;;102659:72:0;;24362:2:1;102659:72:0;;;24344:21:1;;;24381:18;;;24374:30;24440:34;24420:18;;;24413:62;24492:18;;102659:72:0;24160:356:1;102659:72:0;102805:12;102819:23;102854:5;-1:-1:-1;;;;;102846:19:0;102866:4;102846:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102804:67;;;;102890:7;102882:53;;;;-1:-1:-1;;;102882:53:0;;21940:2:1;102882:53:0;;;21922:21:1;21979:2;21959:18;;;21952:30;22018:34;21998:18;;;21991:62;-1:-1:-1;;;22069:18:1;;;22062:31;22110:19;;102882:53:0;21738:397:1;102882:53:0;102952:17;;:21;102948:225;;103094:10;103083:30;;;;;;;;;;;;:::i;:::-;103075:86;;;;-1:-1:-1;;;103075:86:0;;28359:2:1;103075:86:0;;;28341:21:1;28398:2;28378:18;;;28371:30;28437:34;28417:18;;;28410:62;-1:-1:-1;;;28488:18:1;;;28481:41;28539:19;;103075:86:0;28157:407:1;80691:98:0;80749:7;80776:5;80780:1;80776;:5;:::i;81090:98::-;81148:7;81175:5;81179:1;81175;:5;:::i;80334:98::-;80392:7;80419:5;80423:1;80419;:5;:::i;54977:229::-;55052:22;55060:4;55066:7;55052;:22::i;:::-;55047:152;;55091:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55091:29:0;;;;;;;;;:36;;-1:-1:-1;;55091:36:0;55123:4;55091:36;;;55174:12;17861:10;;17781:98;55174:12;-1:-1:-1;;;;;55147:40:0;55165:7;-1:-1:-1;;;;;55147:40:0;55159:4;55147:40;;;;;;;;;;54977:229;;:::o;57071:414::-;57134:4;59264:19;;;:12;;;:19;;;;;;57151:327;;-1:-1:-1;57194:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;57377:18;;57355:19;;;:12;;;:19;;;;;;:40;;;;57410:11;;57151:327;-1:-1:-1;57461:5:0;57454:12;;50829:204;50914:4;-1:-1:-1;;;;;;50938:47:0;;-1:-1:-1;;;50938:47:0;;:87;;;50989:36;51013:11;50989:23;:36::i;73479:204::-;73630:45;73657:4;73663:2;73667:7;73630:26;:45::i;55214:230::-;55289:22;55297:4;55303:7;55289;:22::i;:::-;55285:152;;;55360:5;55328:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55328:29:0;;;;;;;;;;:37;;-1:-1:-1;;55328:37:0;;;55385:40;17861:10;;55328:12;;55385:40;;55360:5;55385:40;55214:230;;:::o;57661:1420::-;57727:4;57866:19;;;:12;;;:19;;;;;;57902:15;;57898:1176;;58277:21;58301:14;58314:1;58301:10;:14;:::i;:::-;58350:18;;58277:38;;-1:-1:-1;58330:17:0;;58350:22;;58371:1;;58350:22;:::i;:::-;58330:42;;58406:13;58393:9;:26;58389:405;;58440:17;58460:3;:11;;58472:9;58460:22;;;;;;;;:::i;:::-;;;;;;;;;58440:42;;58614:9;58585:3;:11;;58597:13;58585:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;58699:23;;;:12;;;:23;;;;;:36;;;58389:405;58875:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;58970:3;:12;;:19;58983:5;58970:19;;;;;;;;;;;58963:26;;;59013:4;59006:11;;;;;;;57898:1176;59057:5;59050:12;;;;;29945:382;-1:-1:-1;;;;;30025:16:0;;30017:61;;;;-1:-1:-1;;;30017:61:0;;23170:2:1;30017:61:0;;;23152:21:1;;;23189:18;;;23182:30;23248:34;23228:18;;;23221:62;23300:18;;30017:61:0;22968:356:1;30017:61:0;30098:16;30106:7;30098;:16::i;:::-;30097:17;30089:58;;;;-1:-1:-1;;;30089:58:0;;16430:2:1;30089:58:0;;;16412:21:1;16469:2;16449:18;;;16442:30;16508;16488:18;;;16481:58;16556:18;;30089:58:0;16228:352:1;30089:58:0;30160:45;30189:1;30193:2;30197:7;30160:20;:45::i;:::-;-1:-1:-1;;;;;30218:13:0;;;;;;:9;:13;;;;;:18;;30235:1;;30218:13;:18;;30235:1;;30218:18;:::i;:::-;;;;-1:-1:-1;;30247:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30247:21:0;-1:-1:-1;;;;;30247:21:0;;;;;;;;30286:33;;30247:16;;;30286:33;;30247:16;;30286:33;29945:382;;:::o;43627:206::-;43696:20;43708:7;43696:11;:20::i;:::-;43739:19;;;;:10;:19;;;;;43733:33;;;;;:::i;:::-;:38;;-1:-1:-1;43729:97:0;;43795:19;;;;:10;:19;;;;;43788:26;;;:::i;32688:799::-;32843:4;-1:-1:-1;;;;;32864:13:0;;10233:20;10281:8;32860:620;;32900:72;;-1:-1:-1;;;32900:72:0;;-1:-1:-1;;;;;32900:36:0;;;;;:72;;17861:10;;32951:4;;32957:7;;32966:5;;32900:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32900:72:0;;;;;;;;-1:-1:-1;;32900:72:0;;;;;;;;;;;;:::i;:::-;;;32896:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33142:13:0;;33138:272;;33185:60;;-1:-1:-1;;;33185:60:0;;;;;;;:::i;33138:272::-;33360:6;33354:13;33345:6;33341:2;33337:15;33330:38;32896:529;-1:-1:-1;;;;;;33023:51:0;-1:-1:-1;;;33023:51:0;;-1:-1:-1;33016:58:0;;32860:620;-1:-1:-1;33464:4:0;32688:799;;;;;;:::o;59845:120::-;59912:7;59939:3;:11;;59951:5;59939:18;;;;;;;;:::i;:::-;;;;;;;;;59932:25;;59845:120;;;;:::o;19522:451::-;19597:13;19623:19;19655:10;19659:6;19655:1;:10;:::i;:::-;:14;;19668:1;19655:14;:::i;:::-;19645:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19645:25:0;;19623:47;;-1:-1:-1;;;19681:6:0;19688:1;19681:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;19681:15:0;;;;;;;;;-1:-1:-1;;;19707:6:0;19714:1;19707:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;19707:15:0;;;;;;;;-1:-1:-1;19738:9:0;19750:10;19754:6;19750:1;:10;:::i;:::-;:14;;19763:1;19750:14;:::i;:::-;19738:26;;19733:135;19770:1;19766;:5;19733:135;;;-1:-1:-1;;;19818:5:0;19826:3;19818:11;19805:25;;;;;;;:::i;:::-;;;;19793:6;19800:1;19793:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;19793:37:0;;;;;;;;-1:-1:-1;19855:1:0;19845:11;;;;;19773:3;;;:::i;:::-;;;19733:135;;;-1:-1:-1;19886:10:0;;19878:55;;;;-1:-1:-1;;;19878:55:0;;14101:2:1;19878:55:0;;;14083:21:1;;;14120:18;;;14113:30;14179:34;14159:18;;;14152:62;14231:18;;19878:55:0;13899:356:1;23358:334:0;23431:13;23465:16;23473:7;23465;:16::i;:::-;23457:76;;;;-1:-1:-1;;;23457:76:0;;25545:2:1;23457:76:0;;;25527:21:1;25584:2;25564:18;;;25557:30;25623:34;25603:18;;;25596:62;-1:-1:-1;;;25674:18:1;;;25667:45;25729:19;;23457:76:0;25343:411:1;23457:76:0;23546:21;23570:10;24017:9;;;;;;;;;-1:-1:-1;24017:9:0;;;23940:94;23570:10;23546:34;;23622:1;23604:7;23598:21;:25;:86;;;;;;;;;;;;;;;;;23650:7;23659:18;:7;:16;:18::i;:::-;23633:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;23591:93;23358:334;-1:-1:-1;;;23358:334:0:o;35882:224::-;35984:4;-1:-1:-1;;;;;;36008:50:0;;-1:-1:-1;;;36008:50:0;;:90;;;36062:36;36086:11;36062:23;:36::i;37558:589::-;-1:-1:-1;;;;;37764:18:0;;37760:187;;37799:40;37831:7;38974:10;:17;;38947:24;;;;:15;:24;;;;;:44;;;39002:24;;;;;;;;;;;;38870:164;37799:40;37760:187;;;37869:2;-1:-1:-1;;;;;37861:10:0;:4;-1:-1:-1;;;;;37861:10:0;;37857:90;;37888:47;37921:4;37927:7;37888:32;:47::i;:::-;-1:-1:-1;;;;;37961:16:0;;37957:183;;37994:45;38031:7;37994:36;:45::i;37957:183::-;38067:4;-1:-1:-1;;;;;38061:10:0;:2;-1:-1:-1;;;;;38061:10:0;;38057:83;;38088:40;38116:2;38120:7;38088:27;:40::i;30556:360::-;30616:13;30632:23;30647:7;30632:14;:23::i;:::-;30616:39;;30668:48;30689:5;30704:1;30708:7;30668:20;:48::i;:::-;30757:29;30774:1;30778:7;30757:8;:29::i;:::-;-1:-1:-1;;;;;30799:16:0;;;;;;:9;:16;;;;;:21;;30819:1;;30799:16;:21;;30819:1;;30799:21;:::i;:::-;;;;-1:-1:-1;;30838:16:0;;;;:7;:16;;;;;;30831:23;;-1:-1:-1;;;;;;30831:23:0;;;30872:36;30846:7;;30838:16;-1:-1:-1;;;;;30872:36:0;;;;;30838:16;;30872:36;30605:311;30556:360;:::o;18221:723::-;18277:13;18498:10;18494:53;;-1:-1:-1;;18525:10:0;;;;;;;;;;;;-1:-1:-1;;;18525:10:0;;;;;18221:723::o;18494:53::-;18572:5;18557:12;18613:78;18620:9;;18613:78;;18646:8;;;;:::i;:::-;;-1:-1:-1;18669:10:0;;-1:-1:-1;18677:2:0;18669:10;;:::i;:::-;;;18613:78;;;18701:19;18733:6;18723:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18723:17:0;;18701:39;;18751:154;18758:10;;18751:154;;18785:11;18795:1;18785:11;;:::i;:::-;;-1:-1:-1;18854:10:0;18862:2;18854:5;:10;:::i;:::-;18841:24;;:2;:24;:::i;:::-;18828:39;;18811:6;18818;18811:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;18811:56:0;;;;;;;;-1:-1:-1;18882:11:0;18891:2;18882:11;;:::i;:::-;;;18751:154;;22069:305;22171:4;-1:-1:-1;;;;;;22208:40:0;;-1:-1:-1;;;22208:40:0;;:105;;-1:-1:-1;;;;;;;22265:48:0;;-1:-1:-1;;;22265:48:0;22208:105;:158;;;-1:-1:-1;;;;;;;;;;20787:40:0;;;22330:36;20678:157;39661:988;39927:22;39977:1;39952:22;39969:4;39952:16;:22::i;:::-;:26;;;;:::i;:::-;39989:18;40010:26;;;:17;:26;;;;;;39927:51;;-1:-1:-1;40143:28:0;;;40139:328;;-1:-1:-1;;;;;40210:18:0;;40188:19;40210:18;;;:12;:18;;;;;;;;:34;;;;;;;;;40261:30;;;;;;:44;;;40378:30;;:17;:30;;;;;:43;;;40139:328;-1:-1:-1;40563:26:0;;;;:17;:26;;;;;;;;40556:33;;;-1:-1:-1;;;;;40607:18:0;;;;;:12;:18;;;;;:34;;;;;;;40600:41;39661:988::o;40944:1079::-;41222:10;:17;41197:22;;41222:21;;41242:1;;41222:21;:::i;:::-;41254:18;41275:24;;;:15;:24;;;;;;41648:10;:26;;41197:46;;-1:-1:-1;41275:24:0;;41197:46;;41648:26;;;;;;:::i;:::-;;;;;;;;;41626:48;;41712:11;41687:10;41698;41687:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;41792:28;;;:15;:28;;;;;;;:41;;;41964:24;;;;;41957:31;41999:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;41015:1008;;;40944:1079;:::o;38448:221::-;38533:14;38550:20;38567:2;38550:16;:20::i;:::-;-1:-1:-1;;;;;38581:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;38626:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;38448:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;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:72;;;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:45;;;532:1;529;522:12;491:45;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;;;;14:631;;;;;:::o;650:220::-;692:5;745:3;738:4;730:6;726:17;722:27;712:55;;763:1;760;753:12;712:55;785:79;860:3;851:6;838:20;831:4;823:6;819:17;785:79;:::i;875:247::-;934:6;987:2;975:9;966:7;962:23;958:32;955:52;;;1003:1;1000;993:12;955:52;1042:9;1029:23;1061:31;1086:5;1061:31;:::i;1127:683::-;1241:6;1249;1257;1265;1273;1326:3;1314:9;1305:7;1301:23;1297:33;1294:53;;;1343:1;1340;1333:12;1294:53;1382:9;1369:23;1401:31;1426:5;1401:31;:::i;:::-;1451:5;-1:-1:-1;1503:2:1;1488:18;;1475:32;;-1:-1:-1;1554:2:1;1539:18;;1526:32;;-1:-1:-1;1610:2:1;1595:18;;1582:32;1623:30;1582:32;1623:30;:::i;:::-;1672:7;-1:-1:-1;1731:3:1;1716:19;;1703:33;1745;1703;1745;:::i;:::-;1797:7;1787:17;;;1127:683;;;;;;;;:::o;1815:388::-;1883:6;1891;1944:2;1932:9;1923:7;1919:23;1915:32;1912:52;;;1960:1;1957;1950:12;1912:52;1999:9;1986:23;2018:31;2043:5;2018:31;:::i;:::-;2068:5;-1:-1:-1;2125:2:1;2110:18;;2097:32;2138:33;2097:32;2138:33;:::i;:::-;2190:7;2180:17;;;1815:388;;;;;:::o;2208:456::-;2285:6;2293;2301;2354:2;2342:9;2333:7;2329:23;2325:32;2322:52;;;2370:1;2367;2360:12;2322:52;2409:9;2396:23;2428:31;2453:5;2428:31;:::i;:::-;2478:5;-1:-1:-1;2535:2:1;2520:18;;2507:32;2548:33;2507:32;2548:33;:::i;:::-;2208:456;;2600:7;;-1:-1:-1;;;2654:2:1;2639:18;;;;2626:32;;2208:456::o;2669:665::-;2764:6;2772;2780;2788;2841:3;2829:9;2820:7;2816:23;2812:33;2809:53;;;2858:1;2855;2848:12;2809:53;2897:9;2884:23;2916:31;2941:5;2916:31;:::i;:::-;2966:5;-1:-1:-1;3023:2:1;3008:18;;2995:32;3036:33;2995:32;3036:33;:::i;:::-;3088:7;-1:-1:-1;3142:2:1;3127:18;;3114:32;;-1:-1:-1;3197:2:1;3182:18;;3169:32;3224:18;3213:30;;3210:50;;;3256:1;3253;3246:12;3210:50;3279:49;3320:7;3311:6;3300:9;3296:22;3279:49;:::i;:::-;3269:59;;;2669:665;;;;;;;:::o;3339:382::-;3404:6;3412;3465:2;3453:9;3444:7;3440:23;3436:32;3433:52;;;3481:1;3478;3471:12;3433:52;3520:9;3507:23;3539:31;3564:5;3539:31;:::i;:::-;3589:5;-1:-1:-1;3646:2:1;3631:18;;3618:32;3659:30;3618:32;3659:30;:::i;3726:315::-;3794:6;3802;3855:2;3843:9;3834:7;3830:23;3826:32;3823:52;;;3871:1;3868;3861:12;3823:52;3910:9;3897:23;3929:31;3954:5;3929:31;:::i;:::-;3979:5;4031:2;4016:18;;;;4003:32;;-1:-1:-1;;;3726:315:1:o;4046:523::-;4132:6;4140;4148;4201:2;4189:9;4180:7;4176:23;4172:32;4169:52;;;4217:1;4214;4207:12;4169:52;4256:9;4243:23;4275:31;4300:5;4275:31;:::i;:::-;4325:5;-1:-1:-1;4377:2:1;4362:18;;4349:32;;-1:-1:-1;4432:2:1;4417:18;;4404:32;4459:18;4448:30;;4445:50;;;4491:1;4488;4481:12;4445:50;4514:49;4555:7;4546:6;4535:9;4531:22;4514:49;:::i;:::-;4504:59;;;4046:523;;;;;:::o;4574:245::-;4641:6;4694:2;4682:9;4673:7;4669:23;4665:32;4662:52;;;4710:1;4707;4700:12;4662:52;4742:9;4736:16;4761:28;4783:5;4761:28;:::i;4824:180::-;4883:6;4936:2;4924:9;4915:7;4911:23;4907:32;4904:52;;;4952:1;4949;4942:12;4904:52;-1:-1:-1;4975:23:1;;4824:180;-1:-1:-1;4824:180:1:o;5009:315::-;5077:6;5085;5138:2;5126:9;5117:7;5113:23;5109:32;5106:52;;;5154:1;5151;5144:12;5106:52;5190:9;5177:23;5167:33;;5250:2;5239:9;5235:18;5222:32;5263:31;5288:5;5263:31;:::i;5329:248::-;5397:6;5405;5458:2;5446:9;5437:7;5433:23;5429:32;5426:52;;;5474:1;5471;5464:12;5426:52;-1:-1:-1;;5497:23:1;;;5567:2;5552:18;;;5539:32;;-1:-1:-1;5329:248:1:o;5582:245::-;5640:6;5693:2;5681:9;5672:7;5668:23;5664:32;5661:52;;;5709:1;5706;5699:12;5661:52;5748:9;5735:23;5767:30;5791:5;5767:30;:::i;5832:249::-;5901:6;5954:2;5942:9;5933:7;5929:23;5925:32;5922:52;;;5970:1;5967;5960:12;5922:52;6002:9;5996:16;6021:30;6045:5;6021:30;:::i;6086:589::-;6164:6;6172;6225:2;6213:9;6204:7;6200:23;6196:32;6193:52;;;6241:1;6238;6231:12;6193:52;6281:9;6268:23;6314:18;6306:6;6303:30;6300:50;;;6346:1;6343;6336:12;6300:50;6369:22;;6422:4;6414:13;;6410:27;-1:-1:-1;6400:55:1;;6451:1;6448;6441:12;6400:55;6474:75;6541:7;6536:2;6523:16;6516:4;6512:2;6508:13;6474:75;:::i;:::-;6464:85;;;6599:4;6588:9;6584:20;6571:34;6614:31;6639:5;6614:31;:::i;7118:391::-;7203:6;7211;7219;7272:2;7260:9;7251:7;7247:23;7243:32;7240:52;;;7288:1;7285;7278:12;7240:52;7324:9;7311:23;7301:33;;7381:2;7370:9;7366:18;7353:32;7343:42;;7435:2;7424:9;7420:18;7407:32;7448:31;7473:5;7448:31;:::i;:::-;7498:5;7488:15;;;7118:391;;;;;:::o;7514:460::-;7608:6;7616;7624;7632;7685:3;7673:9;7664:7;7660:23;7656:33;7653:53;;;7702:1;7699;7692:12;7653:53;7738:9;7725:23;7715:33;;7795:2;7784:9;7780:18;7767:32;7757:42;;7849:2;7838:9;7834:18;7821:32;7862:31;7887:5;7862:31;:::i;:::-;7514:460;;;;-1:-1:-1;7912:5:1;;7964:2;7949:18;7936:32;;-1:-1:-1;;7514:460:1:o;7979:257::-;8020:3;8058:5;8052:12;8085:6;8080:3;8073:19;8101:63;8157:6;8150:4;8145:3;8141:14;8134:4;8127:5;8123:16;8101:63;:::i;:::-;8218:2;8197:15;-1:-1:-1;;8193:29:1;8184:39;;;;8225:4;8180:50;;7979:257;-1:-1:-1;;7979:257:1:o;8241:274::-;8370:3;8408:6;8402:13;8424:53;8470:6;8465:3;8458:4;8450:6;8446:17;8424:53;:::i;:::-;8493:16;;;;;8241:274;-1:-1:-1;;8241:274:1:o;8520:470::-;8699:3;8737:6;8731:13;8753:53;8799:6;8794:3;8787:4;8779:6;8775:17;8753:53;:::i;:::-;8869:13;;8828:16;;;;8891:57;8869:13;8828:16;8925:4;8913:17;;8891:57;:::i;:::-;8964:20;;8520:470;-1:-1:-1;;;;8520:470:1:o;8995:786::-;9406:25;9401:3;9394:38;9376:3;9461:6;9455:13;9477:62;9532:6;9527:2;9522:3;9518:12;9511:4;9503:6;9499:17;9477:62;:::i;:::-;-1:-1:-1;;;9598:2:1;9558:16;;;9590:11;;;9583:40;9648:13;;9670:63;9648:13;9719:2;9711:11;;9704:4;9692:17;;9670:63;:::i;:::-;9753:17;9772:2;9749:26;;8995:786;-1:-1:-1;;;;8995:786:1:o;11143:391::-;-1:-1:-1;;;;;11417:15:1;;;11399:34;;11469:15;;;;11464:2;11449:18;;11442:43;11516:2;11501:18;;11494:34;;;;11349:2;11334:18;;11143:391::o;12307:488::-;-1:-1:-1;;;;;12576:15:1;;;12558:34;;12628:15;;12623:2;12608:18;;12601:43;12675:2;12660:18;;12653:34;;;12723:3;12718:2;12703:18;;12696:31;;;12501:4;;12744:45;;12769:19;;12761:6;12744:45;:::i;:::-;12736:53;12307:488;-1:-1:-1;;;;;;12307:488:1:o;13675:219::-;13824:2;13813:9;13806:21;13787:4;13844:44;13884:2;13873:9;13869:18;13861:6;13844:44;:::i;15449:414::-;15651:2;15633:21;;;15690:2;15670:18;;;15663:30;15729:34;15724:2;15709:18;;15702:62;-1:-1:-1;;;15795:2:1;15780:18;;15773:48;15853:3;15838:19;;15449:414::o;22140:412::-;22342:2;22324:21;;;22381:2;22361:18;;;22354:30;22420:34;22415:2;22400:18;;22393:62;-1:-1:-1;;;22486:2:1;22471:18;;22464:46;22542:3;22527:19;;22140:412::o;26981:340::-;27183:2;27165:21;;;27222:2;27202:18;;;27195:30;-1:-1:-1;;;27256:2:1;27241:18;;27234:46;27312:2;27297:18;;26981:340::o;27326:413::-;27528:2;27510:21;;;27567:2;27547:18;;;27540:30;27606:34;27601:2;27586:18;;27579:62;-1:-1:-1;;;27672:2:1;27657:18;;27650:47;27729:3;27714:19;;27326:413::o;29733:355::-;29935:2;29917:21;;;29974:2;29954:18;;;29947:30;30013:33;30008:2;29993:18;;29986:61;30079:2;30064:18;;29733:355::o;31685:128::-;31725:3;31756:1;31752:6;31749:1;31746:13;31743:39;;;31762:18;;:::i;:::-;-1:-1:-1;31798:9:1;;31685:128::o;31818:120::-;31858:1;31884;31874:35;;31889:18;;:::i;:::-;-1:-1:-1;31923:9:1;;31818:120::o;31943:168::-;31983:7;32049:1;32045;32041:6;32037:14;32034:1;32031:21;32026:1;32019:9;32012:17;32008:45;32005:71;;;32056:18;;:::i;:::-;-1:-1:-1;32096:9:1;;31943:168::o;32116:125::-;32156:4;32184:1;32181;32178:8;32175:34;;;32189:18;;:::i;:::-;-1:-1:-1;32226:9:1;;32116:125::o;32246:258::-;32318:1;32328:113;32342:6;32339:1;32336:13;32328:113;;;32418:11;;;32412:18;32399:11;;;32392:39;32364:2;32357:10;32328:113;;;32459:6;32456:1;32453:13;32450:48;;;-1:-1:-1;;32494:1:1;32476:16;;32469:27;32246:258::o;32509:136::-;32548:3;32576:5;32566:39;;32585:18;;:::i;:::-;-1:-1:-1;;;32621:18:1;;32509:136::o;32650:380::-;32729:1;32725:12;;;;32772;;;32793:61;;32847:4;32839:6;32835:17;32825:27;;32793:61;32900:2;32892:6;32889:14;32869:18;32866:38;32863:161;;;32946:10;32941:3;32937:20;32934:1;32927:31;32981:4;32978:1;32971:15;33009:4;33006:1;32999:15;32863:161;;32650:380;;;:::o;33035:135::-;33074:3;-1:-1:-1;;33095:17:1;;33092:43;;;33115:18;;:::i;:::-;-1:-1:-1;33162:1:1;33151:13;;33035:135::o;33175:112::-;33207:1;33233;33223:35;;33238:18;;:::i;:::-;-1:-1:-1;33272:9:1;;33175:112::o;33292:127::-;33353:10;33348:3;33344:20;33341:1;33334:31;33384:4;33381:1;33374:15;33408:4;33405:1;33398:15;33424:127;33485:10;33480:3;33476:20;33473:1;33466:31;33516:4;33513:1;33506:15;33540:4;33537:1;33530:15;33556:127;33617:10;33612:3;33608:20;33605:1;33598:31;33648:4;33645:1;33638:15;33672:4;33669:1;33662:15;33688:127;33749:10;33744:3;33740:20;33737:1;33730:31;33780:4;33777:1;33770:15;33804:4;33801:1;33794:15;33820:127;33881:10;33876:3;33872:20;33869:1;33862:31;33912:4;33909:1;33902:15;33936:4;33933:1;33926:15;33952:131;-1:-1:-1;;;;;34027:31:1;;34017:42;;34007:70;;34073:1;34070;34063:12;34088:118;34174:5;34167:13;34160:21;34153:5;34150:32;34140:60;;34196:1;34193;34186:12;34211:131;-1:-1:-1;;;;;;34285:32:1;;34275:43;;34265:71;;34332:1;34329;34322:12
Swarm Source
ipfs://c215662e7f98500d2330ef7dba3c59b651f29aedb408518a92f499736f455e68
Loading...
Loading
OVERVIEW
Buy, sell and trade in-game assets, digital art, and digital collectibles on BEP40 NFTs today.Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.