ERC-721
Overview
Max Total Supply
2,223 RAC
Holders
695
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RACLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RichApesClub
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "./ERC721A.sol"; import "./Ownable.sol"; import "./Counters.sol"; interface IExternalContract { function balanceOf(address owner) external view returns (uint256); } contract RichApesClub is ERC721A, Ownable { using Strings for uint256; using Counters for Counters.Counter; uint256 immutable price = 77700000000000000; //0.0777 ETH uint256 public maxMintSupply = 4444; uint256 public limitPerWallet = 20; bool public publicState = false; string public baseURI; address public externalContractAddress; mapping(address => bool) public _claimed; constructor() ERC721A("RichApesClub", "RAC", limitPerWallet, maxMintSupply) { _transferOwnership(0xBD584cE590B7dcdbB93b11e095d9E1D5880B44d9); externalContractAddress = 0xe62a9Ed27708698cfD5Eb95310d0010953843B13; baseURI = "ipfs://QmcZAavfLTUExY4iUdN5hMuyWo6GEUXXxZ2jFo2cbps4yP/"; } function enable() public onlyOwner { publicState = true; } function disable() public onlyOwner { publicState = false; } function setBaseURI(string calldata _tokenBaseURI) external onlyOwner { baseURI = _tokenBaseURI; } function setExternalContractAddress(address contractAddress) external onlyOwner { externalContractAddress = contractAddress; } function externalBalanceOf(address owner) public view returns (uint256) { return IExternalContract(externalContractAddress).balanceOf(owner); } function mint(uint256 _amount) external payable { require(publicState, "mint disabled"); require(_amount > 0, "zero amount"); require(msg.value >= (price * _amount), "value sent is not correct"); require(totalSupply() + _amount <= maxMintSupply, "max supply exceeded"); _safeMint(_msgSender(), _amount); } function claim() external payable { require(publicState, "mint disabled"); uint256 extBalance = externalBalanceOf(_msgSender()); require(extBalance > 0, "nothing to claim"); require(!_claimed[_msgSender()], "already claimed"); require(totalSupply() + extBalance <= maxMintSupply, "max supply exceeded"); _safeMint(_msgSender(), extBalance); _claimed[_msgSender()] = true; } function withdraw() public onlyOwner { payable(_msgSender()).transfer(address(this).balance); } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./IERC721Enumerable.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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(), ".json")) : ""; } /** * @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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: 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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @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(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @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); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_claimed","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":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"disable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"externalBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalContractAddress","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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setExternalContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e060405260008080556007556701140bbd030c400060c05261115c6009556014600a55600b805460ff191690553480156200003a57600080fd5b506040518060400160405280600c81526020016b2934b1b420b832b9a1b63ab160a11b8152506040518060400160405280600381526020016252414360e81b815250600a5460095460008111620000ef5760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001515760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620000e6565b83516200016690600190602087019062000261565b5082516200017c90600290602086019062000261565b5060a09190915260805250620001949050336200020f565b620001b373bd584ce590b7dcdbb93b11e095d9e1d5880b44d96200020f565b600d80546001600160a01b03191673e62a9ed27708698cfd5eb95310d0010953843b131790556040805160608101909152603680825262002810602083013980516200020891600c9160209091019062000261565b5062000344565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200026f9062000307565b90600052602060002090601f016020900481019282620002935760008555620002de565b82601f10620002ae57805160ff1916838001178555620002de565b82800160010185558215620002de579182015b82811115620002de578251825591602001919060010190620002c1565b50620002ec929150620002f0565b5090565b5b80821115620002ec5760008155600101620002f1565b600181811c908216806200031c57607f821691505b602082108114156200033e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c0516124916200037f6000396000610f4e015260008181611791015281816117bb0152611bd40152600050506124916000f3fe6080604052600436106101f95760003560e01c806370a082311161010d578063abfe7614116100a0578063c87b56dd1161006f578063c87b56dd1461054b578063d7224ba01461056b578063dd896a1c14610581578063e985e9c5146105b1578063f2fde38b146105fa57600080fd5b8063abfe7614146104db578063b88d4fde146104f5578063c27df47114610515578063c285e1071461053557600080fd5b8063a0712d68116100dc578063a0712d681461047d578063a22cb46514610490578063a3907d71146104b0578063a620ce5a146104c557600080fd5b806370a0823114610415578063715018a6146104355780638da5cb5b1461044a57806395d89b411461046857600080fd5b80632f745c59116101905780634f6ccce71161015f5780634f6ccce71461038057806355f804b3146103a05780636352211e146103c057806367e86f55146103e05780636c0360eb1461040057600080fd5b80632f745c59146103235780633ccfd60b1461034357806342842e0e146103585780634e71d92d1461037857600080fd5b806318160ddd116101cc57806318160ddd146102af5780632176d50a146102ce57806323b872dd146102ee5780632f2770db1461030e57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004611e98565b61061a565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610687565b60405161022a9190611f0d565b34801561026157600080fd5b50610275610270366004611f20565b610719565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611f55565b6107a9565b005b3480156102bb57600080fd5b506000545b60405190815260200161022a565b3480156102da57600080fd5b50600d54610275906001600160a01b031681565b3480156102fa57600080fd5b506102ad610309366004611f7f565b6108c1565b34801561031a57600080fd5b506102ad6108cc565b34801561032f57600080fd5b506102c061033e366004611f55565b610902565b34801561034f57600080fd5b506102ad610a70565b34801561036457600080fd5b506102ad610373366004611f7f565b610ac9565b6102ad610ae4565b34801561038c57600080fd5b506102c061039b366004611f20565b610c4b565b3480156103ac57600080fd5b506102ad6103bb366004611fbb565b610cad565b3480156103cc57600080fd5b506102756103db366004611f20565b610ce3565b3480156103ec57600080fd5b506102c06103fb36600461202d565b610cf5565b34801561040c57600080fd5b50610248610d64565b34801561042157600080fd5b506102c061043036600461202d565b610df2565b34801561044157600080fd5b506102ad610e83565b34801561045657600080fd5b506008546001600160a01b0316610275565b34801561047457600080fd5b50610248610eb9565b6102ad61048b366004611f20565b610ec8565b34801561049c57600080fd5b506102ad6104ab366004612048565b611025565b3480156104bc57600080fd5b506102ad6110ea565b3480156104d157600080fd5b506102c0600a5481565b3480156104e757600080fd5b50600b5461021e9060ff1681565b34801561050157600080fd5b506102ad61051036600461209a565b611123565b34801561052157600080fd5b506102ad61053036600461202d565b61115c565b34801561054157600080fd5b506102c060095481565b34801561055757600080fd5b50610248610566366004611f20565b6111a8565b34801561057757600080fd5b506102c060075481565b34801561058d57600080fd5b5061021e61059c36600461202d565b600e6020526000908152604090205460ff1681565b3480156105bd57600080fd5b5061021e6105cc366004612176565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561060657600080fd5b506102ad61061536600461202d565b611275565b60006001600160e01b031982166380ac58cd60e01b148061064b57506001600160e01b03198216635b5e139f60e01b145b8061066657506001600160e01b0319821663780e9d6360e01b145b8061068157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610696906121a9565b80601f01602080910402602001604051908101604052809291908181526020018280546106c2906121a9565b801561070f5780601f106106e45761010080835404028352916020019161070f565b820191906000526020600020905b8154815290600101906020018083116106f257829003601f168201915b5050505050905090565b6000610726826000541190565b61078d5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107b482610ce3565b9050806001600160a01b0316836001600160a01b031614156108235760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610784565b336001600160a01b038216148061083f575061083f81336105cc565b6108b15760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610784565b6108bc83838361130d565b505050565b6108bc838383611369565b6008546001600160a01b031633146108f65760405162461bcd60e51b8152600401610784906121e4565b600b805460ff19169055565b600061090d83610df2565b82106109665760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610784565b600080549080805b83811015610a10576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109c157805192505b876001600160a01b0316836001600160a01b031614156109fd57868414156109ef5750935061068192505050565b836109f98161222f565b9450505b5080610a088161222f565b91505061096e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610784565b6008546001600160a01b03163314610a9a5760405162461bcd60e51b8152600401610784906121e4565b60405133904780156108fc02916000818181858888f19350505050158015610ac6573d6000803e3d6000fd5b50565b6108bc83838360405180602001604052806000815250611123565b600b5460ff16610b265760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610784565b6000610b3133610cf5565b905060008111610b765760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b6044820152606401610784565b336000908152600e602052604090205460ff1615610bc85760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610784565b60095481610bd560005490565b610bdf919061224a565b1115610c235760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610784565b610c2e335b826116f1565b50336000908152600e60205260409020805460ff19166001179055565b600080548210610ca95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610784565b5090565b6008546001600160a01b03163314610cd75760405162461bcd60e51b8152600401610784906121e4565b6108bc600c8383611df2565b6000610cee8261170f565b5192915050565b600d546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190612262565b600c8054610d71906121a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9d906121a9565b8015610dea5780601f10610dbf57610100808354040283529160200191610dea565b820191906000526020600020905b815481529060010190602001808311610dcd57829003601f168201915b505050505081565b60006001600160a01b038216610e5e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610784565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610ead5760405162461bcd60e51b8152600401610784906121e4565b610eb760006118b9565b565b606060028054610696906121a9565b600b5460ff16610f0a5760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610784565b60008111610f485760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b6044820152606401610784565b610f72817f000000000000000000000000000000000000000000000000000000000000000061227b565b341015610fc15760405162461bcd60e51b815260206004820152601960248201527f76616c75652073656e74206973206e6f7420636f7272656374000000000000006044820152606401610784565b60095481610fce60005490565b610fd8919061224a565b111561101c5760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610784565b610ac633610c28565b6001600160a01b03821633141561107e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610784565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111145760405162461bcd60e51b8152600401610784906121e4565b600b805460ff19166001179055565b61112e848484611369565b61113a8484848461190b565b6111565760405162461bcd60e51b81526004016107849061229a565b50505050565b6008546001600160a01b031633146111865760405162461bcd60e51b8152600401610784906121e4565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606111b5826000541190565b6112195760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610784565b6000611223611a0a565b90506000815111611243576040518060200160405280600081525061126e565b8061124d84611a19565b60405160200161125e9291906122ed565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461129f5760405162461bcd60e51b8152600401610784906121e4565b6001600160a01b0381166113045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610784565b610ac6816118b9565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006113748261170f565b80519091506000906001600160a01b0316336001600160a01b031614806113ab5750336113a084610719565b6001600160a01b0316145b806113bd575081516113bd90336105cc565b9050806114275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610784565b846001600160a01b031682600001516001600160a01b03161461149b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610784565b6001600160a01b0384166114ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610784565b61150f600084846000015161130d565b6001600160a01b03851660009081526004602052604081208054600192906115419084906001600160801b031661232c565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261158d91859116612354565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561161584600161224a565b6000818152600360205260409020549091506001600160a01b03166116a75761163f816000541190565b156116a75760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61170b828260405180602001604052806000815250611b17565b5050565b604080518082019091526000808252602082015261172e826000541190565b61178d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610784565b60007f000000000000000000000000000000000000000000000000000000000000000083106117ee576117e07f00000000000000000000000000000000000000000000000000000000000000008461237f565b6117eb90600161224a565b90505b825b818110611858576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561184557949350505050565b508061185081612396565b9150506117f0565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610784565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156119fe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061194f9033908990889088906004016123ad565b6020604051808303816000875af192505050801561198a575060408051601f3d908101601f19168201909252611987918101906123ea565b60015b6119e4573d8080156119b8576040519150601f19603f3d011682016040523d82523d6000602084013e6119bd565b606091505b5080516119dc5760405162461bcd60e51b81526004016107849061229a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a02565b5060015b949350505050565b6060600c8054610696906121a9565b606081611a3d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a675780611a518161222f565b9150611a609050600a8361241d565b9150611a41565b60008167ffffffffffffffff811115611a8257611a82612084565b6040519080825280601f01601f191660200182016040528015611aac576020820181803683370190505b5090505b8415611a0257611ac160018361237f565b9150611ace600a86612431565b611ad990603061224a565b60f81b818381518110611aee57611aee612445565b60200101906001600160f81b031916908160001a905350611b10600a8661241d565b9450611ab0565b6000546001600160a01b038416611b7a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610784565b611b85816000541190565b15611bd25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610784565b7f0000000000000000000000000000000000000000000000000000000000000000831115611c4d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610784565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611ca9908790612354565b6001600160801b03168152602001858360200151611cc79190612354565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611de75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611dab600088848861190b565b611dc75760405162461bcd60e51b81526004016107849061229a565b81611dd18161222f565b9250508080611ddf9061222f565b915050611d5e565b5060008190556116e9565b828054611dfe906121a9565b90600052602060002090601f016020900481019282611e205760008555611e66565b82601f10611e395782800160ff19823516178555611e66565b82800160010185558215611e66579182015b82811115611e66578235825591602001919060010190611e4b565b50610ca99291505b80821115610ca95760008155600101611e6e565b6001600160e01b031981168114610ac657600080fd5b600060208284031215611eaa57600080fd5b813561126e81611e82565b60005b83811015611ed0578181015183820152602001611eb8565b838111156111565750506000910152565b60008151808452611ef9816020860160208601611eb5565b601f01601f19169290920160200192915050565b60208152600061126e6020830184611ee1565b600060208284031215611f3257600080fd5b5035919050565b80356001600160a01b0381168114611f5057600080fd5b919050565b60008060408385031215611f6857600080fd5b611f7183611f39565b946020939093013593505050565b600080600060608486031215611f9457600080fd5b611f9d84611f39565b9250611fab60208501611f39565b9150604084013590509250925092565b60008060208385031215611fce57600080fd5b823567ffffffffffffffff80821115611fe657600080fd5b818501915085601f830112611ffa57600080fd5b81358181111561200957600080fd5b86602082850101111561201b57600080fd5b60209290920196919550909350505050565b60006020828403121561203f57600080fd5b61126e82611f39565b6000806040838503121561205b57600080fd5b61206483611f39565b91506020830135801515811461207957600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156120b057600080fd5b6120b985611f39565b93506120c760208601611f39565b925060408501359150606085013567ffffffffffffffff808211156120eb57600080fd5b818701915087601f8301126120ff57600080fd5b81358181111561211157612111612084565b604051601f8201601f19908116603f0116810190838211818310171561213957612139612084565b816040528281528a602084870101111561215257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561218957600080fd5b61219283611f39565b91506121a060208401611f39565b90509250929050565b600181811c908216806121bd57607f821691505b602082108114156121de57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561224357612243612219565b5060010190565b6000821982111561225d5761225d612219565b500190565b60006020828403121561227457600080fd5b5051919050565b600081600019048311821515161561229557612295612219565b500290565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516122ff818460208801611eb5565b835190830190612313818360208801611eb5565b64173539b7b760d91b9101908152600501949350505050565b60006001600160801b038381169083168181101561234c5761234c612219565b039392505050565b60006001600160801b0380831681851680830382111561237657612376612219565b01949350505050565b60008282101561239157612391612219565b500390565b6000816123a5576123a5612219565b506000190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123e090830184611ee1565b9695505050505050565b6000602082840312156123fc57600080fd5b815161126e81611e82565b634e487b7160e01b600052601260045260246000fd5b60008261242c5761242c612407565b500490565b60008261244057612440612407565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220df8079942633862ff738a11a296591f99370d374e6160fe2e69efca9c2ad9bef64736f6c634300080b0033697066733a2f2f516d635a416176664c5455457859346955644e35684d7579576f364745555858785a326a466f32636270733479502f
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806370a082311161010d578063abfe7614116100a0578063c87b56dd1161006f578063c87b56dd1461054b578063d7224ba01461056b578063dd896a1c14610581578063e985e9c5146105b1578063f2fde38b146105fa57600080fd5b8063abfe7614146104db578063b88d4fde146104f5578063c27df47114610515578063c285e1071461053557600080fd5b8063a0712d68116100dc578063a0712d681461047d578063a22cb46514610490578063a3907d71146104b0578063a620ce5a146104c557600080fd5b806370a0823114610415578063715018a6146104355780638da5cb5b1461044a57806395d89b411461046857600080fd5b80632f745c59116101905780634f6ccce71161015f5780634f6ccce71461038057806355f804b3146103a05780636352211e146103c057806367e86f55146103e05780636c0360eb1461040057600080fd5b80632f745c59146103235780633ccfd60b1461034357806342842e0e146103585780634e71d92d1461037857600080fd5b806318160ddd116101cc57806318160ddd146102af5780632176d50a146102ce57806323b872dd146102ee5780632f2770db1461030e57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004611e98565b61061a565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610687565b60405161022a9190611f0d565b34801561026157600080fd5b50610275610270366004611f20565b610719565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611f55565b6107a9565b005b3480156102bb57600080fd5b506000545b60405190815260200161022a565b3480156102da57600080fd5b50600d54610275906001600160a01b031681565b3480156102fa57600080fd5b506102ad610309366004611f7f565b6108c1565b34801561031a57600080fd5b506102ad6108cc565b34801561032f57600080fd5b506102c061033e366004611f55565b610902565b34801561034f57600080fd5b506102ad610a70565b34801561036457600080fd5b506102ad610373366004611f7f565b610ac9565b6102ad610ae4565b34801561038c57600080fd5b506102c061039b366004611f20565b610c4b565b3480156103ac57600080fd5b506102ad6103bb366004611fbb565b610cad565b3480156103cc57600080fd5b506102756103db366004611f20565b610ce3565b3480156103ec57600080fd5b506102c06103fb36600461202d565b610cf5565b34801561040c57600080fd5b50610248610d64565b34801561042157600080fd5b506102c061043036600461202d565b610df2565b34801561044157600080fd5b506102ad610e83565b34801561045657600080fd5b506008546001600160a01b0316610275565b34801561047457600080fd5b50610248610eb9565b6102ad61048b366004611f20565b610ec8565b34801561049c57600080fd5b506102ad6104ab366004612048565b611025565b3480156104bc57600080fd5b506102ad6110ea565b3480156104d157600080fd5b506102c0600a5481565b3480156104e757600080fd5b50600b5461021e9060ff1681565b34801561050157600080fd5b506102ad61051036600461209a565b611123565b34801561052157600080fd5b506102ad61053036600461202d565b61115c565b34801561054157600080fd5b506102c060095481565b34801561055757600080fd5b50610248610566366004611f20565b6111a8565b34801561057757600080fd5b506102c060075481565b34801561058d57600080fd5b5061021e61059c36600461202d565b600e6020526000908152604090205460ff1681565b3480156105bd57600080fd5b5061021e6105cc366004612176565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561060657600080fd5b506102ad61061536600461202d565b611275565b60006001600160e01b031982166380ac58cd60e01b148061064b57506001600160e01b03198216635b5e139f60e01b145b8061066657506001600160e01b0319821663780e9d6360e01b145b8061068157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610696906121a9565b80601f01602080910402602001604051908101604052809291908181526020018280546106c2906121a9565b801561070f5780601f106106e45761010080835404028352916020019161070f565b820191906000526020600020905b8154815290600101906020018083116106f257829003601f168201915b5050505050905090565b6000610726826000541190565b61078d5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107b482610ce3565b9050806001600160a01b0316836001600160a01b031614156108235760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610784565b336001600160a01b038216148061083f575061083f81336105cc565b6108b15760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610784565b6108bc83838361130d565b505050565b6108bc838383611369565b6008546001600160a01b031633146108f65760405162461bcd60e51b8152600401610784906121e4565b600b805460ff19169055565b600061090d83610df2565b82106109665760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610784565b600080549080805b83811015610a10576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109c157805192505b876001600160a01b0316836001600160a01b031614156109fd57868414156109ef5750935061068192505050565b836109f98161222f565b9450505b5080610a088161222f565b91505061096e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610784565b6008546001600160a01b03163314610a9a5760405162461bcd60e51b8152600401610784906121e4565b60405133904780156108fc02916000818181858888f19350505050158015610ac6573d6000803e3d6000fd5b50565b6108bc83838360405180602001604052806000815250611123565b600b5460ff16610b265760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610784565b6000610b3133610cf5565b905060008111610b765760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b6044820152606401610784565b336000908152600e602052604090205460ff1615610bc85760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610784565b60095481610bd560005490565b610bdf919061224a565b1115610c235760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610784565b610c2e335b826116f1565b50336000908152600e60205260409020805460ff19166001179055565b600080548210610ca95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610784565b5090565b6008546001600160a01b03163314610cd75760405162461bcd60e51b8152600401610784906121e4565b6108bc600c8383611df2565b6000610cee8261170f565b5192915050565b600d546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190612262565b600c8054610d71906121a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9d906121a9565b8015610dea5780601f10610dbf57610100808354040283529160200191610dea565b820191906000526020600020905b815481529060010190602001808311610dcd57829003601f168201915b505050505081565b60006001600160a01b038216610e5e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610784565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610ead5760405162461bcd60e51b8152600401610784906121e4565b610eb760006118b9565b565b606060028054610696906121a9565b600b5460ff16610f0a5760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610784565b60008111610f485760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b6044820152606401610784565b610f72817f00000000000000000000000000000000000000000000000001140bbd030c400061227b565b341015610fc15760405162461bcd60e51b815260206004820152601960248201527f76616c75652073656e74206973206e6f7420636f7272656374000000000000006044820152606401610784565b60095481610fce60005490565b610fd8919061224a565b111561101c5760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610784565b610ac633610c28565b6001600160a01b03821633141561107e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610784565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111145760405162461bcd60e51b8152600401610784906121e4565b600b805460ff19166001179055565b61112e848484611369565b61113a8484848461190b565b6111565760405162461bcd60e51b81526004016107849061229a565b50505050565b6008546001600160a01b031633146111865760405162461bcd60e51b8152600401610784906121e4565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606111b5826000541190565b6112195760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610784565b6000611223611a0a565b90506000815111611243576040518060200160405280600081525061126e565b8061124d84611a19565b60405160200161125e9291906122ed565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461129f5760405162461bcd60e51b8152600401610784906121e4565b6001600160a01b0381166113045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610784565b610ac6816118b9565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006113748261170f565b80519091506000906001600160a01b0316336001600160a01b031614806113ab5750336113a084610719565b6001600160a01b0316145b806113bd575081516113bd90336105cc565b9050806114275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610784565b846001600160a01b031682600001516001600160a01b03161461149b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610784565b6001600160a01b0384166114ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610784565b61150f600084846000015161130d565b6001600160a01b03851660009081526004602052604081208054600192906115419084906001600160801b031661232c565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261158d91859116612354565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561161584600161224a565b6000818152600360205260409020549091506001600160a01b03166116a75761163f816000541190565b156116a75760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61170b828260405180602001604052806000815250611b17565b5050565b604080518082019091526000808252602082015261172e826000541190565b61178d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610784565b60007f000000000000000000000000000000000000000000000000000000000000001483106117ee576117e07f00000000000000000000000000000000000000000000000000000000000000148461237f565b6117eb90600161224a565b90505b825b818110611858576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561184557949350505050565b508061185081612396565b9150506117f0565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610784565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156119fe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061194f9033908990889088906004016123ad565b6020604051808303816000875af192505050801561198a575060408051601f3d908101601f19168201909252611987918101906123ea565b60015b6119e4573d8080156119b8576040519150601f19603f3d011682016040523d82523d6000602084013e6119bd565b606091505b5080516119dc5760405162461bcd60e51b81526004016107849061229a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a02565b5060015b949350505050565b6060600c8054610696906121a9565b606081611a3d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a675780611a518161222f565b9150611a609050600a8361241d565b9150611a41565b60008167ffffffffffffffff811115611a8257611a82612084565b6040519080825280601f01601f191660200182016040528015611aac576020820181803683370190505b5090505b8415611a0257611ac160018361237f565b9150611ace600a86612431565b611ad990603061224a565b60f81b818381518110611aee57611aee612445565b60200101906001600160f81b031916908160001a905350611b10600a8661241d565b9450611ab0565b6000546001600160a01b038416611b7a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610784565b611b85816000541190565b15611bd25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610784565b7f0000000000000000000000000000000000000000000000000000000000000014831115611c4d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610784565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611ca9908790612354565b6001600160801b03168152602001858360200151611cc79190612354565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611de75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611dab600088848861190b565b611dc75760405162461bcd60e51b81526004016107849061229a565b81611dd18161222f565b9250508080611ddf9061222f565b915050611d5e565b5060008190556116e9565b828054611dfe906121a9565b90600052602060002090601f016020900481019282611e205760008555611e66565b82601f10611e395782800160ff19823516178555611e66565b82800160010185558215611e66579182015b82811115611e66578235825591602001919060010190611e4b565b50610ca99291505b80821115610ca95760008155600101611e6e565b6001600160e01b031981168114610ac657600080fd5b600060208284031215611eaa57600080fd5b813561126e81611e82565b60005b83811015611ed0578181015183820152602001611eb8565b838111156111565750506000910152565b60008151808452611ef9816020860160208601611eb5565b601f01601f19169290920160200192915050565b60208152600061126e6020830184611ee1565b600060208284031215611f3257600080fd5b5035919050565b80356001600160a01b0381168114611f5057600080fd5b919050565b60008060408385031215611f6857600080fd5b611f7183611f39565b946020939093013593505050565b600080600060608486031215611f9457600080fd5b611f9d84611f39565b9250611fab60208501611f39565b9150604084013590509250925092565b60008060208385031215611fce57600080fd5b823567ffffffffffffffff80821115611fe657600080fd5b818501915085601f830112611ffa57600080fd5b81358181111561200957600080fd5b86602082850101111561201b57600080fd5b60209290920196919550909350505050565b60006020828403121561203f57600080fd5b61126e82611f39565b6000806040838503121561205b57600080fd5b61206483611f39565b91506020830135801515811461207957600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156120b057600080fd5b6120b985611f39565b93506120c760208601611f39565b925060408501359150606085013567ffffffffffffffff808211156120eb57600080fd5b818701915087601f8301126120ff57600080fd5b81358181111561211157612111612084565b604051601f8201601f19908116603f0116810190838211818310171561213957612139612084565b816040528281528a602084870101111561215257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561218957600080fd5b61219283611f39565b91506121a060208401611f39565b90509250929050565b600181811c908216806121bd57607f821691505b602082108114156121de57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561224357612243612219565b5060010190565b6000821982111561225d5761225d612219565b500190565b60006020828403121561227457600080fd5b5051919050565b600081600019048311821515161561229557612295612219565b500290565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516122ff818460208801611eb5565b835190830190612313818360208801611eb5565b64173539b7b760d91b9101908152600501949350505050565b60006001600160801b038381169083168181101561234c5761234c612219565b039392505050565b60006001600160801b0380831681851680830382111561237657612376612219565b01949350505050565b60008282101561239157612391612219565b500390565b6000816123a5576123a5612219565b506000190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123e090830184611ee1565b9695505050505050565b6000602082840312156123fc57600080fd5b815161126e81611e82565b634e487b7160e01b600052601260045260246000fd5b60008261242c5761242c612407565b500490565b60008261244057612440612407565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220df8079942633862ff738a11a296591f99370d374e6160fe2e69efca9c2ad9bef64736f6c634300080b0033
Deployed Bytecode Sourcemap
235:2331:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3826:358:5;;;;;;;;;;-1:-1:-1;3826:358:5;;;;;:::i;:::-;;:::i;:::-;;;565:14:16;;558:22;540:41;;528:2;513:18;3826:358:5;;;;;;;;5490:92;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;6964:200::-;;;;;;;;;;-1:-1:-1;6964:200:5;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:16;;;1674:51;;1662:2;1647:18;6964:200:5;1528:203:16;6542:369:5;;;;;;;;;;-1:-1:-1;6542:369:5;;;;;:::i;:::-;;:::i;:::-;;2432:92;;;;;;;;;;-1:-1:-1;2485:7:5;2507:12;2432:92;;;2319:25:16;;;2307:2;2292:18;2432:92:5;2173:177:16;567:38:14;;;;;;;;;;-1:-1:-1;567:38:14;;;;-1:-1:-1;;;;;567:38:14;;;7782:136:5;;;;;;;;;;-1:-1:-1;7782:136:5;;;;;:::i;:::-;;:::i;1058:72:14:-;;;;;;;;;;;;;:::i;3046:721:5:-;;;;;;;;;;-1:-1:-1;3046:721:5;;;;;:::i;:::-;;:::i;2353:107:14:-;;;;;;;;;;;;;:::i;7976:151:5:-;;;;;;;;;;-1:-1:-1;7976:151:5;;;;;:::i;:::-;;:::i;1912:435:14:-;;;:::i;2588:174:5:-;;;;;;;;;;-1:-1:-1;2588:174:5;;;;;:::i;:::-;;:::i;1136:110:14:-;;;;;;;;;;-1:-1:-1;1136:110:14;;;;;:::i;:::-;;:::i;5320:116:5:-;;;;;;;;;;-1:-1:-1;5320:116:5;;;;;:::i;:::-;;:::i;1396:155:14:-;;;;;;;;;;-1:-1:-1;1396:155:14;;;;;:::i;:::-;;:::i;539:21::-;;;;;;;;;;;;;:::i;4235:208:5:-;;;;;;;;;;-1:-1:-1;4235:208:5;;;;;:::i;:::-;;:::i;1661:101:13:-;;;;;;;;;;;;;:::i;1029:85::-;;;;;;;;;;-1:-1:-1;1101:6:13;;-1:-1:-1;;;;;1101:6:13;1029:85;;5638:96:5;;;;;;;;;;;;;:::i;1557:349:14:-;;;;;;:::i;:::-;;:::i;7223:269:5:-;;;;;;;;;;-1:-1:-1;7223:269:5;;;;;:::i;:::-;;:::i;982:70:14:-;;;;;;;;;;;;;:::i;460:34::-;;;;;;;;;;;;;;;;501:31;;;;;;;;;;-1:-1:-1;501:31:14;;;;;;;;8185:300:5;;;;;;;;;;-1:-1:-1;8185:300:5;;;;;:::i;:::-;;:::i;1252:138:14:-;;;;;;;;;;-1:-1:-1;1252:138:14;;;;;:::i;:::-;;:::i;419:35::-;;;;;;;;;;;;;;;;5792:386:5;;;;;;;;;;-1:-1:-1;5792:386:5;;;;;:::i;:::-;;:::i;12455:43::-;;;;;;;;;;;;;;;;612:40:14;;;;;;;;;;-1:-1:-1;612:40:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;7550:178:5;;;;;;;;;;-1:-1:-1;7550:178:5;;;;;:::i;:::-;-1:-1:-1;;;;;7688:25:5;;;7667:4;7688:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;7550:178;1911:198:13;;;;;;;;;;-1:-1:-1;1911:198:13;;;;;:::i;:::-;;:::i;3826:358:5:-;3948:4;-1:-1:-1;;;;;;3975:40:5;;-1:-1:-1;;;3975:40:5;;:98;;-1:-1:-1;;;;;;;4025:48:5;;-1:-1:-1;;;4025:48:5;3975:98;:158;;;-1:-1:-1;;;;;;;4083:50:5;;-1:-1:-1;;;4083:50:5;3975:158;:204;;;-1:-1:-1;;;;;;;;;;937:40:3;;;4143:36:5;3962:217;3826:358;-1:-1:-1;;3826:358:5:o;5490:92::-;5544:13;5572:5;5565:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5490:92;:::o;6964:200::-;7032:7;7055:16;7063:7;8772:4;8801:12;-1:-1:-1;8791:22:5;8715:103;7055:16;7047:74;;;;-1:-1:-1;;;7047:74:5;;5955:2:16;7047:74:5;;;5937:21:16;5994:2;5974:18;;;5967:30;6033:34;6013:18;;;6006:62;-1:-1:-1;;;6084:18:16;;;6077:43;6137:19;;7047:74:5;;;;;;;;;-1:-1:-1;7135:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;7135:24:5;;6964:200::o;6542:369::-;6610:13;6626:24;6642:7;6626:15;:24::i;:::-;6610:40;;6670:5;-1:-1:-1;;;;;6664:11:5;:2;-1:-1:-1;;;;;6664:11:5;;;6656:58;;;;-1:-1:-1;;;6656:58:5;;6369:2:16;6656:58:5;;;6351:21:16;6408:2;6388:18;;;6381:30;6447:34;6427:18;;;6420:62;-1:-1:-1;;;6498:18:16;;;6491:32;6540:19;;6656:58:5;6167:398:16;6656:58:5;719:10:1;-1:-1:-1;;;;;6736:21:5;;;;:62;;-1:-1:-1;6761:37:5;6778:5;719:10:1;7550:178:5;:::i;6761:37::-;6721:150;;;;-1:-1:-1;;;6721:150:5;;6772:2:16;6721:150:5;;;6754:21:16;6811:2;6791:18;;;6784:30;6850:34;6830:18;;;6823:62;6921:27;6901:18;;;6894:55;6966:19;;6721:150:5;6570:421:16;6721:150:5;6878:28;6887:2;6891:7;6900:5;6878:8;:28::i;:::-;6604:307;6542:369;;:::o;7782:136::-;7885:28;7895:4;7901:2;7905:7;7885:9;:28::i;1058:72:14:-;1101:6:13;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;1104:11:14::1;:19:::0;;-1:-1:-1;;1104:19:14::1;::::0;;1058:72::o;3046:721:5:-;3151:7;3184:16;3194:5;3184:9;:16::i;:::-;3176:5;:24;3168:71;;;;-1:-1:-1;;;3168:71:5;;7559:2:16;3168:71:5;;;7541:21:16;7598:2;7578:18;;;7571:30;7637:34;7617:18;;;7610:62;-1:-1:-1;;;7688:18:16;;;7681:32;7730:19;;3168:71:5;7357:398:16;3168:71:5;3245:22;2507:12;;;3245:22;;3362:339;3386:14;3382:1;:18;3362:339;;;3415:31;3449:14;;;:11;:14;;;;;;;;;3415:48;;;;;;;;;-1:-1:-1;;;;;3415:48:5;;;;;-1:-1:-1;;;3415:48:5;;;;;;;;;;;;3475:28;3471:87;;3535:14;;;-1:-1:-1;3471:87:5;3590:5;-1:-1:-1;;;;;3569:26:5;:17;-1:-1:-1;;;;;3569:26:5;;3565:130;;;3626:5;3611:11;:20;3607:57;;;-1:-1:-1;3652:1:5;-1:-1:-1;3645:8:5;;-1:-1:-1;;;3645:8:5;3607:57;3673:13;;;;:::i;:::-;;;;3565:130;-1:-1:-1;3402:3:5;;;;:::i;:::-;;;;3362:339;;;-1:-1:-1;3706:56:5;;-1:-1:-1;;;3706:56:5;;8234:2:16;3706:56:5;;;8216:21:16;8273:2;8253:18;;;8246:30;8312:34;8292:18;;;8285:62;-1:-1:-1;;;8363:18:16;;;8356:44;8417:19;;3706:56:5;8032:410:16;2353:107:14;1101:6:13;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;2400:53:14::1;::::0;719:10:1;;2431:21:14::1;2400:53:::0;::::1;;;::::0;::::1;::::0;;;2431:21;719:10:1;2400:53:14;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;2353:107::o:0;7976:151:5:-;8083:39;8100:4;8106:2;8110:7;8083:39;;;;;;;;;;;;:16;:39::i;1912:435:14:-;1964:11;;;;1956:37;;;;-1:-1:-1;;;1956:37:14;;8649:2:16;1956:37:14;;;8631:21:16;8688:2;8668:18;;;8661:30;-1:-1:-1;;;8707:18:16;;;8700:43;8760:18;;1956:37:14;8447:337:16;1956:37:14;2004:18;2025:31;719:10:1;1396:155:14;:::i;2025:31::-;2004:52;;2087:1;2074:10;:14;2066:43;;;;-1:-1:-1;;;2066:43:14;;8991:2:16;2066:43:14;;;8973:21:16;9030:2;9010:18;;;9003:30;-1:-1:-1;;;9049:18:16;;;9042:46;9105:18;;2066:43:14;8789:340:16;2066:43:14;719:10:1;2128:22:14;;;;:8;:22;;;;;;;;2127:23;2119:51;;;;-1:-1:-1;;;2119:51:14;;9336:2:16;2119:51:14;;;9318:21:16;9375:2;9355:18;;;9348:30;-1:-1:-1;;;9394:18:16;;;9387:45;9449:18;;2119:51:14;9134:339:16;2119:51:14;2218:13;;2204:10;2188:13;2485:7:5;2507:12;;2432:92;2188:13:14;:26;;;;:::i;:::-;:43;;2180:75;;;;-1:-1:-1;;;2180:75:14;;9813:2:16;2180:75:14;;;9795:21:16;9852:2;9832:18;;;9825:30;-1:-1:-1;;;9871:18:16;;;9864:49;9930:18;;2180:75:14;9611:343:16;2180:75:14;2266:35;719:10:1;2276:12:14;2290:10;2266:9;:35::i;:::-;-1:-1:-1;719:10:1;2311:22:14;;;;:8;:22;;;;;:29;;-1:-1:-1;;2311:29:14;2336:4;2311:29;;;1912:435::o;2588:174:5:-;2655:7;2507:12;;2678:5;:21;2670:69;;;;-1:-1:-1;;;2670:69:5;;10161:2:16;2670:69:5;;;10143:21:16;10200:2;10180:18;;;10173:30;10239:34;10219:18;;;10212:62;-1:-1:-1;;;10290:18:16;;;10283:33;10333:19;;2670:69:5;9959:399:16;2670:69:5;-1:-1:-1;2752:5:5;2588:174::o;1136:110:14:-;1101:6:13;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;1216:23:14::1;:7;1226:13:::0;;1216:23:::1;:::i;5320:116:5:-:0;5384:7;5406:20;5418:7;5406:11;:20::i;:::-;:25;;5320:116;-1:-1:-1;;5320:116:5:o;1396:155:14:-;1503:23;;1485:59;;-1:-1:-1;;;1485:59:14;;-1:-1:-1;;;;;1692:32:16;;;1485:59:14;;;1674:51:16;1459:7:14;;1503:23;;1485:52;;1647:18:16;;1485:59:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;539:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4235:208:5:-;4299:7;-1:-1:-1;;;;;4322:19:5;;4314:75;;;;-1:-1:-1;;;4314:75:5;;10754:2:16;4314:75:5;;;10736:21:16;10793:2;10773:18;;;10766:30;10832:34;10812:18;;;10805:62;-1:-1:-1;;;10883:18:16;;;10876:41;10934:19;;4314:75:5;10552:407:16;4314:75:5;-1:-1:-1;;;;;;4410:19:5;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;4410:27:5;;4235:208::o;1661:101:13:-;1101:6;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;1725:30:::1;1752:1;1725:18;:30::i;:::-;1661:101::o:0;5638:96:5:-;5694:13;5722:7;5715:14;;;;;:::i;1557:349:14:-;1623:11;;;;1615:37;;;;-1:-1:-1;;;1615:37:14;;8649:2:16;1615:37:14;;;8631:21:16;8688:2;8668:18;;;8661:30;-1:-1:-1;;;8707:18:16;;;8700:43;8760:18;;1615:37:14;8447:337:16;1615:37:14;1680:1;1670:7;:11;1662:35;;;;-1:-1:-1;;;1662:35:14;;11166:2:16;1662:35:14;;;11148:21:16;11205:2;11185:18;;;11178:30;-1:-1:-1;;;11224:18:16;;;11217:41;11275:18;;1662:35:14;10964:335:16;1662:35:14;1729:15;1737:7;1729:5;:15;:::i;:::-;1715:9;:30;;1707:68;;;;-1:-1:-1;;;1707:68:14;;11679:2:16;1707:68:14;;;11661:21:16;11718:2;11698:18;;;11691:30;11757:27;11737:18;;;11730:55;11802:18;;1707:68:14;11477:349:16;1707:68:14;1820:13;;1809:7;1793:13;2485:7:5;2507:12;;2432:92;1793:13:14;:23;;;;:::i;:::-;:40;;1785:72;;;;-1:-1:-1;;;1785:72:14;;9813:2:16;1785:72:14;;;9795:21:16;9852:2;9832:18;;;9825:30;-1:-1:-1;;;9871:18:16;;;9864:49;9930:18;;1785:72:14;9611:343:16;1785:72:14;1867:32;719:10:1;1877:12:14;640:96:1;7223:269:5;-1:-1:-1;;;;;7313:24:5;;719:10:1;7313:24:5;;7305:63;;;;-1:-1:-1;;;7305:63:5;;12033:2:16;7305:63:5;;;12015:21:16;12072:2;12052:18;;;12045:30;12111:28;12091:18;;;12084:56;12157:18;;7305:63:5;11831:350:16;7305:63:5;719:10:1;7375:32:5;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;7375:42:5;;;;;;;;;;;;:53;;-1:-1:-1;;7375:53:5;;;;;;;;;;7439:48;;540:41:16;;;7375:42:5;;719:10:1;7439:48:5;;513:18:16;7439:48:5;;;;;;;7223:269;;:::o;982:70:14:-;1101:6:13;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;1027:11:14::1;:18:::0;;-1:-1:-1;;1027:18:14::1;1041:4;1027:18;::::0;;982:70::o;8185:300:5:-;8316:28;8326:4;8332:2;8336:7;8316:9;:28::i;:::-;8365:48;8388:4;8394:2;8398:7;8407:5;8365:22;:48::i;:::-;8350:130;;;;-1:-1:-1;;;8350:130:5;;;;;;;:::i;:::-;8185:300;;;;:::o;1252:138:14:-;1101:6:13;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;1342:23:14::1;:41:::0;;-1:-1:-1;;;;;;1342:41:14::1;-1:-1:-1::0;;;;;1342:41:14;;;::::1;::::0;;;::::1;::::0;;1252:138::o;5792:386:5:-;5885:13;5923:16;5931:7;8772:4;8801:12;-1:-1:-1;8791:22:5;8715:103;5923:16;5908:94;;;;-1:-1:-1;;;5908:94:5;;12808:2:16;5908:94:5;;;12790:21:16;12847:2;12827:18;;;12820:30;12886:34;12866:18;;;12859:62;-1:-1:-1;;;12937:18:16;;;12930:45;12992:19;;5908:94:5;12606:411:16;5908:94:5;6009:21;6033:10;:8;:10::i;:::-;6009:34;;6086:1;6068:7;6062:21;:25;:111;;;;;;;;;;;;;;;;;6122:7;6131:18;:7;:16;:18::i;:::-;6105:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;6062:111;6049:124;5792:386;-1:-1:-1;;;5792:386:5:o;1911:198:13:-;1101:6;;-1:-1:-1;;;;;1101:6:13;719:10:1;1241:23:13;1233:68;;;;-1:-1:-1;;;1233:68:13;;;;;;;:::i;:::-;-1:-1:-1;;;;;1999:22:13;::::1;1991:73;;;::::0;-1:-1:-1;;;1991:73:13;;13866:2:16;1991:73:13::1;::::0;::::1;13848:21:16::0;13905:2;13885:18;;;13878:30;13944:34;13924:18;;;13917:62;-1:-1:-1;;;13995:18:16;;;13988:36;14041:19;;1991:73:13::1;13664:402:16::0;1991:73:13::1;2074:28;2093:8;2074:18;:28::i;12286:165:5:-:0;12378:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;12378:29:5;-1:-1:-1;;;;;12378:29:5;;;;;;;;;12418:28;;12378:24;;12418:28;;;;;;;12286:165;;;:::o;10703:1484::-;10795:35;10833:20;10845:7;10833:11;:20::i;:::-;10902:18;;10795:58;;-1:-1:-1;10860:22:5;;-1:-1:-1;;;;;10886:34:5;719:10:1;-1:-1:-1;;;;;10886:34:5;;:80;;;-1:-1:-1;719:10:1;10930:20:5;10942:7;10930:11;:20::i;:::-;-1:-1:-1;;;;;10930:36:5;;10886:80;:140;;;-1:-1:-1;10993:18:5;;10976:50;;719:10:1;7550:178:5;:::i;10976:50::-;10860:167;;11049:17;11034:98;;;;-1:-1:-1;;;11034:98:5;;14273:2:16;11034:98:5;;;14255:21:16;14312:2;14292:18;;;14285:30;14351:34;14331:18;;;14324:62;-1:-1:-1;;;14402:18:16;;;14395:48;14460:19;;11034:98:5;14071:414:16;11034:98:5;11176:4;-1:-1:-1;;;;;11154:26:5;:13;:18;;;-1:-1:-1;;;;;11154:26:5;;11139:95;;;;-1:-1:-1;;;11139:95:5;;14692:2:16;11139:95:5;;;14674:21:16;14731:2;14711:18;;;14704:30;14770:34;14750:18;;;14743:62;-1:-1:-1;;;14821:18:16;;;14814:36;14867:19;;11139:95:5;14490:402:16;11139:95:5;-1:-1:-1;;;;;11248:16:5;;11240:66;;;;-1:-1:-1;;;11240:66:5;;15099:2:16;11240:66:5;;;15081:21:16;15138:2;15118:18;;;15111:30;15177:34;15157:18;;;15150:62;-1:-1:-1;;;15228:18:16;;;15221:35;15273:19;;11240:66:5;14897:401:16;11240:66:5;11410:49;11427:1;11431:7;11440:13;:18;;;11410:8;:49::i;:::-;-1:-1:-1;;;;;11466:18:5;;;;;;:12;:18;;;;;:31;;11496:1;;11466:18;:31;;11496:1;;-1:-1:-1;;;;;11466:31:5;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;11466:31:5;;;;;;;;;;;;;;;-1:-1:-1;;;;;11503:16:5;;-1:-1:-1;11503:16:5;;;:12;:16;;;;;:29;;-1:-1:-1;;;11503:16:5;;:29;;-1:-1:-1;;11503:29:5;;:::i;:::-;;;-1:-1:-1;;;;;11503:29:5;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11561:43:5;;;;;;;;-1:-1:-1;;;;;11561:43:5;;;;;;11587:15;11561:43;;;;;;;;;-1:-1:-1;11538:20:5;;;:11;:20;;;;;;:66;;;;;;;;;-1:-1:-1;;;11538:66:5;-1:-1:-1;;;;;;11538:66:5;;;;;;;;;;;11850:11;11550:7;-1:-1:-1;11850:11:5;:::i;:::-;11912:1;11871:24;;;:11;:24;;;;;:29;11828:33;;-1:-1:-1;;;;;;11871:29:5;11867:229;;11928:20;11936:11;8772:4;8801:12;-1:-1:-1;8791:22:5;8715:103;11928:20;11924:166;;;11987:94;;;;;;;;12013:18;;-1:-1:-1;;;;;11987:94:5;;;;;;12043:28;;;;11987:94;;;;;;;;;;-1:-1:-1;11960:24:5;;;:11;:24;;;;;;;:121;;;;;;;;;-1:-1:-1;;;11960:121:5;-1:-1:-1;;;;;;11960:121:5;;;;;;;;;;;;11924:166;12126:7;12122:2;-1:-1:-1;;;;;12107:27:5;12116:4;-1:-1:-1;;;;;12107:27:5;;;;;;;;;;;12140:42;10789:1398;;;10703:1484;;;:::o;8822:96::-;8886:27;8896:2;8900:8;8886:27;;;;;;;;;;;;:9;:27::i;:::-;8822:96;;:::o;4685:586::-;-1:-1:-1;;;;;;;;;;;;;;;;;4797:16:5;4805:7;8772:4;8801:12;-1:-1:-1;8791:22:5;8715:103;4797:16;4789:71;;;;-1:-1:-1;;;4789:71:5;;16014:2:16;4789:71:5;;;15996:21:16;16053:2;16033:18;;;16026:30;16092:34;16072:18;;;16065:62;-1:-1:-1;;;16143:18:16;;;16136:40;16193:19;;4789:71:5;15812:406:16;4789:71:5;4867:26;4914:12;4903:7;:23;4899:91;;4957:22;4967:12;4957:7;:22;:::i;:::-;:26;;4982:1;4957:26;:::i;:::-;4936:47;;4899:91;5016:7;4996:207;5033:18;5025:4;:26;4996:207;;5069:31;5103:17;;;:11;:17;;;;;;;;;5069:51;;;;;;;;;-1:-1:-1;;;;;5069:51:5;;;;;-1:-1:-1;;;5069:51:5;;;;;;;;;;;;5132:28;5128:69;;5179:9;4685:586;-1:-1:-1;;;;4685:586:5:o;5128:69::-;-1:-1:-1;5053:6:5;;;;:::i;:::-;;;;4996:207;;;-1:-1:-1;5209:57:5;;-1:-1:-1;;;5209:57:5;;16696:2:16;5209:57:5;;;16678:21:16;16735:2;16715:18;;;16708:30;16774:34;16754:18;;;16747:62;-1:-1:-1;;;16825:18:16;;;16818:45;16880:19;;5209:57:5;16494:411:16;2263:187:13;2355:6;;;-1:-1:-1;;;;;2371:17:13;;;-1:-1:-1;;;;;;2371:17:13;;;;;;;2403:40;;2355:6;;;2371:17;2355:6;;2403:40;;2336:16;;2403:40;2326:124;2263:187;:::o;13956:667:5:-;14088:4;-1:-1:-1;;;;;14104:13:5;;1087:20:0;1133:8;14100:519:5;;14141:72;;-1:-1:-1;;;14141:72:5;;-1:-1:-1;;;;;14141:36:5;;;;;:72;;719:10:1;;14192:4:5;;14198:7;;14207:5;;14141:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14141:72:5;;;;;;;;-1:-1:-1;;14141:72:5;;;;;;;;;;;;:::i;:::-;;;14129:452;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14368:13:5;;14364:209;;14400:61;;-1:-1:-1;;;14400:61:5;;;;;;;:::i;14364:209::-;14543:6;14537:13;14528:6;14524:2;14520:15;14513:38;14129:452;-1:-1:-1;;;;;;14261:55:5;-1:-1:-1;;;14261:55:5;;-1:-1:-1;14254:62:5;;14100:519;-1:-1:-1;14608:4:5;14100:519;13956:667;;;;;;:::o;2466:98:14:-;2518:13;2550:7;2543:14;;;;;:::i;328:703:15:-;384:13;601:10;597:51;;-1:-1:-1;;627:10:15;;;;;;;;;;;;-1:-1:-1;;;627:10:15;;;;;328:703::o;597:51::-;672:5;657:12;711:75;718:9;;711:75;;743:8;;;;:::i;:::-;;-1:-1:-1;765:10:15;;-1:-1:-1;773:2:15;765:10;;:::i;:::-;;;711:75;;;795:19;827:6;817:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;817:17:15;;795:39;;844:150;851:10;;844:150;;877:11;887:1;877:11;;:::i;:::-;;-1:-1:-1;945:10:15;953:2;945:5;:10;:::i;:::-;932:24;;:2;:24;:::i;:::-;919:39;;902:6;909;902:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;902:56:15;;;;;;;;-1:-1:-1;972:11:15;981:2;972:11;;:::i;:::-;;;844:150;;9244:1239:5;9344:20;9367:12;-1:-1:-1;;;;;9393:16:5;;9385:62;;;;-1:-1:-1;;;9385:62:5;;18366:2:16;9385:62:5;;;18348:21:16;18405:2;18385:18;;;18378:30;18444:34;18424:18;;;18417:62;-1:-1:-1;;;18495:18:16;;;18488:31;18536:19;;9385:62:5;18164:397:16;9385:62:5;9582:21;9590:12;8772:4;8801:12;-1:-1:-1;8791:22:5;8715:103;9582:21;9581:22;9573:64;;;;-1:-1:-1;;;9573:64:5;;18768:2:16;9573:64:5;;;18750:21:16;18807:2;18787:18;;;18780:30;18846:31;18826:18;;;18819:59;18895:18;;9573:64:5;18566:353:16;9573:64:5;9663:12;9651:8;:24;;9643:71;;;;-1:-1:-1;;;9643:71:5;;19126:2:16;9643:71:5;;;19108:21:16;19165:2;19145:18;;;19138:30;19204:34;19184:18;;;19177:62;-1:-1:-1;;;19255:18:16;;;19248:32;19297:19;;9643:71:5;18924:398:16;9643:71:5;-1:-1:-1;;;;;9822:16:5;;9789:30;9822:16;;;:12;:16;;;;;;;;;9789:49;;;;;;;;;-1:-1:-1;;;;;9789:49:5;;;;;-1:-1:-1;;;9789:49:5;;;;;;;;;;;9863:116;;;;;;;;9882:19;;9789:49;;9863:116;;;9882:39;;9912:8;;9882:39;:::i;:::-;-1:-1:-1;;;;;9863:116:5;;;;;9964:8;9929:11;:24;;;:44;;;;:::i;:::-;-1:-1:-1;;;;;9863:116:5;;;;;;-1:-1:-1;;;;;9844:16:5;;;;;;;:12;:16;;;;;;;;:135;;;;;;;;-1:-1:-1;;;9844:135:5;;;;;;;;;;;;10013:43;;;;;;;;;;;10039:15;10013:43;;;;;;;;9985:25;;;:11;:25;;;;;;:71;;;;;;;;;-1:-1:-1;;;9985:71:5;-1:-1:-1;;;;;;9985:71:5;;;;;;;;;;;;;;;;;;9997:12;;10105:274;10129:8;10125:1;:12;10105:274;;;10157:38;;10182:12;;-1:-1:-1;;;;;10157:38:5;;;10174:1;;10157:38;;10174:1;;10157:38;10220:59;10251:1;10255:2;10259:12;10273:5;10220:22;:59::i;:::-;10203:147;;;;-1:-1:-1;;;10203:147:5;;;;;;;:::i;:::-;10358:14;;;;:::i;:::-;;;;10139:3;;;;;:::i;:::-;;;;10105:274;;;-1:-1:-1;10385:12:5;:27;;;10418:60;8185:300;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:16;-1:-1:-1;;;;;;88:32:16;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:16;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:16;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:16:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:16;;1343:180;-1:-1:-1;1343:180:16:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:16;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:16:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:592::-;2759:6;2767;2820:2;2808:9;2799:7;2795:23;2791:32;2788:52;;;2836:1;2833;2826:12;2788:52;2876:9;2863:23;2905:18;2946:2;2938:6;2935:14;2932:34;;;2962:1;2959;2952:12;2932:34;3000:6;2989:9;2985:22;2975:32;;3045:7;3038:4;3034:2;3030:13;3026:27;3016:55;;3067:1;3064;3057:12;3016:55;3107:2;3094:16;3133:2;3125:6;3122:14;3119:34;;;3149:1;3146;3139:12;3119:34;3194:7;3189:2;3180:6;3176:2;3172:15;3168:24;3165:37;3162:57;;;3215:1;3212;3205:12;3162:57;3246:2;3238:11;;;;;3268:6;;-1:-1:-1;2688:592:16;;-1:-1:-1;;;;2688:592:16:o;3285:186::-;3344:6;3397:2;3385:9;3376:7;3372:23;3368:32;3365:52;;;3413:1;3410;3403:12;3365:52;3436:29;3455:9;3436:29;:::i;3476:347::-;3541:6;3549;3602:2;3590:9;3581:7;3577:23;3573:32;3570:52;;;3618:1;3615;3608:12;3570:52;3641:29;3660:9;3641:29;:::i;:::-;3631:39;;3720:2;3709:9;3705:18;3692:32;3767:5;3760:13;3753:21;3746:5;3743:32;3733:60;;3789:1;3786;3779:12;3733:60;3812:5;3802:15;;;3476:347;;;;;:::o;3828:127::-;3889:10;3884:3;3880:20;3877:1;3870:31;3920:4;3917:1;3910:15;3944:4;3941:1;3934:15;3960:1138;4055:6;4063;4071;4079;4132:3;4120:9;4111:7;4107:23;4103:33;4100:53;;;4149:1;4146;4139:12;4100:53;4172:29;4191:9;4172:29;:::i;:::-;4162:39;;4220:38;4254:2;4243:9;4239:18;4220:38;:::i;:::-;4210:48;;4305:2;4294:9;4290:18;4277:32;4267:42;;4360:2;4349:9;4345:18;4332:32;4383:18;4424:2;4416:6;4413:14;4410:34;;;4440:1;4437;4430:12;4410:34;4478:6;4467:9;4463:22;4453:32;;4523:7;4516:4;4512:2;4508:13;4504:27;4494:55;;4545:1;4542;4535:12;4494:55;4581:2;4568:16;4603:2;4599;4596:10;4593:36;;;4609:18;;:::i;:::-;4684:2;4678:9;4652:2;4738:13;;-1:-1:-1;;4734:22:16;;;4758:2;4730:31;4726:40;4714:53;;;4782:18;;;4802:22;;;4779:46;4776:72;;;4828:18;;:::i;:::-;4868:10;4864:2;4857:22;4903:2;4895:6;4888:18;4943:7;4938:2;4933;4929;4925:11;4921:20;4918:33;4915:53;;;4964:1;4961;4954:12;4915:53;5020:2;5015;5011;5007:11;5002:2;4994:6;4990:15;4977:46;5065:1;5060:2;5055;5047:6;5043:15;5039:24;5032:35;5086:6;5076:16;;;;;;;3960:1138;;;;;;;:::o;5103:260::-;5171:6;5179;5232:2;5220:9;5211:7;5207:23;5203:32;5200:52;;;5248:1;5245;5238:12;5200:52;5271:29;5290:9;5271:29;:::i;:::-;5261:39;;5319:38;5353:2;5342:9;5338:18;5319:38;:::i;:::-;5309:48;;5103:260;;;;;:::o;5368:380::-;5447:1;5443:12;;;;5490;;;5511:61;;5565:4;5557:6;5553:17;5543:27;;5511:61;5618:2;5610:6;5607:14;5587:18;5584:38;5581:161;;;5664:10;5659:3;5655:20;5652:1;5645:31;5699:4;5696:1;5689:15;5727:4;5724:1;5717:15;5581:161;;5368:380;;;:::o;6996:356::-;7198:2;7180:21;;;7217:18;;;7210:30;7276:34;7271:2;7256:18;;7249:62;7343:2;7328:18;;6996:356::o;7760:127::-;7821:10;7816:3;7812:20;7809:1;7802:31;7852:4;7849:1;7842:15;7876:4;7873:1;7866:15;7892:135;7931:3;-1:-1:-1;;7952:17:16;;7949:43;;;7972:18;;:::i;:::-;-1:-1:-1;8019:1:16;8008:13;;7892:135::o;9478:128::-;9518:3;9549:1;9545:6;9542:1;9539:13;9536:39;;;9555:18;;:::i;:::-;-1:-1:-1;9591:9:16;;9478:128::o;10363:184::-;10433:6;10486:2;10474:9;10465:7;10461:23;10457:32;10454:52;;;10502:1;10499;10492:12;10454:52;-1:-1:-1;10525:16:16;;10363:184;-1:-1:-1;10363:184:16:o;11304:168::-;11344:7;11410:1;11406;11402:6;11398:14;11395:1;11392:21;11387:1;11380:9;11373:17;11369:45;11366:71;;;11417:18;;:::i;:::-;-1:-1:-1;11457:9:16;;11304:168::o;12186:415::-;12388:2;12370:21;;;12427:2;12407:18;;;12400:30;12466:34;12461:2;12446:18;;12439:62;-1:-1:-1;;;12532:2:16;12517:18;;12510:49;12591:3;12576:19;;12186:415::o;13022:637::-;13302:3;13340:6;13334:13;13356:53;13402:6;13397:3;13390:4;13382:6;13378:17;13356:53;:::i;:::-;13472:13;;13431:16;;;;13494:57;13472:13;13431:16;13528:4;13516:17;;13494:57;:::i;:::-;-1:-1:-1;;;13573:20:16;;13602:22;;;13651:1;13640:13;;13022:637;-1:-1:-1;;;;13022:637:16:o;15303:246::-;15343:4;-1:-1:-1;;;;;15456:10:16;;;;15426;;15478:12;;;15475:38;;;15493:18;;:::i;:::-;15530:13;;15303:246;-1:-1:-1;;;15303:246:16:o;15554:253::-;15594:3;-1:-1:-1;;;;;15683:2:16;15680:1;15676:10;15713:2;15710:1;15706:10;15744:3;15740:2;15736:12;15731:3;15728:21;15725:47;;;15752:18;;:::i;:::-;15788:13;;15554:253;-1:-1:-1;;;;15554:253:16:o;16223:125::-;16263:4;16291:1;16288;16285:8;16282:34;;;16296:18;;:::i;:::-;-1:-1:-1;16333:9:16;;16223:125::o;16353:136::-;16392:3;16420:5;16410:39;;16429:18;;:::i;:::-;-1:-1:-1;;;16465:18:16;;16353:136::o;16910:489::-;-1:-1:-1;;;;;17179:15:16;;;17161:34;;17231:15;;17226:2;17211:18;;17204:43;17278:2;17263:18;;17256:34;;;17326:3;17321:2;17306:18;;17299:31;;;17104:4;;17347:46;;17373:19;;17365:6;17347:46;:::i;:::-;17339:54;16910:489;-1:-1:-1;;;;;;16910:489:16:o;17404:249::-;17473:6;17526:2;17514:9;17505:7;17501:23;17497:32;17494:52;;;17542:1;17539;17532:12;17494:52;17574:9;17568:16;17593:30;17617:5;17593:30;:::i;17658:127::-;17719:10;17714:3;17710:20;17707:1;17700:31;17750:4;17747:1;17740:15;17774:4;17771:1;17764:15;17790:120;17830:1;17856;17846:35;;17861:18;;:::i;:::-;-1:-1:-1;17895:9:16;;17790:120::o;17915:112::-;17947:1;17973;17963:35;;17978:18;;:::i;:::-;-1:-1:-1;18012:9:16;;17915:112::o;18032:127::-;18093:10;18088:3;18084:20;18081:1;18074:31;18124:4;18121:1;18114:15;18148:4;18145:1;18138:15
Swarm Source
ipfs://df8079942633862ff738a11a296591f99370d374e6160fe2e69efca9c2ad9bef
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.