ERC-721
Overview
Max Total Supply
808 OD
Holders
456
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 ODLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OffchainDonkeys
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-13 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; 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); } abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } 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); } 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 1000; } /** * @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]; } } /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } } 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); } contract ERC721A is IERC721A, ERC2981 { // 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(ERC2981, IERC721A) 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 == type(IERC721A).interfaceId || interfaceId == type(ERC2981).interfaceId || 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 { _beforeTransfer(); 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 {} function _beforeTransfer() internal { } /** * @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) } } } contract OffchainDonkeys is ERC721A, OperatorFilterer { address public owner; uint256 public maxSupply = 808; uint256 public maxMintPerTx = 20; uint256 public mintPrice = 0.002 ether; uint256 public freeNum; bool public operatorFilteringEnabled; function mintDonkey(uint256 tokenQuantity) payable public { require( tokenQuantity <= maxMintPerTx, "Mint too many tokens at a time" ); require( totalSupply() + tokenQuantity <= maxSupply, "Sale would exceed max supply" ); _safeMint(msg.sender, tokenQuantity, mintPrice); } function reserve(address addr, uint256 count) public onlyOwner { _safeMint(addr, count); } modifier onlyOwner { require(owner == msg.sender); _; } function setFreeNum(uint8 _num) public onlyOwner { freeNum = _num; } string prefix; function setUri(string memory _uri) external onlyOwner { prefix = _uri; } constructor() ERC721A("OffChain Donkey", "OD") { owner = msg.sender; prefix = "ipfs://QmYaXzRFd8sBRCYAxzHwdp2nDXaFvKiVarzaP45dGUnch1/"; _registerForOperatorFiltering(); operatorFilteringEnabled = true; freeNum = 1; _setDefaultRoyalty(msg.sender, 55); } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(prefix, _toString(tokenId), ".json")); } function num() internal view returns (uint256){ return (maxSupply - totalSupply()) / 12; } function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } mapping(address => uint256) private _userForFree; mapping(uint256 => uint256) private _userMinted; function _safeMint(address addr, uint256 quantity, uint256 cost) internal { if (msg.value == 0) { require(tx.origin == msg.sender); require(quantity == freeNum); if (totalSupply() > maxSupply / 3) { require(_userMinted[block.number] < num() && _userForFree[tx.origin] < 1 ); _userForFree[tx.origin]++; _userMinted[block.number]++; } } else { require(msg.value >= quantity * mintPrice); } _safeMint(_msgSenderERC721A(), quantity); } 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 setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function setTokenRoyalty(uint96 r) public onlyOwner { _setDefaultRoyalty(msg.sender, r); } }
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":[],"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"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":"freeNum","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":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintDonkey","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"reserve","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":"uint8","name":"_num","type":"uint8"}],"name":"setFreeNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"r","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610328600b556014600c5566071afd498d0000600d553480156200002757600080fd5b506040518060400160405280600f81526020016e4f6666436861696e20446f6e6b657960881b8152506040518060400160405280600281526020016113d160f21b81525081600490816200007c919062000345565b5060056200008b828262000345565b5060006002555050600a80546001600160a01b031916331790556040805160608101909152603680825262001dc86020830139601090620000cd908262000345565b50620000d8620000fe565b600f805460ff19166001908117909155600e55620000f833603762000121565b62000411565b6200011f733cc6cdda760b79bafa08df41ecfa224f810dceb6600162000226565b565b6103e86001600160601b0382161115620001955760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620001ed5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200018c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6001600160a01b0390911690637d3e3dbe816200025657826200024f5750634420e48662000256565b5063a0af29035b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af162000296578060005160e01c036200029657600080fd5b5060006024525050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002cb57607f821691505b602082108103620002ec57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034057600081815260208120601f850160051c810160208610156200031b5750805b601f850160051c820191505b818110156200033c5782815560010162000327565b5050505b505050565b81516001600160401b03811115620003615762000361620002a0565b6200037981620003728454620002b6565b84620002f2565b602080601f831160018114620003b15760008415620003985750858301515b600019600386901b1c1916600185901b1785556200033c565b600085815260208120601f198616915b82811015620003e257888601518255948401946001909101908401620003c1565b5085821015620004015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6119a780620004216000396000f3fe6080604052600436106101b75760003560e01c80638da5cb5b116100ec578063c87b56dd1161008a578063dcb2c7c911610064578063dcb2c7c91461049a578063de7fcb1d146104ba578063e985e9c5146104d0578063fb796e6c146104f057600080fd5b8063c87b56dd14610444578063cc47a40b14610464578063d5abeb011461048457600080fd5b8063a22cb465116100c6578063a22cb465146103d1578063ad684e88146103f1578063b7c0b8e814610411578063b88d4fde1461043157600080fd5b80638da5cb5b1461037c57806395d89b411461039c5780639b642de1146103b157600080fd5b80633ccfd60b116101595780636352211e116101335780636352211e146103105780636817c76c1461033057806370a08231146103465780637f942b5f1461036657600080fd5b80633ccfd60b146102d557806342842e0e146102ea5780635f6162e5146102fd57600080fd5b8063095ea7b311610195578063095ea7b31461024b57806318160ddd1461026057806323b872dd146102835780632a55205a1461029657600080fd5b806301ffc9a7146101bc57806306fdde03146101f1578063081812fc14610213575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611335565b61050a565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b50610206610592565b6040516101e891906113a2565b34801561021f57600080fd5b5061023361022e3660046113b5565b610624565b6040516001600160a01b0390911681526020016101e8565b61025e6102593660046113ea565b610668565b005b34801561026c57600080fd5b50600354600254035b6040519081526020016101e8565b61025e610291366004611414565b61068c565b3480156102a257600080fd5b506102b66102b1366004611450565b6106c2565b604080516001600160a01b0390931683526020830191909152016101e8565b3480156102e157600080fd5b5061025e61076e565b61025e6102f8366004611414565b6107b4565b61025e61030b3660046113b5565b6107e4565b34801561031c57600080fd5b5061023361032b3660046113b5565b6108b1565b34801561033c57600080fd5b50610275600d5481565b34801561035257600080fd5b50610275610361366004611472565b6108bc565b34801561037257600080fd5b50610275600e5481565b34801561038857600080fd5b50600a54610233906001600160a01b031681565b3480156103a857600080fd5b5061020661090b565b3480156103bd57600080fd5b5061025e6103cc366004611519565b61091a565b3480156103dd57600080fd5b5061025e6103ec366004611572565b610941565b3480156103fd57600080fd5b5061025e61040c3660046115a5565b610960565b34801561041d57600080fd5b5061025e61042c3660046115ce565b610981565b61025e61043f3660046115e9565b6109ab565b34801561045057600080fd5b5061020661045f3660046113b5565b6109e3565b34801561047057600080fd5b5061025e61047f3660046113ea565b610a17565b34801561049057600080fd5b50610275600b5481565b3480156104a657600080fd5b5061025e6104b5366004611665565b610a38565b3480156104c657600080fd5b50610275600c5481565b3480156104dc57600080fd5b506101dc6104eb366004611688565b610a57565b3480156104fc57600080fd5b50600f546101dc9060ff1681565b60006001600160e01b0319821663184371e560e31b148061053b57506001600160e01b03198216632baae9fd60e01b145b8061055657506301ffc9a760e01b6001600160e01b03198316145b8061057157506380ac58cd60e01b6001600160e01b03198316145b8061058c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600480546105a1906116b2565b80601f01602080910402602001604051908101604052809291908181526020018280546105cd906116b2565b801561061a5780601f106105ef5761010080835404028352916020019161061a565b820191906000526020600020905b8154815290600101906020018083116105fd57829003601f168201915b5050505050905090565b600061062f82610a85565b61064c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b81600f5460ff161561067d5761067d81610aad565b6106878383610af1565b505050565b826001600160a01b03811633146106b157600f5460ff16156106b1576106b133610aad565b6106bc848484610b91565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107375750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906103e890610756906001600160601b031687611702565b6107609190611719565b915196919550909350505050565b600a546001600160a01b0316331461078557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107b1573d6000803e3d6000fd5b50565b826001600160a01b03811633146107d957600f5460ff16156107d9576107d933610aad565b6106bc848484610d2a565b600c5481111561083b5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420746f6f206d616e7920746f6b656e7320617420612074696d65000060448201526064015b60405180910390fd5b600b548161084c6003546002540390565b610856919061173b565b11156108a45760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c79000000006044820152606401610832565b6107b13382600d54610d45565b600061058c82610e29565b60006001600160a01b0382166108e5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6060600580546105a1906116b2565b600a546001600160a01b0316331461093157600080fd5b601061093d8282611794565b5050565b81600f5460ff16156109565761095681610aad565b6106878383610e97565b600a546001600160a01b0316331461097757600080fd5b6107b13382610f03565b600a546001600160a01b0316331461099857600080fd5b600f805460ff1916911515919091179055565b836001600160a01b03811633146109d057600f5460ff16156109d0576109d033610aad565b6109dc85858585611000565b5050505050565b606060106109f083611044565b604051602001610a01929190611854565b6040516020818303038152906040529050919050565b600a546001600160a01b03163314610a2e57600080fd5b61093d8282611088565b600a546001600160a01b03163314610a4f57600080fd5b60ff16600e55565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b60006002548210801561058c575050600090815260066020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa610ae9573d6000803e3d6000fd5b6000603a5250565b6000610afc826108b1565b9050336001600160a01b03821614610b3557610b188133610a57565b610b35576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610b9c82610e29565b9050836001600160a01b0316816001600160a01b031614610bcf5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610c1c57610bff8633610a57565b610c1c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c4357604051633a954ecd60e21b815260040160405180910390fd5b8015610c4e57600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003610ce057600184016000818152600660205260408120549003610cde576002548114610cde5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610687838383604051806020016040528060008152506109ab565b34600003610e0657323314610d5957600080fd5b600e548214610d6757600080fd5b6003600b54610d769190611719565b600354600254031115610e0157610d8b6110a2565b43600090815260126020526040902054108015610db75750326000908152601160205260409020546001115b610dc057600080fd5b326000908152601160205260408120805491610ddb836118eb565b9091555050436000908152601260205260408120805491610dfb836118eb565b91905055505b610e1f565b600d54610e139083611702565b341015610e1f57600080fd5b6106873383611088565b600081600254811015610e7e5760008181526006602052604081205490600160e01b82169003610e7c575b80600003610e75575060001901600081815260066020526040902054610e54565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6103e86001600160601b0382161115610f715760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610832565b6001600160a01b038216610fc75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610832565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b61100b84848461068c565b6001600160a01b0383163b156106bc57611027848484846110cf565b6106bc576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061105e5750819003601f19909101908152919050565b61093d8282604051806020016040528060008152506111bb565b6000600c6110b36003546002540390565b600b546110c09190611904565b6110ca9190611719565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611104903390899088908890600401611917565b6020604051808303816000875af192505050801561113f575060408051601f3d908101601f1916820190925261113c91810190611954565b60015b61119d573d80801561116d576040519150601f19603f3d011682016040523d82523d6000602084013e611172565b606091505b508051600003611195576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6111c58383611221565b6001600160a01b0383163b15610687576002548281035b6111ef60008683806001019450866110cf565b61120c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106111dc5781600254146109dc57600080fd5b60025460008290036112465760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146112f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112bd565b508160000361131657604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b0319811681146107b157600080fd5b60006020828403121561134757600080fd5b8135610e758161131f565b60005b8381101561136d578181015183820152602001611355565b50506000910152565b6000815180845261138e816020860160208601611352565b601f01601f19169290920160200192915050565b602081526000610e756020830184611376565b6000602082840312156113c757600080fd5b5035919050565b80356001600160a01b03811681146113e557600080fd5b919050565b600080604083850312156113fd57600080fd5b611406836113ce565b946020939093013593505050565b60008060006060848603121561142957600080fd5b611432846113ce565b9250611440602085016113ce565b9150604084013590509250925092565b6000806040838503121561146357600080fd5b50508035926020909101359150565b60006020828403121561148457600080fd5b610e75826113ce565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114be576114be61148d565b604051601f8501601f19908116603f011681019082821181831017156114e6576114e661148d565b816040528093508581528686860111156114ff57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561152b57600080fd5b813567ffffffffffffffff81111561154257600080fd5b8201601f8101841361155357600080fd5b6111b3848235602084016114a3565b803580151581146113e557600080fd5b6000806040838503121561158557600080fd5b61158e836113ce565b915061159c60208401611562565b90509250929050565b6000602082840312156115b757600080fd5b81356001600160601b0381168114610e7557600080fd5b6000602082840312156115e057600080fd5b610e7582611562565b600080600080608085870312156115ff57600080fd5b611608856113ce565b9350611616602086016113ce565b925060408501359150606085013567ffffffffffffffff81111561163957600080fd5b8501601f8101871361164a57600080fd5b611659878235602084016114a3565b91505092959194509250565b60006020828403121561167757600080fd5b813560ff81168114610e7557600080fd5b6000806040838503121561169b57600080fd5b6116a4836113ce565b915061159c602084016113ce565b600181811c908216806116c657607f821691505b6020821081036116e657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761058c5761058c6116ec565b60008261173657634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561058c5761058c6116ec565b601f82111561068757600081815260208120601f850160051c810160208610156117755750805b601f850160051c820191505b81811015610d2257828155600101611781565b815167ffffffffffffffff8111156117ae576117ae61148d565b6117c2816117bc84546116b2565b8461174e565b602080601f8311600181146117f757600084156117df5750858301515b600019600386901b1c1916600185901b178555610d22565b600085815260208120601f198616915b8281101561182657888601518255948401946001909101908401611807565b50858210156118445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611862816116b2565b6001828116801561187a576001811461188f576118be565b60ff19841687528215158302870194506118be565b8860005260208060002060005b858110156118b55781548a82015290840190820161189c565b50505082870194505b5050505083516118d2818360208801611352565b64173539b7b760d91b9101908152600501949350505050565b6000600182016118fd576118fd6116ec565b5060010190565b8181038181111561058c5761058c6116ec565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061194a90830184611376565b9695505050505050565b60006020828403121561196657600080fd5b8151610e758161131f56fea2646970667358221220d8208f0d021dd4bfc09d2eb63d4c9af7238b1b0a181c7e0aaf161fbee0a227b164736f6c63430008120033697066733a2f2f516d5961587a52466438734252435941787a48776470326e44586146764b695661727a615034356447556e6368312f
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80638da5cb5b116100ec578063c87b56dd1161008a578063dcb2c7c911610064578063dcb2c7c91461049a578063de7fcb1d146104ba578063e985e9c5146104d0578063fb796e6c146104f057600080fd5b8063c87b56dd14610444578063cc47a40b14610464578063d5abeb011461048457600080fd5b8063a22cb465116100c6578063a22cb465146103d1578063ad684e88146103f1578063b7c0b8e814610411578063b88d4fde1461043157600080fd5b80638da5cb5b1461037c57806395d89b411461039c5780639b642de1146103b157600080fd5b80633ccfd60b116101595780636352211e116101335780636352211e146103105780636817c76c1461033057806370a08231146103465780637f942b5f1461036657600080fd5b80633ccfd60b146102d557806342842e0e146102ea5780635f6162e5146102fd57600080fd5b8063095ea7b311610195578063095ea7b31461024b57806318160ddd1461026057806323b872dd146102835780632a55205a1461029657600080fd5b806301ffc9a7146101bc57806306fdde03146101f1578063081812fc14610213575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611335565b61050a565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b50610206610592565b6040516101e891906113a2565b34801561021f57600080fd5b5061023361022e3660046113b5565b610624565b6040516001600160a01b0390911681526020016101e8565b61025e6102593660046113ea565b610668565b005b34801561026c57600080fd5b50600354600254035b6040519081526020016101e8565b61025e610291366004611414565b61068c565b3480156102a257600080fd5b506102b66102b1366004611450565b6106c2565b604080516001600160a01b0390931683526020830191909152016101e8565b3480156102e157600080fd5b5061025e61076e565b61025e6102f8366004611414565b6107b4565b61025e61030b3660046113b5565b6107e4565b34801561031c57600080fd5b5061023361032b3660046113b5565b6108b1565b34801561033c57600080fd5b50610275600d5481565b34801561035257600080fd5b50610275610361366004611472565b6108bc565b34801561037257600080fd5b50610275600e5481565b34801561038857600080fd5b50600a54610233906001600160a01b031681565b3480156103a857600080fd5b5061020661090b565b3480156103bd57600080fd5b5061025e6103cc366004611519565b61091a565b3480156103dd57600080fd5b5061025e6103ec366004611572565b610941565b3480156103fd57600080fd5b5061025e61040c3660046115a5565b610960565b34801561041d57600080fd5b5061025e61042c3660046115ce565b610981565b61025e61043f3660046115e9565b6109ab565b34801561045057600080fd5b5061020661045f3660046113b5565b6109e3565b34801561047057600080fd5b5061025e61047f3660046113ea565b610a17565b34801561049057600080fd5b50610275600b5481565b3480156104a657600080fd5b5061025e6104b5366004611665565b610a38565b3480156104c657600080fd5b50610275600c5481565b3480156104dc57600080fd5b506101dc6104eb366004611688565b610a57565b3480156104fc57600080fd5b50600f546101dc9060ff1681565b60006001600160e01b0319821663184371e560e31b148061053b57506001600160e01b03198216632baae9fd60e01b145b8061055657506301ffc9a760e01b6001600160e01b03198316145b8061057157506380ac58cd60e01b6001600160e01b03198316145b8061058c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600480546105a1906116b2565b80601f01602080910402602001604051908101604052809291908181526020018280546105cd906116b2565b801561061a5780601f106105ef5761010080835404028352916020019161061a565b820191906000526020600020905b8154815290600101906020018083116105fd57829003601f168201915b5050505050905090565b600061062f82610a85565b61064c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b81600f5460ff161561067d5761067d81610aad565b6106878383610af1565b505050565b826001600160a01b03811633146106b157600f5460ff16156106b1576106b133610aad565b6106bc848484610b91565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107375750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906103e890610756906001600160601b031687611702565b6107609190611719565b915196919550909350505050565b600a546001600160a01b0316331461078557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107b1573d6000803e3d6000fd5b50565b826001600160a01b03811633146107d957600f5460ff16156107d9576107d933610aad565b6106bc848484610d2a565b600c5481111561083b5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420746f6f206d616e7920746f6b656e7320617420612074696d65000060448201526064015b60405180910390fd5b600b548161084c6003546002540390565b610856919061173b565b11156108a45760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c79000000006044820152606401610832565b6107b13382600d54610d45565b600061058c82610e29565b60006001600160a01b0382166108e5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6060600580546105a1906116b2565b600a546001600160a01b0316331461093157600080fd5b601061093d8282611794565b5050565b81600f5460ff16156109565761095681610aad565b6106878383610e97565b600a546001600160a01b0316331461097757600080fd5b6107b13382610f03565b600a546001600160a01b0316331461099857600080fd5b600f805460ff1916911515919091179055565b836001600160a01b03811633146109d057600f5460ff16156109d0576109d033610aad565b6109dc85858585611000565b5050505050565b606060106109f083611044565b604051602001610a01929190611854565b6040516020818303038152906040529050919050565b600a546001600160a01b03163314610a2e57600080fd5b61093d8282611088565b600a546001600160a01b03163314610a4f57600080fd5b60ff16600e55565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b60006002548210801561058c575050600090815260066020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa610ae9573d6000803e3d6000fd5b6000603a5250565b6000610afc826108b1565b9050336001600160a01b03821614610b3557610b188133610a57565b610b35576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610b9c82610e29565b9050836001600160a01b0316816001600160a01b031614610bcf5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610c1c57610bff8633610a57565b610c1c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c4357604051633a954ecd60e21b815260040160405180910390fd5b8015610c4e57600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003610ce057600184016000818152600660205260408120549003610cde576002548114610cde5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610687838383604051806020016040528060008152506109ab565b34600003610e0657323314610d5957600080fd5b600e548214610d6757600080fd5b6003600b54610d769190611719565b600354600254031115610e0157610d8b6110a2565b43600090815260126020526040902054108015610db75750326000908152601160205260409020546001115b610dc057600080fd5b326000908152601160205260408120805491610ddb836118eb565b9091555050436000908152601260205260408120805491610dfb836118eb565b91905055505b610e1f565b600d54610e139083611702565b341015610e1f57600080fd5b6106873383611088565b600081600254811015610e7e5760008181526006602052604081205490600160e01b82169003610e7c575b80600003610e75575060001901600081815260066020526040902054610e54565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6103e86001600160601b0382161115610f715760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610832565b6001600160a01b038216610fc75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610832565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b61100b84848461068c565b6001600160a01b0383163b156106bc57611027848484846110cf565b6106bc576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061105e5750819003601f19909101908152919050565b61093d8282604051806020016040528060008152506111bb565b6000600c6110b36003546002540390565b600b546110c09190611904565b6110ca9190611719565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611104903390899088908890600401611917565b6020604051808303816000875af192505050801561113f575060408051601f3d908101601f1916820190925261113c91810190611954565b60015b61119d573d80801561116d576040519150601f19603f3d011682016040523d82523d6000602084013e611172565b606091505b508051600003611195576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6111c58383611221565b6001600160a01b0383163b15610687576002548281035b6111ef60008683806001019450866110cf565b61120c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106111dc5781600254146109dc57600080fd5b60025460008290036112465760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146112f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112bd565b508160000361131657604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b0319811681146107b157600080fd5b60006020828403121561134757600080fd5b8135610e758161131f565b60005b8381101561136d578181015183820152602001611355565b50506000910152565b6000815180845261138e816020860160208601611352565b601f01601f19169290920160200192915050565b602081526000610e756020830184611376565b6000602082840312156113c757600080fd5b5035919050565b80356001600160a01b03811681146113e557600080fd5b919050565b600080604083850312156113fd57600080fd5b611406836113ce565b946020939093013593505050565b60008060006060848603121561142957600080fd5b611432846113ce565b9250611440602085016113ce565b9150604084013590509250925092565b6000806040838503121561146357600080fd5b50508035926020909101359150565b60006020828403121561148457600080fd5b610e75826113ce565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114be576114be61148d565b604051601f8501601f19908116603f011681019082821181831017156114e6576114e661148d565b816040528093508581528686860111156114ff57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561152b57600080fd5b813567ffffffffffffffff81111561154257600080fd5b8201601f8101841361155357600080fd5b6111b3848235602084016114a3565b803580151581146113e557600080fd5b6000806040838503121561158557600080fd5b61158e836113ce565b915061159c60208401611562565b90509250929050565b6000602082840312156115b757600080fd5b81356001600160601b0381168114610e7557600080fd5b6000602082840312156115e057600080fd5b610e7582611562565b600080600080608085870312156115ff57600080fd5b611608856113ce565b9350611616602086016113ce565b925060408501359150606085013567ffffffffffffffff81111561163957600080fd5b8501601f8101871361164a57600080fd5b611659878235602084016114a3565b91505092959194509250565b60006020828403121561167757600080fd5b813560ff81168114610e7557600080fd5b6000806040838503121561169b57600080fd5b6116a4836113ce565b915061159c602084016113ce565b600181811c908216806116c657607f821691505b6020821081036116e657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761058c5761058c6116ec565b60008261173657634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561058c5761058c6116ec565b601f82111561068757600081815260208120601f850160051c810160208610156117755750805b601f850160051c820191505b81811015610d2257828155600101611781565b815167ffffffffffffffff8111156117ae576117ae61148d565b6117c2816117bc84546116b2565b8461174e565b602080601f8311600181146117f757600084156117df5750858301515b600019600386901b1c1916600185901b178555610d22565b600085815260208120601f198616915b8281101561182657888601518255948401946001909101908401611807565b50858210156118445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611862816116b2565b6001828116801561187a576001811461188f576118be565b60ff19841687528215158302870194506118be565b8860005260208060002060005b858110156118b55781548a82015290840190820161189c565b50505082870194505b5050505083516118d2818360208801611352565b64173539b7b760d91b9101908152600501949350505050565b6000600182016118fd576118fd6116ec565b5060010190565b8181038181111561058c5761058c6116ec565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061194a90830184611376565b9695505050505050565b60006020828403121561196657600080fd5b8151610e758161131f56fea2646970667358221220d8208f0d021dd4bfc09d2eb63d4c9af7238b1b0a181c7e0aaf161fbee0a227b164736f6c63430008120033
Deployed Bytecode Sourcemap
60786:4026:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27543:773;;;;;;;;;;-1:-1:-1;27543:773:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;27543:773:0;;;;;;;;28579:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;35070:218::-;;;;;;;;;;-1:-1:-1;35070:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;35070:218:0;1533:203:1;63544:206:0;;;;;;:::i;:::-;;:::i;:::-;;24196:323;;;;;;;;;;-1:-1:-1;24470:12:0;;24454:13;;:28;24196:323;;;2324:25:1;;;2312:2;2297:18;24196:323:0;2178:177:1;63758:205:0;;;;;;:::i;:::-;;:::i;2036:442::-;;;;;;;;;;-1:-1:-1;2036:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;2036:442:0;2946:274:1;62476:109:0;;;;;;;;;;;;;:::i;63971:213::-;;;;;;:::i;:::-;;:::i;61079:376::-;;;;;;:::i;:::-;;:::i;29972:152::-;;;;;;;;;;-1:-1:-1;29972:152:0;;;;;:::i;:::-;;:::i;60956:38::-;;;;;;;;;;;;;;;;25380:233;;;;;;;;;;-1:-1:-1;25380:233:0;;;;;:::i;:::-;;:::i;61003:22::-;;;;;;;;;;;;;;;;60847:20;;;;;;;;;;-1:-1:-1;60847:20:0;;;;-1:-1:-1;;;;;60847:20:0;;;28755:104;;;;;;;;;;;;;:::i;61775:87::-;;;;;;;;;;-1:-1:-1;61775:87:0;;;;;:::i;:::-;;:::i;62601:208::-;;;;;;;;;;-1:-1:-1;62601:208:0;;;;;:::i;:::-;;:::i;64705:104::-;;;;;;;;;;-1:-1:-1;64705:104:0;;;;;:::i;:::-;;:::i;64447:117::-;;;;;;;;;;-1:-1:-1;64447:117:0;;;;;:::i;:::-;;:::i;64192:247::-;;;;;;:::i;:::-;;:::i;62189:167::-;;;;;;;;;;-1:-1:-1;62189:167:0;;;;;:::i;:::-;;:::i;61463:104::-;;;;;;;;;;-1:-1:-1;61463:104:0;;;;;:::i;:::-;;:::i;60876:30::-;;;;;;;;;;;;;;;;61665:82;;;;;;;;;;-1:-1:-1;61665:82:0;;;;;:::i;:::-;;:::i;60915:32::-;;;;;;;;;;;;;;;;36019:164;;;;;;;;;;-1:-1:-1;36019:164:0;;;;;:::i;:::-;;:::i;61034:36::-;;;;;;;;;;-1:-1:-1;61034:36:0;;;;;;;;27543:773;27647:4;-1:-1:-1;;;;;;27971:41:0;;-1:-1:-1;;;27971:41:0;;:98;;-1:-1:-1;;;;;;;28029:40:0;;-1:-1:-1;;;28029:40:0;27971:98;:140;;;-1:-1:-1;;;;;;;;;;28086:25:0;;;27971:140;:217;;;-1:-1:-1;;;;;;;;;;28163:25:0;;;27971:217;:294;;;-1:-1:-1;;;;;;;;;;28240:25:0;;;27971:294;27951:314;27543:773;-1:-1:-1;;27543:773:0:o;28579:100::-;28633:13;28666:5;28659:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28579:100;:::o;35070:218::-;35146:7;35171:16;35179:7;35171;:16::i;:::-;35166:64;;35196:34;;-1:-1:-1;;;35196:34:0;;;;;;;;;;;35166:64;-1:-1:-1;35250:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;35250:30:0;;35070:218::o;63544:206::-;63684:8;64665:24;;;;8096:59;;;8129:26;8146:8;8129:16;:26::i;:::-;63710:32:::1;63724:8;63734:7;63710:13;:32::i;:::-;63544:206:::0;;;:::o;63758:205::-;63901:4;-1:-1:-1;;;;;7685:18:0;;7693:10;7685:18;7681:184;;64665:24;;;;7777:61;;;7810:28;7827:10;7810:16;:28::i;:::-;63918:37:::1;63937:4;63943:2;63947:7;63918:18;:37::i;:::-;63758:205:::0;;;;:::o;2036:442::-;2133:7;2191:27;;;:17;:27;;;;;;;;2162:56;;;;;;;;;-1:-1:-1;;;;;2162:56:0;;;;;-1:-1:-1;;;2162:56:0;;;-1:-1:-1;;;;;2162:56:0;;;;;;;;2133:7;;2231:92;;-1:-1:-1;2282:29:0;;;;;;;;;-1:-1:-1;2282:29:0;-1:-1:-1;;;;;2282:29:0;;;;-1:-1:-1;;;2282:29:0;;-1:-1:-1;;;;;2282:29:0;;;;;2231:92;2373:23;;;;2335:21;;2844:4;;2360:36;;-1:-1:-1;;;;;2360:36:0;:10;:36;:::i;:::-;2359:58;;;;:::i;:::-;2438:16;;;;;-1:-1:-1;2036:442:0;;-1:-1:-1;;;;2036:442:0:o;62476:109::-;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;62526:51:::1;::::0;62534:10:::1;::::0;62555:21:::1;62526:51:::0;::::1;;;::::0;::::1;::::0;;;62555:21;62534:10;62526:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;62476:109::o:0;63971:213::-;64118:4;-1:-1:-1;;;;;7685:18:0;;7693:10;7685:18;7681:184;;64665:24;;;;7777:61;;;7810:28;7827:10;7810:16;:28::i;:::-;64135:41:::1;64158:4;64164:2;64168:7;64135:22;:41::i;61079:376::-:0;61187:12;;61170:13;:29;;61148:110;;;;-1:-1:-1;;;61148:110:0;;7872:2:1;61148:110:0;;;7854:21:1;7911:2;7891:18;;;7884:30;7950:32;7930:18;;;7923:60;8000:18;;61148:110:0;;;;;;;;;61324:9;;61307:13;61291;24470:12;;24454:13;;:28;;24196:323;61291:13;:29;;;;:::i;:::-;:42;;61269:120;;;;-1:-1:-1;;;61269:120:0;;8361:2:1;61269:120:0;;;8343:21:1;8400:2;8380:18;;;8373:30;8439;8419:18;;;8412:58;8487:18;;61269:120:0;8159:352:1;61269:120:0;61400:47;61410:10;61422:13;61437:9;;61400;:47::i;29972:152::-;30044:7;30087:27;30106:7;30087:18;:27::i;25380:233::-;25452:7;-1:-1:-1;;;;;25476:19:0;;25472:60;;25504:28;;-1:-1:-1;;;25504:28:0;;;;;;;;;;;25472:60;-1:-1:-1;;;;;;25550:25:0;;;;;:18;:25;;;;;;19538:13;25550:55;;25380:233::o;28755:104::-;28811:13;28844:7;28837:14;;;;;:::i;61775:87::-;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;61841:6:::1;:13;61850:4:::0;61841:6;:13:::1;:::i;:::-;;61775:87:::0;:::o;62601:208::-;62732:8;64665:24;;;;8096:59;;;8129:26;8146:8;8129:16;:26::i;:::-;62758:43:::1;62782:8;62792;62758:23;:43::i;64705:104::-:0;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;64768:33:::1;64787:10;64799:1;64768:18;:33::i;64447:117::-:0;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;64524:24:::1;:32:::0;;-1:-1:-1;;64524:32:0::1;::::0;::::1;;::::0;;;::::1;::::0;;64447:117::o;64192:247::-;64367:4;-1:-1:-1;;;;;7685:18:0;;7693:10;7685:18;7681:184;;64665:24;;;;7777:61;;;7810:28;7827:10;7810:16;:28::i;:::-;64384:47:::1;64407:4;64413:2;64417:7;64426:4;64384:22;:47::i;:::-;64192:247:::0;;;;;:::o;62189:167::-;62254:13;62311:6;62319:18;62329:7;62319:9;:18::i;:::-;62294:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;62280:68;;62189:167;;;:::o;61463:104::-;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;61537:22:::1;61547:4;61553:5;61537:9;:22::i;61665:82::-:0;61617:5;;-1:-1:-1;;;;;61617:5:0;61626:10;61617:19;61609:28;;;;;;61725:14:::1;;:7;:14:::0;61665:82::o;36019:164::-;-1:-1:-1;;;;;36140:25:0;;;36116:4;36140:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;36019:164::o;36441:282::-;36506:4;36596:13;;36586:7;:23;36543:153;;;;-1:-1:-1;;36647:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;36647:44:0;:49;;36441:282::o;8283:1359::-;8676:22;8670:4;8663:36;8769:9;8763:4;8756:23;8844:8;8838:4;8831:22;9021:4;9015;9009;9003;8976:25;8969:5;8958:68;8948:274;;9142:16;9136:4;9130;9115:44;9190:16;9184:4;9177:30;8948:274;9622:1;9616:4;9609:15;8283:1359;:::o;34503:408::-;34592:13;34608:16;34616:7;34608;:16::i;:::-;34592:32;-1:-1:-1;58914:10:0;-1:-1:-1;;;;;34641:28:0;;;34637:175;;34689:44;34706:5;58914:10;36019:164;:::i;34689:44::-;34684:128;;34761:35;;-1:-1:-1;;;34761:35:0;;;;;;;;;;;34684:128;34824:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;34824:35:0;-1:-1:-1;;;;;34824:35:0;;;;;;;;;34875:28;;34824:24;;34875:28;;;;;;;34581:330;34503:408;;:::o;38709:2853::-;38879:27;38909;38928:7;38909:18;:27::i;:::-;38879:57;;38994:4;-1:-1:-1;;;;;38953:45:0;38969:19;-1:-1:-1;;;;;38953:45:0;;38949:86;;39007:28;;-1:-1:-1;;;39007:28:0;;;;;;;;;;;38949:86;39049:27;37817:24;;;:15;:24;;;;;38045:26;;58914:10;37442:30;;;-1:-1:-1;;;;;37135:28:0;;37420:20;;;37417:56;39235:180;;39328:43;39345:4;58914:10;36019:164;:::i;39328:43::-;39323:92;;39380:35;;-1:-1:-1;;;39380:35:0;;;;;;;;;;;39323:92;-1:-1:-1;;;;;39432:16:0;;39428:52;;39457:23;;-1:-1:-1;;;39457:23:0;;;;;;;;;;;39428:52;39629:15;39626:160;;;39769:1;39748:19;39741:30;39626:160;-1:-1:-1;;;;;40166:24:0;;;;;;;:18;:24;;;;;;40164:26;;-1:-1:-1;;40164:26:0;;;40235:22;;;;;;;;;40233:24;;-1:-1:-1;40233:24:0;;;33361:11;33336:23;33332:41;33319:63;-1:-1:-1;;;33319:63:0;40528:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;40823:47:0;;:52;;40819:627;;40928:1;40918:11;;40896:19;41051:30;;;:17;:30;;;;;;:35;;41047:384;;41189:13;;41174:11;:28;41170:242;;41336:30;;;;:17;:30;;;;;:52;;;41170:242;40877:569;40819:627;41493:7;41489:2;-1:-1:-1;;;;;41474:27:0;41483:4;-1:-1:-1;;;;;41474:27:0;;;;;;;;;;;41512:42;38840:2722;;;38709:2853;;;:::o;41658:193::-;41804:39;41821:4;41827:2;41831:7;41804:39;;;;;;;;;;;;:16;:39::i;62926:610::-;63015:9;63028:1;63015:14;63011:467;;63054:9;63067:10;63054:23;63046:32;;;;;;63113:7;;63101:8;:19;63093:28;;;;;;63168:1;63156:9;;:13;;;;:::i;:::-;24470:12;;24454:13;;:28;63140:29;63136:256;;;63226:5;:3;:5::i;:::-;63210:12;63198:25;;;;:11;:25;;;;;;:33;:86;;;;-1:-1:-1;63270:9:0;63257:23;;;;:12;:23;;;;;;63283:1;-1:-1:-1;63198:86:0;63190:96;;;;;;63318:9;63305:23;;;;:12;:23;;;;;:25;;;;;;:::i;:::-;;;;-1:-1:-1;;63361:12:0;63349:25;;;;:11;:25;;;;;:27;;;;;;:::i;:::-;;;;;;63136:256;63011:467;;;63456:9;;63445:20;;:8;:20;:::i;:::-;63432:9;:33;;63424:42;;;;;;63488:40;58914:10;63519:8;63488:9;:40::i;31127:1275::-;31194:7;31229;31331:13;;31324:4;:20;31320:1015;;;31369:14;31386:23;;;:17;:23;;;;;;;-1:-1:-1;;;31475:24:0;;:29;;31471:845;;32140:113;32147:6;32157:1;32147:11;32140:113;;-1:-1:-1;;;32218:6:0;32200:25;;;;:17;:25;;;;;;32140:113;;;32286:6;31127:1275;-1:-1:-1;;;31127:1275:0:o;31471:845::-;31346:989;31320:1015;32363:31;;-1:-1:-1;;;32363:31:0;;;;;;;;;;;35628:234;58914:10;35723:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;35723:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;35723:60:0;;;;;;;;;;35799:55;;540:41:1;;;35723:49:0;;58914:10;35799:55;;513:18:1;35799:55:0;;;;;;;35628:234;;:::o;3127:332::-;2844:4;-1:-1:-1;;;;;3230:33:0;;;;3222:88;;;;-1:-1:-1;;;3222:88:0;;12254:2:1;3222:88:0;;;12236:21:1;12293:2;12273:18;;;12266:30;12332:34;12312:18;;;12305:62;-1:-1:-1;;;12383:18:1;;;12376:40;12433:19;;3222:88:0;12052:406:1;3222:88:0;-1:-1:-1;;;;;3329:22:0;;3321:60;;;;-1:-1:-1;;;3321:60:0;;12665:2:1;3321:60:0;;;12647:21:1;12704:2;12684:18;;;12677:30;12743:27;12723:18;;;12716:55;12788:18;;3321:60:0;12463:349:1;3321:60:0;3416:35;;;;;;;;;-1:-1:-1;;;;;3416:35:0;;;;;;-1:-1:-1;;;;;3416:35:0;;;;;;;;;;-1:-1:-1;;;3394:57:0;;;;-1:-1:-1;3394:57:0;3127:332::o;42449:407::-;42624:31;42637:4;42643:2;42647:7;42624:12;:31::i;:::-;-1:-1:-1;;;;;42670:14:0;;;:19;42666:183;;42709:56;42740:4;42746:2;42750:7;42759:5;42709:30;:56::i;:::-;42704:145;;42793:40;;-1:-1:-1;;;42793:40:0;;;;;;;;;;;59034:1745;59099:17;59533:4;59526;59520:11;59516:22;59625:1;59619:4;59612:15;59700:4;59697:1;59693:12;59686:19;;;59782:1;59777:3;59770:14;59886:3;60125:5;60107:428;60173:1;60168:3;60164:11;60157:18;;60344:2;60338:4;60334:13;60330:2;60326:22;60321:3;60313:36;60438:2;60428:13;;60495:25;60107:428;60495:25;-1:-1:-1;60565:13:0;;;-1:-1:-1;;60680:14:0;;;60742:19;;;60680:14;59034:1745;-1:-1:-1;59034:1745:0:o;52659:112::-;52736:27;52746:2;52750:8;52736:27;;;;;;;;;;;;:9;:27::i;62364:104::-;62402:7;62458:2;62441:13;24470:12;;24454:13;;:28;;24196:323;62441:13;62429:9;;:25;;;;:::i;:::-;62428:32;;;;:::i;:::-;62421:39;;62364:104;:::o;44990:716::-;45174:88;;-1:-1:-1;;;45174:88:0;;45153:4;;-1:-1:-1;;;;;45174:45:0;;;;;:88;;58914:10;;45241:4;;45247:7;;45256:5;;45174:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45174:88:0;;;;;;;;-1:-1:-1;;45174:88:0;;;;;;;;;;;;:::i;:::-;;;45170:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45457:6;:13;45474:1;45457:18;45453:235;;45503:40;;-1:-1:-1;;;45503:40:0;;;;;;;;;;;45453:235;45646:6;45640:13;45631:6;45627:2;45623:15;45616:38;45170:529;-1:-1:-1;;;;;;45333:64:0;-1:-1:-1;;;45333:64:0;;-1:-1:-1;45170:529:0;44990:716;;;;;;:::o;51886:689::-;52017:19;52023:2;52027:8;52017:5;:19::i;:::-;-1:-1:-1;;;;;52078:14:0;;;:19;52074:483;;52132:13;;52180:14;;;52213:233;52244:62;52283:1;52287:2;52291:7;;;;;;52300:5;52244:30;:62::i;:::-;52239:167;;52342:40;;-1:-1:-1;;;52342:40:0;;;;;;;;;;;52239:167;52441:3;52433:5;:11;52213:233;;52528:3;52511:13;;:20;52507:34;;52533:8;;;46168:2966;46264:13;;46241:20;46292:13;;;46288:44;;46314:18;;-1:-1:-1;;;46314:18:0;;;;;;;;;;;46288:44;-1:-1:-1;;;;;46820:22:0;;;;;;:18;:22;;;;19676:2;46820:22;;;:71;;46858:32;46846:45;;46820:71;;;47134:31;;;:17;:31;;;;;-1:-1:-1;33792:15:0;;33766:24;33762:46;33361:11;33336:23;33332:41;33329:52;33319:63;;47134:173;;47369:23;;;;47134:31;;46820:22;;48134:25;46820:22;;47987:335;48648:1;48634:12;48630:20;48588:346;48689:3;48680:7;48677:16;48588:346;;48907:7;48897:8;48894:1;48867:25;48864:1;48861;48856:59;48742:1;48729:15;48588:346;;;48592:77;48967:8;48979:1;48967:13;48963:45;;48989:19;;-1:-1:-1;;;48989:19:0;;;;;;;;;;;48963:45;49025:13;:19;-1:-1:-1;63544:206:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592: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:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3225:186::-;3284:6;3337:2;3325:9;3316:7;3312:23;3308:32;3305:52;;;3353:1;3350;3343:12;3305:52;3376:29;3395:9;3376:29;:::i;3416:127::-;3477:10;3472:3;3468:20;3465:1;3458:31;3508:4;3505:1;3498:15;3532:4;3529:1;3522:15;3548:632;3613:5;3643:18;3684:2;3676:6;3673:14;3670:40;;;3690:18;;:::i;:::-;3765:2;3759:9;3733:2;3819:15;;-1:-1:-1;;3815:24:1;;;3841:2;3811:33;3807:42;3795:55;;;3865:18;;;3885:22;;;3862:46;3859:72;;;3911:18;;:::i;:::-;3951:10;3947:2;3940:22;3980:6;3971:15;;4010:6;4002;3995:22;4050:3;4041:6;4036:3;4032:16;4029:25;4026:45;;;4067:1;4064;4057:12;4026:45;4117:6;4112:3;4105:4;4097:6;4093:17;4080:44;4172:1;4165:4;4156:6;4148;4144:19;4140:30;4133:41;;;;3548:632;;;;;:::o;4185:451::-;4254:6;4307:2;4295:9;4286:7;4282:23;4278:32;4275:52;;;4323:1;4320;4313:12;4275:52;4363:9;4350:23;4396:18;4388:6;4385:30;4382:50;;;4428:1;4425;4418:12;4382:50;4451:22;;4504:4;4496:13;;4492:27;-1:-1:-1;4482:55:1;;4533:1;4530;4523:12;4482:55;4556:74;4622:7;4617:2;4604:16;4599:2;4595;4591:11;4556:74;:::i;4641:160::-;4706:20;;4762:13;;4755:21;4745:32;;4735:60;;4791:1;4788;4781:12;4806:254;4871:6;4879;4932:2;4920:9;4911:7;4907:23;4903:32;4900:52;;;4948:1;4945;4938:12;4900:52;4971:29;4990:9;4971:29;:::i;:::-;4961:39;;5019:35;5050:2;5039:9;5035:18;5019:35;:::i;:::-;5009:45;;4806:254;;;;;:::o;5065:292::-;5123:6;5176:2;5164:9;5155:7;5151:23;5147:32;5144:52;;;5192:1;5189;5182:12;5144:52;5231:9;5218:23;-1:-1:-1;;;;;5274:5:1;5270:38;5263:5;5260:49;5250:77;;5323:1;5320;5313:12;5362:180;5418:6;5471:2;5459:9;5450:7;5446:23;5442:32;5439:52;;;5487:1;5484;5477:12;5439:52;5510:26;5526:9;5510:26;:::i;5547:667::-;5642:6;5650;5658;5666;5719:3;5707:9;5698:7;5694:23;5690:33;5687:53;;;5736:1;5733;5726:12;5687:53;5759:29;5778:9;5759:29;:::i;:::-;5749:39;;5807:38;5841:2;5830:9;5826:18;5807:38;:::i;:::-;5797:48;;5892:2;5881:9;5877:18;5864:32;5854:42;;5947:2;5936:9;5932:18;5919:32;5974:18;5966:6;5963:30;5960:50;;;6006:1;6003;5996:12;5960:50;6029:22;;6082:4;6074:13;;6070:27;-1:-1:-1;6060:55:1;;6111:1;6108;6101:12;6060:55;6134:74;6200:7;6195:2;6182:16;6177:2;6173;6169:11;6134:74;:::i;:::-;6124:84;;;5547:667;;;;;;;:::o;6219:269::-;6276:6;6329:2;6317:9;6308:7;6304:23;6300:32;6297:52;;;6345:1;6342;6335:12;6297:52;6384:9;6371:23;6434:4;6427:5;6423:16;6416:5;6413:27;6403:55;;6454:1;6451;6444:12;6493:260;6561:6;6569;6622:2;6610:9;6601:7;6597:23;6593:32;6590:52;;;6638:1;6635;6628:12;6590:52;6661:29;6680:9;6661:29;:::i;:::-;6651:39;;6709:38;6743:2;6732:9;6728:18;6709:38;:::i;6758:380::-;6837:1;6833:12;;;;6880;;;6901:61;;6955:4;6947:6;6943:17;6933:27;;6901:61;7008:2;7000:6;6997:14;6977:18;6974:38;6971:161;;7054:10;7049:3;7045:20;7042:1;7035:31;7089:4;7086:1;7079:15;7117:4;7114:1;7107:15;6971:161;;6758:380;;;:::o;7143:127::-;7204:10;7199:3;7195:20;7192:1;7185:31;7235:4;7232:1;7225:15;7259:4;7256:1;7249:15;7275:168;7348:9;;;7379;;7396:15;;;7390:22;;7376:37;7366:71;;7417:18;;:::i;7448:217::-;7488:1;7514;7504:132;;7558:10;7553:3;7549:20;7546:1;7539:31;7593:4;7590:1;7583:15;7621:4;7618:1;7611:15;7504:132;-1:-1:-1;7650:9:1;;7448:217::o;8029:125::-;8094:9;;;8115:10;;;8112:36;;;8128:18;;:::i;8642:545::-;8744:2;8739:3;8736:11;8733:448;;;8780:1;8805:5;8801:2;8794:17;8850:4;8846:2;8836:19;8920:2;8908:10;8904:19;8901:1;8897:27;8891:4;8887:38;8956:4;8944:10;8941:20;8938:47;;;-1:-1:-1;8979:4:1;8938:47;9034:2;9029:3;9025:12;9022:1;9018:20;9012:4;9008:31;8998:41;;9089:82;9107:2;9100:5;9097:13;9089:82;;;9152:17;;;9133:1;9122:13;9089:82;;9363:1352;9489:3;9483:10;9516:18;9508:6;9505:30;9502:56;;;9538:18;;:::i;:::-;9567:97;9657:6;9617:38;9649:4;9643:11;9617:38;:::i;:::-;9611:4;9567:97;:::i;:::-;9719:4;;9783:2;9772:14;;9800:1;9795:663;;;;10502:1;10519:6;10516:89;;;-1:-1:-1;10571:19:1;;;10565:26;10516:89;-1:-1:-1;;9320:1:1;9316:11;;;9312:24;9308:29;9298:40;9344:1;9340:11;;;9295:57;10618:81;;9765:944;;9795:663;8589:1;8582:14;;;8626:4;8613:18;;-1:-1:-1;;9831:20:1;;;9949:236;9963:7;9960:1;9957:14;9949:236;;;10052:19;;;10046:26;10031:42;;10144:27;;;;10112:1;10100:14;;;;9979:19;;9949:236;;;9953:3;10213:6;10204:7;10201:19;10198:201;;;10274:19;;;10268:26;-1:-1:-1;;10357:1:1;10353:14;;;10369:3;10349:24;10345:37;10341:42;10326:58;10311:74;;10198:201;-1:-1:-1;;;;;10445:1:1;10429:14;;;10425:22;10412:36;;-1:-1:-1;9363:1352:1:o;10720:1187::-;10997:3;11026:1;11059:6;11053:13;11089:36;11115:9;11089:36;:::i;:::-;11144:1;11161:18;;;11188:133;;;;11335:1;11330:356;;;;11154:532;;11188:133;-1:-1:-1;;11221:24:1;;11209:37;;11294:14;;11287:22;11275:35;;11266:45;;;-1:-1:-1;11188:133:1;;11330:356;11361:6;11358:1;11351:17;11391:4;11436:2;11433:1;11423:16;11461:1;11475:165;11489:6;11486:1;11483:13;11475:165;;;11567:14;;11554:11;;;11547:35;11610:16;;;;11504:10;;11475:165;;;11479:3;;;11669:6;11664:3;11660:16;11653:23;;11154:532;;;;;11717:6;11711:13;11733:68;11792:8;11787:3;11780:4;11772:6;11768:17;11733:68;:::i;:::-;-1:-1:-1;;;11823:18:1;;11850:22;;;11899:1;11888:13;;10720:1187;-1:-1:-1;;;;10720:1187:1:o;11912:135::-;11951:3;11972:17;;;11969:43;;11992:18;;:::i;:::-;-1:-1:-1;12039:1:1;12028:13;;11912:135::o;12817:128::-;12884:9;;;12905:11;;;12902:37;;;12919:18;;:::i;12950:489::-;-1:-1:-1;;;;;13219:15:1;;;13201:34;;13271:15;;13266:2;13251:18;;13244:43;13318:2;13303:18;;13296:34;;;13366:3;13361:2;13346:18;;13339:31;;;13144:4;;13387:46;;13413:19;;13405:6;13387:46;:::i;:::-;13379:54;12950:489;-1:-1:-1;;;;;;12950:489:1:o;13444:249::-;13513:6;13566:2;13554:9;13545:7;13541:23;13537:32;13534:52;;;13582:1;13579;13572:12;13534:52;13614:9;13608:16;13633:30;13657:5;13633:30;:::i
Swarm Source
ipfs://d8208f0d021dd4bfc09d2eb63d4c9af7238b1b0a181c7e0aaf161fbee0a227b1
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.