Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 767 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 21111498 | 23 hrs ago | IN | 0 ETH | 0.00015028 | ||||
Mint | 21111454 | 23 hrs ago | IN | 2 ETH | 0.00028086 | ||||
Set Approval For... | 21108764 | 32 hrs ago | IN | 0 ETH | 0.0001756 | ||||
Set Approval For... | 21100704 | 2 days ago | IN | 0 ETH | 0.00029796 | ||||
Set Approval For... | 21100565 | 2 days ago | IN | 0 ETH | 0.00028351 | ||||
Set Approval For... | 21085809 | 4 days ago | IN | 0 ETH | 0.00045789 | ||||
Set Approval For... | 21078144 | 5 days ago | IN | 0 ETH | 0.00044469 | ||||
Transfer From | 21075129 | 6 days ago | IN | 0 ETH | 0.00044706 | ||||
Set Approval For... | 21073535 | 6 days ago | IN | 0 ETH | 0.0007671 | ||||
Aidrop Multiple | 21072265 | 6 days ago | IN | 0 ETH | 0.00106665 | ||||
Withdraw | 21072258 | 6 days ago | IN | 0 ETH | 0.00050596 | ||||
Mint | 21067411 | 7 days ago | IN | 1 ETH | 0.00065076 | ||||
Set Approval For... | 21057450 | 8 days ago | IN | 0 ETH | 0.00033525 | ||||
Set Approval For... | 21057018 | 8 days ago | IN | 0 ETH | 0.00030885 | ||||
Aidrop Multiple | 21043188 | 10 days ago | IN | 0 ETH | 0.00080731 | ||||
Safe Transfer Fr... | 21038158 | 11 days ago | IN | 0 ETH | 0.00078246 | ||||
Aidrop Multiple | 21036055 | 11 days ago | IN | 0 ETH | 0.00091459 | ||||
Withdraw | 21028800 | 12 days ago | IN | 0 ETH | 0.00137504 | ||||
Mint | 21025746 | 12 days ago | IN | 2 ETH | 0.00035948 | ||||
Safe Transfer Fr... | 21023384 | 13 days ago | IN | 0 ETH | 0.00054247 | ||||
Set Approval For... | 21022744 | 13 days ago | IN | 0 ETH | 0.00075718 | ||||
Set Approval For... | 21007997 | 15 days ago | IN | 0 ETH | 0.00064765 | ||||
Set Approval For... | 21006843 | 15 days ago | IN | 0 ETH | 0.0005096 | ||||
Transfer From | 21005686 | 15 days ago | IN | 0 ETH | 0.00032067 | ||||
Transfer From | 21005679 | 15 days ago | IN | 0 ETH | 0.00036573 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
21111498 | 23 hrs ago | 2 ETH | ||||
21072258 | 6 days ago | 1 ETH | ||||
21028800 | 12 days ago | 2 ETH | ||||
20945324 | 24 days ago | 1 ETH | ||||
20943931 | 24 days ago | 1 ETH | ||||
20932239 | 25 days ago | 1 ETH | ||||
20931333 | 26 days ago | 2 ETH | ||||
20925511 | 26 days ago | 1 ETH | ||||
20925126 | 26 days ago | 1 ETH | ||||
20896531 | 30 days ago | 1 ETH | ||||
20828166 | 40 days ago | 1 ETH | ||||
20817357 | 42 days ago | 1 ETH | ||||
20765252 | 49 days ago | 1 ETH | ||||
20730614 | 54 days ago | 1 ETH | ||||
20730179 | 54 days ago | 2 ETH | ||||
20728276 | 54 days ago | 1 ETH | ||||
20727820 | 54 days ago | 3 ETH | ||||
20724388 | 54 days ago | 1 ETH | ||||
20692414 | 59 days ago | 2 ETH | ||||
20676017 | 61 days ago | 1 ETH | ||||
20672952 | 62 days ago | 2 ETH | ||||
20671203 | 62 days ago | 1 ETH | ||||
20626935 | 68 days ago | 6 ETH | ||||
20588145 | 74 days ago | 1 ETH | ||||
20584617 | 74 days ago | 1 ETH |
Loading...
Loading
Contract Name:
CAYC
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; import {ERC721A} from "https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol"; pragma solidity 0.8.20; contract CAYC is ERC721A, ERC2981, Ownable(msg.sender) { error SoldOut(); error InvalidAmount(); error InsufficientEther(); uint256 public constant MAX_SUPPLY = 10000; uint256 public cost = 1 ether; string public baseURI = "ipfs://QmW6zr7L3aEVk6WWKgUwqnXUqBe5uVAKndvUZc6ix7Lh4r/"; string public uriSuffix = ".json"; constructor() ERC721A("Cyber Ape Yacht Club", "CAYC") { _setDefaultRoyalty(msg.sender, 1000); } function mint(uint256 _amount) external payable { if(totalSupply() + _amount > MAX_SUPPLY){ revert SoldOut(); } if(_amount <= 0){ revert InvalidAmount(); } if(msg.value < _amount * cost){ revert InsufficientEther(); } _safeMint(msg.sender, _amount); } function treasuryMint(uint256 _amount) external onlyOwner { if(totalSupply() + _amount > MAX_SUPPLY){ revert SoldOut(); } _safeMint(msg.sender, _amount); } /** * @dev Aidrop tokens to users */ function aidropMultiple(address[] memory recipients, uint256[] memory _amounts ) external onlyOwner { for(uint i=0; i<recipients.length; i++){ _safeMint(recipients[i], _amounts[i]); } } /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view override virtual returns (uint256) { return 1; } /** * @dev Returns the token URL for a tokenId. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "Err: ERC721AMetadata - URI query for nonexistent token" ); return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, _toString(tokenId), uriSuffix) ) : ""; } /** * @dev Withdraw function for the owner of the smart contract. * * Note: Only Native currency of the chain can be withdrawn. */ function withdraw() public payable onlyOwner { // ============================================================================= (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); // ============================================================================= } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setMintCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @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 returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _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 { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _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]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @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 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // 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.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED)) } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); 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.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // 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`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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 + _spotMinted` 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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "remappings": [] }
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":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"InsufficientEther","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"aidropMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setMintCost","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":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
670de0b6b3a7640000600c5560e0604052603660808181529062001ca960a039600d906200002e9082620002c9565b50604080518082019091526005815264173539b7b760d91b6020820152600e906200005a9082620002c9565b5034801562000067575f80fd5b50336040518060400160405280601481526020017f43796265722041706520596163687420436c7562000000000000000000000000815250604051806040016040528060048152602001634341594360e01b8152508160029081620000cd9190620002c9565b506003620000dc8282620002c9565b5060015f5550506001600160a01b0381166200011257604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6200011d8162000132565b506200012c336103e862000183565b62000391565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b038216811015620001c457604051636f483d0960e01b81526001600160601b03831660048201526024810182905260440162000109565b6001600160a01b038316620001ef57604051635b6cc80560e11b81525f600482015260240162000109565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200025257607f821691505b6020821081036200027157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002c4575f81815260208120601f850160051c810160208610156200029f5750805b601f850160051c820191505b81811015620002c057828155600101620002ab565b5050505b505050565b81516001600160401b03811115620002e557620002e562000229565b620002fd81620002f684546200023d565b8462000277565b602080601f83116001811462000333575f84156200031b5750858301515b5f19600386901b1c1916600185901b178555620002c0565b5f85815260208120601f198616915b82811015620003635788860151825594840194600190910190840162000342565b50858210156200038157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b61190a806200039f5f395ff3fe6080604052600436106101af575f3560e01c80636c0360eb116100e7578063a22cb46511610087578063c87b56dd11610062578063c87b56dd14610460578063e985e9c51461047f578063efdc77881461049e578063f2fde38b146104bd575f80fd5b8063a22cb4651461040f578063ae5216241461042e578063b88d4fde1461044d575f80fd5b80638545f4ea116100c25780638545f4ea146103ac5780638da5cb5b146103cb57806395d89b41146103e8578063a0712d68146103fc575f80fd5b80636c0360eb1461036557806370a0823114610379578063715018a614610398575f80fd5b80632a55205a1161015257806342842e0e1161012d57806342842e0e146103005780635503a0e81461031357806355f804b3146103275780636352211e14610346575f80fd5b80632a55205a146102a557806332cb6b0c146102e35780633ccfd60b146102f8575f80fd5b8063095ea7b31161018d578063095ea7b31461023f57806313faede61461025457806318160ddd1461027757806323b872dd14610292575f80fd5b806301ffc9a7146101b357806306fdde03146101e7578063081812fc14610208575b5f80fd5b3480156101be575f80fd5b506101d26101cd3660046111b0565b6104dc565b60405190151581526020015b60405180910390f35b3480156101f2575f80fd5b506101fb6104fb565b6040516101de919061121f565b348015610213575f80fd5b50610227610222366004611231565b61058b565b6040516001600160a01b0390911681526020016101de565b61025261024d36600461125e565b6105c4565b005b34801561025f575f80fd5b50610269600c5481565b6040519081526020016101de565b348015610282575f80fd5b506102696001545f54035f190190565b6102526102a0366004611286565b6105d4565b3480156102b0575f80fd5b506102c46102bf3660046112bf565b61072e565b604080516001600160a01b0390931683526020830191909152016101de565b3480156102ee575f80fd5b5061026961271081565b6102526107d8565b61025261030e366004611286565b61084f565b34801561031e575f80fd5b506101fb61086e565b348015610332575f80fd5b50610252610341366004611379565b6108fa565b348015610351575f80fd5b50610227610360366004611231565b61090e565b348015610370575f80fd5b506101fb610918565b348015610384575f80fd5b506102696103933660046113be565b610925565b3480156103a3575f80fd5b50610252610969565b3480156103b7575f80fd5b506102526103c6366004611231565b61097c565b3480156103d6575f80fd5b50600b546001600160a01b0316610227565b3480156103f3575f80fd5b506101fb610989565b61025261040a366004611231565b610998565b34801561041a575f80fd5b506102526104293660046113d7565b610a2b565b348015610439575f80fd5b5061025261044836600461149b565b610a96565b61025261045b366004611555565b610af7565b34801561046b575f80fd5b506101fb61047a366004611231565b610b38565b34801561048a575f80fd5b506101d26104993660046115cc565b610c10565b3480156104a9575f80fd5b506102526104b8366004611231565b610c3d565b3480156104c8575f80fd5b506102526104d73660046113be565b610c81565b5f6104e682610cbb565b806104f557506104f582610d08565b92915050565b60606002805461050a906115fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610536906115fd565b80156105815780601f1061055857610100808354040283529160200191610581565b820191905f5260205f20905b81548152906001019060200180831161056457829003601f168201915b5050505050905090565b5f61059582610d3c565b6105a9576105a96333d1c03960e21b610d86565b505f908152600660205260409020546001600160a01b031690565b6105d082826001610d8e565b5050565b5f6105de82610e2f565b6001600160a01b0394851694909150811684146106045761060462a1148160e81b610d86565b5f8281526006602052604090208054338082146001600160a01b03881690911417610647576106338633610c10565b61064757610647632ce44b5f60e11b610d86565b8015610651575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b841690036106dd57600184015f8181526004602052604081205490036106db575f5481146106db575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361072557610725633a954ecd60e21b610d86565b50505050505050565b5f828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107a25750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906107c0906001600160601b031687611649565b6107ca9190611660565b915196919550909350505050565b6107e0610ec8565b5f6107f3600b546001600160a01b031690565b6001600160a01b0316476040515f6040518083038185875af1925050503d805f811461083a576040519150601f19603f3d011682016040523d82523d5f602084013e61083f565b606091505b505090508061084c575f80fd5b50565b61086983838360405180602001604052805f815250610af7565b505050565b600e805461087b906115fd565b80601f01602080910402602001604051908101604052809291908181526020018280546108a7906115fd565b80156108f25780601f106108c9576101008083540402835291602001916108f2565b820191905f5260205f20905b8154815290600101906020018083116108d557829003601f168201915b505050505081565b610902610ec8565b600d6105d082826116cc565b5f6104f582610e2f565b600d805461087b906115fd565b5f6001600160a01b038216610944576109446323d3ad8160e21b610d86565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610971610ec8565b61097a5f610ef5565b565b610984610ec8565b600c55565b60606003805461050a906115fd565b612710816109ab6001545f54035f190190565b6109b59190611788565b11156109d4576040516352df9fe560e01b815260040160405180910390fd5b5f81116109f45760405163162908e360e11b815260040160405180910390fd5b600c54610a019082611649565b341015610a2157604051631c0b171360e31b815260040160405180910390fd5b61084c3382610f46565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a9e610ec8565b5f5b825181101561086957610ae5838281518110610abe57610abe61179b565b6020026020010151838381518110610ad857610ad861179b565b6020026020010151610f46565b80610aef816117af565b915050610aa0565b610b028484846105d4565b6001600160a01b0383163b15610b3257610b1e84848484610f5f565b610b3257610b326368d2bf6b60e11b610d86565b50505050565b6060610b4382610d3c565b610bb35760405162461bcd60e51b815260206004820152603660248201527f4572723a20455243373231414d65746164617461202d20555249207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b60648201526084015b60405180910390fd5b5f600d8054610bc1906115fd565b905011610bdc5760405180602001604052805f8152506104f5565b600d610be78361103e565b600e604051602001610bfb93929190611836565b60405160208183030381529060405292915050565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b610c45610ec8565b61271081610c586001545f54035f190190565b610c629190611788565b1115610a21576040516352df9fe560e01b815260040160405180910390fd5b610c89610ec8565b6001600160a01b038116610cb257604051631e4fbdf760e01b81525f6004820152602401610baa565b61084c81610ef5565b5f6301ffc9a760e01b6001600160e01b031983161480610ceb57506380ac58cd60e01b6001600160e01b03198316145b806104f55750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806104f557506301ffc9a760e01b6001600160e01b03198316146104f5565b5f81600111610d81575f54821015610d81575f5b505f8281526004602052604081205490819003610d7757610d7083611868565b9250610d50565b600160e01b161590505b919050565b805f5260045ffd5b5f610d988361090e565b9050818015610db05750336001600160a01b03821614155b15610dd357610dbf8133610c10565b610dd357610dd36367d9dca160e11b610d86565b5f8381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f81600111610eb857505f81815260046020526040902054805f03610ea6575f548210610e6657610e66636f96cda160e11b610d86565b5b505f19015f818152600460205260409020548015610e6757600160e01b81165f03610e9157919050565b610ea1636f96cda160e11b610d86565b610e67565b600160e01b81165f03610eb857919050565b610d81636f96cda160e11b610d86565b600b546001600160a01b0316331461097a5760405163118cdaa760e01b8152336004820152602401610baa565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6105d0828260405180602001604052805f815250611081565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610f9390339089908890889060040161187d565b6020604051808303815f875af1925050508015610fcd575060408051601f3d908101601f19168201909252610fca918101906118b9565b60015b611020573d808015610ffa576040519150601f19603f3d011682016040523d82523d5f602084013e610fff565b606091505b5080515f03611018576110186368d2bf6b60e11b610d86565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806110575750819003601f19909101908152919050565b61108b83836110e1565b6001600160a01b0383163b15610869575f548281035b6110b35f868380600101945086610f5f565b6110c7576110c76368d2bf6b60e11b610d86565b8181106110a157815f54146110da575f80fd5b5050505050565b5f8054908290036110fc576110fc63b562e8dd60e01b610d86565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361115957611159622e076360e81b610d86565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a481816001019150810361115e57505f5550505050565b6001600160e01b03198116811461084c575f80fd5b5f602082840312156111c0575f80fd5b81356111cb8161119b565b9392505050565b5f5b838110156111ec5781810151838201526020016111d4565b50505f910152565b5f815180845261120b8160208601602086016111d2565b601f01601f19169290920160200192915050565b602081525f6111cb60208301846111f4565b5f60208284031215611241575f80fd5b5035919050565b80356001600160a01b0381168114610d81575f80fd5b5f806040838503121561126f575f80fd5b61127883611248565b946020939093013593505050565b5f805f60608486031215611298575f80fd5b6112a184611248565b92506112af60208501611248565b9150604084013590509250925092565b5f80604083850312156112d0575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131c5761131c6112df565b604052919050565b5f67ffffffffffffffff83111561133d5761133d6112df565b611350601f8401601f19166020016112f3565b9050828152838383011115611363575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611389575f80fd5b813567ffffffffffffffff81111561139f575f80fd5b8201601f810184136113af575f80fd5b61103684823560208401611324565b5f602082840312156113ce575f80fd5b6111cb82611248565b5f80604083850312156113e8575f80fd5b6113f183611248565b915060208301358015158114611405575f80fd5b809150509250929050565b5f67ffffffffffffffff821115611429576114296112df565b5060051b60200190565b5f82601f830112611442575f80fd5b8135602061145761145283611410565b6112f3565b82815260059290921b84018101918181019086841115611475575f80fd5b8286015b848110156114905780358352918301918301611479565b509695505050505050565b5f80604083850312156114ac575f80fd5b823567ffffffffffffffff808211156114c3575f80fd5b818501915085601f8301126114d6575f80fd5b813560206114e661145283611410565b82815260059290921b84018101918181019089841115611504575f80fd5b948201945b838610156115295761151a86611248565b82529482019490820190611509565b9650508601359250508082111561153e575f80fd5b5061154b85828601611433565b9150509250929050565b5f805f8060808587031215611568575f80fd5b61157185611248565b935061157f60208601611248565b925060408501359150606085013567ffffffffffffffff8111156115a1575f80fd5b8501601f810187136115b1575f80fd5b6115c087823560208401611324565b91505092959194509250565b5f80604083850312156115dd575f80fd5b6115e683611248565b91506115f460208401611248565b90509250929050565b600181811c9082168061161157607f821691505b60208210810361162f57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176104f5576104f5611635565b5f8261167a57634e487b7160e01b5f52601260045260245ffd5b500490565b601f821115610869575f81815260208120601f850160051c810160208610156116a55750805b601f850160051c820191505b818110156116c4578281556001016116b1565b505050505050565b815167ffffffffffffffff8111156116e6576116e66112df565b6116fa816116f484546115fd565b8461167f565b602080601f83116001811461172d575f84156117165750858301515b5f19600386901b1c1916600185901b1785556116c4565b5f85815260208120601f198616915b8281101561175b5788860151825594840194600190910190840161173c565b508582101561177857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156104f5576104f5611635565b634e487b7160e01b5f52603260045260245ffd5b5f600182016117c0576117c0611635565b5060010190565b5f81546117d3816115fd565b600182811680156117eb57600181146118005761182c565b60ff198416875282151583028701945061182c565b855f526020805f205f5b858110156118235781548a82015290840190820161180a565b50505082870194505b5050505092915050565b5f61184182866117c7565b84516118518183602089016111d2565b61185d818301866117c7565b979650505050505050565b5f8161187657611876611635565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906118af908301846111f4565b9695505050505050565b5f602082840312156118c9575f80fd5b81516111cb8161119b56fea2646970667358221220af84d7e7092649a9fd0b0e77fa7604e9830642ed0af78d683fc60b8954e5f49a64736f6c63430008140033697066733a2f2f516d57367a72374c336145566b3657574b675577716e5855714265357556414b6e6476555a63366978374c6834722f
Deployed Bytecode
0x6080604052600436106101af575f3560e01c80636c0360eb116100e7578063a22cb46511610087578063c87b56dd11610062578063c87b56dd14610460578063e985e9c51461047f578063efdc77881461049e578063f2fde38b146104bd575f80fd5b8063a22cb4651461040f578063ae5216241461042e578063b88d4fde1461044d575f80fd5b80638545f4ea116100c25780638545f4ea146103ac5780638da5cb5b146103cb57806395d89b41146103e8578063a0712d68146103fc575f80fd5b80636c0360eb1461036557806370a0823114610379578063715018a614610398575f80fd5b80632a55205a1161015257806342842e0e1161012d57806342842e0e146103005780635503a0e81461031357806355f804b3146103275780636352211e14610346575f80fd5b80632a55205a146102a557806332cb6b0c146102e35780633ccfd60b146102f8575f80fd5b8063095ea7b31161018d578063095ea7b31461023f57806313faede61461025457806318160ddd1461027757806323b872dd14610292575f80fd5b806301ffc9a7146101b357806306fdde03146101e7578063081812fc14610208575b5f80fd5b3480156101be575f80fd5b506101d26101cd3660046111b0565b6104dc565b60405190151581526020015b60405180910390f35b3480156101f2575f80fd5b506101fb6104fb565b6040516101de919061121f565b348015610213575f80fd5b50610227610222366004611231565b61058b565b6040516001600160a01b0390911681526020016101de565b61025261024d36600461125e565b6105c4565b005b34801561025f575f80fd5b50610269600c5481565b6040519081526020016101de565b348015610282575f80fd5b506102696001545f54035f190190565b6102526102a0366004611286565b6105d4565b3480156102b0575f80fd5b506102c46102bf3660046112bf565b61072e565b604080516001600160a01b0390931683526020830191909152016101de565b3480156102ee575f80fd5b5061026961271081565b6102526107d8565b61025261030e366004611286565b61084f565b34801561031e575f80fd5b506101fb61086e565b348015610332575f80fd5b50610252610341366004611379565b6108fa565b348015610351575f80fd5b50610227610360366004611231565b61090e565b348015610370575f80fd5b506101fb610918565b348015610384575f80fd5b506102696103933660046113be565b610925565b3480156103a3575f80fd5b50610252610969565b3480156103b7575f80fd5b506102526103c6366004611231565b61097c565b3480156103d6575f80fd5b50600b546001600160a01b0316610227565b3480156103f3575f80fd5b506101fb610989565b61025261040a366004611231565b610998565b34801561041a575f80fd5b506102526104293660046113d7565b610a2b565b348015610439575f80fd5b5061025261044836600461149b565b610a96565b61025261045b366004611555565b610af7565b34801561046b575f80fd5b506101fb61047a366004611231565b610b38565b34801561048a575f80fd5b506101d26104993660046115cc565b610c10565b3480156104a9575f80fd5b506102526104b8366004611231565b610c3d565b3480156104c8575f80fd5b506102526104d73660046113be565b610c81565b5f6104e682610cbb565b806104f557506104f582610d08565b92915050565b60606002805461050a906115fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610536906115fd565b80156105815780601f1061055857610100808354040283529160200191610581565b820191905f5260205f20905b81548152906001019060200180831161056457829003601f168201915b5050505050905090565b5f61059582610d3c565b6105a9576105a96333d1c03960e21b610d86565b505f908152600660205260409020546001600160a01b031690565b6105d082826001610d8e565b5050565b5f6105de82610e2f565b6001600160a01b0394851694909150811684146106045761060462a1148160e81b610d86565b5f8281526006602052604090208054338082146001600160a01b03881690911417610647576106338633610c10565b61064757610647632ce44b5f60e11b610d86565b8015610651575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b841690036106dd57600184015f8181526004602052604081205490036106db575f5481146106db575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361072557610725633a954ecd60e21b610d86565b50505050505050565b5f828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107a25750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906107c0906001600160601b031687611649565b6107ca9190611660565b915196919550909350505050565b6107e0610ec8565b5f6107f3600b546001600160a01b031690565b6001600160a01b0316476040515f6040518083038185875af1925050503d805f811461083a576040519150601f19603f3d011682016040523d82523d5f602084013e61083f565b606091505b505090508061084c575f80fd5b50565b61086983838360405180602001604052805f815250610af7565b505050565b600e805461087b906115fd565b80601f01602080910402602001604051908101604052809291908181526020018280546108a7906115fd565b80156108f25780601f106108c9576101008083540402835291602001916108f2565b820191905f5260205f20905b8154815290600101906020018083116108d557829003601f168201915b505050505081565b610902610ec8565b600d6105d082826116cc565b5f6104f582610e2f565b600d805461087b906115fd565b5f6001600160a01b038216610944576109446323d3ad8160e21b610d86565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610971610ec8565b61097a5f610ef5565b565b610984610ec8565b600c55565b60606003805461050a906115fd565b612710816109ab6001545f54035f190190565b6109b59190611788565b11156109d4576040516352df9fe560e01b815260040160405180910390fd5b5f81116109f45760405163162908e360e11b815260040160405180910390fd5b600c54610a019082611649565b341015610a2157604051631c0b171360e31b815260040160405180910390fd5b61084c3382610f46565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a9e610ec8565b5f5b825181101561086957610ae5838281518110610abe57610abe61179b565b6020026020010151838381518110610ad857610ad861179b565b6020026020010151610f46565b80610aef816117af565b915050610aa0565b610b028484846105d4565b6001600160a01b0383163b15610b3257610b1e84848484610f5f565b610b3257610b326368d2bf6b60e11b610d86565b50505050565b6060610b4382610d3c565b610bb35760405162461bcd60e51b815260206004820152603660248201527f4572723a20455243373231414d65746164617461202d20555249207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b60648201526084015b60405180910390fd5b5f600d8054610bc1906115fd565b905011610bdc5760405180602001604052805f8152506104f5565b600d610be78361103e565b600e604051602001610bfb93929190611836565b60405160208183030381529060405292915050565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b610c45610ec8565b61271081610c586001545f54035f190190565b610c629190611788565b1115610a21576040516352df9fe560e01b815260040160405180910390fd5b610c89610ec8565b6001600160a01b038116610cb257604051631e4fbdf760e01b81525f6004820152602401610baa565b61084c81610ef5565b5f6301ffc9a760e01b6001600160e01b031983161480610ceb57506380ac58cd60e01b6001600160e01b03198316145b806104f55750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806104f557506301ffc9a760e01b6001600160e01b03198316146104f5565b5f81600111610d81575f54821015610d81575f5b505f8281526004602052604081205490819003610d7757610d7083611868565b9250610d50565b600160e01b161590505b919050565b805f5260045ffd5b5f610d988361090e565b9050818015610db05750336001600160a01b03821614155b15610dd357610dbf8133610c10565b610dd357610dd36367d9dca160e11b610d86565b5f8381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f81600111610eb857505f81815260046020526040902054805f03610ea6575f548210610e6657610e66636f96cda160e11b610d86565b5b505f19015f818152600460205260409020548015610e6757600160e01b81165f03610e9157919050565b610ea1636f96cda160e11b610d86565b610e67565b600160e01b81165f03610eb857919050565b610d81636f96cda160e11b610d86565b600b546001600160a01b0316331461097a5760405163118cdaa760e01b8152336004820152602401610baa565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6105d0828260405180602001604052805f815250611081565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610f9390339089908890889060040161187d565b6020604051808303815f875af1925050508015610fcd575060408051601f3d908101601f19168201909252610fca918101906118b9565b60015b611020573d808015610ffa576040519150601f19603f3d011682016040523d82523d5f602084013e610fff565b606091505b5080515f03611018576110186368d2bf6b60e11b610d86565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806110575750819003601f19909101908152919050565b61108b83836110e1565b6001600160a01b0383163b15610869575f548281035b6110b35f868380600101945086610f5f565b6110c7576110c76368d2bf6b60e11b610d86565b8181106110a157815f54146110da575f80fd5b5050505050565b5f8054908290036110fc576110fc63b562e8dd60e01b610d86565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361115957611159622e076360e81b610d86565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a481816001019150810361115e57505f5550505050565b6001600160e01b03198116811461084c575f80fd5b5f602082840312156111c0575f80fd5b81356111cb8161119b565b9392505050565b5f5b838110156111ec5781810151838201526020016111d4565b50505f910152565b5f815180845261120b8160208601602086016111d2565b601f01601f19169290920160200192915050565b602081525f6111cb60208301846111f4565b5f60208284031215611241575f80fd5b5035919050565b80356001600160a01b0381168114610d81575f80fd5b5f806040838503121561126f575f80fd5b61127883611248565b946020939093013593505050565b5f805f60608486031215611298575f80fd5b6112a184611248565b92506112af60208501611248565b9150604084013590509250925092565b5f80604083850312156112d0575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131c5761131c6112df565b604052919050565b5f67ffffffffffffffff83111561133d5761133d6112df565b611350601f8401601f19166020016112f3565b9050828152838383011115611363575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611389575f80fd5b813567ffffffffffffffff81111561139f575f80fd5b8201601f810184136113af575f80fd5b61103684823560208401611324565b5f602082840312156113ce575f80fd5b6111cb82611248565b5f80604083850312156113e8575f80fd5b6113f183611248565b915060208301358015158114611405575f80fd5b809150509250929050565b5f67ffffffffffffffff821115611429576114296112df565b5060051b60200190565b5f82601f830112611442575f80fd5b8135602061145761145283611410565b6112f3565b82815260059290921b84018101918181019086841115611475575f80fd5b8286015b848110156114905780358352918301918301611479565b509695505050505050565b5f80604083850312156114ac575f80fd5b823567ffffffffffffffff808211156114c3575f80fd5b818501915085601f8301126114d6575f80fd5b813560206114e661145283611410565b82815260059290921b84018101918181019089841115611504575f80fd5b948201945b838610156115295761151a86611248565b82529482019490820190611509565b9650508601359250508082111561153e575f80fd5b5061154b85828601611433565b9150509250929050565b5f805f8060808587031215611568575f80fd5b61157185611248565b935061157f60208601611248565b925060408501359150606085013567ffffffffffffffff8111156115a1575f80fd5b8501601f810187136115b1575f80fd5b6115c087823560208401611324565b91505092959194509250565b5f80604083850312156115dd575f80fd5b6115e683611248565b91506115f460208401611248565b90509250929050565b600181811c9082168061161157607f821691505b60208210810361162f57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176104f5576104f5611635565b5f8261167a57634e487b7160e01b5f52601260045260245ffd5b500490565b601f821115610869575f81815260208120601f850160051c810160208610156116a55750805b601f850160051c820191505b818110156116c4578281556001016116b1565b505050505050565b815167ffffffffffffffff8111156116e6576116e66112df565b6116fa816116f484546115fd565b8461167f565b602080601f83116001811461172d575f84156117165750858301515b5f19600386901b1c1916600185901b1785556116c4565b5f85815260208120601f198616915b8281101561175b5788860151825594840194600190910190840161173c565b508582101561177857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156104f5576104f5611635565b634e487b7160e01b5f52603260045260245ffd5b5f600182016117c0576117c0611635565b5060010190565b5f81546117d3816115fd565b600182811680156117eb57600181146118005761182c565b60ff198416875282151583028701945061182c565b855f526020805f205f5b858110156118235781548a82015290840190820161180a565b50505082870194505b5050505092915050565b5f61184182866117c7565b84516118518183602089016111d2565b61185d818301866117c7565b979650505050505050565b5f8161187657611876611635565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906118af908301846111f4565b9695505050505050565b5f602082840312156118c9575f80fd5b81516111cb8161119b56fea2646970667358221220af84d7e7092649a9fd0b0e77fa7604e9830642ed0af78d683fc60b8954e5f49a64736f6c63430008140033
Deployed Bytecode Sourcemap
522:3509:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3617:411;;;;;;;;;;-1:-1:-1;3617:411:6;;;;;:::i;:::-;;:::i;:::-;;;565:14:9;;558:22;540:41;;528:2;513:18;3617:411:6;;;;;;;;11573:98:7;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;18636:223::-;;;;;;;;;;-1:-1:-1;18636:223:7;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:9;;;1679:51;;1667:2;1652:18;18636:223:7;1533:203:9;18364:122:7;;;;;;:::i;:::-;;:::i;:::-;;717:29:6;;;;;;;;;;;;;;;;;;;2324:25:9;;;2312:2;2297:18;717:29:6;2178:177:9;6890:564:7;;;;;;;;;;;;2237:1:6;7328:12:7;6951:14;7312:13;:28;-1:-1:-1;;7312:46:7;;6890:564;22796:3447;;;;;;:::i;:::-;;:::i;2379:419:2:-;;;;;;;;;;-1:-1:-1;2379:419:2;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:9;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;2379:419:2;2946:274:9;668:42:6;;;;;;;;;;;;705:5;668:42;;2956:335;;;:::i;26334:187:7:-;;;;;;:::i;:::-;;:::i;842:33:6:-;;;;;;;;;;;;;:::i;3407:104::-;;;;;;;;;;-1:-1:-1;3407:104:6;;;;;:::i;:::-;;:::i;12934:150:7:-;;;;;;;;;;-1:-1:-1;12934:150:7;;;;;:::i;:::-;;:::i;755:80:6:-;;;;;;;;;;;;;:::i;8570:239:7:-;;;;;;;;;;-1:-1:-1;8570:239:7;;;;;:::i;:::-;;:::i;2293:101:0:-;;;;;;;;;;;;;:::i;3519:90:6:-;;;;;;;;;;-1:-1:-1;3519:90:6;;;;;:::i;:::-;;:::i;1638:85:0:-;;;;;;;;;;-1:-1:-1;1710:6:0;;-1:-1:-1;;;;;1710:6:0;1638:85;;11742:102:7;;;;;;;;;;;;;:::i;1003:364:6:-;;;;;;:::i;:::-;;:::i;19186:231:7:-;;;;;;;;;;-1:-1:-1;19186:231:7;;;;;:::i;:::-;;:::i;1646:221:6:-;;;;;;;;;;-1:-1:-1;1646:221:6;;;;;:::i;:::-;;:::i;27102:405:7:-;;;;;;:::i;:::-;;:::i;2322:464:6:-;;;;;;;;;;-1:-1:-1;2322:464:6;;;;;:::i;:::-;;:::i;19567:162:7:-;;;;;;;;;;-1:-1:-1;19567:162:7;;;;;:::i;:::-;;:::i;1381:200:6:-;;;;;;;;;;-1:-1:-1;1381:200:6;;;;;:::i;:::-;;:::i;2543:215:0:-;;;;;;;;;;-1:-1:-1;2543:215:0;;;;;:::i;:::-;;:::i;3617:411:6:-;3720:4;3940:38;3966:11;3940:25;:38::i;:::-;:80;;;;3982:38;4008:11;3982:25;:38::i;:::-;3933:87;3617:411;-1:-1:-1;;3617:411:6:o;11573:98:7:-;11627:13;11659:5;11652:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11573:98;:::o;18636:223::-;18712:7;18736:16;18744:7;18736;:16::i;:::-;18731:73;;18754:50;-1:-1:-1;;;18754:7:7;:50::i;:::-;-1:-1:-1;18822:24:7;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;18822:30:7;;18636:223::o;18364:122::-;18452:27;18461:2;18465:7;18474:4;18452:8;:27::i;:::-;18364:122;;:::o;22796:3447::-;22933:27;22963;22982:7;22963:18;:27::i;:::-;-1:-1:-1;;;;;23115:22:7;;;;22933:57;;-1:-1:-1;23173:45:7;;;;23169:95;;23220:44;-1:-1:-1;;;23220:7:7;:44::i;:::-;23276:27;21929:24;;;:15;:24;;;;;22153:26;;47819:10;21566:30;;;-1:-1:-1;;;;;21263:28:7;;21544:20;;;21541:56;23459:188;;23551:43;23568:4;47819:10;19567:162;:::i;23551:43::-;23546:101;;23596:51;-1:-1:-1;;;23596:7:7;:51::i;:::-;23790:15;23787:157;;;23928:1;23907:19;23900:30;23787:157;-1:-1:-1;;;;;24316:24:7;;;;;;;:18;:24;;;;;;24314:26;;-1:-1:-1;;24314:26:7;;;24384:22;;;;;;;;;24382:24;;-1:-1:-1;24382:24:7;;;17492:11;17467:23;17463:41;17450:63;-1:-1:-1;;;17450:63:7;24670:26;;;;:17;:26;;;;;:172;;;;-1:-1:-1;;;24959:47:7;;:52;;24955:617;;25063:1;25053:11;;25031:19;25184:30;;;:17;:30;;;;;;:35;;25180:378;;25320:13;;25305:11;:28;25301:239;;25465:30;;;;:17;:30;;;;;:52;;;25301:239;25013:559;24955:617;-1:-1:-1;;;;;25700:20:7;;26071:7;25700:20;26003:4;25946:25;25681:16;;25814:292;26129:8;26141:1;26129:13;26125:58;;26144:39;-1:-1:-1;;;26144:7:7;:39::i;:::-;22923:3320;;;;22796:3447;;;:::o;2379:419:2:-;2465:7;2522:26;;;:17;:26;;;;;;;;2493:55;;;;;;;;;-1:-1:-1;;;;;2493:55:2;;;;;-1:-1:-1;;;2493:55:2;;;-1:-1:-1;;;;;2493:55:2;;;;;;;;2465:7;;2559:90;;-1:-1:-1;2609:29:2;;;;;;;;;2619:19;2609:29;-1:-1:-1;;;;;2609:29:2;;;;-1:-1:-1;;;2609:29:2;;-1:-1:-1;;;;;2609:29:2;;;;;2559:90;2696:23;;;;2659:21;;3156:5;;2684:35;;-1:-1:-1;;;;;2684:35:2;:9;:35;:::i;:::-;2683:57;;;;:::i;:::-;2759:16;;;;;-1:-1:-1;2379:419:2;;-1:-1:-1;;;;2379:419:2:o;2956:335:6:-;1531:13:0;:11;:13::i;:::-;3103:7:6::1;3124;1710:6:0::0;;-1:-1:-1;;;;;1710:6:0;;1638:85;3124:7:6::1;-1:-1:-1::0;;;;;3116:21:6::1;3145;3116:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3102:69;;;3190:2;3182:11;;;::::0;::::1;;3001:290;2956:335::o:0;26334:187:7:-;26475:39;26492:4;26498:2;26502:7;26475:39;;;;;;;;;;;;:16;:39::i;:::-;26334:187;;;:::o;842:33:6:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3407:104::-;1531:13:0;:11;:13::i;:::-;3482:7:6::1;:21;3492:11:::0;3482:7;:21:::1;:::i;12934:150:7:-:0;13006:7;13048:27;13067:7;13048:18;:27::i;755:80:6:-;;;;;;;:::i;8570:239:7:-;8642:7;-1:-1:-1;;;;;8665:19:7;;8661:69;;8686:44;-1:-1:-1;;;8686:7:7;:44::i;:::-;-1:-1:-1;;;;;;8747:25:7;;;;;:18;:25;;;;;;1518:13;8747:55;;8570:239::o;2293:101:0:-;1531:13;:11;:13::i;:::-;2357:30:::1;2384:1;2357:18;:30::i;:::-;2293:101::o:0;3519:90:6:-;1531:13:0;:11;:13::i;:::-;3586:4:6::1;:15:::0;3519:90::o;11742:102:7:-;11798:13;11830:7;11823:14;;;;;:::i;1003:364:6:-;705:5;1081:7;1065:13;2237:1;7328:12:7;6951:14;7312:13;:28;-1:-1:-1;;7312:46:7;;6890:564;1065:13:6;:23;;;;:::i;:::-;:36;1062:83;;;1124:9;;-1:-1:-1;;;1124:9:6;;;;;;;;;;;1062:83;1171:1;1160:7;:12;1157:65;;1195:15;;-1:-1:-1;;;1195:15:6;;;;;;;;;;;1157:65;1259:4;;1249:14;;:7;:14;:::i;:::-;1237:9;:26;1234:83;;;1286:19;;-1:-1:-1;;;1286:19:6;;;;;;;;;;;1234:83;1329:30;1339:10;1351:7;1329:9;:30::i;19186:231:7:-;47819:10;19280:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;19280:49:7;;;;;;;;;;;;:60;;-1:-1:-1;;19280:60:7;;;;;;;;;;19355:55;;540:41:9;;;19280:49:7;;47819:10;19355:55;;513:18:9;19355:55:7;;;;;;;19186:231;;:::o;1646:221:6:-;1531:13:0;:11;:13::i;:::-;1761:6:6::1;1757:103;1773:10;:17;1771:1;:19;1757:103;;;1811:37;1821:10;1832:1;1821:13;;;;;;;;:::i;:::-;;;;;;;1836:8;1845:1;1836:11;;;;;;;;:::i;:::-;;;;;;;1811:9;:37::i;:::-;1792:3:::0;::::1;::::0;::::1;:::i;:::-;;;;1757:103;;27102:405:7::0;27271:31;27284:4;27290:2;27294:7;27271:12;:31::i;:::-;-1:-1:-1;;;;;27316:14:7;;;:19;27312:189;;27354:56;27385:4;27391:2;27395:7;27404:5;27354:30;:56::i;:::-;27349:152;;27430:56;-1:-1:-1;;;27430:7:7;:56::i;:::-;27102:405;;;;:::o;2322:464:6:-;2423:13;2476:16;2484:7;2476;:16::i;:::-;2454:120;;;;-1:-1:-1;;;2454:120:6;;11921:2:9;2454:120:6;;;11903:21:9;11960:2;11940:18;;;11933:30;11999:34;11979:18;;;11972:62;-1:-1:-1;;;12050:18:9;;;12043:52;12112:19;;2454:120:6;;;;;;;;;2631:1;2613:7;2607:21;;;;;:::i;:::-;;;:25;:171;;;;;;;;;;;;;;;;;2698:7;2707:18;2717:7;2707:9;:18::i;:::-;2727:9;2681:56;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2587:191;2322:464;-1:-1:-1;;2322:464:6:o;19567:162:7:-;-1:-1:-1;;;;;19687:25:7;;;19664:4;19687:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;19567:162::o;1381:200:6:-;1531:13:0;:11;:13::i;:::-;705:5:6::1;1469:7;1453:13;2237:1:::0;7328:12:7;6951:14;7312:13;:28;-1:-1:-1;;7312:46:7;;6890:564;1453:13:6::1;:23;;;;:::i;:::-;:36;1450:83;;;1512:9;;-1:-1:-1::0;;;1512:9:6::1;;;;;;;;;;;2543:215:0::0;1531:13;:11;:13::i;:::-;-1:-1:-1;;;;;2627:22:0;::::1;2623:91;;2672:31;::::0;-1:-1:-1;;;2672:31:0;;2700:1:::1;2672:31;::::0;::::1;1679:51:9::0;1652:18;;2672:31:0::1;1533:203:9::0;2623:91:0::1;2723:28;2742:8;2723:18;:28::i;10689:630:7:-:0;10774:4;-1:-1:-1;;;;;;;;;11092:25:7;;;;:101;;-1:-1:-1;;;;;;;;;;11168:25:7;;;11092:101;:177;;;-1:-1:-1;;;;;;;;11244:25:7;-1:-1:-1;;;11244:25:7;;10689:630::o;2116:213:2:-;2218:4;-1:-1:-1;;;;;;2241:41:2;;-1:-1:-1;;;2241:41:2;;:81;;-1:-1:-1;;;;;;;;;;861:40:4;;;2286:36:2;762:146:4;19978:465:7;20043:11;20089:7;2237:1:6;20070:26:7;20066:371;;20231:13;;20221:7;:23;20217:210;;;20264:14;20296:60;-1:-1:-1;20313:26:7;;;;:17;:26;;;;;;;20303:42;;;20296:60;;20347:9;;;:::i;:::-;;;20296:60;;;-1:-1:-1;;;20383:24:7;:29;;-1:-1:-1;20217:210:7;19978:465;;;:::o;49703:160::-;49802:13;49796:4;49789:27;49842:4;49836;49829:18;41333:460;41457:13;41473:16;41481:7;41473;:16::i;:::-;41457:32;;41504:13;:45;;;;-1:-1:-1;47819:10:7;-1:-1:-1;;;;;41521:28:7;;;;41504:45;41500:198;;;41568:44;41585:5;47819:10;19567:162;:::i;41568:44::-;41563:135;;41632:51;-1:-1:-1;;;41632:7:7;:51::i;:::-;41708:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;41708:35:7;-1:-1:-1;;;;;41708:35:7;;;;;;;;;41758:28;;41708:24;;41758:28;;;;;;;41447:346;41333:460;;;:::o;14380:2173::-;14447:14;14496:7;2237:1:6;14477:26:7;14473:2017;;-1:-1:-1;14528:26:7;;;;:17;:26;;;;;;14847:6;14857:1;14847:11;14843:1270;;14893:13;;14882:7;:24;14878:77;;14908:47;-1:-1:-1;;;14908:7:7;:47::i;:::-;15502:597;-1:-1:-1;;;15596:9:7;15578:28;;;;:17;:28;;;;;;15650:25;;15502:597;15650:25;-1:-1:-1;;;15701:6:7;:24;15729:1;15701:29;15697:48;;14380:2173;;;:::o;15697:48::-;16033:47;-1:-1:-1;;;16033:7:7;:47::i;:::-;15502:597;;14843:1270;-1:-1:-1;;;16435:6:7;:24;16463:1;16435:29;16431:48;;14380:2173;;;:::o;16431:48::-;16499:47;-1:-1:-1;;;16499:7:7;:47::i;1796:162:0:-;1710:6;;-1:-1:-1;;;;;1710:6:0;47819:10:7;1855:23:0;1851:101;;1901:40;;-1:-1:-1;;;1901:40:0;;47819:10:7;1901:40:0;;;1679:51:9;1652:18;;1901:40:0;1533:203:9;2912:187:0;3004:6;;;-1:-1:-1;;;;;3020:17:0;;;-1:-1:-1;;;;;;3020:17:0;;;;;;;3052:40;;3004:6;;;3020:17;3004:6;;3052:40;;2985:16;;3052:40;2975:124;2912:187;:::o;36661:110:7:-;36737:27;36747:2;36751:8;36737:27;;;;;;;;;;;;:9;:27::i;29533:673::-;29711:88;;-1:-1:-1;;;29711:88:7;;29691:4;;-1:-1:-1;;;;;29711:45:7;;;;;:88;;47819:10;;29778:4;;29784:7;;29793:5;;29711:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29711:88:7;;;;;;;;-1:-1:-1;;29711:88:7;;;;;;;;;;;;:::i;:::-;;;29707:493;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29989:6;:13;30006:1;29989:18;29985:113;;30027:56;-1:-1:-1;;;30027:7:7;:56::i;:::-;30168:6;30162:13;30153:6;30149:2;30145:15;30138:38;29707:493;-1:-1:-1;;;;;;29867:64:7;-1:-1:-1;;;29867:64:7;;-1:-1:-1;29707:493:7;29533:673;;;;;;:::o;47933:1708::-;47998:17;48426:4;48419;48413:11;48409:22;48516:1;48510:4;48503:15;48589:4;48586:1;48582:12;48575:19;;;48669:1;48664:3;48657:14;48770:3;49004:5;48986:419;49051:1;49046:3;49042:11;49035:18;;49219:2;49213:4;49209:13;49205:2;49201:22;49196:3;49188:36;49311:2;49301:13;;49366:25;48986:419;49366:25;-1:-1:-1;49433:13:7;;;-1:-1:-1;;49546:14:7;;;49606:19;;;49546:14;47933:1708;-1:-1:-1;47933:1708:7:o;35816:766::-;35942:19;35948:2;35952:8;35942:5;:19::i;:::-;-1:-1:-1;;;;;36000:14:7;;;:19;35996:570;;36039:11;36053:13;36100:14;;;36132:238;36162:62;36201:1;36205:2;36209:7;;;;;;36218:5;36162:30;:62::i;:::-;36157:174;;36252:56;-1:-1:-1;;;36252:7:7;:56::i;:::-;36365:3;36357:5;:11;36132:238;;36538:3;36521:13;;:20;36517:34;;36543:8;;;36517:34;36021:545;;35816:766;;;:::o;30652:2343::-;30724:20;30747:13;;;30774;;;30770:53;;30789:34;-1:-1:-1;;;30789:7:7;:34::i;:::-;31323:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;17320:28:7;;17492:11;17467:23;17463:41;17925:1;17912:15;;17886:24;17882:46;17460:52;17450:63;;31323:170;;;31704:22;;;:18;:22;;;;;:71;;31742:32;31730:45;;31704:71;;;17320:28;31960:13;;;31956:54;;31975:35;-1:-1:-1;;;31975:7:7;:35::i;:::-;32039:23;;;;32213:662;32623:7;32580:8;32536:1;32471:25;32409:1;32345;32315:351;32870:3;32857:9;;;;;;:16;32213:662;;-1:-1:-1;32889:13:7;:19;-1:-1:-1;26334:187:7;;;:::o;14:131:9:-;-1:-1:-1;;;;;;88:32:9;;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;:::-;384:5;150:245;-1:-1:-1;;;150:245:9:o;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:9;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:9;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:9: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:9;;1348:180;-1:-1:-1;1348:180:9:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:9;;1848:42;;1838:70;;1904:1;1901;1894:12;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:9: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:9;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:9:o;3225:127::-;3286:10;3281:3;3277:20;3274:1;3267:31;3317:4;3314:1;3307:15;3341:4;3338:1;3331:15;3357:275;3428:2;3422:9;3493:2;3474:13;;-1:-1:-1;;3470:27:9;3458:40;;3528:18;3513:34;;3549:22;;;3510:62;3507:88;;;3575:18;;:::i;:::-;3611:2;3604:22;3357:275;;-1:-1:-1;3357:275:9:o;3637:407::-;3702:5;3736:18;3728:6;3725:30;3722:56;;;3758:18;;:::i;:::-;3796:57;3841:2;3820:15;;-1:-1:-1;;3816:29:9;3847:4;3812:40;3796:57;:::i;:::-;3787:66;;3876:6;3869:5;3862:21;3916:3;3907:6;3902:3;3898:16;3895:25;3892:45;;;3933:1;3930;3923:12;3892:45;3982:6;3977:3;3970:4;3963:5;3959:16;3946:43;4036:1;4029:4;4020:6;4013:5;4009:18;4005:29;3998:40;3637:407;;;;;:::o;4049:451::-;4118:6;4171:2;4159:9;4150:7;4146:23;4142:32;4139:52;;;4187:1;4184;4177:12;4139:52;4227:9;4214:23;4260:18;4252:6;4249:30;4246:50;;;4292:1;4289;4282:12;4246:50;4315:22;;4368:4;4360:13;;4356:27;-1:-1:-1;4346:55:9;;4397:1;4394;4387:12;4346:55;4420:74;4486:7;4481:2;4468:16;4463:2;4459;4455:11;4420:74;:::i;4505:186::-;4564:6;4617:2;4605:9;4596:7;4592:23;4588:32;4585:52;;;4633:1;4630;4623:12;4585:52;4656:29;4675:9;4656:29;:::i;4696:347::-;4761:6;4769;4822:2;4810:9;4801:7;4797:23;4793:32;4790:52;;;4838:1;4835;4828:12;4790:52;4861:29;4880:9;4861:29;:::i;:::-;4851:39;;4940:2;4929:9;4925:18;4912:32;4987:5;4980:13;4973:21;4966:5;4963:32;4953:60;;5009:1;5006;4999:12;4953:60;5032:5;5022:15;;;4696:347;;;;;:::o;5048:183::-;5108:4;5141:18;5133:6;5130:30;5127:56;;;5163:18;;:::i;:::-;-1:-1:-1;5208:1:9;5204:14;5220:4;5200:25;;5048:183::o;5236:662::-;5290:5;5343:3;5336:4;5328:6;5324:17;5320:27;5310:55;;5361:1;5358;5351:12;5310:55;5397:6;5384:20;5423:4;5447:60;5463:43;5503:2;5463:43;:::i;:::-;5447:60;:::i;:::-;5541:15;;;5627:1;5623:10;;;;5611:23;;5607:32;;;5572:12;;;;5651:15;;;5648:35;;;5679:1;5676;5669:12;5648:35;5715:2;5707:6;5703:15;5727:142;5743:6;5738:3;5735:15;5727:142;;;5809:17;;5797:30;;5847:12;;;;5760;;5727:142;;;-1:-1:-1;5887:5:9;5236:662;-1:-1:-1;;;;;;5236:662:9:o;5903:1146::-;6021:6;6029;6082:2;6070:9;6061:7;6057:23;6053:32;6050:52;;;6098:1;6095;6088:12;6050:52;6138:9;6125:23;6167:18;6208:2;6200:6;6197:14;6194:34;;;6224:1;6221;6214:12;6194:34;6262:6;6251:9;6247:22;6237:32;;6307:7;6300:4;6296:2;6292:13;6288:27;6278:55;;6329:1;6326;6319:12;6278:55;6365:2;6352:16;6387:4;6411:60;6427:43;6467:2;6427:43;:::i;6411:60::-;6505:15;;;6587:1;6583:10;;;;6575:19;;6571:28;;;6536:12;;;;6611:19;;;6608:39;;;6643:1;6640;6633:12;6608:39;6667:11;;;;6687:148;6703:6;6698:3;6695:15;6687:148;;;6769:23;6788:3;6769:23;:::i;:::-;6757:36;;6720:12;;;;6813;;;;6687:148;;;6854:5;-1:-1:-1;;6897:18:9;;6884:32;;-1:-1:-1;;6928:16:9;;;6925:36;;;6957:1;6954;6947:12;6925:36;;6980:63;7035:7;7024:8;7013:9;7009:24;6980:63;:::i;:::-;6970:73;;;5903:1146;;;;;:::o;7054:667::-;7149:6;7157;7165;7173;7226:3;7214:9;7205:7;7201:23;7197:33;7194:53;;;7243:1;7240;7233:12;7194:53;7266:29;7285:9;7266:29;:::i;:::-;7256:39;;7314:38;7348:2;7337:9;7333:18;7314:38;:::i;:::-;7304:48;;7399:2;7388:9;7384:18;7371:32;7361:42;;7454:2;7443:9;7439:18;7426:32;7481:18;7473:6;7470:30;7467:50;;;7513:1;7510;7503:12;7467:50;7536:22;;7589:4;7581:13;;7577:27;-1:-1:-1;7567:55:9;;7618:1;7615;7608:12;7567:55;7641:74;7707:7;7702:2;7689:16;7684:2;7680;7676:11;7641:74;:::i;:::-;7631:84;;;7054:667;;;;;;;:::o;7726:260::-;7794:6;7802;7855:2;7843:9;7834:7;7830:23;7826:32;7823:52;;;7871:1;7868;7861:12;7823:52;7894:29;7913:9;7894:29;:::i;:::-;7884:39;;7942:38;7976:2;7965:9;7961:18;7942:38;:::i;:::-;7932:48;;7726:260;;;;;:::o;7991:380::-;8070:1;8066:12;;;;8113;;;8134:61;;8188:4;8180:6;8176:17;8166:27;;8134:61;8241:2;8233:6;8230:14;8210:18;8207:38;8204:161;;8287:10;8282:3;8278:20;8275:1;8268:31;8322:4;8319:1;8312:15;8350:4;8347:1;8340:15;8204:161;;7991:380;;;:::o;8376:127::-;8437:10;8432:3;8428:20;8425:1;8418:31;8468:4;8465:1;8458:15;8492:4;8489:1;8482:15;8508:168;8581:9;;;8612;;8629:15;;;8623:22;;8609:37;8599:71;;8650:18;;:::i;8681:217::-;8721:1;8747;8737:132;;8791:10;8786:3;8782:20;8779:1;8772:31;8826:4;8823:1;8816:15;8854:4;8851:1;8844:15;8737:132;-1:-1:-1;8883:9:9;;8681:217::o;9239:545::-;9341:2;9336:3;9333:11;9330:448;;;9377:1;9402:5;9398:2;9391:17;9447:4;9443:2;9433:19;9517:2;9505:10;9501:19;9498:1;9494:27;9488:4;9484:38;9553:4;9541:10;9538:20;9535:47;;;-1:-1:-1;9576:4:9;9535:47;9631:2;9626:3;9622:12;9619:1;9615:20;9609:4;9605:31;9595:41;;9686:82;9704:2;9697:5;9694:13;9686:82;;;9749:17;;;9730:1;9719:13;9686:82;;;9690:3;;;9239:545;;;:::o;9960:1352::-;10086:3;10080:10;10113:18;10105:6;10102:30;10099:56;;;10135:18;;:::i;:::-;10164:97;10254:6;10214:38;10246:4;10240:11;10214:38;:::i;:::-;10208:4;10164:97;:::i;:::-;10316:4;;10380:2;10369:14;;10397:1;10392:663;;;;11099:1;11116:6;11113:89;;;-1:-1:-1;11168:19:9;;;11162:26;11113:89;-1:-1:-1;;9917:1:9;9913:11;;;9909:24;9905:29;9895:40;9941:1;9937:11;;;9892:57;11215:81;;10362:944;;10392:663;9186:1;9179:14;;;9223:4;9210:18;;-1:-1:-1;;10428:20:9;;;10546:236;10560:7;10557:1;10554:14;10546:236;;;10649:19;;;10643:26;10628:42;;10741:27;;;;10709:1;10697:14;;;;10576:19;;10546:236;;;10550:3;10810:6;10801:7;10798:19;10795:201;;;10871:19;;;10865:26;-1:-1:-1;;10954:1:9;10950:14;;;10966:3;10946:24;10942:37;10938:42;10923:58;10908:74;;10795:201;-1:-1:-1;;;;;11042:1:9;11026:14;;;11022:22;11009:36;;-1:-1:-1;9960:1352:9:o;11317:125::-;11382:9;;;11403:10;;;11400:36;;;11416:18;;:::i;11447:127::-;11508:10;11503:3;11499:20;11496:1;11489:31;11539:4;11536:1;11529:15;11563:4;11560:1;11553:15;11579:135;11618:3;11639:17;;;11636:43;;11659:18;;:::i;:::-;-1:-1:-1;11706:1:9;11695:13;;11579:135::o;12142:722::-;12192:3;12233:5;12227:12;12262:36;12288:9;12262:36;:::i;:::-;12317:1;12334:18;;;12361:133;;;;12508:1;12503:355;;;;12327:531;;12361:133;-1:-1:-1;;12394:24:9;;12382:37;;12467:14;;12460:22;12448:35;;12439:45;;;-1:-1:-1;12361:133:9;;12503:355;12534:5;12531:1;12524:16;12563:4;12608:2;12605:1;12595:16;12633:1;12647:165;12661:6;12658:1;12655:13;12647:165;;;12739:14;;12726:11;;;12719:35;12782:16;;;;12676:10;;12647:165;;;12651:3;;;12841:6;12836:3;12832:16;12825:23;;12327:531;;;;;12142:722;;;;:::o;12869:469::-;13090:3;13118:38;13152:3;13144:6;13118:38;:::i;:::-;13185:6;13179:13;13201:65;13259:6;13255:2;13248:4;13240:6;13236:17;13201:65;:::i;:::-;13282:50;13324:6;13320:2;13316:15;13308:6;13282:50;:::i;:::-;13275:57;12869:469;-1:-1:-1;;;;;;;12869:469:9:o;13343:136::-;13382:3;13410:5;13400:39;;13419:18;;:::i;:::-;-1:-1:-1;;;13455:18:9;;13343:136::o;13484:489::-;-1:-1:-1;;;;;13753:15:9;;;13735:34;;13805:15;;13800:2;13785:18;;13778:43;13852:2;13837:18;;13830:34;;;13900:3;13895:2;13880:18;;13873:31;;;13678:4;;13921:46;;13947:19;;13939:6;13921:46;:::i;:::-;13913:54;13484:489;-1:-1:-1;;;;;;13484:489:9:o;13978:249::-;14047:6;14100:2;14088:9;14079:7;14075:23;14071:32;14068:52;;;14116:1;14113;14106:12;14068:52;14148:9;14142:16;14167:30;14191:5;14167:30;:::i
Swarm Source
ipfs://af84d7e7092649a9fd0b0e77fa7604e9830642ed0af78d683fc60b8954e5f49a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.