Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 249 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20900289 | 93 days ago | IN | 0 ETH | 0.00026899 | ||||
Set Approval For... | 20875409 | 96 days ago | IN | 0 ETH | 0.00032546 | ||||
Set Approval For... | 19785252 | 248 days ago | IN | 0 ETH | 0.00027986 | ||||
Set Approval For... | 19442307 | 297 days ago | IN | 0 ETH | 0.00186464 | ||||
Set Approval For... | 18835545 | 382 days ago | IN | 0 ETH | 0.00268485 | ||||
Set Approval For... | 18578209 | 418 days ago | IN | 0 ETH | 0.00185082 | ||||
Mint | 18457712 | 435 days ago | IN | 0 ETH | 0.00217956 | ||||
Set Approval For... | 18353428 | 449 days ago | IN | 0 ETH | 0.00024056 | ||||
Set Approval For... | 18034787 | 494 days ago | IN | 0 ETH | 0.00085052 | ||||
Gift | 17986042 | 501 days ago | IN | 0 ETH | 0.00296294 | ||||
Gift | 17986040 | 501 days ago | IN | 0 ETH | 0.00311368 | ||||
Gift | 17986039 | 501 days ago | IN | 0 ETH | 0.00317711 | ||||
Gift | 17986038 | 501 days ago | IN | 0 ETH | 0.00289438 | ||||
Gift | 17986037 | 501 days ago | IN | 0 ETH | 0.00301158 | ||||
Gift | 17986036 | 501 days ago | IN | 0 ETH | 0.00293075 | ||||
Gift | 17986035 | 501 days ago | IN | 0 ETH | 0.00295147 | ||||
Gift | 17986033 | 501 days ago | IN | 0 ETH | 0.00298155 | ||||
Gift | 17986032 | 501 days ago | IN | 0 ETH | 0.00303229 | ||||
Gift | 17986001 | 501 days ago | IN | 0 ETH | 0.0033499 | ||||
Update Gifters | 17985989 | 501 days ago | IN | 0 ETH | 0.0013814 | ||||
Mint | 17824851 | 523 days ago | IN | 0 ETH | 0.00201036 | ||||
Mint | 17394700 | 584 days ago | IN | 0 ETH | 0.00395066 | ||||
Set Approval For... | 17175407 | 614 days ago | IN | 0 ETH | 0.00449517 | ||||
Mint | 17027818 | 635 days ago | IN | 0 ETH | 0.00432421 | ||||
Set Approval For... | 17021059 | 636 days ago | IN | 0 ETH | 0.00088936 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
YecheGoldenOpportunities
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-23 */ // File: @openzeppelin/contracts/utils/Strings.sol // 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); } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/utils/Counters.sol // 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; } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // 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 `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-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 { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: contracts/YecheGoldenOpportunities.sol //SPDX-License-Identifier: MIT pragma solidity ^0.8.11; contract YecheGoldenOpportunities is ERC721A, Ownable, ReentrancyGuard { using Counters for Counters.Counter; struct Artwork { uint256 maxSupply; address keyAddress; string baseURI; bool baseURILocked; Counters.Counter editionIDCounter; } mapping(address => mapping(uint256 => bool)) public whitelistClaimed; mapping(uint256 => bool) public artworkInitialized; mapping(uint256 => uint256) public tokenIDToArtworkID; mapping(uint256 => uint256) public tokenIDToEditionID; mapping(uint256 => Artwork) public artworks; mapping (address => bool) private gifters; Counters.Counter public tokenIDCounter; Counters.Counter public artworkIDCounter; modifier onlyGifter() { require(gifters[msg.sender] == true, "only gifters can gift"); _; } modifier callerIsUser() { require(tx.origin == msg.sender, "the caller is another contract."); _; } constructor() ERC721A("YecheGoldenOpportunities", "GOLDEN") { gifters[msg.sender] = true; } function updateGifters(address _address, bool canGift) public onlyOwner { gifters[_address] = canGift; } function checkWhitelist(uint256 artworkID, address user) public view returns (bool) { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); IERC721 keyContract = IERC721(artworks[artworkID].keyAddress); bool hasKey = keyContract.balanceOf(user) > 0; return hasKey; } function getNumMinted(uint256 artworkID) public view returns (uint256) { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); return artworks[artworkID].editionIDCounter.current(); } function getMaxSupply(uint256 artworkID) public view returns (uint256) { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); return artworks[artworkID].maxSupply; } function getMintedOut(uint256 artworkID) public view returns (bool) { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); return artworks[artworkID].maxSupply == artworks[artworkID].editionIDCounter.current(); } function tokenURI(uint256 tokenID) public view override returns (string memory) { require(_exists(tokenID), "ERC721Metadata: URI query for nonexistent token"); uint256 artworkID = tokenIDToArtworkID[tokenID]; uint256 editionID = tokenIDToEditionID[tokenID]; string memory baseURI = artworks[artworkID].baseURI; return string(abi.encodePacked(baseURI, Strings.toString(editionID))); } function artworkBaseURI(uint256 artworkID) public view returns (string memory) { require(artworkInitialized[artworkID], "artwork not initialized"); return artworks[artworkID].baseURI; } function mint(uint256 artworkID) public nonReentrant callerIsUser { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); uint256 editionID = artworks[artworkID].editionIDCounter.current(); require(editionID < artworks[artworkID].maxSupply, "artwork already minted out"); require(!whitelistClaimed[msg.sender][artworkID], "address already minted this work"); require(checkWhitelist(artworkID, msg.sender), "address not whitelisted"); whitelistClaimed[msg.sender][artworkID] = true; uint256 tokenID = tokenIDCounter.current(); tokenIDCounter.increment(); artworks[artworkID].editionIDCounter.increment(); tokenIDToArtworkID[tokenID] = artworkID; tokenIDToEditionID[tokenID] = editionID; _safeMint(msg.sender, 1); } function gift(uint256 artworkID, address to) public onlyGifter { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); uint256 editionID = artworks[artworkID].editionIDCounter.current(); require(editionID < artworks[artworkID].maxSupply, "artwork already minted out"); uint256 tokenID = tokenIDCounter.current(); tokenIDCounter.increment(); artworks[artworkID].editionIDCounter.increment(); tokenIDToArtworkID[tokenID] = artworkID; tokenIDToEditionID[tokenID] = editionID; _safeMint(to, 1); } function updateArtworkBaseURI(uint256 artworkID, string calldata newBaseURI) public onlyOwner { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); require(artworks[artworkID].baseURILocked == false, "artwork base URI is locked"); artworks[artworkID].baseURI = newBaseURI; } function lockArtworkBaseURI(uint256 artworkID) public onlyOwner { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); artworks[artworkID].baseURILocked = true; } function updateArtworkKeyAddress(uint256 artworkID, address newKeyAddress) public onlyOwner { require(artworkInitialized[artworkID] == true, "artwork hasn't been initialized"); artworks[artworkID].keyAddress = newKeyAddress; } function setupArtwork(uint256 maxSupply, address keyAddress, string calldata baseURI) public onlyOwner { uint256 artworkID = artworkIDCounter.current(); require(artworkInitialized[artworkID] == false, "artwork has already been initialized"); require(maxSupply > 0, "max supply must be greater than 0"); artworks[artworkID] = Artwork({ maxSupply: maxSupply, keyAddress: keyAddress, baseURI: baseURI, baseURILocked: false, editionIDCounter: Counters.Counter(0) }); artworkInitialized[artworkID] = true; artworkIDCounter.increment(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"artworkBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artworkIDCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"artworkInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"artworks","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"address","name":"keyAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"baseURILocked","type":"bool"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"editionIDCounter","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"getMintedOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"getNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"lockArtworkBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"address","name":"keyAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"name":"setupArtwork","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":[],"name":"tokenIDCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIDToArtworkID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIDToEditionID","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":[{"internalType":"uint256","name":"artworkID","type":"uint256"},{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"updateArtworkBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkID","type":"uint256"},{"internalType":"address","name":"newKeyAddress","type":"address"}],"name":"updateArtworkKeyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"canGift","type":"bool"}],"name":"updateGifters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280601881526020017f5965636865476f6c64656e4f70706f7274756e697469657300000000000000008152506040518060400160405280600681526020016523a7a62222a760d11b8152508160029081620000789190620001b7565b506003620000878282620001b7565b505060008055506200009933620000c0565b60016009819055336000908152600f60205260409020805460ff1916909117905562000283565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013d57607f821691505b6020821081036200015e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001b257600081815260208120601f850160051c810160208610156200018d5750805b601f850160051c820191505b81811015620001ae5782815560010162000199565b5050505b505050565b81516001600160401b03811115620001d357620001d362000112565b620001eb81620001e4845462000128565b8462000164565b602080601f8311600181146200022357600084156200020a5750858301515b600019600386901b1c1916600185901b178555620001ae565b600085815260208120601f198616915b82811015620002545788860151825594840194600190910190840162000233565b5085821015620002735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61240080620002936000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80637d3fb2e611610125578063cd952ff7116100ad578063e573fd9b1161007c578063e573fd9b146104ce578063e985e9c5146104e1578063f2fde38b1461051d578063f43f63c514610530578063f71359091461054357600080fd5b8063cd952ff714610465578063cf69cd8614610485578063d12a15be14610498578063df6ec471146104ab57600080fd5b806395d89b41116100f457806395d89b4114610411578063a0712d6814610419578063a22cb4651461042c578063b88d4fde1461043f578063c87b56dd1461045257600080fd5b80637d3fb2e6146103d057806383a076be146103da578063859ca71d146103ed5780638da5cb5b1461040057600080fd5b80634b602673116101a85780636352211e116101775780636352211e146103855780636deb47301461039857806370a08231146103a257806371155643146103b5578063715018a6146103c857600080fd5b80634b6026731461031b57806351afaeab1461033f5780635e1066e1146103525780635e495d741461037257600080fd5b8063081812fc116101ef578063081812fc146102a1578063095ea7b3146102cc57806318160ddd146102df57806323b872dd146102f557806342842e0e1461030857600080fd5b806301ffc9a71461022157806302acd08814610249578063064f110c1461025e57806306fdde031461028c575b600080fd5b61023461022f366004611c28565b610556565b60405190151581526020015b60405180910390f35b61025c610257366004611c61565b6105a8565b005b61023461026c366004611c9d565b600a60209081526000928352604080842090915290825290205460ff1681565b610294610606565b6040516102409190611d17565b6102b46102af366004611d2a565b610698565b6040516001600160a01b039091168152602001610240565b61025c6102da366004611c9d565b6106dc565b600154600054035b604051908152602001610240565b61025c610303366004611d43565b61077c565b61025c610316366004611d43565b610915565b61032e610329366004611d2a565b610935565b604051610240959493929190611d7f565b61029461034d366004611d2a565b610a09565b6102e7610360366004611d2a565b600c6020526000908152604090205481565b6102e7610380366004611d2a565b610b0b565b6102b4610393366004611d2a565b610b51565b6010546102e79081565b6102e76103b0366004611dc1565b610b5c565b61025c6103c3366004611e25565b610bab565b61025c610db4565b6011546102e79081565b61025c6103e8366004611e7f565b610dea565b6102e76103fb366004611d2a565b610f3e565b6008546001600160a01b03166102b4565b610294610f88565b61025c610427366004611d2a565b610f97565b61025c61043a366004611c61565b61121d565b61025c61044d366004611ec1565b6112b2565b610294610460366004611d2a565b6112f6565b6102e7610473366004611d2a565b600d6020526000908152604090205481565b610234610493366004611e7f565b61144f565b61025c6104a6366004611e7f565b61150e565b6102346104b9366004611d2a565b600b6020526000908152604090205460ff1681565b61025c6104dc366004611d2a565b61159c565b6102346104ef366004611f9d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61025c61052b366004611dc1565b611617565b61023461053e366004611d2a565b6116b2565b61025c610551366004611fc7565b6116ff565b60006301ffc9a760e01b6001600160e01b03198316148061058757506380ac58cd60e01b6001600160e01b03198316145b806105a25750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146105db5760405162461bcd60e51b81526004016105d290612013565b60405180910390fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b60606002805461061590612048565b80601f016020809104026020016040519081016040528092919081815260200182805461064190612048565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a3826117da565b6106c0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106e782610b51565b9050336001600160a01b038216146107205761070381336104ef565b610720576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061078782611801565b9050836001600160a01b0316816001600160a01b0316146107ba5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610807576107ea86336104ef565b61080757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661082e57604051633a954ecd60e21b815260040160405180910390fd5b801561083957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108cb576001840160008181526004602052604081205490036108c95760005481146108c95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610930838383604051806020016040528060008152506112b2565b505050565b600e6020526000908152604090208054600182015460028301805492936001600160a01b039092169261096790612048565b80601f016020809104026020016040519081016040528092919081815260200182805461099390612048565b80156109e05780601f106109b5576101008083540402835291602001916109e0565b820191906000526020600020905b8154815290600101906020018083116109c357829003601f168201915b50505050600383015460408051602081019091526004909401548452919260ff90921691905085565b6000818152600b602052604090205460609060ff16610a6a5760405162461bcd60e51b815260206004820152601760248201527f617274776f726b206e6f7420696e697469616c697a656400000000000000000060448201526064016105d2565b6000828152600e602052604090206002018054610a8690612048565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab290612048565b8015610aff5780601f10610ad457610100808354040283529160200191610aff565b820191906000526020600020905b815481529060010190602001808311610ae257829003601f168201915b50505050509050919050565b6000818152600b602052604081205460ff161515600114610b3e5760405162461bcd60e51b81526004016105d290612082565b506000908152600e602052604090205490565b60006105a282611801565b60006001600160a01b038216610b85576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610bd55760405162461bcd60e51b81526004016105d290612013565b6000610be060115490565b6000818152600b602052604090205490915060ff1615610c4e5760405162461bcd60e51b8152602060048201526024808201527f617274776f726b2068617320616c7265616479206265656e20696e697469616c6044820152631a5e995960e21b60648201526084016105d2565b60008511610ca85760405162461bcd60e51b815260206004820152602160248201527f6d617820737570706c79206d7573742062652067726561746572207468616e206044820152600360fc1b60648201526084016105d2565b6040518060a00160405280868152602001856001600160a01b0316815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250938552505050602080830182905260408051808301825283815293810193909352848252600e81529082902083518155908301516001820180546001600160a01b0319166001600160a01b03909216919091179055908201516002820190610d6290826120ff565b50606082015160038201805491151560ff19928316179055608090920151516004909101556000828152600b6020526040902080549091166001179055610dad601180546001019055565b5050505050565b6008546001600160a01b03163314610dde5760405162461bcd60e51b81526004016105d290612013565b610de8600061186f565b565b336000908152600f602052604090205460ff161515600114610e465760405162461bcd60e51b81526020600482015260156024820152741bdb9b1e4819da599d195c9cc818d85b8819da599d605a1b60448201526064016105d2565b6000828152600b602052604090205460ff161515600114610e795760405162461bcd60e51b81526004016105d290612082565b6000828152600e60205260409020600481015490548110610edc5760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b20616c7265616479206d696e746564206f757400000000000060448201526064016105d2565b6000610ee760105490565b9050610ef7601080546001019055565b6000848152600e60205260409020600401805460010190556000818152600c60209081526040808320879055600d9091529020829055610f388360016118c1565b50505050565b6000818152600b602052604081205460ff161515600114610f715760405162461bcd60e51b81526004016105d290612082565b6000828152600e60205260409020600401546105a2565b60606003805461061590612048565b600260095403610fe95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105d2565b600260095532331461103d5760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064016105d2565b6000818152600b602052604090205460ff1615156001146110705760405162461bcd60e51b81526004016105d290612082565b6000818152600e602052604090206004810154905481106110d35760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b20616c7265616479206d696e746564206f757400000000000060448201526064016105d2565b336000908152600a6020908152604080832085845290915290205460ff161561113e5760405162461bcd60e51b815260206004820181905260248201527f6164647265737320616c7265616479206d696e746564207468697320776f726b60448201526064016105d2565b611148823361144f565b6111945760405162461bcd60e51b815260206004820152601760248201527f61646472657373206e6f742077686974656c697374656400000000000000000060448201526064016105d2565b336000908152600a602090815260408083208584529091528120805460ff191660011790556111c260105490565b90506111d2601080546001019055565b6000838152600e60205260409020600401805460010190556000818152600c60209081526040808320869055600d90915290208290556112133360016118c1565b5050600160095550565b336001600160a01b038316036112465760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112bd84848461077c565b6001600160a01b0383163b15610f38576112d9848484846118df565b610f38576040516368d2bf6b60e11b815260040160405180910390fd5b6060611301826117da565b6113655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105d2565b6000828152600c6020908152604080832054600d835281842054818552600e909352908320600201805491939161139b90612048565b80601f01602080910402602001604051908101604052809291908181526020018280546113c790612048565b80156114145780601f106113e957610100808354040283529160200191611414565b820191906000526020600020905b8154815290600101906020018083116113f757829003601f168201915b5050505050905080611425836119cb565b6040516020016114369291906121bf565b6040516020818303038152906040529350505050919050565b6000828152600b602052604081205460ff1615156001146114825760405162461bcd60e51b81526004016105d290612082565b6000838152600e60205260408082206001015490516370a0823160e01b81526001600160a01b0385811660048301529091169190819083906370a0823190602401602060405180830381865afa1580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150491906121ee565b1195945050505050565b6008546001600160a01b031633146115385760405162461bcd60e51b81526004016105d290612013565b6000828152600b602052604090205460ff16151560011461156b5760405162461bcd60e51b81526004016105d290612082565b6000918252600e602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6008546001600160a01b031633146115c65760405162461bcd60e51b81526004016105d290612013565b6000818152600b602052604090205460ff1615156001146115f95760405162461bcd60e51b81526004016105d290612082565b6000908152600e60205260409020600301805460ff19166001179055565b6008546001600160a01b031633146116415760405162461bcd60e51b81526004016105d290612013565b6001600160a01b0381166116a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105d2565b6116af8161186f565b50565b6000818152600b602052604081205460ff1615156001146116e55760405162461bcd60e51b81526004016105d290612082565b506000908152600e60205260409020600481015490541490565b6008546001600160a01b031633146117295760405162461bcd60e51b81526004016105d290612013565b6000838152600b602052604090205460ff16151560011461175c5760405162461bcd60e51b81526004016105d290612082565b6000838152600e602052604090206003015460ff16156117be5760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b206261736520555249206973206c6f636b656400000000000060448201526064016105d2565b6000838152600e60205260409020600201610f38828483612207565b60008054821080156105a2575050600090815260046020526040902054600160e01b161590565b6000816000548110156118565760008181526004602052604081205490600160e01b82169003611854575b8060000361184d57506000190160008181526004602052604090205461182c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6118db828260405180602001604052806000815250611acc565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119149033908990889088906004016122c7565b6020604051808303816000875af192505050801561194f575060408051601f3d908101601f1916820190925261194c91810190612304565b60015b6119ad573d80801561197d576040519150601f19603f3d011682016040523d82523d6000602084013e611982565b606091505b5080516000036119a5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036119f25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a1c5780611a0681612337565b9150611a159050600a83612366565b91506119f6565b60008167ffffffffffffffff811115611a3757611a37611eab565b6040519080825280601f01601f191660200182016040528015611a61576020820181803683370190505b5090505b84156119c357611a7660018361237a565b9150611a83600a8661238d565b611a8e9060306123a1565b60f81b818381518110611aa357611aa36123b4565b60200101906001600160f81b031916908160001a905350611ac5600a86612366565b9450611a65565b611ad68383611b32565b6001600160a01b0383163b15610930576000548281035b611b0060008683806001019450866118df565b611b1d576040516368d2bf6b60e11b815260040160405180910390fd5b818110611aed578160005414610dad57600080fd5b6000546001600160a01b038316611b5b57604051622e076360e81b815260040160405180910390fd5b81600003611b7c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611bc65760005550505050565b6001600160e01b0319811681146116af57600080fd5b600060208284031215611c3a57600080fd5b813561184d81611c12565b80356001600160a01b0381168114611c5c57600080fd5b919050565b60008060408385031215611c7457600080fd5b611c7d83611c45565b915060208301358015158114611c9257600080fd5b809150509250929050565b60008060408385031215611cb057600080fd5b611cb983611c45565b946020939093013593505050565b60005b83811015611ce2578181015183820152602001611cca565b50506000910152565b60008151808452611d03816020860160208601611cc7565b601f01601f19169290920160200192915050565b60208152600061184d6020830184611ceb565b600060208284031215611d3c57600080fd5b5035919050565b600080600060608486031215611d5857600080fd5b611d6184611c45565b9250611d6f60208501611c45565b9150604084013590509250925092565b8581526001600160a01b038516602082015260a060408201819052600090611da990830186611ceb565b93151560608301525090516080909101529392505050565b600060208284031215611dd357600080fd5b61184d82611c45565b60008083601f840112611dee57600080fd5b50813567ffffffffffffffff811115611e0657600080fd5b602083019150836020828501011115611e1e57600080fd5b9250929050565b60008060008060608587031215611e3b57600080fd5b84359350611e4b60208601611c45565b9250604085013567ffffffffffffffff811115611e6757600080fd5b611e7387828801611ddc565b95989497509550505050565b60008060408385031215611e9257600080fd5b82359150611ea260208401611c45565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ed757600080fd5b611ee085611c45565b9350611eee60208601611c45565b925060408501359150606085013567ffffffffffffffff80821115611f1257600080fd5b818701915087601f830112611f2657600080fd5b813581811115611f3857611f38611eab565b604051601f8201601f19908116603f01168101908382118183101715611f6057611f60611eab565b816040528281528a6020848701011115611f7957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fb057600080fd5b611fb983611c45565b9150611ea260208401611c45565b600080600060408486031215611fdc57600080fd5b83359250602084013567ffffffffffffffff811115611ffa57600080fd5b61200686828701611ddc565b9497909650939450505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061205c57607f821691505b60208210810361207c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f617274776f726b206861736e2774206265656e20696e697469616c697a656400604082015260600190565b601f82111561093057600081815260208120601f850160051c810160208610156120e05750805b601f850160051c820191505b8181101561090d578281556001016120ec565b815167ffffffffffffffff81111561211957612119611eab565b61212d816121278454612048565b846120b9565b602080601f831160018114612162576000841561214a5750858301515b600019600386901b1c1916600185901b17855561090d565b600085815260208120601f198616915b8281101561219157888601518255948401946001909101908401612172565b50858210156121af5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516121d1818460208801611cc7565b8351908301906121e5818360208801611cc7565b01949350505050565b60006020828403121561220057600080fd5b5051919050565b67ffffffffffffffff83111561221f5761221f611eab565b6122338361222d8354612048565b836120b9565b6000601f841160018114612267576000851561224f5750838201355b600019600387901b1c1916600186901b178355610dad565b600083815260209020601f19861690835b828110156122985786850135825560209485019460019092019101612278565b50868210156122b55760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122fa90830184611ceb565b9695505050505050565b60006020828403121561231657600080fd5b815161184d81611c12565b634e487b7160e01b600052601160045260246000fd5b60006001820161234957612349612321565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261237557612375612350565b500490565b818103818111156105a2576105a2612321565b60008261239c5761239c612350565b500690565b808201808211156105a2576105a2612321565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220345aa1520b064051c0887905a6df7ec66b7e1f0c54d04f83d4862f29e596d56364736f6c63430008100033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80637d3fb2e611610125578063cd952ff7116100ad578063e573fd9b1161007c578063e573fd9b146104ce578063e985e9c5146104e1578063f2fde38b1461051d578063f43f63c514610530578063f71359091461054357600080fd5b8063cd952ff714610465578063cf69cd8614610485578063d12a15be14610498578063df6ec471146104ab57600080fd5b806395d89b41116100f457806395d89b4114610411578063a0712d6814610419578063a22cb4651461042c578063b88d4fde1461043f578063c87b56dd1461045257600080fd5b80637d3fb2e6146103d057806383a076be146103da578063859ca71d146103ed5780638da5cb5b1461040057600080fd5b80634b602673116101a85780636352211e116101775780636352211e146103855780636deb47301461039857806370a08231146103a257806371155643146103b5578063715018a6146103c857600080fd5b80634b6026731461031b57806351afaeab1461033f5780635e1066e1146103525780635e495d741461037257600080fd5b8063081812fc116101ef578063081812fc146102a1578063095ea7b3146102cc57806318160ddd146102df57806323b872dd146102f557806342842e0e1461030857600080fd5b806301ffc9a71461022157806302acd08814610249578063064f110c1461025e57806306fdde031461028c575b600080fd5b61023461022f366004611c28565b610556565b60405190151581526020015b60405180910390f35b61025c610257366004611c61565b6105a8565b005b61023461026c366004611c9d565b600a60209081526000928352604080842090915290825290205460ff1681565b610294610606565b6040516102409190611d17565b6102b46102af366004611d2a565b610698565b6040516001600160a01b039091168152602001610240565b61025c6102da366004611c9d565b6106dc565b600154600054035b604051908152602001610240565b61025c610303366004611d43565b61077c565b61025c610316366004611d43565b610915565b61032e610329366004611d2a565b610935565b604051610240959493929190611d7f565b61029461034d366004611d2a565b610a09565b6102e7610360366004611d2a565b600c6020526000908152604090205481565b6102e7610380366004611d2a565b610b0b565b6102b4610393366004611d2a565b610b51565b6010546102e79081565b6102e76103b0366004611dc1565b610b5c565b61025c6103c3366004611e25565b610bab565b61025c610db4565b6011546102e79081565b61025c6103e8366004611e7f565b610dea565b6102e76103fb366004611d2a565b610f3e565b6008546001600160a01b03166102b4565b610294610f88565b61025c610427366004611d2a565b610f97565b61025c61043a366004611c61565b61121d565b61025c61044d366004611ec1565b6112b2565b610294610460366004611d2a565b6112f6565b6102e7610473366004611d2a565b600d6020526000908152604090205481565b610234610493366004611e7f565b61144f565b61025c6104a6366004611e7f565b61150e565b6102346104b9366004611d2a565b600b6020526000908152604090205460ff1681565b61025c6104dc366004611d2a565b61159c565b6102346104ef366004611f9d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61025c61052b366004611dc1565b611617565b61023461053e366004611d2a565b6116b2565b61025c610551366004611fc7565b6116ff565b60006301ffc9a760e01b6001600160e01b03198316148061058757506380ac58cd60e01b6001600160e01b03198316145b806105a25750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146105db5760405162461bcd60e51b81526004016105d290612013565b60405180910390fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b60606002805461061590612048565b80601f016020809104026020016040519081016040528092919081815260200182805461064190612048565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a3826117da565b6106c0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106e782610b51565b9050336001600160a01b038216146107205761070381336104ef565b610720576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061078782611801565b9050836001600160a01b0316816001600160a01b0316146107ba5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610807576107ea86336104ef565b61080757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661082e57604051633a954ecd60e21b815260040160405180910390fd5b801561083957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108cb576001840160008181526004602052604081205490036108c95760005481146108c95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610930838383604051806020016040528060008152506112b2565b505050565b600e6020526000908152604090208054600182015460028301805492936001600160a01b039092169261096790612048565b80601f016020809104026020016040519081016040528092919081815260200182805461099390612048565b80156109e05780601f106109b5576101008083540402835291602001916109e0565b820191906000526020600020905b8154815290600101906020018083116109c357829003601f168201915b50505050600383015460408051602081019091526004909401548452919260ff90921691905085565b6000818152600b602052604090205460609060ff16610a6a5760405162461bcd60e51b815260206004820152601760248201527f617274776f726b206e6f7420696e697469616c697a656400000000000000000060448201526064016105d2565b6000828152600e602052604090206002018054610a8690612048565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab290612048565b8015610aff5780601f10610ad457610100808354040283529160200191610aff565b820191906000526020600020905b815481529060010190602001808311610ae257829003601f168201915b50505050509050919050565b6000818152600b602052604081205460ff161515600114610b3e5760405162461bcd60e51b81526004016105d290612082565b506000908152600e602052604090205490565b60006105a282611801565b60006001600160a01b038216610b85576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610bd55760405162461bcd60e51b81526004016105d290612013565b6000610be060115490565b6000818152600b602052604090205490915060ff1615610c4e5760405162461bcd60e51b8152602060048201526024808201527f617274776f726b2068617320616c7265616479206265656e20696e697469616c6044820152631a5e995960e21b60648201526084016105d2565b60008511610ca85760405162461bcd60e51b815260206004820152602160248201527f6d617820737570706c79206d7573742062652067726561746572207468616e206044820152600360fc1b60648201526084016105d2565b6040518060a00160405280868152602001856001600160a01b0316815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250938552505050602080830182905260408051808301825283815293810193909352848252600e81529082902083518155908301516001820180546001600160a01b0319166001600160a01b03909216919091179055908201516002820190610d6290826120ff565b50606082015160038201805491151560ff19928316179055608090920151516004909101556000828152600b6020526040902080549091166001179055610dad601180546001019055565b5050505050565b6008546001600160a01b03163314610dde5760405162461bcd60e51b81526004016105d290612013565b610de8600061186f565b565b336000908152600f602052604090205460ff161515600114610e465760405162461bcd60e51b81526020600482015260156024820152741bdb9b1e4819da599d195c9cc818d85b8819da599d605a1b60448201526064016105d2565b6000828152600b602052604090205460ff161515600114610e795760405162461bcd60e51b81526004016105d290612082565b6000828152600e60205260409020600481015490548110610edc5760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b20616c7265616479206d696e746564206f757400000000000060448201526064016105d2565b6000610ee760105490565b9050610ef7601080546001019055565b6000848152600e60205260409020600401805460010190556000818152600c60209081526040808320879055600d9091529020829055610f388360016118c1565b50505050565b6000818152600b602052604081205460ff161515600114610f715760405162461bcd60e51b81526004016105d290612082565b6000828152600e60205260409020600401546105a2565b60606003805461061590612048565b600260095403610fe95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105d2565b600260095532331461103d5760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064016105d2565b6000818152600b602052604090205460ff1615156001146110705760405162461bcd60e51b81526004016105d290612082565b6000818152600e602052604090206004810154905481106110d35760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b20616c7265616479206d696e746564206f757400000000000060448201526064016105d2565b336000908152600a6020908152604080832085845290915290205460ff161561113e5760405162461bcd60e51b815260206004820181905260248201527f6164647265737320616c7265616479206d696e746564207468697320776f726b60448201526064016105d2565b611148823361144f565b6111945760405162461bcd60e51b815260206004820152601760248201527f61646472657373206e6f742077686974656c697374656400000000000000000060448201526064016105d2565b336000908152600a602090815260408083208584529091528120805460ff191660011790556111c260105490565b90506111d2601080546001019055565b6000838152600e60205260409020600401805460010190556000818152600c60209081526040808320869055600d90915290208290556112133360016118c1565b5050600160095550565b336001600160a01b038316036112465760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112bd84848461077c565b6001600160a01b0383163b15610f38576112d9848484846118df565b610f38576040516368d2bf6b60e11b815260040160405180910390fd5b6060611301826117da565b6113655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105d2565b6000828152600c6020908152604080832054600d835281842054818552600e909352908320600201805491939161139b90612048565b80601f01602080910402602001604051908101604052809291908181526020018280546113c790612048565b80156114145780601f106113e957610100808354040283529160200191611414565b820191906000526020600020905b8154815290600101906020018083116113f757829003601f168201915b5050505050905080611425836119cb565b6040516020016114369291906121bf565b6040516020818303038152906040529350505050919050565b6000828152600b602052604081205460ff1615156001146114825760405162461bcd60e51b81526004016105d290612082565b6000838152600e60205260408082206001015490516370a0823160e01b81526001600160a01b0385811660048301529091169190819083906370a0823190602401602060405180830381865afa1580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150491906121ee565b1195945050505050565b6008546001600160a01b031633146115385760405162461bcd60e51b81526004016105d290612013565b6000828152600b602052604090205460ff16151560011461156b5760405162461bcd60e51b81526004016105d290612082565b6000918252600e602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6008546001600160a01b031633146115c65760405162461bcd60e51b81526004016105d290612013565b6000818152600b602052604090205460ff1615156001146115f95760405162461bcd60e51b81526004016105d290612082565b6000908152600e60205260409020600301805460ff19166001179055565b6008546001600160a01b031633146116415760405162461bcd60e51b81526004016105d290612013565b6001600160a01b0381166116a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105d2565b6116af8161186f565b50565b6000818152600b602052604081205460ff1615156001146116e55760405162461bcd60e51b81526004016105d290612082565b506000908152600e60205260409020600481015490541490565b6008546001600160a01b031633146117295760405162461bcd60e51b81526004016105d290612013565b6000838152600b602052604090205460ff16151560011461175c5760405162461bcd60e51b81526004016105d290612082565b6000838152600e602052604090206003015460ff16156117be5760405162461bcd60e51b815260206004820152601a60248201527f617274776f726b206261736520555249206973206c6f636b656400000000000060448201526064016105d2565b6000838152600e60205260409020600201610f38828483612207565b60008054821080156105a2575050600090815260046020526040902054600160e01b161590565b6000816000548110156118565760008181526004602052604081205490600160e01b82169003611854575b8060000361184d57506000190160008181526004602052604090205461182c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6118db828260405180602001604052806000815250611acc565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119149033908990889088906004016122c7565b6020604051808303816000875af192505050801561194f575060408051601f3d908101601f1916820190925261194c91810190612304565b60015b6119ad573d80801561197d576040519150601f19603f3d011682016040523d82523d6000602084013e611982565b606091505b5080516000036119a5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036119f25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a1c5780611a0681612337565b9150611a159050600a83612366565b91506119f6565b60008167ffffffffffffffff811115611a3757611a37611eab565b6040519080825280601f01601f191660200182016040528015611a61576020820181803683370190505b5090505b84156119c357611a7660018361237a565b9150611a83600a8661238d565b611a8e9060306123a1565b60f81b818381518110611aa357611aa36123b4565b60200101906001600160f81b031916908160001a905350611ac5600a86612366565b9450611a65565b611ad68383611b32565b6001600160a01b0383163b15610930576000548281035b611b0060008683806001019450866118df565b611b1d576040516368d2bf6b60e11b815260040160405180910390fd5b818110611aed578160005414610dad57600080fd5b6000546001600160a01b038316611b5b57604051622e076360e81b815260040160405180910390fd5b81600003611b7c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611bc65760005550505050565b6001600160e01b0319811681146116af57600080fd5b600060208284031215611c3a57600080fd5b813561184d81611c12565b80356001600160a01b0381168114611c5c57600080fd5b919050565b60008060408385031215611c7457600080fd5b611c7d83611c45565b915060208301358015158114611c9257600080fd5b809150509250929050565b60008060408385031215611cb057600080fd5b611cb983611c45565b946020939093013593505050565b60005b83811015611ce2578181015183820152602001611cca565b50506000910152565b60008151808452611d03816020860160208601611cc7565b601f01601f19169290920160200192915050565b60208152600061184d6020830184611ceb565b600060208284031215611d3c57600080fd5b5035919050565b600080600060608486031215611d5857600080fd5b611d6184611c45565b9250611d6f60208501611c45565b9150604084013590509250925092565b8581526001600160a01b038516602082015260a060408201819052600090611da990830186611ceb565b93151560608301525090516080909101529392505050565b600060208284031215611dd357600080fd5b61184d82611c45565b60008083601f840112611dee57600080fd5b50813567ffffffffffffffff811115611e0657600080fd5b602083019150836020828501011115611e1e57600080fd5b9250929050565b60008060008060608587031215611e3b57600080fd5b84359350611e4b60208601611c45565b9250604085013567ffffffffffffffff811115611e6757600080fd5b611e7387828801611ddc565b95989497509550505050565b60008060408385031215611e9257600080fd5b82359150611ea260208401611c45565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ed757600080fd5b611ee085611c45565b9350611eee60208601611c45565b925060408501359150606085013567ffffffffffffffff80821115611f1257600080fd5b818701915087601f830112611f2657600080fd5b813581811115611f3857611f38611eab565b604051601f8201601f19908116603f01168101908382118183101715611f6057611f60611eab565b816040528281528a6020848701011115611f7957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fb057600080fd5b611fb983611c45565b9150611ea260208401611c45565b600080600060408486031215611fdc57600080fd5b83359250602084013567ffffffffffffffff811115611ffa57600080fd5b61200686828701611ddc565b9497909650939450505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061205c57607f821691505b60208210810361207c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f617274776f726b206861736e2774206265656e20696e697469616c697a656400604082015260600190565b601f82111561093057600081815260208120601f850160051c810160208610156120e05750805b601f850160051c820191505b8181101561090d578281556001016120ec565b815167ffffffffffffffff81111561211957612119611eab565b61212d816121278454612048565b846120b9565b602080601f831160018114612162576000841561214a5750858301515b600019600386901b1c1916600185901b17855561090d565b600085815260208120601f198616915b8281101561219157888601518255948401946001909101908401612172565b50858210156121af5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516121d1818460208801611cc7565b8351908301906121e5818360208801611cc7565b01949350505050565b60006020828403121561220057600080fd5b5051919050565b67ffffffffffffffff83111561221f5761221f611eab565b6122338361222d8354612048565b836120b9565b6000601f841160018114612267576000851561224f5750838201355b600019600387901b1c1916600186901b178355610dad565b600083815260209020601f19861690835b828110156122985786850135825560209485019460019092019101612278565b50868210156122b55760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122fa90830184611ceb565b9695505050505050565b60006020828403121561231657600080fd5b815161184d81611c12565b634e487b7160e01b600052601160045260246000fd5b60006001820161234957612349612321565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261237557612375612350565b500490565b818103818111156105a2576105a2612321565b60008261239c5761239c612350565b500690565b808201808211156105a2576105a2612321565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220345aa1520b064051c0887905a6df7ec66b7e1f0c54d04f83d4862f29e596d56364736f6c63430008100033
Deployed Bytecode Sourcemap
60418:6012:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30157:615;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;30157:615:0;;;;;;;;61548:118;;;;;;:::i;:::-;;:::i;:::-;;60730:68;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;35804:100;;;:::i;:::-;;;;;;;:::i;37750:204::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2486:32:1;;;2468:51;;2456:2;2441:18;37750:204:0;2322:203:1;37298:386:0;;;;;;:::i;:::-;;:::i;29211:315::-;29477:12;;29264:7;29461:13;:28;29211:315;;;2676:25:1;;;2664:2;2649:18;29211:315:0;2530:177:1;47015:2800:0;;;;;;:::i;:::-;;:::i;38640:185::-;;;;;;:::i;:::-;;:::i;60986:43::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;63209:208::-;;;;;;:::i;:::-;;:::i;60864:53::-;;;;;;:::i;:::-;;;;;;;;;;;;;;62261:218;;;;;;:::i;:::-;;:::i;35593:144::-;;;;;;:::i;:::-;;:::i;61089:38::-;;;;;;;30836:224;;;;;;:::i;:::-;;:::i;65756:671::-;;;;;;:::i;:::-;;:::i;7489:103::-;;;:::i;61134:40::-;;;;;;;64305:618;;;;;;:::i;:::-;;:::i;62018:235::-;;;;;;:::i;:::-;;:::i;6838:87::-;6911:6;;-1:-1:-1;;;;;6911:6:0;6838:87;;35973:104;;;:::i;63425:872::-;;;;;;:::i;:::-;;:::i;38026:308::-;;;;;;:::i;:::-;;:::i;38896:399::-;;;;;;:::i;:::-;;:::i;62760:441::-;;;;;;:::i;:::-;;:::i;60924:53::-;;;;;;:::i;:::-;;;;;;;;;;;;;;61674:336;;;;;;:::i;:::-;;:::i;65499:249::-;;;;;;:::i;:::-;;:::i;60807:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;65276:215;;;;;;:::i;:::-;;:::i;38405:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;38526:25:0;;;38502:4;38526:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;38405:164;7747:201;;;;;;:::i;:::-;;:::i;62487:265::-;;;;;;:::i;:::-;;:::i;64931:337::-;;;;;;:::i;:::-;;:::i;30157:615::-;30242:4;-1:-1:-1;;;;;;;;;30542:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;30619:25:0;;;30542:102;:179;;;-1:-1:-1;;;;;;;;;;30696:25:0;;;30542:179;30522:199;30157:615;-1:-1:-1;;30157:615:0:o;61548:118::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;61631:17:0;;;::::1;;::::0;;;:7:::1;:17;::::0;;;;:27;;-1:-1:-1;;61631:27:0::1;::::0;::::1;;::::0;;;::::1;::::0;;61548:118::o;35804:100::-;35858:13;35891:5;35884:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35804:100;:::o;37750:204::-;37818:7;37843:16;37851:7;37843;:16::i;:::-;37838:64;;37868:34;;-1:-1:-1;;;37868:34:0;;;;;;;;;;;37838:64;-1:-1:-1;37922:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;37922:24:0;;37750:204::o;37298:386::-;37371:13;37387:16;37395:7;37387;:16::i;:::-;37371:32;-1:-1:-1;5642:10:0;-1:-1:-1;;;;;37420:28:0;;;37416:175;;37468:44;37485:5;5642:10;38405:164;:::i;37468:44::-;37463:128;;37540:35;;-1:-1:-1;;;37540:35:0;;;;;;;;;;;37463:128;37603:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;37603:29:0;-1:-1:-1;;;;;37603:29:0;;;;;;;;;37648:28;;37603:24;;37648:28;;;;;;;37360:324;37298:386;;:::o;47015:2800::-;47149:27;47179;47198:7;47179:18;:27::i;:::-;47149:57;;47264:4;-1:-1:-1;;;;;47223:45:0;47239:19;-1:-1:-1;;;;;47223:45:0;;47219:86;;47277:28;;-1:-1:-1;;;47277:28:0;;;;;;;;;;;47219:86;47319:27;45745:21;;;45572:15;45787:4;45780:36;45869:4;45853:21;;45959:26;;5642:10;46712:30;;;-1:-1:-1;;;;;46410:26:0;;46691:19;;;46688:55;47498:174;;47585:43;47602:4;5642:10;38405:164;:::i;47585:43::-;47580:92;;47637:35;;-1:-1:-1;;;47637:35:0;;;;;;;;;;;47580:92;-1:-1:-1;;;;;47689:16:0;;47685:52;;47714:23;;-1:-1:-1;;;47714:23:0;;;;;;;;;;;47685:52;47886:15;47883:160;;;48026:1;48005:19;47998:30;47883:160;-1:-1:-1;;;;;48421:24:0;;;;;;;:18;:24;;;;;;48419:26;;-1:-1:-1;;48419:26:0;;;48490:22;;;;;;;;;48488:24;;-1:-1:-1;48488:24:0;;;35492:11;35468:22;35464:40;35451:62;-1:-1:-1;;;35451:62:0;48783:26;;;;:17;:26;;;;;:174;;;;-1:-1:-1;;;49077:46:0;;:51;;49073:626;;49181:1;49171:11;;49149:19;49304:30;;;:17;:30;;;;;;:35;;49300:384;;49442:13;;49427:11;:28;49423:242;;49589:30;;;;:17;:30;;;;;:52;;;49423:242;49130:569;49073:626;49746:7;49742:2;-1:-1:-1;;;;;49727:27:0;49736:4;-1:-1:-1;;;;;49727:27:0;;;;;;;;;;;49765:42;47138:2677;;;47015:2800;;;:::o;38640:185::-;38778:39;38795:4;38801:2;38805:7;38778:39;;;;;;;;;;;;:16;:39::i;:::-;38640:185;;;:::o;60986:43::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60986:43:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;60986:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60986:43:0;:::o;63209:208::-;63307:29;;;;:18;:29;;;;;;63273:13;;63307:29;;63299:65;;;;-1:-1:-1;;;63299:65:0;;7981:2:1;63299:65:0;;;7963:21:1;8020:2;8000:18;;;7993:30;8059:25;8039:18;;;8032:53;8102:18;;63299:65:0;7779:347:1;63299:65:0;63382:19;;;;:8;:19;;;;;:27;;63375:34;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63209:208;;;:::o;62261:218::-;62323:7;62351:29;;;:18;:29;;;;;;;;:37;;:29;:37;62343:81;;;;-1:-1:-1;;;62343:81:0;;;;;;;:::i;:::-;-1:-1:-1;62442:19:0;;;;:8;:19;;;;;:29;;62261:218::o;35593:144::-;35657:7;35700:27;35719:7;35700:18;:27::i;30836:224::-;30900:7;-1:-1:-1;;;;;30924:19:0;;30920:60;;30952:28;;-1:-1:-1;;;30952:28:0;;;;;;;;;;;30920:60;-1:-1:-1;;;;;;30998:25:0;;;;;:18;:25;;;;;;25391:13;30998:54;;30836:224::o;65756:671::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;65870:17:::1;65890:26;:16;15064:14:::0;;14972:114;65890:26:::1;65937:29;::::0;;;:18:::1;:29;::::0;;;;;65870:46;;-1:-1:-1;65937:29:0::1;;:38;65929:87;;;::::0;-1:-1:-1;;;65929:87:0;;8693:2:1;65929:87:0::1;::::0;::::1;8675:21:1::0;8732:2;8712:18;;;8705:30;8771:34;8751:18;;;8744:62;-1:-1:-1;;;8822:18:1;;;8815:34;8866:19;;65929:87:0::1;8491:400:1::0;65929:87:0::1;66047:1;66035:9;:13;66027:59;;;::::0;-1:-1:-1;;;66027:59:0;;9098:2:1;66027:59:0::1;::::0;::::1;9080:21:1::0;9137:2;9117:18;;;9110:30;9176:34;9156:18;;;9149:62;-1:-1:-1;;;9227:18:1;;;9220:31;9268:19;;66027:59:0::1;8896:397:1::0;66027:59:0::1;66121:210;;;;;;;;66155:9;66121:210;;;;66191:10;-1:-1:-1::0;;;;;66121:210:0::1;;;;;66225:7;;66121:210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;66121:210:0;;;-1:-1:-1;;;66121:210:0::1;::::0;;::::1;::::0;;;;66300:19;;;;::::1;::::0;;;;;66121:210;;;;;;;66099:19;;;:8:::1;:19:::0;;;;;;:232;;;;;;::::1;::::0;66121:210;66099:232;::::1;::::0;;-1:-1:-1;;;;;;66099:232:0::1;-1:-1:-1::0;;;;;66099:232:0;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;-1:-1:-1::0;66099:232:0::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;;-1:-1:-1::0;;66099:232:0;;::::1;;::::0;;::::1;::::0;;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;66344:29:::0;;;:18:::1;:29;::::0;;;;:36;;;;::::1;66099:232:::0;66344:36:::1;::::0;;66391:28:::1;:16;15183:19:::0;;15201:1;15183:19;;;15094:127;66391:28:::1;65859:568;65756:671:::0;;;;:::o;7489:103::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;7554:30:::1;7581:1;7554:18;:30::i;:::-;7489:103::o:0;64305:618::-;61232:10;61224:19;;;;:7;:19;;;;;;;;:27;;:19;:27;61216:61;;;;-1:-1:-1;;;61216:61:0;;11704:2:1;61216:61:0;;;11686:21:1;11743:2;11723:18;;;11716:30;-1:-1:-1;;;11762:18:1;;;11755:51;11823:18;;61216:61:0;11502:345:1;61216:61:0;64387:29:::1;::::0;;;:18:::1;:29;::::0;;;;;::::1;;:37;;:29:::0;:37:::1;64379:81;;;;-1:-1:-1::0;;;64379:81:0::1;;;;;;;:::i;:::-;64473:17;64493:19:::0;;;:8:::1;:19;::::0;;;;:36:::1;::::0;::::1;15064:14:::0;64571:29;;64559:41;::::1;64551:80;;;::::0;-1:-1:-1;;;64551:80:0;;12054:2:1;64551:80:0::1;::::0;::::1;12036:21:1::0;12093:2;12073:18;;;12066:30;12132:28;12112:18;;;12105:56;12178:18;;64551:80:0::1;11852:350:1::0;64551:80:0::1;64644:15;64662:24;:14;15064::::0;;14972:114;64662:24:::1;64644:42;;64697:26;:14;15183:19:::0;;15201:1;15183:19;;;15094:127;64697:26:::1;64736:19;::::0;;;:8:::1;:19;::::0;;;;:36:::1;;15183:19:::0;;15201:1;15183:19;;;64797:27:::1;::::0;;;:18:::1;:27;::::0;;;;;;;:39;;;64847:18:::1;:27:::0;;;;;:39;;;64899:16:::1;64909:2:::0;64913:1:::1;64899:9;:16::i;:::-;64368:555;;64305:618:::0;;:::o;62018:235::-;62080:7;62108:29;;;:18;:29;;;;;;;;:37;;:29;:37;62100:81;;;;-1:-1:-1;;;62100:81:0;;;;;;;:::i;:::-;62199:19;;;;:8;:19;;;;;:36;;15064:14;62199:46;14972:114;35973:104;36029:13;36062:7;36055:14;;;;;:::i;63425:872::-;3936:1;4534:7;;:19;4526:63;;;;-1:-1:-1;;;4526:63:0;;12409:2:1;4526:63:0;;;12391:21:1;12448:2;12428:18;;;12421:30;12487:33;12467:18;;;12460:61;12538:18;;4526:63:0;12207:355:1;4526:63:0;3936:1;4667:7;:18;61348:9:::1;61361:10;61348:23;61340:67;;;::::0;-1:-1:-1;;;61340:67:0;;12769:2:1;61340:67:0::1;::::0;::::1;12751:21:1::0;12808:2;12788:18;;;12781:30;12847:33;12827:18;;;12820:61;12898:18;;61340:67:0::1;12567:355:1::0;61340:67:0::1;63510:29:::2;::::0;;;:18:::2;:29;::::0;;;;;::::2;;:37;;:29:::0;:37:::2;63502:81;;;;-1:-1:-1::0;;;63502:81:0::2;;;;;;;:::i;:::-;63596:17;63616:19:::0;;;:8:::2;:19;::::0;;;;:36:::2;::::0;::::2;15064:14:::0;63694:29;;63682:41;::::2;63674:80;;;::::0;-1:-1:-1;;;63674:80:0;;12054:2:1;63674:80:0::2;::::0;::::2;12036:21:1::0;12093:2;12073:18;;;12066:30;12132:28;12112:18;;;12105:56;12178:18;;63674:80:0::2;11852:350:1::0;63674:80:0::2;63793:10;63776:28;::::0;;;:16:::2;:28;::::0;;;;;;;:39;;;;;;;;;::::2;;63775:40;63767:85;;;::::0;-1:-1:-1;;;63767:85:0;;13129:2:1;63767:85:0::2;::::0;::::2;13111:21:1::0;;;13148:18;;;13141:30;13207:34;13187:18;;;13180:62;13259:18;;63767:85:0::2;12927:356:1::0;63767:85:0::2;63873:37;63888:9;63899:10;63873:14;:37::i;:::-;63865:73;;;::::0;-1:-1:-1;;;63865:73:0;;13490:2:1;63865:73:0::2;::::0;::::2;13472:21:1::0;13529:2;13509:18;;;13502:30;13568:25;13548:18;;;13541:53;13611:18;;63865:73:0::2;13288:347:1::0;63865:73:0::2;63968:10;63951:28;::::0;;;:16:::2;:28;::::0;;;;;;;:39;;;;;;;;:46;;-1:-1:-1;;63951:46:0::2;63993:4;63951:46;::::0;;64028:24:::2;:14;15064::::0;;14972:114;64028:24:::2;64010:42;;64063:26;:14;15183:19:::0;;15201:1;15183:19;;;15094:127;64063:26:::2;64102:19;::::0;;;:8:::2;:19;::::0;;;;:36:::2;;15183:19:::0;;15201:1;15183:19;;;64163:27:::2;::::0;;;:18:::2;:27;::::0;;;;;;;:39;;;64213:18:::2;:27:::0;;;;;:39;;;64265:24:::2;64275:10;64287:1;64265:9;:24::i;:::-;-1:-1:-1::0;;3892:1:0;4846:7;:22;-1:-1:-1;63425:872:0:o;38026:308::-;5642:10;-1:-1:-1;;;;;38125:31:0;;;38121:61;;38165:17;;-1:-1:-1;;;38165:17:0;;;;;;;;;;;38121:61;5642:10;38195:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;38195:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;38195:60:0;;;;;;;;;;38271:55;;540:41:1;;;38195:49:0;;5642:10;38271:55;;513:18:1;38271:55:0;;;;;;;38026:308;;:::o;38896:399::-;39063:31;39076:4;39082:2;39086:7;39063:12;:31::i;:::-;-1:-1:-1;;;;;39109:14:0;;;:19;39105:183;;39148:56;39179:4;39185:2;39189:7;39198:5;39148:30;:56::i;:::-;39143:145;;39232:40;;-1:-1:-1;;;39232:40:0;;;;;;;;;;;62760:441;62825:13;62859:16;62867:7;62859;:16::i;:::-;62851:76;;;;-1:-1:-1;;;62851:76:0;;13842:2:1;62851:76:0;;;13824:21:1;13881:2;13861:18;;;13854:30;13920:34;13900:18;;;13893:62;-1:-1:-1;;;13971:18:1;;;13964:45;14026:19;;62851:76:0;13640:411:1;62851:76:0;62940:17;62960:27;;;:18;:27;;;;;;;;;63020:18;:27;;;;;;63084:19;;;:8;:19;;;;;;:27;;63060:51;;62960:27;;62940:17;63060:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63155:7;63164:27;63181:9;63164:16;:27::i;:::-;63138:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;63124:69;;;;;62760:441;;;:::o;61674:336::-;61752:4;61777:29;;;:18;:29;;;;;;;;:37;;:29;:37;61769:81;;;;-1:-1:-1;;;61769:81:0;;;;;;;:::i;:::-;61861:19;61891;;;:8;:19;;;;;;:30;;;61947:27;;-1:-1:-1;;;61947:27:0;;-1:-1:-1;;;;;2486:32:1;;;61947:27:0;;;2468:51:1;61891:30:0;;;;61861:19;;;61891:30;;61947:21;;2441:18:1;;61947:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:31;;61674:336;-1:-1:-1;;;;;61674:336:0:o;65499:249::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;65610:29:::1;::::0;;;:18:::1;:29;::::0;;;;;::::1;;:37;;:29:::0;:37:::1;65602:81;;;;-1:-1:-1::0;;;65602:81:0::1;;;;;;;:::i;:::-;65694:19;::::0;;;:8:::1;:19;::::0;;;;;:30:::1;;:46:::0;;-1:-1:-1;;;;;;65694:46:0::1;-1:-1:-1::0;;;;;65694:46:0;;::::1;::::0;;;::::1;::::0;;65499:249::o;65276:215::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;65359:29:::1;::::0;;;:18:::1;:29;::::0;;;;;::::1;;:37;;:29:::0;:37:::1;65351:81;;;;-1:-1:-1::0;;;65351:81:0::1;;;;;;;:::i;:::-;65443:19;::::0;;;:8:::1;:19;::::0;;;;:33:::1;;:40:::0;;-1:-1:-1;;65443:40:0::1;65479:4;65443:40;::::0;;65276:215::o;7747:201::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;7836:22:0;::::1;7828:73;;;::::0;-1:-1:-1;;;7828:73:0;;14948:2:1;7828:73:0::1;::::0;::::1;14930:21:1::0;14987:2;14967:18;;;14960:30;15026:34;15006:18;;;14999:62;-1:-1:-1;;;15077:18:1;;;15070:36;15123:19;;7828:73:0::1;14746:402:1::0;7828:73:0::1;7912:28;7931:8;7912:18;:28::i;:::-;7747:201:::0;:::o;62487:265::-;62549:4;62574:29;;;:18;:29;;;;;;;;:37;;:29;:37;62566:81;;;;-1:-1:-1;;;62566:81:0;;;;;;;:::i;:::-;-1:-1:-1;62698:19:0;;;;:8;:19;;;;;:36;;;15064:14;62665:29;;:79;;62487:265::o;64931:337::-;6911:6;;-1:-1:-1;;;;;6911:6:0;5642:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;65044:29:::1;::::0;;;:18:::1;:29;::::0;;;;;::::1;;:37;;:29:::0;:37:::1;65036:81;;;;-1:-1:-1::0;;;65036:81:0::1;;;;;;;:::i;:::-;65136:19;::::0;;;:8:::1;:19;::::0;;;;:33:::1;;::::0;::::1;;:42;65128:81;;;::::0;-1:-1:-1;;;65128:81:0;;15355:2:1;65128:81:0::1;::::0;::::1;15337:21:1::0;15394:2;15374:18;;;15367:30;15433:28;15413:18;;;15406:56;15479:18;;65128:81:0::1;15153:350:1::0;65128:81:0::1;65220:19;::::0;;;:8:::1;:19;::::0;;;;:27:::1;;:40;65250:10:::0;;65220:27;:40:::1;:::i;39550:273::-:0;39607:4;39697:13;;39687:7;:23;39644:152;;;;-1:-1:-1;;39748:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;39748:43:0;:48;;39550:273::o;32510:1129::-;32577:7;32612;32714:13;;32707:4;:20;32703:869;;;32752:14;32769:23;;;:17;:23;;;;;;;-1:-1:-1;;;32858:23:0;;:28;;32854:699;;33377:113;33384:6;33394:1;33384:11;33377:113;;-1:-1:-1;;;33455:6:0;33437:25;;;;:17;:25;;;;;;33377:113;;;33523:6;32510:1129;-1:-1:-1;;;32510:1129:0:o;32854:699::-;32729:843;32703:869;33600:31;;-1:-1:-1;;;33600:31:0;;;;;;;;;;;8108:191;8201:6;;;-1:-1:-1;;;;;8218:17:0;;;-1:-1:-1;;;;;;8218:17:0;;;;;;;8251:40;;8201:6;;;8218:17;8201:6;;8251:40;;8182:16;;8251:40;8171:128;8108:191;:::o;39907:104::-;39976:27;39986:2;39990:8;39976:27;;;;;;;;;;;;:9;:27::i;:::-;39907:104;;:::o;53766:716::-;53950:88;;-1:-1:-1;;;53950:88:0;;53929:4;;-1:-1:-1;;;;;53950:45:0;;;;;:88;;5642:10;;54017:4;;54023:7;;54032:5;;53950:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53950:88:0;;;;;;;;-1:-1:-1;;53950:88:0;;;;;;;;;;;;:::i;:::-;;;53946:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54233:6;:13;54250:1;54233:18;54229:235;;54279:40;;-1:-1:-1;;;54279:40:0;;;;;;;;;;;54229:235;54422:6;54416:13;54407:6;54403:2;54399:15;54392:38;53946:529;-1:-1:-1;;;;;;54109:64:0;-1:-1:-1;;;54109:64:0;;-1:-1:-1;53946:529:0;53766:716;;;;;;:::o;365:723::-;421:13;642:5;651:1;642:10;638:53;;-1:-1:-1;;669:10:0;;;;;;;;;;;;-1:-1:-1;;;669:10:0;;;;;365:723::o;638:53::-;716:5;701:12;757:78;764:9;;757:78;;790:8;;;;:::i;:::-;;-1:-1:-1;813:10:0;;-1:-1:-1;821:2:0;813:10;;:::i;:::-;;;757:78;;;845:19;877:6;867:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;867:17:0;;845:39;;895:154;902:10;;895:154;;929:11;939:1;929:11;;:::i;:::-;;-1:-1:-1;998:10:0;1006:2;998:5;:10;:::i;:::-;985:24;;:2;:24;:::i;:::-;972:39;;955:6;962;955:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;955:56:0;;;;;;;;-1:-1:-1;1026:11:0;1035:2;1026:11;;:::i;:::-;;;895:154;;40427:681;40550:19;40556:2;40560:8;40550:5;:19::i;:::-;-1:-1:-1;;;;;40611:14:0;;;:19;40607:483;;40651:11;40665:13;40713:14;;;40746:233;40777:62;40816:1;40820:2;40824:7;;;;;;40833:5;40777:30;:62::i;:::-;40772:167;;40875:40;;-1:-1:-1;;;40875:40:0;;;;;;;;;;;40772:167;40974:3;40966:5;:11;40746:233;;41061:3;41044:13;;:20;41040:34;;41066:8;;;41381:1529;41446:20;41469:13;-1:-1:-1;;;;;41497:16:0;;41493:48;;41522:19;;-1:-1:-1;;;41522:19:0;;;;;;;;;;;41493:48;41556:8;41568:1;41556:13;41552:44;;41578:18;;-1:-1:-1;;;41578:18:0;;;;;;;;;;;41552:44;-1:-1:-1;;;;;42084:22:0;;;;;;:18;:22;;25528:2;42084:22;;:70;;42122:31;42110:44;;42084:70;;;35492:11;35468:22;35464:40;-1:-1:-1;37202:15:0;;37177:23;37173:45;35461:51;35451:62;42397:31;;;;:17;:31;;;;;:173;42415:12;42646:23;;;42684:101;42711:35;;42736:9;;;;;-1:-1:-1;;;;;42711:35:0;;;42728:1;;42711:35;;42728:1;;42711:35;42780:3;42770:7;:13;42684:101;;42801:13;:19;-1:-1:-1;38640:185:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;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:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;689:70;592:173;;;:::o;770:347::-;835:6;843;896:2;884:9;875:7;871:23;867:32;864:52;;;912:1;909;902:12;864:52;935:29;954:9;935:29;:::i;:::-;925:39;;1014:2;1003:9;999:18;986:32;1061:5;1054:13;1047:21;1040:5;1037:32;1027:60;;1083:1;1080;1073:12;1027:60;1106:5;1096:15;;;770:347;;;;;:::o;1122:254::-;1190:6;1198;1251:2;1239:9;1230:7;1226:23;1222:32;1219:52;;;1267:1;1264;1257:12;1219:52;1290:29;1309:9;1290:29;:::i;:::-;1280:39;1366:2;1351:18;;;;1338:32;;-1:-1:-1;;;1122:254:1:o;1381:250::-;1466:1;1476:113;1490:6;1487:1;1484:13;1476:113;;;1566:11;;;1560:18;1547:11;;;1540:39;1512:2;1505:10;1476:113;;;-1:-1:-1;;1623:1:1;1605:16;;1598:27;1381:250::o;1636:271::-;1678:3;1716:5;1710:12;1743:6;1738:3;1731:19;1759:76;1828:6;1821:4;1816:3;1812:14;1805:4;1798:5;1794:16;1759:76;:::i;:::-;1889:2;1868:15;-1:-1:-1;;1864:29:1;1855:39;;;;1896:4;1851:50;;1636:271;-1:-1:-1;;1636:271:1:o;1912:220::-;2061:2;2050:9;2043:21;2024:4;2081:45;2122:2;2111:9;2107:18;2099:6;2081:45;:::i;2137:180::-;2196:6;2249:2;2237:9;2228:7;2224:23;2220:32;2217:52;;;2265:1;2262;2255:12;2217:52;-1:-1:-1;2288:23:1;;2137:180;-1:-1:-1;2137:180:1:o;2712:328::-;2789:6;2797;2805;2858:2;2846:9;2837:7;2833:23;2829:32;2826:52;;;2874:1;2871;2864:12;2826:52;2897:29;2916:9;2897:29;:::i;:::-;2887:39;;2945:38;2979:2;2968:9;2964:18;2945:38;:::i;:::-;2935:48;;3030:2;3019:9;3015:18;3002:32;2992:42;;2712:328;;;;;:::o;3045:598::-;3330:25;;;-1:-1:-1;;;;;3391:32:1;;3386:2;3371:18;;3364:60;3411:3;3455:2;3440:18;;3433:31;;;-1:-1:-1;;3481:46:1;;3507:19;;3499:6;3481:46;:::i;:::-;3570:14;;3563:22;3558:2;3543:18;;3536:50;-1:-1:-1;3623:13:1;;3617:3;3602:19;;;3595:42;3473:54;3045:598;-1:-1:-1;;;3045:598:1:o;3648:186::-;3707:6;3760:2;3748:9;3739:7;3735:23;3731:32;3728:52;;;3776:1;3773;3766:12;3728:52;3799:29;3818:9;3799:29;:::i;3839:348::-;3891:8;3901:6;3955:3;3948:4;3940:6;3936:17;3932:27;3922:55;;3973:1;3970;3963:12;3922:55;-1:-1:-1;3996:20:1;;4039:18;4028:30;;4025:50;;;4071:1;4068;4061:12;4025:50;4108:4;4100:6;4096:17;4084:29;;4160:3;4153:4;4144:6;4136;4132:19;4128:30;4125:39;4122:59;;;4177:1;4174;4167:12;4122:59;3839:348;;;;;:::o;4192:553::-;4281:6;4289;4297;4305;4358:2;4346:9;4337:7;4333:23;4329:32;4326:52;;;4374:1;4371;4364:12;4326:52;4410:9;4397:23;4387:33;;4439:38;4473:2;4462:9;4458:18;4439:38;:::i;:::-;4429:48;;4528:2;4517:9;4513:18;4500:32;4555:18;4547:6;4544:30;4541:50;;;4587:1;4584;4577:12;4541:50;4626:59;4677:7;4668:6;4657:9;4653:22;4626:59;:::i;:::-;4192:553;;;;-1:-1:-1;4704:8:1;-1:-1:-1;;;;4192:553:1:o;4750:254::-;4818:6;4826;4879:2;4867:9;4858:7;4854:23;4850:32;4847:52;;;4895:1;4892;4885:12;4847:52;4931:9;4918:23;4908:33;;4960:38;4994:2;4983:9;4979:18;4960:38;:::i;:::-;4950:48;;4750:254;;;;;:::o;5009:127::-;5070:10;5065:3;5061:20;5058:1;5051:31;5101:4;5098:1;5091:15;5125:4;5122:1;5115:15;5141:1138;5236:6;5244;5252;5260;5313:3;5301:9;5292:7;5288:23;5284:33;5281:53;;;5330:1;5327;5320:12;5281:53;5353:29;5372:9;5353:29;:::i;:::-;5343:39;;5401:38;5435:2;5424:9;5420:18;5401:38;:::i;:::-;5391:48;;5486:2;5475:9;5471:18;5458:32;5448:42;;5541:2;5530:9;5526:18;5513:32;5564:18;5605:2;5597:6;5594:14;5591:34;;;5621:1;5618;5611:12;5591:34;5659:6;5648:9;5644:22;5634:32;;5704:7;5697:4;5693:2;5689:13;5685:27;5675:55;;5726:1;5723;5716:12;5675:55;5762:2;5749:16;5784:2;5780;5777:10;5774:36;;;5790:18;;:::i;:::-;5865:2;5859:9;5833:2;5919:13;;-1:-1:-1;;5915:22:1;;;5939:2;5911:31;5907:40;5895:53;;;5963:18;;;5983:22;;;5960:46;5957:72;;;6009:18;;:::i;:::-;6049:10;6045:2;6038:22;6084:2;6076:6;6069:18;6124:7;6119:2;6114;6110;6106:11;6102:20;6099:33;6096:53;;;6145:1;6142;6135:12;6096:53;6201:2;6196;6192;6188:11;6183:2;6175:6;6171:15;6158:46;6246:1;6241:2;6236;6228:6;6224:15;6220:24;6213:35;6267:6;6257:16;;;;;;;5141:1138;;;;;;;:::o;6284:260::-;6352:6;6360;6413:2;6401:9;6392:7;6388:23;6384:32;6381:52;;;6429:1;6426;6419:12;6381:52;6452:29;6471:9;6452:29;:::i;:::-;6442:39;;6500:38;6534:2;6523:9;6519:18;6500:38;:::i;6549:479::-;6629:6;6637;6645;6698:2;6686:9;6677:7;6673:23;6669:32;6666:52;;;6714:1;6711;6704:12;6666:52;6750:9;6737:23;6727:33;;6811:2;6800:9;6796:18;6783:32;6838:18;6830:6;6827:30;6824:50;;;6870:1;6867;6860:12;6824:50;6909:59;6960:7;6951:6;6940:9;6936:22;6909:59;:::i;:::-;6549:479;;6987:8;;-1:-1:-1;6883:85:1;;-1:-1:-1;;;;6549:479:1:o;7033:356::-;7235:2;7217:21;;;7254:18;;;7247:30;7313:34;7308:2;7293:18;;7286:62;7380:2;7365:18;;7033:356::o;7394:380::-;7473:1;7469:12;;;;7516;;;7537:61;;7591:4;7583:6;7579:17;7569:27;;7537:61;7644:2;7636:6;7633:14;7613:18;7610:38;7607:161;;7690:10;7685:3;7681:20;7678:1;7671:31;7725:4;7722:1;7715:15;7753:4;7750:1;7743:15;7607:161;;7394:380;;;:::o;8131:355::-;8333:2;8315:21;;;8372:2;8352:18;;;8345:30;8411:33;8406:2;8391:18;;8384:61;8477:2;8462:18;;8131:355::o;9424:545::-;9526:2;9521:3;9518:11;9515:448;;;9562:1;9587:5;9583:2;9576:17;9632:4;9628:2;9618:19;9702:2;9690:10;9686:19;9683:1;9679:27;9673:4;9669:38;9738:4;9726:10;9723:20;9720:47;;;-1:-1:-1;9761:4:1;9720:47;9816:2;9811:3;9807:12;9804:1;9800:20;9794:4;9790:31;9780:41;;9871:82;9889:2;9882:5;9879:13;9871:82;;;9934:17;;;9915:1;9904:13;9871:82;;10145:1352;10271:3;10265:10;10298:18;10290:6;10287:30;10284:56;;;10320:18;;:::i;:::-;10349:97;10439:6;10399:38;10431:4;10425:11;10399:38;:::i;:::-;10393:4;10349:97;:::i;:::-;10501:4;;10565:2;10554:14;;10582:1;10577:663;;;;11284:1;11301:6;11298:89;;;-1:-1:-1;11353:19:1;;;11347:26;11298:89;-1:-1:-1;;10102:1:1;10098:11;;;10094:24;10090:29;10080:40;10126:1;10122:11;;;10077:57;11400:81;;10547:944;;10577:663;9371:1;9364:14;;;9408:4;9395:18;;-1:-1:-1;;10613:20:1;;;10731:236;10745:7;10742:1;10739:14;10731:236;;;10834:19;;;10828:26;10813:42;;10926:27;;;;10894:1;10882:14;;;;10761:19;;10731:236;;;10735:3;10995:6;10986:7;10983:19;10980:201;;;11056:19;;;11050:26;-1:-1:-1;;11139:1:1;11135:14;;;11151:3;11131:24;11127:37;11123:42;11108:58;11093:74;;10980:201;-1:-1:-1;;;;;11227:1:1;11211:14;;;11207:22;11194:36;;-1:-1:-1;10145:1352:1:o;14056:496::-;14235:3;14273:6;14267:13;14289:66;14348:6;14343:3;14336:4;14328:6;14324:17;14289:66;:::i;:::-;14418:13;;14377:16;;;;14440:70;14418:13;14377:16;14487:4;14475:17;;14440:70;:::i;:::-;14526:20;;14056:496;-1:-1:-1;;;;14056:496:1:o;14557:184::-;14627:6;14680:2;14668:9;14659:7;14655:23;14651:32;14648:52;;;14696:1;14693;14686:12;14648:52;-1:-1:-1;14719:16:1;;14557:184;-1:-1:-1;14557:184:1:o;15508:1206::-;15632:18;15627:3;15624:27;15621:53;;;15654:18;;:::i;:::-;15683:94;15773:3;15733:38;15765:4;15759:11;15733:38;:::i;:::-;15727:4;15683:94;:::i;:::-;15803:1;15828:2;15823:3;15820:11;15845:1;15840:616;;;;16500:1;16517:3;16514:93;;;-1:-1:-1;16573:19:1;;;16560:33;16514:93;-1:-1:-1;;10102:1:1;10098:11;;;10094:24;10090:29;10080:40;10126:1;10122:11;;;10077:57;16620:78;;15813:895;;15840:616;9371:1;9364:14;;;9408:4;9395:18;;-1:-1:-1;;15876:17:1;;;15977:9;15999:229;16013:7;16010:1;16007:14;15999:229;;;16102:19;;;16089:33;16074:49;;16209:4;16194:20;;;;16162:1;16150:14;;;;16029:12;15999:229;;;16003:3;16256;16247:7;16244:16;16241:159;;;16380:1;16376:6;16370:3;16364;16361:1;16357:11;16353:21;16349:34;16345:39;16332:9;16327:3;16323:19;16310:33;16306:79;16298:6;16291:95;16241:159;;;16443:1;16437:3;16434:1;16430:11;16426:19;16420:4;16413:33;15813:895;;15508:1206;;;:::o;16719:489::-;-1:-1:-1;;;;;16988:15:1;;;16970:34;;17040:15;;17035:2;17020:18;;17013:43;17087:2;17072:18;;17065:34;;;17135:3;17130:2;17115:18;;17108:31;;;16913:4;;17156:46;;17182:19;;17174:6;17156:46;:::i;:::-;17148:54;16719:489;-1:-1:-1;;;;;;16719:489:1:o;17213:249::-;17282:6;17335:2;17323:9;17314:7;17310:23;17306:32;17303:52;;;17351:1;17348;17341:12;17303:52;17383:9;17377:16;17402:30;17426:5;17402:30;:::i;17467:127::-;17528:10;17523:3;17519:20;17516:1;17509:31;17559:4;17556:1;17549:15;17583:4;17580:1;17573:15;17599:135;17638:3;17659:17;;;17656:43;;17679:18;;:::i;:::-;-1:-1:-1;17726:1:1;17715:13;;17599:135::o;17739:127::-;17800:10;17795:3;17791:20;17788:1;17781:31;17831:4;17828:1;17821:15;17855:4;17852:1;17845:15;17871:120;17911:1;17937;17927:35;;17942:18;;:::i;:::-;-1:-1:-1;17976:9:1;;17871:120::o;17996:128::-;18063:9;;;18084:11;;;18081:37;;;18098:18;;:::i;18129:112::-;18161:1;18187;18177:35;;18192:18;;:::i;:::-;-1:-1:-1;18226:9:1;;18129:112::o;18246:125::-;18311:9;;;18332:10;;;18329:36;;;18345:18;;:::i;18376:127::-;18437:10;18432:3;18428:20;18425:1;18418:31;18468:4;18465:1;18458:15;18492:4;18489:1;18482:15
Swarm Source
ipfs://345aa1520b064051c0887905a6df7ec66b7e1f0c54d04f83d4862f29e596d563
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.