ERC-721
Overview
Max Total Supply
4,999 SDS
Holders
2,120
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 SDSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SkyDreamers
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-06-29 */ // File: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: operator-filter-registry/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // 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 (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores 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 via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @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() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 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`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) 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.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // 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 `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID 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 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual 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 virtual { 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; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ 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: [ERC165](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. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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 ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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 initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev 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); } /** * @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 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)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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 `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns 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)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 virtual { uint256 startTokenId = _currentIndex; 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 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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 virtual { 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 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 virtual { _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 Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { 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 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 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; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @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 virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/contracts2/SKYDREAMERS.sol //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.18; contract SkyDreamers is ERC721A, DefaultOperatorFilterer, ERC2981, Ownable { address private constant WITHDRAW_ADDRESS = 0x5b5c2FfB7fdd115A6C752ee30EaD50F06ee1aB13; string public baseUri = "ipfs://bafybeie5pcfpqsxqcfym4vv4pobcfsmddwhzk6tmzlvhb4qttcubc66pvm/"; bool public mintingState = false; bool public burningEnabled = false; uint256 public constant MAX_SUPPLY = 4999; uint256 public constant MAX_PER_WALLET = 5; uint256 public free = 1; uint256 public constant PRICE = 0.003 ether; constructor() ERC721A("SkyDreamers", "SDS") { setRoyalty(WITHDRAW_ADDRESS, 500); _mint(WITHDRAW_ADDRESS, 1); } //MINT function mint(uint256 quantity) external payable { uint64 minted = _getAux(msg.sender); require(mintingState, "Mint hasn't started yet"); require(_totalMinted() + quantity <= MAX_SUPPLY, "Sold out"); require(minted + quantity <= MAX_PER_WALLET, "Max per wallet"); require(msg.sender == tx.origin, "No bots allowed"); if (minted < free) { if (quantity > free) { require(PRICE * (quantity - free) <= msg.value,"Insufficient funds sent"); } } else { require(PRICE * quantity <= msg.value,"Insufficient funds sent"); } _setAux(msg.sender, minted + uint64(quantity)); _mint(msg.sender, quantity); } //total minted for address function mintedForAddress(address owner) external view returns (uint64) { return _getAux(owner); } //override function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view override returns (string memory) { return baseUri; } //flip mint function flipMint() external onlyOwner { mintingState = !mintingState; } //flip burn function flipBurn() external onlyOwner { burningEnabled = !burningEnabled; } //owner function setBaseUri(string memory _baseUri) external onlyOwner { baseUri = _baseUri; } function setFree(uint256 _free) external onlyOwner { require(free > 0, "Free amount can't be less than 1"); free = _free; } function withdraw() external onlyOwner { (bool success, ) = payable(WITHDRAW_ADDRESS).call{value: address(this).balance}(""); require(success); } //burn function burn(uint256 tokenId) external { require(burningEnabled, "Burning disabled"); require(ownerOf(tokenId) == msg.sender, "You are not the owner"); _burn(tokenId); } //royalty function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool){ return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function deleteRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } }
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":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burningEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"free","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"mintedForAddress","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_free","type":"uint256"}],"name":"setFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61010060405260436080818152906200264a60a039600b90620000239082620005b5565b50600c805461ffff191690556001600d553480156200004157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a536b79447265616d65727360a81b8152506040518060400160405280600381526020016253445360e81b8152508160029081620000aa9190620005b5565b506003620000b98282620005b5565b50600160005550506daaeb6d7670e522a718067333cd4e3b15620002065780156200015457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013557600080fd5b505af11580156200014a573d6000803e3d6000fd5b5050505062000206565b6001600160a01b03821615620001a55760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200011a565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ec57600080fd5b505af115801562000201573d6000803e3d6000fd5b505050505b50620002149050336200025d565b62000236735b5c2ffb7fdd115a6c752ee30ead50f06ee1ab136101f4620002af565b62000257735b5c2ffb7fdd115a6c752ee30ead50f06ee1ab136001620002c9565b62000681565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002b9620003ae565b620002c5828262000410565b5050565b6000805490829003620002ef5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206200262a8339815191528180a4600183015b8181146200037e57808360006000805160206200262a833981519152600080a460010162000355565b5081600003620003a057604051622e076360e81b815260040160405180910390fd5b60005550505050565b505050565b600a546001600160a01b031633146200040e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620004805760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000405565b6001600160a01b038216620004d85760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000405565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200053c57607f821691505b6020821081036200055d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003a957600081815260208120601f850160051c810160208610156200058c5750805b601f850160051c820191505b81811015620005ad5782815560010162000598565b505050505050565b81516001600160401b03811115620005d157620005d162000511565b620005e981620005e2845462000527565b8462000563565b602080601f831160018114620006215760008415620006085750858301515b600019600386901b1c1916600185901b178555620005ad565b600085815260208120601f198616915b82811015620006525788860151825594840194600190910190840162000631565b5085821015620006715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f9980620006916000396000f3fe60806040526004361061020f5760003560e01c80636352211e116101185780639abc8320116100a0578063b88d4fde1161006f578063b88d4fde146105c7578063c87b56dd146105da578063d2ed5c59146105fa578063e985e9c51461060f578063f2fde38b1461062f57600080fd5b80639abc83201461055f578063a0712d6814610574578063a0bcfc7f14610587578063a22cb465146105a757600080fd5b806382785214116100e757806382785214146104dc5780638d859f3e146104f15780638da5cb5b1461050c5780638f2fc60b1461052a57806395d89b411461054a57600080fd5b80636352211e146104675780637040d73f1461048757806370a08231146104a7578063715018a6146104c757600080fd5b806323b872dd1161019b5780633ccfd60b1161016a5780633ccfd60b146103de57806341f43434146103f357806342842e0e1461041557806342966c68146104285780634d7547151461044857600080fd5b806323b872dd146103615780632a1e2edc146103745780632a55205a1461038957806332cb6b0c146103c857600080fd5b80630e6d3a89116101e25780630e6d3a89146102b85780630f2cdd6c146102d25780631370128e146102f557806318160ddd1461030b5780631c3b106d1461032857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611967565b61064f565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61066f565b60405161024091906119d4565b34801561027757600080fd5b5061028b6102863660046119e7565b610701565b6040516001600160a01b039091168152602001610240565b6102b66102b1366004611a1c565b610745565b005b3480156102c457600080fd5b50600c546102349060ff1681565b3480156102de57600080fd5b506102e7600581565b604051908152602001610240565b34801561030157600080fd5b506102e7600d5481565b34801561031757600080fd5b5060015460005403600019016102e7565b34801561033457600080fd5b50610348610343366004611a46565b61075e565b60405167ffffffffffffffff9091168152602001610240565b6102b661036f366004611a61565b61077f565b34801561038057600080fd5b506102b66107aa565b34801561039557600080fd5b506103a96103a4366004611a9d565b6107cf565b604080516001600160a01b039093168352602083019190915201610240565b3480156103d457600080fd5b506102e761138781565b3480156103ea57600080fd5b506102b661087b565b3480156103ff57600080fd5b5061028b6daaeb6d7670e522a718067333cd4e81565b6102b6610423366004611a61565b6108ef565b34801561043457600080fd5b506102b66104433660046119e7565b610914565b34801561045457600080fd5b50600c5461023490610100900460ff1681565b34801561047357600080fd5b5061028b6104823660046119e7565b6109c4565b34801561049357600080fd5b506102b66104a23660046119e7565b6109cf565b3480156104b357600080fd5b506102e76104c2366004611a46565b610a2e565b3480156104d357600080fd5b506102b6610a7d565b3480156104e857600080fd5b506102b6610a91565b3480156104fd57600080fd5b506102e7660aa87bee53800081565b34801561051857600080fd5b50600a546001600160a01b031661028b565b34801561053657600080fd5b506102b6610545366004611abf565b610aa3565b34801561055657600080fd5b5061025e610ab9565b34801561056b57600080fd5b5061025e610ac8565b6102b66105823660046119e7565b610b56565b34801561059357600080fd5b506102b66105a2366004611b8e565b610dd7565b3480156105b357600080fd5b506102b66105c2366004611be5565b610deb565b6102b66105d5366004611c11565b610dff565b3480156105e657600080fd5b5061025e6105f53660046119e7565b610e2c565b34801561060657600080fd5b506102b6610eb0565b34801561061b57600080fd5b5061023461062a366004611c8d565b610ecc565b34801561063b57600080fd5b506102b661064a366004611a46565b610efa565b600061065a82610f70565b80610669575061066982610fbe565b92915050565b60606002805461067e90611cc0565b80601f01602080910402602001604051908101604052809291908181526020018280546106aa90611cc0565b80156106f75780601f106106cc576101008083540402835291602001916106f7565b820191906000526020600020905b8154815290600101906020018083116106da57829003601f168201915b5050505050905090565b600061070c82610ff3565b610729576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161074f81611028565b61075983836110e1565b505050565b6001600160a01b03811660009081526005602052604081205460c01c610669565b826001600160a01b03811633146107995761079933611028565b6107a4848484611181565b50505050565b6107b2611312565b600c805461ff001981166101009182900460ff1615909102179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108445750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610863906001600160601b031687611d10565b61086d9190611d27565b915196919550909350505050565b610883611312565b604051600090735b5c2ffb7fdd115a6c752ee30ead50f06ee1ab139047908381818185875af1925050503d80600081146108d9576040519150601f19603f3d011682016040523d82523d6000602084013e6108de565b606091505b50509050806108ec57600080fd5b50565b826001600160a01b03811633146109095761090933611028565b6107a484848461136c565b600c54610100900460ff166109635760405162461bcd60e51b815260206004820152601060248201526f109d5c9b9a5b99c8191a5cd8589b195960821b60448201526064015b60405180910390fd5b3361096d826109c4565b6001600160a01b0316146109bb5760405162461bcd60e51b81526020600482015260156024820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604482015260640161095a565b6108ec81611387565b600061066982611392565b6109d7611312565b6000600d5411610a295760405162461bcd60e51b815260206004820181905260248201527f4672656520616d6f756e742063616e2774206265206c657373207468616e2031604482015260640161095a565b600d55565b60006001600160a01b038216610a57576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a85611312565b610a8f6000611401565b565b610a99611312565b610a8f6000600855565b610aab611312565b610ab58282611453565b5050565b60606003805461067e90611cc0565b600b8054610ad590611cc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0190611cc0565b8015610b4e5780601f10610b2357610100808354040283529160200191610b4e565b820191906000526020600020905b815481529060010190602001808311610b3157829003601f168201915b505050505081565b3360009081526005602052604081205460c01c600c5490915060ff16610bbe5760405162461bcd60e51b815260206004820152601760248201527f4d696e74206861736e2774207374617274656420796574000000000000000000604482015260640161095a565b61138782610bcf6000546000190190565b610bd99190611d49565b1115610c125760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b604482015260640161095a565b6005610c288367ffffffffffffffff8416611d49565b1115610c675760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161095a565b333214610ca85760405162461bcd60e51b815260206004820152600f60248201526e139bc8189bdd1cc8185b1b1bddd959608a1b604482015260640161095a565b600d548167ffffffffffffffff161015610d3357600d54821115610d2e5734600d5483610cd59190611d5c565b610ce690660aa87bee538000611d10565b1115610d2e5760405162461bcd60e51b8152602060048201526017602482015276125b9cdd59999a58da595b9d08199d5b991cc81cd95b9d604a1b604482015260640161095a565b610d8d565b34610d4583660aa87bee538000611d10565b1115610d8d5760405162461bcd60e51b8152602060048201526017602482015276125b9cdd59999a58da595b9d08199d5b991cc81cd95b9d604a1b604482015260640161095a565b610dcd33610d9b8484611d6f565b6001600160a01b03909116600090815260056020526040902080546001600160c01b031660c09290921b919091179055565b610ab53383611550565b610ddf611312565b600b610ab58282611ddd565b81610df581611028565b610759838361162a565b836001600160a01b0381163314610e1957610e1933611028565b610e2585858585611696565b5050505050565b6060610e3782610ff3565b610e5457604051630a14c4b560e41b815260040160405180910390fd5b6000610e5e6116da565b90508051600003610e7e5760405180602001604052806000815250610ea9565b80610e88846116e9565b604051602001610e99929190611e9d565b6040516020818303038152906040525b9392505050565b610eb8611312565b600c805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610f02611312565b6001600160a01b038116610f675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095a565b6108ec81611401565b60006301ffc9a760e01b6001600160e01b031983161480610fa157506380ac58cd60e01b6001600160e01b03198316145b806106695750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061066957506301ffc9a760e01b6001600160e01b0319831614610669565b600081600111158015611007575060005482105b8015610669575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156108ec57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611095573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b99190611ecc565b6108ec57604051633b79c77360e21b81526001600160a01b038216600482015260240161095a565b60006110ec826109c4565b9050336001600160a01b03821614611125576111088133610ecc565b611125576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061118c82611392565b9050836001600160a01b0316816001600160a01b0316146111bf5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546111eb8187335b6001600160a01b039081169116811491141790565b611216576111f98633610ecc565b61121657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661123d57604051633a954ecd60e21b815260040160405180910390fd5b801561124857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036112da576001840160008181526004602052604081205490036112d85760005481146112d85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020611f4483398151915260405160405180910390a45b505050505050565b600a546001600160a01b03163314610a8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161095a565b61075983838360405180602001604052806000815250610dff565b6108ec81600061172d565b600081806001116113e8576000548110156113e85760008181526004602052604081205490600160e01b821690036113e6575b80600003610ea95750600019016000818152600460205260409020546113c5565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156114c15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161095a565b6001600160a01b0382166115175760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161095a565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008054908290036115755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020611f448339815191528180a4600183015b8181146116005780836000600080516020611f44833981519152600080a46001016115da565b508160000361162157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116a184848461077f565b6001600160a01b0383163b156107a4576116bd84848484611865565b6107a4576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461067e90611cc0565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806117035750819003601f19909101908152919050565b600061173883611392565b90508060008061175686600090815260066020526040902080549091565b9150915084156117965761176b8184336111d6565b611796576117798333610ecc565b61179657604051632ce44b5f60e11b815260040160405180910390fd5b80156117a157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b8516900361182f5760018601600081815260046020526040812054900361182d57600054811461182d5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020611f44833981519152908390a45050600180548101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061189a903390899088908890600401611ee9565b6020604051808303816000875af19250505080156118d5575060408051601f3d908101601f191682019092526118d291810190611f26565b60015b611933573d808015611903576040519150601f19603f3d011682016040523d82523d6000602084013e611908565b606091505b50805160000361192b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b0319811681146108ec57600080fd5b60006020828403121561197957600080fd5b8135610ea981611951565b60005b8381101561199f578181015183820152602001611987565b50506000910152565b600081518084526119c0816020860160208601611984565b601f01601f19169290920160200192915050565b602081526000610ea960208301846119a8565b6000602082840312156119f957600080fd5b5035919050565b80356001600160a01b0381168114611a1757600080fd5b919050565b60008060408385031215611a2f57600080fd5b611a3883611a00565b946020939093013593505050565b600060208284031215611a5857600080fd5b610ea982611a00565b600080600060608486031215611a7657600080fd5b611a7f84611a00565b9250611a8d60208501611a00565b9150604084013590509250925092565b60008060408385031215611ab057600080fd5b50508035926020909101359150565b60008060408385031215611ad257600080fd5b611adb83611a00565b915060208301356001600160601b0381168114611af757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3357611b33611b02565b604051601f8501601f19908116603f01168101908282118183101715611b5b57611b5b611b02565b81604052809350858152868686011115611b7457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba057600080fd5b813567ffffffffffffffff811115611bb757600080fd5b8201601f81018413611bc857600080fd5b61194984823560208401611b18565b80151581146108ec57600080fd5b60008060408385031215611bf857600080fd5b611c0183611a00565b91506020830135611af781611bd7565b60008060008060808587031215611c2757600080fd5b611c3085611a00565b9350611c3e60208601611a00565b925060408501359150606085013567ffffffffffffffff811115611c6157600080fd5b8501601f81018713611c7257600080fd5b611c8187823560208401611b18565b91505092959194509250565b60008060408385031215611ca057600080fd5b611ca983611a00565b9150611cb760208401611a00565b90509250929050565b600181811c90821680611cd457607f821691505b602082108103611cf457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761066957610669611cfa565b600082611d4457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561066957610669611cfa565b8181038181111561066957610669611cfa565b67ffffffffffffffff818116838216019080821115611d9057611d90611cfa565b5092915050565b601f82111561075957600081815260208120601f850160051c81016020861015611dbe5750805b601f850160051c820191505b8181101561130a57828155600101611dca565b815167ffffffffffffffff811115611df757611df7611b02565b611e0b81611e058454611cc0565b84611d97565b602080601f831160018114611e405760008415611e285750858301515b600019600386901b1c1916600185901b17855561130a565b600085815260208120601f198616915b82811015611e6f57888601518255948401946001909101908401611e50565b5085821015611e8d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351611eaf818460208801611984565b835190830190611ec3818360208801611984565b01949350505050565b600060208284031215611ede57600080fd5b8151610ea981611bd7565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f1c908301846119a8565b9695505050505050565b600060208284031215611f3857600080fd5b8151610ea98161195156feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212203364f3c38e7e83daf9818b96ebbb8f8c6be89697799bf47f02c22553c806682d64736f6c63430008120033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f62616679626569653570636670717378716366796d34767634706f626366736d646477687a6b36746d7a6c7668623471747463756263363670766d2f
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80636352211e116101185780639abc8320116100a0578063b88d4fde1161006f578063b88d4fde146105c7578063c87b56dd146105da578063d2ed5c59146105fa578063e985e9c51461060f578063f2fde38b1461062f57600080fd5b80639abc83201461055f578063a0712d6814610574578063a0bcfc7f14610587578063a22cb465146105a757600080fd5b806382785214116100e757806382785214146104dc5780638d859f3e146104f15780638da5cb5b1461050c5780638f2fc60b1461052a57806395d89b411461054a57600080fd5b80636352211e146104675780637040d73f1461048757806370a08231146104a7578063715018a6146104c757600080fd5b806323b872dd1161019b5780633ccfd60b1161016a5780633ccfd60b146103de57806341f43434146103f357806342842e0e1461041557806342966c68146104285780634d7547151461044857600080fd5b806323b872dd146103615780632a1e2edc146103745780632a55205a1461038957806332cb6b0c146103c857600080fd5b80630e6d3a89116101e25780630e6d3a89146102b85780630f2cdd6c146102d25780631370128e146102f557806318160ddd1461030b5780631c3b106d1461032857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611967565b61064f565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61066f565b60405161024091906119d4565b34801561027757600080fd5b5061028b6102863660046119e7565b610701565b6040516001600160a01b039091168152602001610240565b6102b66102b1366004611a1c565b610745565b005b3480156102c457600080fd5b50600c546102349060ff1681565b3480156102de57600080fd5b506102e7600581565b604051908152602001610240565b34801561030157600080fd5b506102e7600d5481565b34801561031757600080fd5b5060015460005403600019016102e7565b34801561033457600080fd5b50610348610343366004611a46565b61075e565b60405167ffffffffffffffff9091168152602001610240565b6102b661036f366004611a61565b61077f565b34801561038057600080fd5b506102b66107aa565b34801561039557600080fd5b506103a96103a4366004611a9d565b6107cf565b604080516001600160a01b039093168352602083019190915201610240565b3480156103d457600080fd5b506102e761138781565b3480156103ea57600080fd5b506102b661087b565b3480156103ff57600080fd5b5061028b6daaeb6d7670e522a718067333cd4e81565b6102b6610423366004611a61565b6108ef565b34801561043457600080fd5b506102b66104433660046119e7565b610914565b34801561045457600080fd5b50600c5461023490610100900460ff1681565b34801561047357600080fd5b5061028b6104823660046119e7565b6109c4565b34801561049357600080fd5b506102b66104a23660046119e7565b6109cf565b3480156104b357600080fd5b506102e76104c2366004611a46565b610a2e565b3480156104d357600080fd5b506102b6610a7d565b3480156104e857600080fd5b506102b6610a91565b3480156104fd57600080fd5b506102e7660aa87bee53800081565b34801561051857600080fd5b50600a546001600160a01b031661028b565b34801561053657600080fd5b506102b6610545366004611abf565b610aa3565b34801561055657600080fd5b5061025e610ab9565b34801561056b57600080fd5b5061025e610ac8565b6102b66105823660046119e7565b610b56565b34801561059357600080fd5b506102b66105a2366004611b8e565b610dd7565b3480156105b357600080fd5b506102b66105c2366004611be5565b610deb565b6102b66105d5366004611c11565b610dff565b3480156105e657600080fd5b5061025e6105f53660046119e7565b610e2c565b34801561060657600080fd5b506102b6610eb0565b34801561061b57600080fd5b5061023461062a366004611c8d565b610ecc565b34801561063b57600080fd5b506102b661064a366004611a46565b610efa565b600061065a82610f70565b80610669575061066982610fbe565b92915050565b60606002805461067e90611cc0565b80601f01602080910402602001604051908101604052809291908181526020018280546106aa90611cc0565b80156106f75780601f106106cc576101008083540402835291602001916106f7565b820191906000526020600020905b8154815290600101906020018083116106da57829003601f168201915b5050505050905090565b600061070c82610ff3565b610729576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161074f81611028565b61075983836110e1565b505050565b6001600160a01b03811660009081526005602052604081205460c01c610669565b826001600160a01b03811633146107995761079933611028565b6107a4848484611181565b50505050565b6107b2611312565b600c805461ff001981166101009182900460ff1615909102179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108445750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610863906001600160601b031687611d10565b61086d9190611d27565b915196919550909350505050565b610883611312565b604051600090735b5c2ffb7fdd115a6c752ee30ead50f06ee1ab139047908381818185875af1925050503d80600081146108d9576040519150601f19603f3d011682016040523d82523d6000602084013e6108de565b606091505b50509050806108ec57600080fd5b50565b826001600160a01b03811633146109095761090933611028565b6107a484848461136c565b600c54610100900460ff166109635760405162461bcd60e51b815260206004820152601060248201526f109d5c9b9a5b99c8191a5cd8589b195960821b60448201526064015b60405180910390fd5b3361096d826109c4565b6001600160a01b0316146109bb5760405162461bcd60e51b81526020600482015260156024820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604482015260640161095a565b6108ec81611387565b600061066982611392565b6109d7611312565b6000600d5411610a295760405162461bcd60e51b815260206004820181905260248201527f4672656520616d6f756e742063616e2774206265206c657373207468616e2031604482015260640161095a565b600d55565b60006001600160a01b038216610a57576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a85611312565b610a8f6000611401565b565b610a99611312565b610a8f6000600855565b610aab611312565b610ab58282611453565b5050565b60606003805461067e90611cc0565b600b8054610ad590611cc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0190611cc0565b8015610b4e5780601f10610b2357610100808354040283529160200191610b4e565b820191906000526020600020905b815481529060010190602001808311610b3157829003601f168201915b505050505081565b3360009081526005602052604081205460c01c600c5490915060ff16610bbe5760405162461bcd60e51b815260206004820152601760248201527f4d696e74206861736e2774207374617274656420796574000000000000000000604482015260640161095a565b61138782610bcf6000546000190190565b610bd99190611d49565b1115610c125760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b604482015260640161095a565b6005610c288367ffffffffffffffff8416611d49565b1115610c675760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161095a565b333214610ca85760405162461bcd60e51b815260206004820152600f60248201526e139bc8189bdd1cc8185b1b1bddd959608a1b604482015260640161095a565b600d548167ffffffffffffffff161015610d3357600d54821115610d2e5734600d5483610cd59190611d5c565b610ce690660aa87bee538000611d10565b1115610d2e5760405162461bcd60e51b8152602060048201526017602482015276125b9cdd59999a58da595b9d08199d5b991cc81cd95b9d604a1b604482015260640161095a565b610d8d565b34610d4583660aa87bee538000611d10565b1115610d8d5760405162461bcd60e51b8152602060048201526017602482015276125b9cdd59999a58da595b9d08199d5b991cc81cd95b9d604a1b604482015260640161095a565b610dcd33610d9b8484611d6f565b6001600160a01b03909116600090815260056020526040902080546001600160c01b031660c09290921b919091179055565b610ab53383611550565b610ddf611312565b600b610ab58282611ddd565b81610df581611028565b610759838361162a565b836001600160a01b0381163314610e1957610e1933611028565b610e2585858585611696565b5050505050565b6060610e3782610ff3565b610e5457604051630a14c4b560e41b815260040160405180910390fd5b6000610e5e6116da565b90508051600003610e7e5760405180602001604052806000815250610ea9565b80610e88846116e9565b604051602001610e99929190611e9d565b6040516020818303038152906040525b9392505050565b610eb8611312565b600c805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610f02611312565b6001600160a01b038116610f675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095a565b6108ec81611401565b60006301ffc9a760e01b6001600160e01b031983161480610fa157506380ac58cd60e01b6001600160e01b03198316145b806106695750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061066957506301ffc9a760e01b6001600160e01b0319831614610669565b600081600111158015611007575060005482105b8015610669575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156108ec57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611095573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b99190611ecc565b6108ec57604051633b79c77360e21b81526001600160a01b038216600482015260240161095a565b60006110ec826109c4565b9050336001600160a01b03821614611125576111088133610ecc565b611125576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061118c82611392565b9050836001600160a01b0316816001600160a01b0316146111bf5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546111eb8187335b6001600160a01b039081169116811491141790565b611216576111f98633610ecc565b61121657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661123d57604051633a954ecd60e21b815260040160405180910390fd5b801561124857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036112da576001840160008181526004602052604081205490036112d85760005481146112d85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020611f4483398151915260405160405180910390a45b505050505050565b600a546001600160a01b03163314610a8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161095a565b61075983838360405180602001604052806000815250610dff565b6108ec81600061172d565b600081806001116113e8576000548110156113e85760008181526004602052604081205490600160e01b821690036113e6575b80600003610ea95750600019016000818152600460205260409020546113c5565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156114c15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161095a565b6001600160a01b0382166115175760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161095a565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008054908290036115755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020611f448339815191528180a4600183015b8181146116005780836000600080516020611f44833981519152600080a46001016115da565b508160000361162157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116a184848461077f565b6001600160a01b0383163b156107a4576116bd84848484611865565b6107a4576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461067e90611cc0565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806117035750819003601f19909101908152919050565b600061173883611392565b90508060008061175686600090815260066020526040902080549091565b9150915084156117965761176b8184336111d6565b611796576117798333610ecc565b61179657604051632ce44b5f60e11b815260040160405180910390fd5b80156117a157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b8516900361182f5760018601600081815260046020526040812054900361182d57600054811461182d5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020611f44833981519152908390a45050600180548101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061189a903390899088908890600401611ee9565b6020604051808303816000875af19250505080156118d5575060408051601f3d908101601f191682019092526118d291810190611f26565b60015b611933573d808015611903576040519150601f19603f3d011682016040523d82523d6000602084013e611908565b606091505b50805160000361192b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b0319811681146108ec57600080fd5b60006020828403121561197957600080fd5b8135610ea981611951565b60005b8381101561199f578181015183820152602001611987565b50506000910152565b600081518084526119c0816020860160208601611984565b601f01601f19169290920160200192915050565b602081526000610ea960208301846119a8565b6000602082840312156119f957600080fd5b5035919050565b80356001600160a01b0381168114611a1757600080fd5b919050565b60008060408385031215611a2f57600080fd5b611a3883611a00565b946020939093013593505050565b600060208284031215611a5857600080fd5b610ea982611a00565b600080600060608486031215611a7657600080fd5b611a7f84611a00565b9250611a8d60208501611a00565b9150604084013590509250925092565b60008060408385031215611ab057600080fd5b50508035926020909101359150565b60008060408385031215611ad257600080fd5b611adb83611a00565b915060208301356001600160601b0381168114611af757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3357611b33611b02565b604051601f8501601f19908116603f01168101908282118183101715611b5b57611b5b611b02565b81604052809350858152868686011115611b7457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba057600080fd5b813567ffffffffffffffff811115611bb757600080fd5b8201601f81018413611bc857600080fd5b61194984823560208401611b18565b80151581146108ec57600080fd5b60008060408385031215611bf857600080fd5b611c0183611a00565b91506020830135611af781611bd7565b60008060008060808587031215611c2757600080fd5b611c3085611a00565b9350611c3e60208601611a00565b925060408501359150606085013567ffffffffffffffff811115611c6157600080fd5b8501601f81018713611c7257600080fd5b611c8187823560208401611b18565b91505092959194509250565b60008060408385031215611ca057600080fd5b611ca983611a00565b9150611cb760208401611a00565b90509250929050565b600181811c90821680611cd457607f821691505b602082108103611cf457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761066957610669611cfa565b600082611d4457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561066957610669611cfa565b8181038181111561066957610669611cfa565b67ffffffffffffffff818116838216019080821115611d9057611d90611cfa565b5092915050565b601f82111561075957600081815260208120601f850160051c81016020861015611dbe5750805b601f850160051c820191505b8181101561130a57828155600101611dca565b815167ffffffffffffffff811115611df757611df7611b02565b611e0b81611e058454611cc0565b84611d97565b602080601f831160018114611e405760008415611e285750858301515b600019600386901b1c1916600185901b17855561130a565b600085815260208120601f198616915b82811015611e6f57888601518255948401946001909101908401611e50565b5085821015611e8d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351611eaf818460208801611984565b835190830190611ec3818360208801611984565b01949350505050565b600060208284031215611ede57600080fd5b8151610ea981611bd7565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f1c908301846119a8565b9695505050505050565b600060208284031215611f3857600080fd5b8151610ea98161195156feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212203364f3c38e7e83daf9818b96ebbb8f8c6be89697799bf47f02c22553c806682d64736f6c63430008120033
Deployed Bytecode Sourcemap
73236:4155:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76935:214;;;;;;;;;;-1:-1:-1;76935:214:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;76935:214:0;;;;;;;;40984:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;47475:218::-;;;;;;;;;;-1:-1:-1;47475:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;47475:218:0;1533:203:1;76184:165:0;;;;;;:::i;:::-;;:::i;:::-;;73515:32;;;;;;;;;;-1:-1:-1;73515:32:0;;;;;;;;73645:42;;;;;;;;;;;;73686:1;73645:42;;;;;2324:25:1;;;2312:2;2297:18;73645:42:0;2178:177:1;73694:23:0;;;;;;;;;;;;;;;;36735:323;;;;;;;;;;-1:-1:-1;74955:1:0;37009:12;36796:7;36993:13;:28;-1:-1:-1;;36993:46:0;36735:323;;74727:112;;;;;;;;;;-1:-1:-1;74727:112:0;;;;;:::i;:::-;;:::i;:::-;;;2725:18:1;2713:31;;;2695:50;;2683:2;2668:18;74727:112:0;2551:200:1;76357:171:0;;;;;;:::i;:::-;;:::i;75212:90::-;;;;;;;;;;;;;:::i;19181:442::-;;;;;;;;;;-1:-1:-1;19181:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3534:32:1;;;3516:51;;3598:2;3583:18;;3576:34;;;;3489:18;19181:442:0;3342:274:1;73597:41:0;;;;;;;;;;;;73634:4;73597:41;;75585:168;;;;;;;;;;;;;:::i;7735:143::-;;;;;;;;;;;;151:42;7735:143;;76536:179;;;;;;:::i;:::-;;:::i;75773:202::-;;;;;;;;;;-1:-1:-1;75773:202:0;;;;;:::i;:::-;;:::i;73554:34::-;;;;;;;;;;-1:-1:-1;73554:34:0;;;;;;;;;;;42377:152;;;;;;;;;;-1:-1:-1;42377:152:0;;;;;:::i;:::-;;:::i;75431:146::-;;;;;;;;;;-1:-1:-1;75431:146:0;;;;;:::i;:::-;;:::i;37919:233::-;;;;;;;;;;-1:-1:-1;37919:233:0;;;;;:::i;:::-;;:::i;13864:103::-;;;;;;;;;;;;;:::i;77302:86::-;;;;;;;;;;;;;:::i;73724:43::-;;;;;;;;;;;;73756:11;73724:43;;13216:87;;;;;;;;;;-1:-1:-1;13289:6:0;;-1:-1:-1;;;;;13289:6:0;13216:87;;77157:137;;;;;;;;;;-1:-1:-1;77157:137:0;;;;;:::i;:::-;;:::i;41160:104::-;;;;;;;;;;;;;:::i;73415:93::-;;;;;;;;;;;;;:::i;73929:758::-;;;;;;:::i;:::-;;:::i;75323:100::-;;;;;;;;;;-1:-1:-1;75323:100:0;;;;;:::i;:::-;;:::i;76000:176::-;;;;;;;;;;-1:-1:-1;76000:176:0;;;;;:::i;:::-;;:::i;76723:204::-;;;;;;:::i;:::-;;:::i;41370:318::-;;;;;;;;;;-1:-1:-1;41370:318:0;;;;;:::i;:::-;;:::i;75097:86::-;;;;;;;;;;;;;:::i;48424:164::-;;;;;;;;;;-1:-1:-1;48424:164:0;;;;;:::i;:::-;;:::i;14122:201::-;;;;;;;;;;-1:-1:-1;14122:201:0;;;;;:::i;:::-;;:::i;76935:214::-;77038:4;77061:38;77087:11;77061:25;:38::i;:::-;:80;;;;77103:38;77129:11;77103:25;:38::i;:::-;77054:87;76935:214;-1:-1:-1;;76935:214:0:o;40984:100::-;41038:13;41071:5;41064:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40984:100;:::o;47475:218::-;47551:7;47576:16;47584:7;47576;:16::i;:::-;47571:64;;47601:34;;-1:-1:-1;;;47601:34:0;;;;;;;;;;;47571:64;-1:-1:-1;47655:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;47655:30:0;;47475:218::o;76184:165::-;76288:8;9517:30;9538:8;9517:20;:30::i;:::-;76309:32:::1;76323:8;76333:7;76309:13;:32::i;:::-;76184:165:::0;;;:::o;74727:112::-;-1:-1:-1;;;;;38894:25:0;;74791:6;38894:25;;;:18;:25;;;;;;32452:3;38894:40;74817:14;38806:137;76357:171;76466:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;76483:37:::1;76502:4;76508:2;76512:7;76483:18;:37::i;:::-;76357:171:::0;;;;:::o;75212:90::-;13102:13;:11;:13::i;:::-;75280:14:::1;::::0;;-1:-1:-1;;75262:32:0;::::1;75280:14;::::0;;;::::1;;;75279:15;75262:32:::0;;::::1;;::::0;;75212:90::o;19181:442::-;19278:7;19336:27;;;:17;:27;;;;;;;;19307:56;;;;;;;;;-1:-1:-1;;;;;19307:56:0;;;;;-1:-1:-1;;;19307:56:0;;;-1:-1:-1;;;;;19307:56:0;;;;;;;;19278:7;;19376:92;;-1:-1:-1;19427:29:0;;;;;;;;;19437:19;19427:29;-1:-1:-1;;;;;19427:29:0;;;;-1:-1:-1;;;19427:29:0;;-1:-1:-1;;;;;19427:29:0;;;;;19376:92;19518:23;;;;19480:21;;19989:5;;19505:36;;-1:-1:-1;;;;;19505:36:0;:10;:36;:::i;:::-;19504:58;;;;:::i;:::-;19583:16;;;;;-1:-1:-1;19181:442:0;;-1:-1:-1;;;;19181:442:0:o;75585:168::-;13102:13;:11;:13::i;:::-;75654:64:::1;::::0;75636:12:::1;::::0;73364:42:::1;::::0;75692:21:::1;::::0;75636:12;75654:64;75636:12;75654:64;75692:21;73364:42;75654:64:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75635:83;;;75737:7;75729:16;;;::::0;::::1;;75624:129;75585:168::o:0;76536:179::-;76649:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;76666:41:::1;76689:4;76695:2;76699:7;76666:22;:41::i;75773:202::-:0;75832:14;;;;;;;75824:43;;;;-1:-1:-1;;;75824:43:0;;8160:2:1;75824:43:0;;;8142:21:1;8199:2;8179:18;;;8172:30;-1:-1:-1;;;8218:18:1;;;8211:46;8274:18;;75824:43:0;;;;;;;;;75906:10;75886:16;75894:7;75886;:16::i;:::-;-1:-1:-1;;;;;75886:30:0;;75878:64;;;;-1:-1:-1;;;75878:64:0;;8505:2:1;75878:64:0;;;8487:21:1;8544:2;8524:18;;;8517:30;-1:-1:-1;;;8563:18:1;;;8556:51;8624:18;;75878:64:0;8303:345:1;75878:64:0;75953:14;75959:7;75953:5;:14::i;42377:152::-;42449:7;42492:27;42511:7;42492:18;:27::i;75431:146::-;13102:13;:11;:13::i;:::-;75508:1:::1;75501:4;;:8;75493:53;;;::::0;-1:-1:-1;;;75493:53:0;;8855:2:1;75493:53:0::1;::::0;::::1;8837:21:1::0;;;8874:18;;;8867:30;8933:34;8913:18;;;8906:62;8985:18;;75493:53:0::1;8653:356:1::0;75493:53:0::1;75557:4;:12:::0;75431:146::o;37919:233::-;37991:7;-1:-1:-1;;;;;38015:19:0;;38011:60;;38043:28;;-1:-1:-1;;;38043:28:0;;;;;;;;;;;38011:60;-1:-1:-1;;;;;;38089:25:0;;;;;:18;:25;;;;;;32078:13;38089:55;;37919:233::o;13864:103::-;13102:13;:11;:13::i;:::-;13929:30:::1;13956:1;13929:18;:30::i;:::-;13864:103::o:0;77302:86::-;13102:13;:11;:13::i;:::-;77357:23:::1;20749:19:::0;;20742:26;20681:95;77157:137;13102:13;:11;:13::i;:::-;77244:42:::1;77263:8;77273:12;77244:18;:42::i;:::-;77157:137:::0;;:::o;41160:104::-;41216:13;41249:7;41242:14;;;;;:::i;73415:93::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;73929:758::-;74013:10;73989:13;38894:25;;;:18;:25;;;;;;32452:3;38894:40;74045:12;;73989:35;;-1:-1:-1;74045:12:0;;74037:48;;;;-1:-1:-1;;;74037:48:0;;9216:2:1;74037:48:0;;;9198:21:1;9255:2;9235:18;;;9228:30;9294:25;9274:18;;;9267:53;9337:18;;74037:48:0;9014:347:1;74037:48:0;73634:4;74121:8;74104:14;37211:7;37402:13;-1:-1:-1;;37402:31:0;;37156:296;74104:14;:25;;;;:::i;:::-;:39;;74096:60;;;;-1:-1:-1;;;74096:60:0;;9698:2:1;74096:60:0;;;9680:21:1;9737:1;9717:18;;;9710:29;-1:-1:-1;;;9755:18:1;;;9748:38;9803:18;;74096:60:0;9496:331:1;74096:60:0;73686:1;74175:17;74184:8;74175:17;;;;:::i;:::-;:35;;74167:62;;;;-1:-1:-1;;;74167:62:0;;10034:2:1;74167:62:0;;;10016:21:1;10073:2;10053:18;;;10046:30;-1:-1:-1;;;10092:18:1;;;10085:44;10146:18;;74167:62:0;9832:338:1;74167:62:0;74248:10;74262:9;74248:23;74240:51;;;;-1:-1:-1;;;74240:51:0;;10377:2:1;74240:51:0;;;10359:21:1;10416:2;10396:18;;;10389:30;-1:-1:-1;;;10435:18:1;;;10428:45;10490:18;;74240:51:0;10175:339:1;74240:51:0;74317:4;;74308:6;:13;;;74304:271;;;74353:4;;74342:8;:15;74338:129;;;74415:9;74406:4;;74395:8;:15;;;;:::i;:::-;74386:25;;73756:11;74386:25;:::i;:::-;:38;;74378:73;;;;-1:-1:-1;;;74378:73:0;;10854:2:1;74378:73:0;;;10836:21:1;10893:2;10873:18;;;10866:30;-1:-1:-1;;;10912:18:1;;;10905:53;10975:18;;74378:73:0;10652:347:1;74378:73:0;74304:271;;;74527:9;74507:16;74515:8;73756:11;74507:16;:::i;:::-;:29;;74499:64;;;;-1:-1:-1;;;74499:64:0;;10854:2:1;74499:64:0;;;10836:21:1;10893:2;10873:18;;;10866:30;-1:-1:-1;;;10912:18:1;;;10905:53;10975:18;;74499:64:0;10652:347:1;74499:64:0;74595:46;74603:10;74615:25;74631:8;74615:6;:25;:::i;:::-;-1:-1:-1;;;;;39220:25:0;;;39203:14;39220:25;;;:18;:25;;;;;;;-1:-1:-1;;;;;39420:32:0;32452:3;39457:24;;;;39419:63;;;;39493:34;;39131:404;74595:46;74652:27;74658:10;74670:8;74652:5;:27::i;75323:100::-;13102:13;:11;:13::i;:::-;75397:7:::1;:18;75407:8:::0;75397:7;:18:::1;:::i;76000:176::-:0;76104:8;9517:30;9538:8;9517:20;:30::i;:::-;76125:43:::1;76149:8;76159;76125:23;:43::i;76723:204::-:0;76855:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;76872:47:::1;76895:4;76901:2;76905:7;76914:4;76872:22;:47::i;:::-;76723:204:::0;;;;;:::o;41370:318::-;41443:13;41474:16;41482:7;41474;:16::i;:::-;41469:59;;41499:29;;-1:-1:-1;;;41499:29:0;;;;;;;;;;;41469:59;41541:21;41565:10;:8;:10::i;:::-;41541:34;;41599:7;41593:21;41618:1;41593:26;:87;;;;;;;;;;;;;;;;;41646:7;41655:18;41665:7;41655:9;:18::i;:::-;41629:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;41593:87;41586:94;41370:318;-1:-1:-1;;;41370:318:0:o;75097:86::-;13102:13;:11;:13::i;:::-;75163:12:::1;::::0;;-1:-1:-1;;75147:28:0;::::1;75163:12;::::0;;::::1;75162:13;75147:28;::::0;;75097:86::o;48424:164::-;-1:-1:-1;;;;;48545:25:0;;;48521:4;48545:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;48424:164::o;14122:201::-;13102:13;:11;:13::i;:::-;-1:-1:-1;;;;;14211:22:0;::::1;14203:73;;;::::0;-1:-1:-1;;;14203:73:0;;14096:2:1;14203:73:0::1;::::0;::::1;14078:21:1::0;14135:2;14115:18;;;14108:30;14174:34;14154:18;;;14147:62;-1:-1:-1;;;14225:18:1;;;14218:36;14271:19;;14203:73:0::1;13894:402:1::0;14203:73:0::1;14287:28;14306:8;14287:18;:28::i;40082:639::-:0;40167:4;-1:-1:-1;;;;;;;;;40491:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;40568:25:0;;;40491:102;:179;;;-1:-1:-1;;;;;;;;40645:25:0;-1:-1:-1;;;40645:25:0;;40082:639::o;18911:215::-;19013:4;-1:-1:-1;;;;;;19037:41:0;;-1:-1:-1;;;19037:41:0;;:81;;-1:-1:-1;;;;;;;;;;16572:40:0;;;19082:36;16463:157;48846:282;48911:4;48967:7;74955:1;48948:26;;:66;;;;;49001:13;;48991:7;:23;48948:66;:153;;;;-1:-1:-1;;49052:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;49052:44:0;:49;;48846:282::o;9660:647::-;151:42;9851:45;:49;9847:453;;10150:67;;-1:-1:-1;;;10150:67:0;;10201:4;10150:67;;;14513:34:1;-1:-1:-1;;;;;14583:15:1;;14563:18;;;14556:43;151:42:0;;10150;;14448:18:1;;10150:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10145:144;;10245:28;;-1:-1:-1;;;10245:28:0;;-1:-1:-1;;;;;1697:32:1;;10245:28:0;;;1679:51:1;1652:18;;10245:28:0;1533:203:1;46908:408:0;46997:13;47013:16;47021:7;47013;:16::i;:::-;46997:32;-1:-1:-1;71241:10:0;-1:-1:-1;;;;;47046:28:0;;;47042:175;;47094:44;47111:5;71241:10;48424:164;:::i;47094:44::-;47089:128;;47166:35;;-1:-1:-1;;;47166:35:0;;;;;;;;;;;47089:128;47229:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;47229:35:0;-1:-1:-1;;;;;47229:35:0;;;;;;;;;47280:28;;47229:24;;47280:28;;;;;;;46986:330;46908:408;;:::o;51114:2825::-;51256:27;51286;51305:7;51286:18;:27::i;:::-;51256:57;;51371:4;-1:-1:-1;;;;;51330:45:0;51346:19;-1:-1:-1;;;;;51330:45:0;;51326:86;;51384:28;;-1:-1:-1;;;51384:28:0;;;;;;;;;;;51326:86;51426:27;50222:24;;;:15;:24;;;;;50450:26;;51617:68;50450:26;51659:4;71241:10;51665:19;-1:-1:-1;;;;;49696:32:0;;;49540:28;;49825:20;;49847:30;;49822:56;;49237:659;51617:68;51612:180;;51705:43;51722:4;71241:10;48424:164;:::i;51705:43::-;51700:92;;51757:35;;-1:-1:-1;;;51757:35:0;;;;;;;;;;;51700:92;-1:-1:-1;;;;;51809:16:0;;51805:52;;51834:23;;-1:-1:-1;;;51834:23:0;;;;;;;;;;;51805:52;52006:15;52003:160;;;52146:1;52125:19;52118:30;52003:160;-1:-1:-1;;;;;52543:24:0;;;;;;;:18;:24;;;;;;52541:26;;-1:-1:-1;;52541:26:0;;;52612:22;;;;;;;;;52610:24;;-1:-1:-1;52610:24:0;;;45766:11;45741:23;45737:41;45724:63;-1:-1:-1;;;45724:63:0;52905:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;53200:47:0;;:52;;53196:627;;53305:1;53295:11;;53273:19;53428:30;;;:17;:30;;;;;;:35;;53424:384;;53566:13;;53551:11;:28;53547:242;;53713:30;;;;:17;:30;;;;;:52;;;53547:242;53254:569;53196:627;53870:7;53866:2;-1:-1:-1;;;;;53851:27:0;53860:4;-1:-1:-1;;;;;53851:27:0;-1:-1:-1;;;;;;;;;;;53851:27:0;;;;;;;;;53889:42;51245:2694;;;51114:2825;;;:::o;13381:132::-;13289:6;;-1:-1:-1;;;;;13289:6:0;71241:10;13445:23;13437:68;;;;-1:-1:-1;;;13437:68:0;;15062:2:1;13437:68:0;;;15044:21:1;;;15081:18;;;15074:30;15140:34;15120:18;;;15113:62;15192:18;;13437:68:0;14860:356:1;54035:193:0;54181:39;54198:4;54204:2;54208:7;54181:39;;;;;;;;;;;;:16;:39::i;65365:89::-;65425:21;65431:7;65440:5;65425;:21::i;43532:1275::-;43599:7;43634;;74955:1;43683:23;43679:1061;;43736:13;;43729:4;:20;43725:1015;;;43774:14;43791:23;;;:17;:23;;;;;;;-1:-1:-1;;;43880:24:0;;:29;;43876:845;;44545:113;44552:6;44562:1;44552:11;44545:113;;-1:-1:-1;;;44623:6:0;44605:25;;;;:17;:25;;;;;;44545:113;;43876:845;43751:989;43725:1015;44768:31;;-1:-1:-1;;;44768:31:0;;;;;;;;;;;14483:191;14576:6;;;-1:-1:-1;;;;;14593:17:0;;;-1:-1:-1;;;;;;14593:17:0;;;;;;;14626:40;;14576:6;;;14593:17;14576:6;;14626:40;;14557:16;;14626:40;14546:128;14483:191;:::o;20273:332::-;19989:5;-1:-1:-1;;;;;20376:33:0;;;;20368:88;;;;-1:-1:-1;;;20368:88:0;;15423:2:1;20368:88:0;;;15405:21:1;15462:2;15442:18;;;15435:30;15501:34;15481:18;;;15474:62;-1:-1:-1;;;15552:18:1;;;15545:40;15602:19;;20368:88:0;15221:406:1;20368:88:0;-1:-1:-1;;;;;20475:22:0;;20467:60;;;;-1:-1:-1;;;20467:60:0;;15834:2:1;20467:60:0;;;15816:21:1;15873:2;15853:18;;;15846:30;15912:27;15892:18;;;15885:55;15957:18;;20467:60:0;15632:349:1;20467:60:0;20562:35;;;;;;;;;-1:-1:-1;;;;;20562:35:0;;;;;;-1:-1:-1;;;;;20562:35:0;;;;;;;;;;-1:-1:-1;;;20540:57:0;;;;:19;:57;20273:332::o;58495:2966::-;58568:20;58591:13;;;58619;;;58615:44;;58641:18;;-1:-1:-1;;;58641:18:0;;;;;;;;;;;58615:44;-1:-1:-1;;;;;59147:22:0;;;;;;:18;:22;;;;32216:2;59147:22;;;:71;;59185:32;59173:45;;59147:71;;;59461:31;;;:17;:31;;;;;-1:-1:-1;46197:15:0;;46171:24;46167:46;45766:11;45741:23;45737:41;45734:52;45724:63;;59461:173;;59696:23;;;;59461:31;;59147:22;;-1:-1:-1;;;;;;;;;;;59147:22:0;;60314:335;60975:1;60961:12;60957:20;60915:346;61016:3;61007:7;61004:16;60915:346;;61234:7;61224:8;61221:1;-1:-1:-1;;;;;;;;;;;61191:1:0;61188;61183:59;61069:1;61056:15;60915:346;;;60919:77;61294:8;61306:1;61294:13;61290:45;;61316:19;;-1:-1:-1;;;61316:19:0;;;;;;;;;;;61290:45;61352:13;:19;-1:-1:-1;76184:165:0;;;:::o;48033:234::-;71241:10;48128:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;48128:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;48128:60:0;;;;;;;;;;48204:55;;540:41:1;;;48128:49:0;;71241:10;48204:55;;513:18:1;48204:55:0;;;;;;;48033:234;;:::o;54826:407::-;55001:31;55014:4;55020:2;55024:7;55001:12;:31::i;:::-;-1:-1:-1;;;;;55047:14:0;;;:19;55043:183;;55086:56;55117:4;55123:2;55127:7;55136:5;55086:30;:56::i;:::-;55081:145;;55170:40;;-1:-1:-1;;;55170:40:0;;;;;;;;;;;74972:100;75024:13;75057:7;75050:14;;;;;:::i;71361:1745::-;71426:17;71860:4;71853;71847:11;71843:22;71952:1;71946:4;71939:15;72027:4;72024:1;72020:12;72013:19;;;72109:1;72104:3;72097:14;72213:3;72452:5;72434:428;72500:1;72495:3;72491:11;72484:18;;72671:2;72665:4;72661:13;72657:2;72653:22;72648:3;72640:36;72765:2;72755:13;;72822:25;72434:428;72822:25;-1:-1:-1;72892:13:0;;;-1:-1:-1;;73007:14:0;;;73069:19;;;73007:14;71361:1745;-1:-1:-1;71361:1745:0:o;65683:3081::-;65763:27;65793;65812:7;65793:18;:27::i;:::-;65763:57;-1:-1:-1;65763:57:0;65833:12;;65955:35;65982:7;50111:27;50222:24;;;:15;:24;;;;;50450:26;;50222:24;;50009:485;65955:35;65898:92;;;;66007:13;66003:316;;;66128:68;66153:15;66170:4;71241:10;66176:19;71154:105;66128:68;66123:184;;66220:43;66237:4;71241:10;48424:164;:::i;66220:43::-;66215:92;;66272:35;;-1:-1:-1;;;66272:35:0;;;;;;;;;;;66215:92;66475:15;66472:160;;;66615:1;66594:19;66587:30;66472:160;-1:-1:-1;;;;;67234:24:0;;;;;;:18;:24;;;;;:60;;67262:32;67234:60;;;45766:11;45741:23;45737:41;45724:63;-1:-1:-1;;;45724:63:0;67532:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;67857:47:0;;:52;;67853:627;;67962:1;67952:11;;67930:19;68085:30;;;:17;:30;;;;;;:35;;68081:384;;68223:13;;68208:11;:28;68204:242;;68370:30;;;;:17;:30;;;;;:52;;;68204:242;67911:569;67853:627;68508:35;;68535:7;;68531:1;;-1:-1:-1;;;;;68508:35:0;;;-1:-1:-1;;;;;;;;;;;68508:35:0;68531:1;;68508:35;-1:-1:-1;;68731:12:0;:14;;;;;;-1:-1:-1;;;;65683:3081:0:o;57317:716::-;57501:88;;-1:-1:-1;;;57501:88:0;;57480:4;;-1:-1:-1;;;;;57501:45:0;;;;;:88;;71241:10;;57568:4;;57574:7;;57583:5;;57501:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57501:88:0;;;;;;;;-1:-1:-1;;57501:88:0;;;;;;;;;;;;:::i;:::-;;;57497:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57784:6;:13;57801:1;57784:18;57780:235;;57830:40;;-1:-1:-1;;;57830:40:0;;;;;;;;;;;57780:235;57973:6;57967:13;57958:6;57954:2;57950:15;57943:38;57497:529;-1:-1:-1;;;;;;57660:64:0;-1:-1:-1;;;57660:64:0;;-1:-1:-1;57497:529:0;57317:716;;;;;;:::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:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:186::-;2419:6;2472:2;2460:9;2451:7;2447:23;2443:32;2440:52;;;2488:1;2485;2478:12;2440:52;2511:29;2530:9;2511:29;:::i;2756:328::-;2833:6;2841;2849;2902:2;2890:9;2881:7;2877:23;2873:32;2870:52;;;2918:1;2915;2908:12;2870:52;2941:29;2960:9;2941:29;:::i;:::-;2931:39;;2989:38;3023:2;3012:9;3008:18;2989:38;:::i;:::-;2979:48;;3074:2;3063:9;3059:18;3046:32;3036:42;;2756:328;;;;;:::o;3089:248::-;3157:6;3165;3218:2;3206:9;3197:7;3193:23;3189:32;3186:52;;;3234:1;3231;3224:12;3186:52;-1:-1:-1;;3257:23:1;;;3327:2;3312:18;;;3299:32;;-1:-1:-1;3089:248:1:o;3860:366::-;3927:6;3935;3988:2;3976:9;3967:7;3963:23;3959:32;3956:52;;;4004:1;4001;3994:12;3956:52;4027:29;4046:9;4027:29;:::i;:::-;4017:39;;4106:2;4095:9;4091:18;4078:32;-1:-1:-1;;;;;4143:5:1;4139:38;4132:5;4129:49;4119:77;;4192:1;4189;4182:12;4119:77;4215:5;4205:15;;;3860:366;;;;;:::o;4231:127::-;4292:10;4287:3;4283:20;4280:1;4273:31;4323:4;4320:1;4313:15;4347:4;4344:1;4337:15;4363:632;4428:5;4458:18;4499:2;4491:6;4488:14;4485:40;;;4505:18;;:::i;:::-;4580:2;4574:9;4548:2;4634:15;;-1:-1:-1;;4630:24:1;;;4656:2;4626:33;4622:42;4610:55;;;4680:18;;;4700:22;;;4677:46;4674:72;;;4726:18;;:::i;:::-;4766:10;4762:2;4755:22;4795:6;4786:15;;4825:6;4817;4810:22;4865:3;4856:6;4851:3;4847:16;4844:25;4841:45;;;4882:1;4879;4872:12;4841:45;4932:6;4927:3;4920:4;4912:6;4908:17;4895:44;4987:1;4980:4;4971:6;4963;4959:19;4955:30;4948:41;;;;4363:632;;;;;:::o;5000:451::-;5069:6;5122:2;5110:9;5101:7;5097:23;5093:32;5090:52;;;5138:1;5135;5128:12;5090:52;5178:9;5165:23;5211:18;5203:6;5200:30;5197:50;;;5243:1;5240;5233:12;5197:50;5266:22;;5319:4;5311:13;;5307:27;-1:-1:-1;5297:55:1;;5348:1;5345;5338:12;5297:55;5371:74;5437:7;5432:2;5419:16;5414:2;5410;5406:11;5371:74;:::i;5456:118::-;5542:5;5535:13;5528:21;5521:5;5518:32;5508:60;;5564:1;5561;5554:12;5579:315;5644:6;5652;5705:2;5693:9;5684:7;5680:23;5676:32;5673:52;;;5721:1;5718;5711:12;5673:52;5744:29;5763:9;5744:29;:::i;:::-;5734:39;;5823:2;5812:9;5808:18;5795:32;5836:28;5858:5;5836:28;:::i;5899:667::-;5994:6;6002;6010;6018;6071:3;6059:9;6050:7;6046:23;6042:33;6039:53;;;6088:1;6085;6078:12;6039:53;6111:29;6130:9;6111:29;:::i;:::-;6101:39;;6159:38;6193:2;6182:9;6178:18;6159:38;:::i;:::-;6149:48;;6244:2;6233:9;6229:18;6216:32;6206:42;;6299:2;6288:9;6284:18;6271:32;6326:18;6318:6;6315:30;6312:50;;;6358:1;6355;6348:12;6312:50;6381:22;;6434:4;6426:13;;6422:27;-1:-1:-1;6412:55:1;;6463:1;6460;6453:12;6412:55;6486:74;6552:7;6547:2;6534:16;6529:2;6525;6521:11;6486:74;:::i;:::-;6476:84;;;5899:667;;;;;;;:::o;6571:260::-;6639:6;6647;6700:2;6688:9;6679:7;6675:23;6671:32;6668:52;;;6716:1;6713;6706:12;6668:52;6739:29;6758:9;6739:29;:::i;:::-;6729:39;;6787:38;6821:2;6810:9;6806:18;6787:38;:::i;:::-;6777:48;;6571:260;;;;;:::o;6836:380::-;6915:1;6911:12;;;;6958;;;6979:61;;7033:4;7025:6;7021:17;7011:27;;6979:61;7086:2;7078:6;7075:14;7055:18;7052:38;7049:161;;7132:10;7127:3;7123:20;7120:1;7113:31;7167:4;7164:1;7157:15;7195:4;7192:1;7185:15;7049:161;;6836:380;;;:::o;7221:127::-;7282:10;7277:3;7273:20;7270:1;7263:31;7313:4;7310:1;7303:15;7337:4;7334:1;7327:15;7353:168;7426:9;;;7457;;7474:15;;;7468:22;;7454:37;7444:71;;7495:18;;:::i;7526:217::-;7566:1;7592;7582:132;;7636:10;7631:3;7627:20;7624:1;7617:31;7671:4;7668:1;7661:15;7699:4;7696:1;7689:15;7582:132;-1:-1:-1;7728:9:1;;7526:217::o;9366:125::-;9431:9;;;9452:10;;;9449:36;;;9465:18;;:::i;10519:128::-;10586:9;;;10607:11;;;10604:37;;;10621:18;;:::i;11004:180::-;11071:18;11109:10;;;11121;;;11105:27;;11144:11;;;11141:37;;;11158:18;;:::i;:::-;11141:37;11004:180;;;;:::o;11315:545::-;11417:2;11412:3;11409:11;11406:448;;;11453:1;11478:5;11474:2;11467:17;11523:4;11519:2;11509:19;11593:2;11581:10;11577:19;11574:1;11570:27;11564:4;11560:38;11629:4;11617:10;11614:20;11611:47;;;-1:-1:-1;11652:4:1;11611:47;11707:2;11702:3;11698:12;11695:1;11691:20;11685:4;11681:31;11671:41;;11762:82;11780:2;11773:5;11770:13;11762:82;;;11825:17;;;11806:1;11795:13;11762:82;;12036:1352;12162:3;12156:10;12189:18;12181:6;12178:30;12175:56;;;12211:18;;:::i;:::-;12240:97;12330:6;12290:38;12322:4;12316:11;12290:38;:::i;:::-;12284:4;12240:97;:::i;:::-;12392:4;;12456:2;12445:14;;12473:1;12468:663;;;;13175:1;13192:6;13189:89;;;-1:-1:-1;13244:19:1;;;13238:26;13189:89;-1:-1:-1;;11993:1:1;11989:11;;;11985:24;11981:29;11971:40;12017:1;12013:11;;;11968:57;13291:81;;12438:944;;12468:663;11262:1;11255:14;;;11299:4;11286:18;;-1:-1:-1;;12504:20:1;;;12622:236;12636:7;12633:1;12630:14;12622:236;;;12725:19;;;12719:26;12704:42;;12817:27;;;;12785:1;12773:14;;;;12652:19;;12622:236;;;12626:3;12886:6;12877:7;12874:19;12871:201;;;12947:19;;;12941:26;-1:-1:-1;;13030:1:1;13026:14;;;13042:3;13022:24;13018:37;13014:42;12999:58;12984:74;;12871:201;-1:-1:-1;;;;;13118:1:1;13102:14;;;13098:22;13085:36;;-1:-1:-1;12036:1352:1:o;13393:496::-;13572:3;13610:6;13604:13;13626:66;13685:6;13680:3;13673:4;13665:6;13661:17;13626:66;:::i;:::-;13755:13;;13714:16;;;;13777:70;13755:13;13714:16;13824:4;13812:17;;13777:70;:::i;:::-;13863:20;;13393:496;-1:-1:-1;;;;13393:496:1:o;14610:245::-;14677:6;14730:2;14718:9;14709:7;14705:23;14701:32;14698:52;;;14746:1;14743;14736:12;14698:52;14778:9;14772:16;14797:28;14819:5;14797:28;:::i;15986:489::-;-1:-1:-1;;;;;16255:15:1;;;16237:34;;16307:15;;16302:2;16287:18;;16280:43;16354:2;16339:18;;16332:34;;;16402:3;16397:2;16382:18;;16375:31;;;16180:4;;16423:46;;16449:19;;16441:6;16423:46;:::i;:::-;16415:54;15986:489;-1:-1:-1;;;;;;15986:489:1:o;16480:249::-;16549:6;16602:2;16590:9;16581:7;16577:23;16573:32;16570:52;;;16618:1;16615;16608:12;16570:52;16650:9;16644:16;16669:30;16693:5;16669:30;:::i
Swarm Source
ipfs://3364f3c38e7e83daf9818b96ebbb8f8c6be89697799bf47f02c22553c806682d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.