ERC-721
Overview
Max Total Supply
488 RTGN
Holders
166
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RTGNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Retrogression
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import './Ownable.sol'; import './Address.sol'; import './MerkleProof.sol'; import './Strings.sol'; import './SafeMath.sol'; import './ERC721A.sol'; import './ERC2981.sol'; error PublicSaleNotLive(); error WhiteListNotLive(); error OgListNotLive(); error ExceededLimit(); error NotEnoughTokensLeft(); error WrongEther(); error InvalidMerkle(); error OgListUsed(); error WhitelistUsed(); error MintZeroQuantity(); contract Retrogression is ERC721A, ERC2981, Ownable { using Address for address; using SafeMath for uint256; using MerkleProof for bytes32[]; bytes32 public whiteListMerkleRoot; // root hash for verying whitelist address uint256 public whiteListMaxMint; // max mint each address can mint uint256 public totalMaxSupply; // total max supply uint256 public ogMaxSupply; // og max supply uint256 public whiteListMaxSupply; // white list max supply uint256 public mintRate; // 150USD worth of ETH uint256 public whitelistMintRate; // 150USD worth of ETH uint256 public totalOgSupply; // og minted supply uint256 public totalWhiteListSupply; // whitelist minted supply string public baseExtension = '.json'; string public baseURI = ''; // ipfs://<LIVE_CID>/ string public baseHiddenUri = ''; // unreveal url bool public isWhitelistSale; // a boolean to handle stages of whitelist sale bool public isPublicSale; // a boolean to handle stages of public sale bool public revealed; // a boolean to indicate revealing of token. address payable public feeCollecter; /** * @dev a mapping to check the max mint for each address. */ mapping(address => uint256) public whiteListUsedAddresses; constructor() ERC721A('RETROGRESSION - Rise of the Dark Army', 'RTGN') { mintRate = 150000000000000000; // 0.15eth tbc whitelistMintRate = 150000000000000000; // 0.15eth tbc whiteListMaxMint = 2; totalMaxSupply = 5462; // OG/EI and Character NFT ogMaxSupply = 412; whiteListMaxSupply = 200; isWhitelistSale = false; isPublicSale = false; revealed = false; feeCollecter = payable(0x02A522D98EC2D2c3bBe91AcC29ee7fD32ab880ab); baseHiddenUri = 'ipfs://QmegkArmJMKAWXGFFKETuoCFJAfsE6hoJRM2khgkZCvf5y/'; whiteListMerkleRoot = 0x1e833049290a0843af727836cc7627d8742335ddd0073243c21f9186c5b3ba9d; // @dev setting the royalty fee for retrogression address. _setDefaultRoyalty(0xb8623497431893Fc4820eC708003f27DE086FEF1, 250); } modifier isPublicLive() { if (!isPublicSale) revert PublicSaleNotLive(); _; } modifier isWhiteListLive() { if (!isWhitelistSale) revert WhiteListNotLive(); _; } modifier isEnoughTokensLeft(uint256 _quantity) { if (_quantity.add(totalSupply()) > totalMaxSupply) revert NotEnoughTokensLeft(); _; } modifier isAddressVerified(bytes32[] calldata _proof, bytes32 _rootHash) { if (!MerkleProof.verify(_proof, _rootHash, leaf(msg.sender))) revert InvalidMerkle(); _; } modifier isWithinOgMintLimit(uint256 _quantity) { if (_quantity > ogMaxSupply) revert ExceededLimit(); _; } modifier isWithinWhiteListMintLimit(uint256 _quantity) { if (_quantity > whiteListMaxSupply) revert ExceededLimit(); _; } modifier isCorrectPayment(uint256 _quantity, uint256 _mintRate) { if (_quantity <= 0) revert MintZeroQuantity(); if (_mintRate.mul(_quantity) != msg.value) revert WrongEther(); _; } modifier checkQuantity(uint256 _quantity) { if (_quantity <= 0) revert MintZeroQuantity(); _; } event SendFee(address from, address to, uint256 amount); /** * @dev a function to send 10% to dev account. */ function sendFee() internal { uint256 fee = msg.value.mul(10).div(100); // deduct 10% from minting and send to mintable account require(address(this).balance >= fee, 'Address: insufficient balance'); feeCollecter.transfer(fee); emit SendFee(address(this), feeCollecter, fee); } /** * @dev overrides contract supportInterface */ function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(_interfaceId) || ERC2981.supportsInterface(_interfaceId); } /** * @dev a function that uses ERC721A is an improved implementation of the * IERC721 standard that supports minting multiple tokens for close to the cost of one * * handle oglist mint */ function ogMint(uint256 _quantity) external payable onlyOwner checkQuantity(_quantity) isWithinOgMintLimit(_quantity) isEnoughTokensLeft(_quantity) { totalOgSupply = totalOgSupply.add(_quantity); sendFee(); _mint(msg.sender, _quantity); } /** * @dev a function that uses ERC721A is an improved implementation of the * IERC721 standard that supports minting multiple tokens for close to the cost of one * * handle whitelist mint */ function whiteListMint(uint256 _quantity, bytes32[] calldata _proof) external payable isWhiteListLive isAddressVerified(_proof, whiteListMerkleRoot) isWithinWhiteListMintLimit(_quantity) isEnoughTokensLeft(_quantity) isCorrectPayment(_quantity, whitelistMintRate) { if (_quantity.add(whiteListUsedAddresses[msg.sender]) > whiteListMaxMint) { revert WhitelistUsed(); } whiteListUsedAddresses[msg.sender] = _quantity.add( whiteListUsedAddresses[msg.sender] ); totalWhiteListSupply = _quantity.add(totalWhiteListSupply); sendFee(); _mint(msg.sender, _quantity); } /** * @dev a function that uses ERC721A is an improved implementation of the * IERC721 standard that supports minting multiple tokens for close to the cost of one */ function mint(uint256 _quantity) external payable isPublicLive isEnoughTokensLeft(_quantity) isCorrectPayment(_quantity, mintRate) { sendFee(); _mint(msg.sender, _quantity); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), 'ERC721a: token nonexistent!'); if (!revealed) { string memory currentHiddenBaseURI = _baseHiddenURI(); return bytes(currentHiddenBaseURI).length > 0 ? string( abi.encodePacked( currentHiddenBaseURI, Strings.toString(_tokenId), baseExtension ) ) : ''; } // added reveal string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, Strings.toString(_tokenId), baseExtension ) ) : ''; } function _baseURI() internal view override returns (string memory) { return baseURI; } function _baseHiddenURI() internal view returns (string memory) { return baseHiddenUri; } function leaf(address _account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_account)); } function setWhiteListMerkleRoot(bytes32 _root) external onlyOwner { whiteListMerkleRoot = _root; } function toggleWhitelistSale() public onlyOwner { isWhitelistSale = !isWhitelistSale; } function togglePublicSale() public onlyOwner { isPublicSale = !isPublicSale; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; revealed = !revealed; } function withdraw() external payable onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import './IERC165.sol'; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import './IERC2981.sol'; import './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. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require( feeNumerator <= _feeDenominator(), 'ERC2981: royalty fee will exceed salePrice' ); require(receiver != address(0), 'ERC2981: invalid receiver'); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require( feeNumerator <= _feeDenominator(), 'ERC2981: royalty fee will exceed salePrice' ); require(receiver != address(0), 'ERC2981: Invalid parameters'); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.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()`. * * 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 { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. 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 virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public 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 virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received( _msgSenderERC721A(), from, tokenId, _data ) returns (bytes4 retval) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; require(quantity > 0, 'ERC721a: Mint Zero Quantity!'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer( startTokenId, startTokenId + quantity - 1, address(0), to ); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](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 v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import './Context.sol'; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), 'Ownable: caller is not the owner'); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), 'Ownable: new owner is the zero address'); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceededLimit","type":"error"},{"inputs":[],"name":"InvalidMerkle","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotEnoughTokensLeft","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PublicSaleNotLive","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"},{"inputs":[],"name":"WhiteListNotLive","type":"error"},{"inputs":[],"name":"WhitelistUsed","type":"error"},{"inputs":[],"name":"WrongEther","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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseHiddenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollecter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ogMint","outputs":[],"stateMutability":"payable","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":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setWhiteListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalOgSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWhiteListSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListUsedAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a090815262000028916014919062000312565b50604080516020810191829052600090819052620000499160159162000312565b506040805160208101918290526000908190526200006a9160169162000312565b503480156200007857600080fd5b50604051806060016040528060258152602001620024176025913960405180604001604052806004815260200163292a23a760e11b8152508160029080519060200190620000c892919062000312565b508051620000de90600390602084019062000312565b50506000805550620000f033620001bb565b670214e8348c4f000060108190556011556002600c55611556600d5561019c600e5560c8600f55601780546001600160b81b0319167602a522d98ec2d2c3bbe91acc29ee7fd32ab880ab000000179055604080516060810190915260368082526200243c602083013980516200016f9160169160209091019062000312565b507f1e833049290a0843af727836cc7627d8742335ddd0073243c21f9186c5b3ba9d600b55620001b573b8623497431893fc4820ec708003f27de086fef160fa6200020d565b620003f5565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002d95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000278565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b8280546200032090620003b8565b90600052602060002090601f0160209004810192826200034457600085556200038f565b82601f106200035f57805160ff19168380011785556200038f565b828001600101855582156200038f579182015b828111156200038f57825182559160200191906001019062000372565b506200039d929150620003a1565b5090565b5b808211156200039d5760008155600101620003a2565b600181811c90821680620003cd57607f821691505b60208210811415620003ef57634e487b7160e01b600052602260045260246000fd5b50919050565b61201280620004056000396000f3fe60806040526004361061025c5760003560e01c80636c0360eb11610144578063adbfe092116100b6578063dd21bb7d1161007a578063dd21bb7d1461069f578063e08e65ea146106b2578063e222c7f9146106d2578063e985e9c5146106e7578063f2fde38b14610730578063f8b7d0e91461075057600080fd5b8063adbfe0921461061e578063b88d4fde14610634578063c668286214610654578063c87b56dd14610669578063ca0dcf161461068957600080fd5b80638fe11a97116101085780638fe11a971461058c57806395d89b41146105a1578063a0617ad0146105b6578063a0712d68146105cc578063a22cb465146105df578063a5a865dc146105ff57600080fd5b80636c0360eb1461050e57806370a0823114610523578063715018a6146105435780637cdd702e146105585780638da5cb5b1461056e57600080fd5b80632a55205a116101dd57806342842e0e116101a157806342842e0e146104635780634f871d1814610483578063518302271461049957806355f804b3146104b957806359eda1b5146104d95780636352211e146104ee57600080fd5b80632a55205a146103da5780632d95aea7146104195780632e809ec11461042f57806334b6ab1a146104455780633ccfd60b1461045b57600080fd5b80631187687511610224578063118768751461033957806313bfabc01461034c5780631455b1e21461038757806318160ddd146103a157806323b872dd146103ba57600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f05780630d0d098714610312575b600080fd5b34801561026d57600080fd5b5061028161027c366004611a11565b610766565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab610786565b60405161028d9190611a86565b3480156102c457600080fd5b506102d86102d3366004611a99565b610818565b6040516001600160a01b03909116815260200161028d565b3480156102fc57600080fd5b5061031061030b366004611ace565b61085c565b005b34801561031e57600080fd5b506017546102d890630100000090046001600160a01b031681565b610310610347366004611af8565b6108fc565b34801561035857600080fd5b50610379610367366004611b77565b60186020526000908152604090205481565b60405190815260200161028d565b34801561039357600080fd5b506017546102819060ff1681565b3480156103ad57600080fd5b5060015460005403610379565b3480156103c657600080fd5b506103106103d5366004611b92565b610af9565b3480156103e657600080fd5b506103fa6103f5366004611bce565b610c8a565b604080516001600160a01b03909316835260208301919091520161028d565b34801561042557600080fd5b50610379600e5481565b34801561043b57600080fd5b5061037960115481565b34801561045157600080fd5b50610379600b5481565b610310610d36565b34801561046f57600080fd5b5061031061047e366004611b92565b610d6d565b34801561048f57600080fd5b5061037960135481565b3480156104a557600080fd5b506017546102819062010000900460ff1681565b3480156104c557600080fd5b506103106104d4366004611c7c565b610d8d565b3480156104e557600080fd5b50610310610dc9565b3480156104fa57600080fd5b506102d8610509366004611a99565b610de5565b34801561051a57600080fd5b506102ab610df0565b34801561052f57600080fd5b5061037961053e366004611b77565b610e7e565b34801561054f57600080fd5b50610310610ecd565b34801561056457600080fd5b50610379600c5481565b34801561057a57600080fd5b50600a546001600160a01b03166102d8565b34801561059857600080fd5b506102ab610ee1565b3480156105ad57600080fd5b506102ab610eee565b3480156105c257600080fd5b50610379600d5481565b6103106105da366004611a99565b610efd565b3480156105eb57600080fd5b506103106105fa366004611cc5565b610fbe565b34801561060b57600080fd5b5060175461028190610100900460ff1681565b34801561062a57600080fd5b5061037960125481565b34801561064057600080fd5b5061031061064f366004611d01565b611054565b34801561066057600080fd5b506102ab611098565b34801561067557600080fd5b506102ab610684366004611a99565b6110a5565b34801561069557600080fd5b5061037960105481565b6103106106ad366004611a99565b61117a565b3480156106be57600080fd5b506103106106cd366004611a99565b611213565b3480156106de57600080fd5b50610310611220565b3480156106f357600080fd5b50610281610702366004611d7d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073c57600080fd5b5061031061074b366004611b77565b611245565b34801561075c57600080fd5b50610379600f5481565b6000610771826112bb565b80610780575061078082611309565b92915050565b60606002805461079590611db0565b80601f01602080910402602001604051908101604052809291908181526020018280546107c190611db0565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b5050505050905090565b60006108238261133e565b610840576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086782610de5565b9050336001600160a01b038216146108a0576108838133610702565b6108a0576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60175460ff1661091f576040516331f2a25560e21b815260040160405180910390fd5b8181600b5461099983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101208592509050611365565b6109b657604051631f8b1b7160e11b815260040160405180910390fd5b85600f548111156109da57604051630e362dc360e21b815260040160405180910390fd5b86600d546109f56109ee6001546000540390565b839061137b565b1115610a14576040516376592c6f60e01b815260040160405180910390fd5b8760115460008211610a395760405163b562e8dd60e01b815260040160405180910390fd5b34610a448284611387565b14610a625760405163168afe2b60e31b815260040160405180910390fd5b600c5433600090815260186020526040902054610a80908c9061137b565b1115610a9f576040516390b8614160e01b815260040160405180910390fd5b33600090815260186020526040902054610aba908b9061137b565b33600090815260186020526040902055601354610ad8908b9061137b565b601355610ae3611393565b610aed338b611493565b50505050505050505050565b6000610b04826115b9565b9050836001600160a01b0316816001600160a01b031614610b375760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b8457610b678633610702565b610b8457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bab57604051633a954ecd60e21b815260040160405180910390fd5b8015610bb657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c415760018401600081815260046020526040902054610c3f576000548114610c3f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610cff5750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610d1e906001600160601b031687611e01565b610d289190611e36565b915196919550909350505050565b610d3e61161a565b60405133904780156108fc02916000818181858888f19350505050158015610d6a573d6000803e3d6000fd5b50565b610d8883838360405180602001604052806000815250611054565b505050565b610d9561161a565b8051610da8906015906020840190611962565b50506017805462ff0000198116620100009182900460ff1615909102179055565b610dd161161a565b6017805460ff19811660ff90911615179055565b6000610780826115b9565b60158054610dfd90611db0565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2990611db0565b8015610e765780601f10610e4b57610100808354040283529160200191610e76565b820191906000526020600020905b815481529060010190602001808311610e5957829003601f168201915b505050505081565b60006001600160a01b038216610ea7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ed561161a565b610edf6000611674565b565b60168054610dfd90611db0565b60606003805461079590611db0565b601754610100900460ff16610f255760405163a9f4f87160e01b815260040160405180910390fd5b80600d54610f396109ee6001546000540390565b1115610f58576040516376592c6f60e01b815260040160405180910390fd5b8160105460008211610f7d5760405163b562e8dd60e01b815260040160405180910390fd5b34610f888284611387565b14610fa65760405163168afe2b60e31b815260040160405180910390fd5b610fae611393565b610fb83385611493565b50505050565b6001600160a01b038216331415610fe85760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61105f848484610af9565b6001600160a01b0383163b15610fb85761107b848484846116c6565b610fb8576040516368d2bf6b60e11b815260040160405180910390fd5b60148054610dfd90611db0565b60606110b08261133e565b6111015760405162461bcd60e51b815260206004820152601b60248201527f455243373231613a20746f6b656e206e6f6e6578697374656e7421000000000060448201526064015b60405180910390fd5b60175462010000900460ff1661117057600061111b6117be565b9050600081511161113b5760405180602001604052806000815250611169565b80611145846117cd565b601460405160200161115993929190611e4a565b6040516020818303038152906040525b9392505050565b600061111b6118cb565b61118261161a565b80600081116111a45760405163b562e8dd60e01b815260040160405180910390fd5b81600e548111156111c857604051630e362dc360e21b815260040160405180910390fd5b82600d546111dc6109ee6001546000540390565b11156111fb576040516376592c6f60e01b815260040160405180910390fd5b601254611208908561137b565b601255610fae611393565b61121b61161a565b600b55565b61122861161a565b6017805461ff001981166101009182900460ff1615909102179055565b61124d61161a565b6001600160a01b0381166112b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110f8565b610d6a81611674565b60006301ffc9a760e01b6001600160e01b0319831614806112ec57506380ac58cd60e01b6001600160e01b03198316145b806107805750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061078057506301ffc9a760e01b6001600160e01b0319831614610780565b6000805482108015610780575050600090815260046020526040902054600160e01b161590565b60008261137285846118da565b14949350505050565b60006111698284611f0e565b60006111698284611e01565b60006113ab60646113a534600a611387565b90611927565b9050804710156113fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110f8565b60175460405163010000009091046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561143d573d6000803e3d6000fd5b506017546040805130815263010000009092046001600160a01b0316602083015281018290527f76a4dcf5f1c94bb3b37c6653482e44cd64d7cb61faf13bc83947485d5f2a9a509060600160405180910390a150565b600054816114e35760405162461bcd60e51b815260206004820152601c60248201527f455243373231613a204d696e74205a65726f205175616e74697479210000000060448201526064016110f8565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461159257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161155a565b50816115b057604051622e076360e81b815260040160405180910390fd5b60005550505050565b60008160005481101561160157600081815260046020526040902054600160e01b81166115ff575b806111695750600019016000818152600460205260409020546115e1565b505b604051636f96cda160e11b815260040160405180910390fd5b600a546001600160a01b03163314610edf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110f8565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116fb903390899088908890600401611f26565b602060405180830381600087803b15801561171557600080fd5b505af1925050508015611745575060408051601f3d908101601f1916820190925261174291810190611f63565b60015b6117a0573d808015611773576040519150601f19603f3d011682016040523d82523d6000602084013e611778565b606091505b508051611798576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606016805461079590611db0565b6060816117f15750506040805180820190915260018152600360fc1b602082015290565b8160005b811561181b578061180581611f80565b91506118149050600a83611e36565b91506117f5565b60008167ffffffffffffffff81111561183657611836611bf0565b6040519080825280601f01601f191660200182016040528015611860576020820181803683370190505b5090505b84156117b657611875600183611f9b565b9150611882600a86611fb2565b61188d906030611f0e565b60f81b8183815181106118a2576118a2611fc6565b60200101906001600160f81b031916908160001a9053506118c4600a86611e36565b9450611864565b60606015805461079590611db0565b600081815b845181101561191f5761190b828683815181106118fe576118fe611fc6565b6020026020010151611933565b91508061191781611f80565b9150506118df565b509392505050565b60006111698284611e36565b600081831061194f576000828152602084905260409020611169565b6000838152602083905260409020611169565b82805461196e90611db0565b90600052602060002090601f01602090048101928261199057600085556119d6565b82601f106119a957805160ff19168380011785556119d6565b828001600101855582156119d6579182015b828111156119d65782518255916020019190600101906119bb565b506119e29291506119e6565b5090565b5b808211156119e257600081556001016119e7565b6001600160e01b031981168114610d6a57600080fd5b600060208284031215611a2357600080fd5b8135611169816119fb565b60005b83811015611a49578181015183820152602001611a31565b83811115610fb85750506000910152565b60008151808452611a72816020860160208601611a2e565b601f01601f19169290920160200192915050565b6020815260006111696020830184611a5a565b600060208284031215611aab57600080fd5b5035919050565b80356001600160a01b0381168114611ac957600080fd5b919050565b60008060408385031215611ae157600080fd5b611aea83611ab2565b946020939093013593505050565b600080600060408486031215611b0d57600080fd5b83359250602084013567ffffffffffffffff80821115611b2c57600080fd5b818601915086601f830112611b4057600080fd5b813581811115611b4f57600080fd5b8760208260051b8501011115611b6457600080fd5b6020830194508093505050509250925092565b600060208284031215611b8957600080fd5b61116982611ab2565b600080600060608486031215611ba757600080fd5b611bb084611ab2565b9250611bbe60208501611ab2565b9150604084013590509250925092565b60008060408385031215611be157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c2157611c21611bf0565b604051601f8501601f19908116603f01168101908282118183101715611c4957611c49611bf0565b81604052809350858152868686011115611c6257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611c8e57600080fd5b813567ffffffffffffffff811115611ca557600080fd5b8201601f81018413611cb657600080fd5b6117b684823560208401611c06565b60008060408385031215611cd857600080fd5b611ce183611ab2565b915060208301358015158114611cf657600080fd5b809150509250929050565b60008060008060808587031215611d1757600080fd5b611d2085611ab2565b9350611d2e60208601611ab2565b925060408501359150606085013567ffffffffffffffff811115611d5157600080fd5b8501601f81018713611d6257600080fd5b611d7187823560208401611c06565b91505092959194509250565b60008060408385031215611d9057600080fd5b611d9983611ab2565b9150611da760208401611ab2565b90509250929050565b600181811c90821680611dc457607f821691505b60208210811415611de557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611e1b57611e1b611deb565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611e4557611e45611e20565b500490565b600084516020611e5d8285838a01611a2e565b855191840191611e708184848a01611a2e565b8554920191600090600181811c9080831680611e8d57607f831692505b858310811415611eab57634e487b7160e01b85526022600452602485fd5b808015611ebf5760018114611ed057611efd565b60ff19851688528388019550611efd565b60008b81526020902060005b85811015611ef55781548a820152908401908801611edc565b505083880195505b50939b9a5050505050505050505050565b60008219821115611f2157611f21611deb565b500190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f5990830184611a5a565b9695505050505050565b600060208284031215611f7557600080fd5b8151611169816119fb565b6000600019821415611f9457611f94611deb565b5060010190565b600082821015611fad57611fad611deb565b500390565b600082611fc157611fc1611e20565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a12ad70db66068bc8cc87a7956137994a605970f1548952f7a743faae5bda0b864736f6c63430008090033524554524f4752455353494f4e202d2052697365206f6620746865204461726b2041726d79697066733a2f2f516d65676b41726d4a4d4b4157584746464b4554756f43464a4166734536686f4a524d326b68676b5a43766635792f
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80636c0360eb11610144578063adbfe092116100b6578063dd21bb7d1161007a578063dd21bb7d1461069f578063e08e65ea146106b2578063e222c7f9146106d2578063e985e9c5146106e7578063f2fde38b14610730578063f8b7d0e91461075057600080fd5b8063adbfe0921461061e578063b88d4fde14610634578063c668286214610654578063c87b56dd14610669578063ca0dcf161461068957600080fd5b80638fe11a97116101085780638fe11a971461058c57806395d89b41146105a1578063a0617ad0146105b6578063a0712d68146105cc578063a22cb465146105df578063a5a865dc146105ff57600080fd5b80636c0360eb1461050e57806370a0823114610523578063715018a6146105435780637cdd702e146105585780638da5cb5b1461056e57600080fd5b80632a55205a116101dd57806342842e0e116101a157806342842e0e146104635780634f871d1814610483578063518302271461049957806355f804b3146104b957806359eda1b5146104d95780636352211e146104ee57600080fd5b80632a55205a146103da5780632d95aea7146104195780632e809ec11461042f57806334b6ab1a146104455780633ccfd60b1461045b57600080fd5b80631187687511610224578063118768751461033957806313bfabc01461034c5780631455b1e21461038757806318160ddd146103a157806323b872dd146103ba57600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f05780630d0d098714610312575b600080fd5b34801561026d57600080fd5b5061028161027c366004611a11565b610766565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab610786565b60405161028d9190611a86565b3480156102c457600080fd5b506102d86102d3366004611a99565b610818565b6040516001600160a01b03909116815260200161028d565b3480156102fc57600080fd5b5061031061030b366004611ace565b61085c565b005b34801561031e57600080fd5b506017546102d890630100000090046001600160a01b031681565b610310610347366004611af8565b6108fc565b34801561035857600080fd5b50610379610367366004611b77565b60186020526000908152604090205481565b60405190815260200161028d565b34801561039357600080fd5b506017546102819060ff1681565b3480156103ad57600080fd5b5060015460005403610379565b3480156103c657600080fd5b506103106103d5366004611b92565b610af9565b3480156103e657600080fd5b506103fa6103f5366004611bce565b610c8a565b604080516001600160a01b03909316835260208301919091520161028d565b34801561042557600080fd5b50610379600e5481565b34801561043b57600080fd5b5061037960115481565b34801561045157600080fd5b50610379600b5481565b610310610d36565b34801561046f57600080fd5b5061031061047e366004611b92565b610d6d565b34801561048f57600080fd5b5061037960135481565b3480156104a557600080fd5b506017546102819062010000900460ff1681565b3480156104c557600080fd5b506103106104d4366004611c7c565b610d8d565b3480156104e557600080fd5b50610310610dc9565b3480156104fa57600080fd5b506102d8610509366004611a99565b610de5565b34801561051a57600080fd5b506102ab610df0565b34801561052f57600080fd5b5061037961053e366004611b77565b610e7e565b34801561054f57600080fd5b50610310610ecd565b34801561056457600080fd5b50610379600c5481565b34801561057a57600080fd5b50600a546001600160a01b03166102d8565b34801561059857600080fd5b506102ab610ee1565b3480156105ad57600080fd5b506102ab610eee565b3480156105c257600080fd5b50610379600d5481565b6103106105da366004611a99565b610efd565b3480156105eb57600080fd5b506103106105fa366004611cc5565b610fbe565b34801561060b57600080fd5b5060175461028190610100900460ff1681565b34801561062a57600080fd5b5061037960125481565b34801561064057600080fd5b5061031061064f366004611d01565b611054565b34801561066057600080fd5b506102ab611098565b34801561067557600080fd5b506102ab610684366004611a99565b6110a5565b34801561069557600080fd5b5061037960105481565b6103106106ad366004611a99565b61117a565b3480156106be57600080fd5b506103106106cd366004611a99565b611213565b3480156106de57600080fd5b50610310611220565b3480156106f357600080fd5b50610281610702366004611d7d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073c57600080fd5b5061031061074b366004611b77565b611245565b34801561075c57600080fd5b50610379600f5481565b6000610771826112bb565b80610780575061078082611309565b92915050565b60606002805461079590611db0565b80601f01602080910402602001604051908101604052809291908181526020018280546107c190611db0565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b5050505050905090565b60006108238261133e565b610840576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086782610de5565b9050336001600160a01b038216146108a0576108838133610702565b6108a0576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60175460ff1661091f576040516331f2a25560e21b815260040160405180910390fd5b8181600b5461099983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101208592509050611365565b6109b657604051631f8b1b7160e11b815260040160405180910390fd5b85600f548111156109da57604051630e362dc360e21b815260040160405180910390fd5b86600d546109f56109ee6001546000540390565b839061137b565b1115610a14576040516376592c6f60e01b815260040160405180910390fd5b8760115460008211610a395760405163b562e8dd60e01b815260040160405180910390fd5b34610a448284611387565b14610a625760405163168afe2b60e31b815260040160405180910390fd5b600c5433600090815260186020526040902054610a80908c9061137b565b1115610a9f576040516390b8614160e01b815260040160405180910390fd5b33600090815260186020526040902054610aba908b9061137b565b33600090815260186020526040902055601354610ad8908b9061137b565b601355610ae3611393565b610aed338b611493565b50505050505050505050565b6000610b04826115b9565b9050836001600160a01b0316816001600160a01b031614610b375760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b8457610b678633610702565b610b8457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bab57604051633a954ecd60e21b815260040160405180910390fd5b8015610bb657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c415760018401600081815260046020526040902054610c3f576000548114610c3f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610cff5750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610d1e906001600160601b031687611e01565b610d289190611e36565b915196919550909350505050565b610d3e61161a565b60405133904780156108fc02916000818181858888f19350505050158015610d6a573d6000803e3d6000fd5b50565b610d8883838360405180602001604052806000815250611054565b505050565b610d9561161a565b8051610da8906015906020840190611962565b50506017805462ff0000198116620100009182900460ff1615909102179055565b610dd161161a565b6017805460ff19811660ff90911615179055565b6000610780826115b9565b60158054610dfd90611db0565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2990611db0565b8015610e765780601f10610e4b57610100808354040283529160200191610e76565b820191906000526020600020905b815481529060010190602001808311610e5957829003601f168201915b505050505081565b60006001600160a01b038216610ea7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ed561161a565b610edf6000611674565b565b60168054610dfd90611db0565b60606003805461079590611db0565b601754610100900460ff16610f255760405163a9f4f87160e01b815260040160405180910390fd5b80600d54610f396109ee6001546000540390565b1115610f58576040516376592c6f60e01b815260040160405180910390fd5b8160105460008211610f7d5760405163b562e8dd60e01b815260040160405180910390fd5b34610f888284611387565b14610fa65760405163168afe2b60e31b815260040160405180910390fd5b610fae611393565b610fb83385611493565b50505050565b6001600160a01b038216331415610fe85760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61105f848484610af9565b6001600160a01b0383163b15610fb85761107b848484846116c6565b610fb8576040516368d2bf6b60e11b815260040160405180910390fd5b60148054610dfd90611db0565b60606110b08261133e565b6111015760405162461bcd60e51b815260206004820152601b60248201527f455243373231613a20746f6b656e206e6f6e6578697374656e7421000000000060448201526064015b60405180910390fd5b60175462010000900460ff1661117057600061111b6117be565b9050600081511161113b5760405180602001604052806000815250611169565b80611145846117cd565b601460405160200161115993929190611e4a565b6040516020818303038152906040525b9392505050565b600061111b6118cb565b61118261161a565b80600081116111a45760405163b562e8dd60e01b815260040160405180910390fd5b81600e548111156111c857604051630e362dc360e21b815260040160405180910390fd5b82600d546111dc6109ee6001546000540390565b11156111fb576040516376592c6f60e01b815260040160405180910390fd5b601254611208908561137b565b601255610fae611393565b61121b61161a565b600b55565b61122861161a565b6017805461ff001981166101009182900460ff1615909102179055565b61124d61161a565b6001600160a01b0381166112b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110f8565b610d6a81611674565b60006301ffc9a760e01b6001600160e01b0319831614806112ec57506380ac58cd60e01b6001600160e01b03198316145b806107805750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061078057506301ffc9a760e01b6001600160e01b0319831614610780565b6000805482108015610780575050600090815260046020526040902054600160e01b161590565b60008261137285846118da565b14949350505050565b60006111698284611f0e565b60006111698284611e01565b60006113ab60646113a534600a611387565b90611927565b9050804710156113fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110f8565b60175460405163010000009091046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561143d573d6000803e3d6000fd5b506017546040805130815263010000009092046001600160a01b0316602083015281018290527f76a4dcf5f1c94bb3b37c6653482e44cd64d7cb61faf13bc83947485d5f2a9a509060600160405180910390a150565b600054816114e35760405162461bcd60e51b815260206004820152601c60248201527f455243373231613a204d696e74205a65726f205175616e74697479210000000060448201526064016110f8565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461159257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161155a565b50816115b057604051622e076360e81b815260040160405180910390fd5b60005550505050565b60008160005481101561160157600081815260046020526040902054600160e01b81166115ff575b806111695750600019016000818152600460205260409020546115e1565b505b604051636f96cda160e11b815260040160405180910390fd5b600a546001600160a01b03163314610edf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110f8565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116fb903390899088908890600401611f26565b602060405180830381600087803b15801561171557600080fd5b505af1925050508015611745575060408051601f3d908101601f1916820190925261174291810190611f63565b60015b6117a0573d808015611773576040519150601f19603f3d011682016040523d82523d6000602084013e611778565b606091505b508051611798576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606016805461079590611db0565b6060816117f15750506040805180820190915260018152600360fc1b602082015290565b8160005b811561181b578061180581611f80565b91506118149050600a83611e36565b91506117f5565b60008167ffffffffffffffff81111561183657611836611bf0565b6040519080825280601f01601f191660200182016040528015611860576020820181803683370190505b5090505b84156117b657611875600183611f9b565b9150611882600a86611fb2565b61188d906030611f0e565b60f81b8183815181106118a2576118a2611fc6565b60200101906001600160f81b031916908160001a9053506118c4600a86611e36565b9450611864565b60606015805461079590611db0565b600081815b845181101561191f5761190b828683815181106118fe576118fe611fc6565b6020026020010151611933565b91508061191781611f80565b9150506118df565b509392505050565b60006111698284611e36565b600081831061194f576000828152602084905260409020611169565b6000838152602083905260409020611169565b82805461196e90611db0565b90600052602060002090601f01602090048101928261199057600085556119d6565b82601f106119a957805160ff19168380011785556119d6565b828001600101855582156119d6579182015b828111156119d65782518255916020019190600101906119bb565b506119e29291506119e6565b5090565b5b808211156119e257600081556001016119e7565b6001600160e01b031981168114610d6a57600080fd5b600060208284031215611a2357600080fd5b8135611169816119fb565b60005b83811015611a49578181015183820152602001611a31565b83811115610fb85750506000910152565b60008151808452611a72816020860160208601611a2e565b601f01601f19169290920160200192915050565b6020815260006111696020830184611a5a565b600060208284031215611aab57600080fd5b5035919050565b80356001600160a01b0381168114611ac957600080fd5b919050565b60008060408385031215611ae157600080fd5b611aea83611ab2565b946020939093013593505050565b600080600060408486031215611b0d57600080fd5b83359250602084013567ffffffffffffffff80821115611b2c57600080fd5b818601915086601f830112611b4057600080fd5b813581811115611b4f57600080fd5b8760208260051b8501011115611b6457600080fd5b6020830194508093505050509250925092565b600060208284031215611b8957600080fd5b61116982611ab2565b600080600060608486031215611ba757600080fd5b611bb084611ab2565b9250611bbe60208501611ab2565b9150604084013590509250925092565b60008060408385031215611be157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c2157611c21611bf0565b604051601f8501601f19908116603f01168101908282118183101715611c4957611c49611bf0565b81604052809350858152868686011115611c6257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611c8e57600080fd5b813567ffffffffffffffff811115611ca557600080fd5b8201601f81018413611cb657600080fd5b6117b684823560208401611c06565b60008060408385031215611cd857600080fd5b611ce183611ab2565b915060208301358015158114611cf657600080fd5b809150509250929050565b60008060008060808587031215611d1757600080fd5b611d2085611ab2565b9350611d2e60208601611ab2565b925060408501359150606085013567ffffffffffffffff811115611d5157600080fd5b8501601f81018713611d6257600080fd5b611d7187823560208401611c06565b91505092959194509250565b60008060408385031215611d9057600080fd5b611d9983611ab2565b9150611da760208401611ab2565b90509250929050565b600181811c90821680611dc457607f821691505b60208210811415611de557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611e1b57611e1b611deb565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611e4557611e45611e20565b500490565b600084516020611e5d8285838a01611a2e565b855191840191611e708184848a01611a2e565b8554920191600090600181811c9080831680611e8d57607f831692505b858310811415611eab57634e487b7160e01b85526022600452602485fd5b808015611ebf5760018114611ed057611efd565b60ff19851688528388019550611efd565b60008b81526020902060005b85811015611ef55781548a820152908401908801611edc565b505083880195505b50939b9a5050505050505050505050565b60008219821115611f2157611f21611deb565b500190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f5990830184611a5a565b9695505050505050565b600060208284031215611f7557600080fd5b8151611169816119fb565b6000600019821415611f9457611f94611deb565b5060010190565b600082821015611fad57611fad611deb565b500390565b600082611fc157611fc1611e20565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a12ad70db66068bc8cc87a7956137994a605970f1548952f7a743faae5bda0b864736f6c63430008090033
Deployed Bytecode Sourcemap
494:7456:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4175:254;;;;;;;;;;-1:-1:-1;4175:254:10;;;;;:::i;:::-;;:::i;:::-;;;565:14:13;;558:22;540:41;;528:2;513:18;4175:254:10;;;;;;;;9851:94:4;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;15935:236::-;;;;;;;;;;-1:-1:-1;15935:236:4;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:13;;;1674:51;;1662:2;1647:18;15935:236:4;1528:203:13;15430:362:4;;;;;;;;;;-1:-1:-1;15430:362:4;;;;;:::i;:::-;;:::i;:::-;;1570:35:10;;;;;;;;;;-1:-1:-1;1570:35:10;;;;;;;-1:-1:-1;;;;;1570:35:10;;;5157:654;;;;;;:::i;:::-;;:::i;1687:57::-;;;;;;;;;;-1:-1:-1;1687:57:10;;;;;:::i;:::-;;;;;;;;;;;;;;;;;3422:25:13;;;3410:2;3395:18;1687:57:10;3276:177:13;1346:27:10;;;;;;;;;;-1:-1:-1;1346:27:10;;;;;;;;5778:299:4;;;;;;;;;;-1:-1:-1;6034:12:4;;5839:7;6018:13;:28;5778:299;;19456:2567;;;;;;;;;;-1:-1:-1;19456:2567:4;;;;;:::i;:::-;;:::i;1678:449:3:-;;;;;;;;;;-1:-1:-1;1678:449:3;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4236:32:13;;;4218:51;;4300:2;4285:18;;4278:34;;;;4191:18;1678:449:3;4044:274:13;856:26:10;;;;;;;;;;;;;;;;1018:32;;;;;;;;;;;;;;;;650:34;;;;;;;;;;;;;;;;7836:111;;;:::i;22111:165:4:-;;;;;;;;;;-1:-1:-1;22111:165:4;;;;;:::i;:::-;;:::i;1131:35:10:-;;;;;;;;;;;;;;;;1500:20;;;;;;;;;;-1:-1:-1;1500:20:10;;;;;;;;;;;7705:125;;;;;;;;;;-1:-1:-1;7705:125:10;;;;;:::i;:::-;;:::i;7512:95::-;;;;;;;;;;;;;:::i;11215:174:4:-;;;;;;;;;;-1:-1:-1;11215:174:4;;;;;:::i;:::-;;:::i;1240:26:10:-;;;;;;;;;;;;;:::i;6878:251:4:-;;;;;;;;;;-1:-1:-1;6878:251:4;;;;;:::i;:::-;;:::i;1819:97:9:-;;;;;;;;;;;;;:::i;732:31:10:-;;;;;;;;;;;;;;;;1207:81:9;;;;;;;;;;-1:-1:-1;1276:6:9;;-1:-1:-1;;;;;1276:6:9;1207:81;;1293:32:10;;;;;;;;;;;;;:::i;10013:98:4:-;;;;;;;;;;;;;:::i;802:29:10:-;;;;;;;;;;;;;;;;5998:216;;;;;;:::i;:::-;;:::i;16487:312:4:-;;;;;;;;;;-1:-1:-1;16487:312:4;;;;;:::i;:::-;;:::i;1426:24:10:-;;;;;;;;;;-1:-1:-1;1426:24:10;;;;;;;;;;;1078:28;;;;;;;;;;;;;;;;22842:351:4;;;;;;;;;;-1:-1:-1;22842:351:4;;;;;:::i;:::-;;:::i;1198:37:10:-;;;;;;;;;;;;;:::i;6220:844::-;;;;;;;;;;-1:-1:-1;6220:844:10;;;;;:::i;:::-;;:::i;967:23::-;;;;;;;;;;;;;;;;4647:289;;;;;;:::i;:::-;;:::i;7400:106::-;;;;;;;;;;-1:-1:-1;7400:106:10;;;;;:::i;:::-;;:::i;7613:86::-;;;;;;;;;;;;;:::i;16944:186:4:-;;;;;;;;;;-1:-1:-1;16944:186:4;;;;;:::i;:::-;-1:-1:-1;;;;;17089:25:4;;;17066:4;17089:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;16944:186;2061:191:9;;;;;;;;;;-1:-1:-1;2061:191:9;;;;;:::i;:::-;;:::i;904:33:10:-;;;;;;;;;;;;;;;;4175:254;4304:4;4334:39;4360:12;4334:25;:39::i;:::-;:89;;;;4384:39;4410:12;4384:25;:39::i;:::-;4320:103;4175:254;-1:-1:-1;;4175:254:10:o;9851:94:4:-;9905:13;9934:5;9927:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9851:94;:::o;15935:236::-;16036:7;16060:16;16068:7;16060;:16::i;:::-;16055:64;;16085:34;;-1:-1:-1;;;16085:34:4;;;;;;;;;;;16055:64;-1:-1:-1;16135:24:4;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16135:30:4;;15935:236::o;15430:362::-;15507:13;15523:16;15531:7;15523;:16::i;:::-;15507:32;-1:-1:-1;37368:10:4;-1:-1:-1;;;;;15552:28:4;;;15548:155;;15594:44;15611:5;37368:10;16944:186;:::i;15594:44::-;15589:114;;15658:35;;-1:-1:-1;;;15658:35:4;;;;;;;;;;;15589:114;15711:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;15711:35:4;-1:-1:-1;;;;;15711:35:4;;;;;;;;;15758:28;;15711:24;;15758:28;;;;;;;15500:292;15430:362;;:::o;5157:654:10:-;2684:15;;;;2679:47;;2708:18;;-1:-1:-1;;;2708:18:10;;;;;;;;;;;2679:47;5297:6:::1;;5305:19;;2991:55;3010:6;;2991:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;7361:26:10;;;3034:10:::1;10721:2:13::0;10717:15;-1:-1:-1;;10713:53:13;7361:26:10;;;;10701:66:13;;;;7361:26:10;;;;;;;;;10783:12:13;;;;7361:26:10;;;7351:37;;;;;3018:9;;-1:-1:-1;7351:37:10;-1:-1:-1;2991:18:10::1;:55::i;:::-;2986:91;;3062:15;;-1:-1:-1::0;;;3062:15:10::1;;;;;;;;;;;2986:91;5358:9:::2;3301:18;;3289:9;:30;3285:58;;;3328:15;;-1:-1:-1::0;;;3328:15:10::2;;;;;;;;;;;3285:58;5393:9:::3;2835:14;;2804:28;2818:13;6034:12:4::0;;5839:7;6018:13;:28;;5778:299;2818:13:10::3;2804:9:::0;;:13:::3;:28::i;:::-;:45;2800:86;;;2865:21;;-1:-1:-1::0;;;2865:21:10::3;;;;;;;;;;;2800:86;5426:9:::4;5437:17;;3451:1;3438:9;:14;3434:45;;3461:18;;-1:-1:-1::0;;;3461:18:10::4;;;;;;;;;;;3434:45;3518:9;3490:24;:9:::0;3504;3490:13:::4;:24::i;:::-;:37;3486:62;;3536:12;;-1:-1:-1::0;;;3536:12:10::4;;;;;;;;;;;3486:62;5522:16:::5;::::0;5507:10:::5;5484:34;::::0;;;:22:::5;:34;::::0;;;;;5470:49:::5;::::0;:9;;:13:::5;:49::i;:::-;:68;5466:113;;;5556:15;;-1:-1:-1::0;;;5556:15:10::5;;;;;;;;;;;5466:113;5669:10;5646:34;::::0;;;:22:::5;:34;::::0;;;;;5624:63:::5;::::0;:9;;:13:::5;:63::i;:::-;5610:10;5587:34;::::0;;;:22:::5;:34;::::0;;;;:100;5731:20:::5;::::0;5717:35:::5;::::0;:9;;:13:::5;:35::i;:::-;5694:20;:58:::0;5761:9:::5;:7;:9::i;:::-;5777:28;5783:10;5795:9;5777:5;:28::i;:::-;2893:1:::4;;3350::::3;3084::::2;2733::::1;;;5157:654:::0;;;:::o;19456:2567:4:-;19572:27;19602;19621:7;19602:18;:27::i;:::-;19572:57;;19683:4;-1:-1:-1;;;;;19642:45:4;19658:19;-1:-1:-1;;;;;19642:45:4;;19638:93;;19703:28;;-1:-1:-1;;;19703:28:4;;;;;;;;;;;19638:93;19749:27;18630:24;;;:15;:24;;;;;18832:26;;37368:10;18287:30;;;-1:-1:-1;;;;;18004:28:4;;18265:20;;;18262:56;19940:183;;20027:43;20044:4;37368:10;16944:186;:::i;20027:43::-;20022:101;;20088:35;;-1:-1:-1;;;20088:35:4;;;;;;;;;;;20022:101;-1:-1:-1;;;;;20136:16:4;;20132:52;;20161:23;;-1:-1:-1;;;20161:23:4;;;;;;;;;;;20132:52;20315:15;20312:138;;;20439:1;20418:19;20411:30;20312:138;-1:-1:-1;;;;;20798:24:4;;;;;;;:18;:24;;;;;;20796:26;;-1:-1:-1;;20796:26:4;;;20861:22;;;;;;;;;20859:24;;-1:-1:-1;20859:24:4;;;14346:11;14321:23;14317:41;14304:63;-1:-1:-1;;;14304:63:4;21118:26;;;;:17;:26;;;;;:164;-1:-1:-1;;;21390:47:4;;21386:535;;21487:1;21477:11;;21455:19;21594:30;;;:17;:30;;;;;;21590:322;;21712:13;;21697:11;:28;21693:208;;21835:30;;;;:17;:30;;;;;:52;;;21693:208;21444:477;21386:535;21960:7;21956:2;-1:-1:-1;;;;;21941:27:4;21950:4;-1:-1:-1;;;;;21941:27:4;;;;;;;;;;;19565:2458;;;19456:2567;;;:::o;1678:449:3:-;1800:7;1857:27;;;:17;:27;;;;;;;;1828:56;;;;;;;;;-1:-1:-1;;;;;1828:56:3;;;;;-1:-1:-1;;;1828:56:3;;;-1:-1:-1;;;;;1828:56:3;;;;;;;;1800:7;;1893:82;;-1:-1:-1;1938:29:3;;;;;;;;;1948:19;1938:29;-1:-1:-1;;;;;1938:29:3;;;;-1:-1:-1;;;1938:29:3;;-1:-1:-1;;;;;1938:29:3;;;;;1893:82;2021:23;;;;1983:21;;2477:5;;2008:36;;-1:-1:-1;;;;;2008:36:3;:10;:36;:::i;:::-;2007:65;;;;:::i;:::-;2089:16;;;;;-1:-1:-1;1678:449:3;;-1:-1:-1;;;;1678:449:3:o;7836:111:10:-;1107:13:9;:11;:13::i;:::-;7890:51:10::1;::::0;7898:10:::1;::::0;7919:21:::1;7890:51:::0;::::1;;;::::0;::::1;::::0;;;7919:21;7898:10;7890:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;7836:111::o:0;22111:165:4:-;22231:39;22248:4;22254:2;22258:7;22231:39;;;;;;;;;;;;:16;:39::i;:::-;22111:165;;;:::o;7705:125:10:-;1107:13:9;:11;:13::i;:::-;7776:21:10;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;;7816:8:10::1;::::0;;-1:-1:-1;;7804:20:10;::::1;7816:8:::0;;;;::::1;;;7815:9;7804:20:::0;;::::1;;::::0;;7705:125::o;7512:95::-;1107:13:9;:11;:13::i;:::-;7586:15:10::1;::::0;;-1:-1:-1;;7567:34:10;::::1;7586:15;::::0;;::::1;7585:16;7567:34;::::0;;7512:95::o;11215:174:4:-;11312:7;11354:27;11373:7;11354:18;:27::i;1240:26:10:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;6878:251:4:-;6975:7;-1:-1:-1;;;;;6998:19:4;;6994:60;;7026:28;;-1:-1:-1;;;7026:28:4;;;;;;;;;;;6994:60;-1:-1:-1;;;;;;7068:25:4;;;;;:18;:25;;;;;;1323:13;7068:55;;6878:251::o;1819:97:9:-;1107:13;:11;:13::i;:::-;1880:30:::1;1907:1;1880:18;:30::i;:::-;1819:97::o:0;1293:32:10:-;;;;;;;:::i;10013:98:4:-;10069:13;10098:7;10091:14;;;;;:::i;5998:216:10:-;2585:12;;;;;;;2580:45;;2606:19;;-1:-1:-1;;;2606:19:10;;;;;;;;;;;2580:45;6100:9:::1;2835:14;;2804:28;2818:13;6034:12:4::0;;5839:7;6018:13;:28;;5778:299;2804:28:10::1;:45;2800:86;;;2865:21;;-1:-1:-1::0;;;2865:21:10::1;;;;;;;;;;;2800:86;6133:9:::2;6144:8;;3451:1;3438:9;:14;3434:45;;3461:18;;-1:-1:-1::0;;;3461:18:10::2;;;;;;;;;;;3434:45;3518:9;3490:24;:9:::0;3504;3490:13:::2;:24::i;:::-;:37;3486:62;;3536:12;;-1:-1:-1::0;;;3536:12:10::2;;;;;;;;;;;3486:62;6164:9:::3;:7;:9::i;:::-;6180:28;6186:10;6198:9;6180:5;:28::i;:::-;2893:1:::2;;2632::::1;5998:216:::0;:::o;16487:312:4:-;-1:-1:-1;;;;;16600:31:4;;37368:10;16600:31;16596:61;;;16640:17;;-1:-1:-1;;;16640:17:4;;;;;;;;;;;16596:61;37368:10;16666:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;16666:49:4;;;;;;;;;;;;:60;;-1:-1:-1;;16666:60:4;;;;;;;;;;16738:55;;540:41:13;;;16666:49:4;;37368:10;16738:55;;513:18:13;16738:55:4;;;;;;;16487:312;;:::o;22842:351::-;22987:31;23000:4;23006:2;23010:7;22987:12;:31::i;:::-;-1:-1:-1;;;;;23029:14:4;;;:19;23025:163;;23062:56;23093:4;23099:2;23103:7;23112:5;23062:30;:56::i;:::-;23057:131;;23138:40;;-1:-1:-1;;;23138:40:4;;;;;;;;;;;1198:37:10;;;;;;;:::i;6220:844::-;6306:13;6339:17;6347:8;6339:7;:17::i;:::-;6331:57;;;;-1:-1:-1;;;6331:57:10;;8353:2:13;6331:57:10;;;8335:21:13;8392:2;8372:18;;;8365:30;8431:29;8411:18;;;8404:57;8478:18;;6331:57:10;;;;;;;;;6402:8;;;;;;;6397:355;;6421:34;6458:16;:14;:16::i;:::-;6421:53;;6538:1;6507:20;6501:34;:38;:243;;;;;;;;;;;;;;;;;6607:20;6644:26;6661:8;6644:16;:26::i;:::-;6687:13;6574:141;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;6501:243;6485:259;6220:844;-1:-1:-1;;;6220:844:10:o;6397:355::-;6781:28;6812:10;:8;:10::i;4647:289::-;1107:13:9;:11;:13::i;:::-;4743:9:10::1;3634:1;3621:9;:14;3617:45;;3644:18;;-1:-1:-1::0;;;3644:18:10::1;;;;;;;;;;;3617:45;4779:9:::2;3168:11;;3156:9;:23;3152:51;;;3188:15;;-1:-1:-1::0;;;3188:15:10::2;;;;;;;;;;;3152:51;4814:9:::3;2835:14;;2804:28;2818:13;6034:12:4::0;;5839:7;6018:13;:28;;5778:299;2804:28:10::3;:45;2800:86;;;2865:21;;-1:-1:-1::0;;;2865:21:10::3;;;;;;;;;;;2800:86;4851:13:::4;::::0;:28:::4;::::0;4869:9;4851:17:::4;:28::i;:::-;4835:13;:44:::0;4886:9:::4;:7;:9::i;7400:106::-:0;1107:13:9;:11;:13::i;:::-;7473:19:10::1;:27:::0;7400:106::o;7613:86::-;1107:13:9;:11;:13::i;:::-;7681:12:10::1;::::0;;-1:-1:-1;;7665:28:10;::::1;7681:12;::::0;;;::::1;;;7680:13;7665:28:::0;;::::1;;::::0;;7613:86::o;2061:191:9:-;1107:13;:11;:13::i;:::-;-1:-1:-1;;;;;2146:22:9;::::1;2138:73;;;::::0;-1:-1:-1;;;2138:73:9;;10367:2:13;2138:73:9::1;::::0;::::1;10349:21:13::0;10406:2;10386:18;;;10379:30;10445:34;10425:18;;;10418:62;-1:-1:-1;;;10496:18:13;;;10489:36;10542:19;;2138:73:9::1;10165:402:13::0;2138:73:9::1;2218:28;2237:8;2218:18;:28::i;8975:627:4:-:0;9085:4;-1:-1:-1;;;;;;;;;9386:25:4;;;;:96;;-1:-1:-1;;;;;;;;;;9457:25:4;;;9386:96;:167;;;-1:-1:-1;;;;;;;;9528:25:4;-1:-1:-1;;;9528:25:4;;8975:627::o;1380:251:3:-;1507:4;-1:-1:-1;;;;;;1537:41:3;;-1:-1:-1;;;1537:41:3;;:88;;-1:-1:-1;;;;;;;;;;979:40:2;;;1589:36:3;846:179:2;17372:258:4;17437:4;17511:13;;17501:7;:23;17464:141;;;;-1:-1:-1;;17556:26:4;;;;:17;:26;;;;;;-1:-1:-1;;;17556:44:4;:49;;17372:258::o;1179:190:8:-;1304:4;1357;1328:25;1341:5;1348:4;1328:12;:25::i;:::-;:33;;1179:190;-1:-1:-1;;;;1179:190:8:o;2847:98:11:-;2905:7;2932:5;2936:1;2932;:5;:::i;3585:98::-;3643:7;3670:5;3674:1;3670;:5;:::i;3808:300:10:-;3843:11;3857:26;3879:3;3857:17;:9;3871:2;3857:13;:17::i;:::-;:21;;:26::i;:::-;3843:40;;3979:3;3954:21;:28;;3946:70;;;;-1:-1:-1;;;3946:70:10;;11141:2:13;3946:70:10;;;11123:21:13;11180:2;11160:18;;;11153:30;11219:31;11199:18;;;11192:59;11268:18;;3946:70:10;10939:353:13;3946:70:10;4023:12;;:26;;:12;;;;-1:-1:-1;;;;;4023:12:10;;:26;;;;;;;;;;;;:12;:26;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4084:12:10;;4061:41;;;4077:4;11545:34:13;;4084:12:10;;;;-1:-1:-1;;;;;4084:12:10;11610:2:13;11595:18;;11588:43;11647:18;;11640:34;;;4061:41:10;;11495:2:13;11480:18;4061:41:10;;;;;;;3836:272;3808:300::o;26244:2117:4:-;26313:20;26336:13;26364:12;26356:53;;;;-1:-1:-1;;;26356:53:4;;11887:2:13;26356:53:4;;;11869:21:13;11926:2;11906:18;;;11899:30;11965;11945:18;;;11938:58;12013:18;;26356:53:4;11685:352:13;26356:53:4;-1:-1:-1;;;;;26841:22:4;;;;;;:18;:22;;;;1457:2;26841:22;;;:71;;26879:32;26867:45;;26841:71;;;27119:31;;;:17;:31;;;;;-1:-1:-1;14761:15:4;;14735:24;14731:46;14346:11;14321:23;14317:41;14314:52;14304:63;;27119:151;;27320:23;;;;27119:31;;26841:22;;27745:25;26841:22;;27628:267;27957:1;27943:12;27939:20;27907:282;27990:3;27981:7;27978:16;27907:282;;28170:7;28160:8;28157:1;28130:25;28127:1;28124;28119:59;28033:1;28020:15;27907:282;;;-1:-1:-1;28210:13:4;28206:45;;28232:19;;-1:-1:-1;;;28232:19:4;;;;;;;;;;;28206:45;28262:13;:19;-1:-1:-1;22111:165:4;;;:::o;12376:1037::-;12443:7;12474;12558:13;;12551:4;:20;12547:809;;;12586:14;12603:23;;;:17;:23;;;;;;-1:-1:-1;;;12672:24:4;;12668:677;;13217:87;13224:11;13217:87;;-1:-1:-1;;;13281:6:4;13263:25;;;;:17;:25;;;;;;13217:87;;12668:677;12573:783;12547:809;13376:31;;-1:-1:-1;;;13376:31:4;;;;;;;;;;;1358:126:9;1276:6;;-1:-1:-1;;;;;1276:6:9;37368:10:4;1418:23:9;1410:68;;;;-1:-1:-1;;;1410:68:9;;12244:2:13;1410:68:9;;;12226:21:13;;;12263:18;;;12256:30;12322:34;12302:18;;;12295:62;12374:18;;1410:68:9;12042:356:13;2402:177:9;2491:6;;;-1:-1:-1;;;;;2504:17:9;;;-1:-1:-1;;;;;;2504:17:9;;;;;;;2533:40;;2491:6;;;2504:17;2491:6;;2533:40;;2472:16;;2533:40;2465:114;2402:177;:::o;25151:659:4:-;25320:133;;-1:-1:-1;;;25320:133:4;;25296:4;;-1:-1:-1;;;;;25320:45:4;;;;;:133;;37368:10;;25406:4;;25421:7;;25439:5;;25320:133;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25320:133:4;;;;;;;;-1:-1:-1;;25320:133:4;;;;;;;;;;;;:::i;:::-;;;25309:496;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25613:13:4;;25609:189;;25651:40;;-1:-1:-1;;;25651:40:4;;;;;;;;;;;25609:189;25770:6;25764:13;25755:6;25751:2;25747:15;25740:38;25309:496;-1:-1:-1;;;;;;25499:64:4;-1:-1:-1;;;25499:64:4;;-1:-1:-1;25309:496:4;25151:659;;;;;;:::o;7170:97:10:-;7219:13;7248;7241:20;;;;;:::i;407:723:12:-;463:13;684:10;680:53;;-1:-1:-1;;711:10:12;;;;;;;;;;;;-1:-1:-1;;;711:10:12;;;;;407:723::o;680:53::-;758:5;743:12;799:78;806:9;;799:78;;832:8;;;;:::i;:::-;;-1:-1:-1;855:10:12;;-1:-1:-1;863:2:12;855:10;;:::i;:::-;;;799:78;;;887:19;919:6;909:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;909:17:12;;887:39;;937:154;944:10;;937:154;;971:11;981:1;971:11;;:::i;:::-;;-1:-1:-1;1040:10:12;1048:2;1040:5;:10;:::i;:::-;1027:24;;:2;:24;:::i;:::-;1014:39;;997:6;1004;997:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;997:56:12;;;;;;;;-1:-1:-1;1068:11:12;1077:2;1068:11;;:::i;:::-;;;937:154;;7070:94:10;7122:13;7151:7;7144:14;;;;;:::i;2046:296:8:-;2129:7;2172:4;2129:7;2187:118;2211:5;:12;2207:1;:16;2187:118;;;2260:33;2270:12;2284:5;2290:1;2284:8;;;;;;;;:::i;:::-;;;;;;;2260:9;:33::i;:::-;2245:48;-1:-1:-1;2225:3:8;;;;:::i;:::-;;;;2187:118;;;-1:-1:-1;2322:12:8;2046:296;-1:-1:-1;;;2046:296:8:o;3984:98:11:-;4042:7;4069:5;4073:1;4069;:5;:::i;8253:149:8:-;8316:7;8347:1;8343;:5;:51;;8478:13;8572:15;;;8608:4;8601:15;;;8655:4;8639:21;;8343:51;;;8478:13;8572:15;;;8608:4;8601:15;;;8655:4;8639:21;;8351:20;8410:268;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:13;-1:-1:-1;;;;;;88:32:13;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:13;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:13;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:13:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:13;;1343:180;-1:-1:-1;1343:180:13:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:13;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:13:o;2397:683::-;2492:6;2500;2508;2561:2;2549:9;2540:7;2536:23;2532:32;2529:52;;;2577:1;2574;2567:12;2529:52;2613:9;2600:23;2590:33;;2674:2;2663:9;2659:18;2646:32;2697:18;2738:2;2730:6;2727:14;2724:34;;;2754:1;2751;2744:12;2724:34;2792:6;2781:9;2777:22;2767:32;;2837:7;2830:4;2826:2;2822:13;2818:27;2808:55;;2859:1;2856;2849:12;2808:55;2899:2;2886:16;2925:2;2917:6;2914:14;2911:34;;;2941:1;2938;2931:12;2911:34;2994:7;2989:2;2979:6;2976:1;2972:14;2968:2;2964:23;2960:32;2957:45;2954:65;;;3015:1;3012;3005:12;2954:65;3046:2;3042;3038:11;3028:21;;3068:6;3058:16;;;;;2397:683;;;;;:::o;3085:186::-;3144:6;3197:2;3185:9;3176:7;3172:23;3168:32;3165:52;;;3213:1;3210;3203:12;3165:52;3236:29;3255:9;3236:29;:::i;3458:328::-;3535:6;3543;3551;3604:2;3592:9;3583:7;3579:23;3575:32;3572:52;;;3620:1;3617;3610:12;3572:52;3643:29;3662:9;3643:29;:::i;:::-;3633:39;;3691:38;3725:2;3714:9;3710:18;3691:38;:::i;:::-;3681:48;;3776:2;3765:9;3761:18;3748:32;3738:42;;3458:328;;;;;:::o;3791:248::-;3859:6;3867;3920:2;3908:9;3899:7;3895:23;3891:32;3888:52;;;3936:1;3933;3926:12;3888:52;-1:-1:-1;;3959:23:13;;;4029:2;4014:18;;;4001:32;;-1:-1:-1;3791:248:13:o;4505:127::-;4566:10;4561:3;4557:20;4554:1;4547:31;4597:4;4594:1;4587:15;4621:4;4618:1;4611:15;4637:632;4702:5;4732:18;4773:2;4765:6;4762:14;4759:40;;;4779:18;;:::i;:::-;4854:2;4848:9;4822:2;4908:15;;-1:-1:-1;;4904:24:13;;;4930:2;4900:33;4896:42;4884:55;;;4954:18;;;4974:22;;;4951:46;4948:72;;;5000:18;;:::i;:::-;5040:10;5036:2;5029:22;5069:6;5060:15;;5099:6;5091;5084:22;5139:3;5130:6;5125:3;5121:16;5118:25;5115:45;;;5156:1;5153;5146:12;5115:45;5206:6;5201:3;5194:4;5186:6;5182:17;5169:44;5261:1;5254:4;5245:6;5237;5233:19;5229:30;5222:41;;;;4637:632;;;;;:::o;5274:451::-;5343:6;5396:2;5384:9;5375:7;5371:23;5367:32;5364:52;;;5412:1;5409;5402:12;5364:52;5452:9;5439:23;5485:18;5477:6;5474:30;5471:50;;;5517:1;5514;5507:12;5471:50;5540:22;;5593:4;5585:13;;5581:27;-1:-1:-1;5571:55:13;;5622:1;5619;5612:12;5571:55;5645:74;5711:7;5706:2;5693:16;5688:2;5684;5680:11;5645:74;:::i;5730:347::-;5795:6;5803;5856:2;5844:9;5835:7;5831:23;5827:32;5824:52;;;5872:1;5869;5862:12;5824:52;5895:29;5914:9;5895:29;:::i;:::-;5885:39;;5974:2;5963:9;5959:18;5946:32;6021:5;6014:13;6007:21;6000:5;5997:32;5987:60;;6043:1;6040;6033:12;5987:60;6066:5;6056:15;;;5730:347;;;;;:::o;6082:667::-;6177:6;6185;6193;6201;6254:3;6242:9;6233:7;6229:23;6225:33;6222:53;;;6271:1;6268;6261:12;6222:53;6294:29;6313:9;6294:29;:::i;:::-;6284:39;;6342:38;6376:2;6365:9;6361:18;6342:38;:::i;:::-;6332:48;;6427:2;6416:9;6412:18;6399:32;6389:42;;6482:2;6471:9;6467:18;6454:32;6509:18;6501:6;6498:30;6495:50;;;6541:1;6538;6531:12;6495:50;6564:22;;6617:4;6609:13;;6605:27;-1:-1:-1;6595:55:13;;6646:1;6643;6636:12;6595:55;6669:74;6735:7;6730:2;6717:16;6712:2;6708;6704:11;6669:74;:::i;:::-;6659:84;;;6082:667;;;;;;;:::o;6939:260::-;7007:6;7015;7068:2;7056:9;7047:7;7043:23;7039:32;7036:52;;;7084:1;7081;7074:12;7036:52;7107:29;7126:9;7107:29;:::i;:::-;7097:39;;7155:38;7189:2;7178:9;7174:18;7155:38;:::i;:::-;7145:48;;6939:260;;;;;:::o;7204:380::-;7283:1;7279:12;;;;7326;;;7347:61;;7401:4;7393:6;7389:17;7379:27;;7347:61;7454:2;7446:6;7443:14;7423:18;7420:38;7417:161;;;7500:10;7495:3;7491:20;7488:1;7481:31;7535:4;7532:1;7525:15;7563:4;7560:1;7553:15;7417:161;;7204:380;;;:::o;7589:127::-;7650:10;7645:3;7641:20;7638:1;7631:31;7681:4;7678:1;7671:15;7705:4;7702:1;7695:15;7721:168;7761:7;7827:1;7823;7819:6;7815:14;7812:1;7809:21;7804:1;7797:9;7790:17;7786:45;7783:71;;;7834:18;;:::i;:::-;-1:-1:-1;7874:9:13;;7721:168::o;7894:127::-;7955:10;7950:3;7946:20;7943:1;7936:31;7986:4;7983:1;7976:15;8010:4;8007:1;8000:15;8026:120;8066:1;8092;8082:35;;8097:18;;:::i;:::-;-1:-1:-1;8131:9:13;;8026:120::o;8633:1527::-;8857:3;8895:6;8889:13;8921:4;8934:51;8978:6;8973:3;8968:2;8960:6;8956:15;8934:51;:::i;:::-;9048:13;;9007:16;;;;9070:55;9048:13;9007:16;9092:15;;;9070:55;:::i;:::-;9214:13;;9147:20;;;9187:1;;9274;9296:18;;;;9349;;;;9376:93;;9454:4;9444:8;9440:19;9428:31;;9376:93;9517:2;9507:8;9504:16;9484:18;9481:40;9478:167;;;-1:-1:-1;;;9544:33:13;;9600:4;9597:1;9590:15;9630:4;9551:3;9618:17;9478:167;9661:18;9688:110;;;;9812:1;9807:328;;;;9654:481;;9688:110;-1:-1:-1;;9723:24:13;;9709:39;;9768:20;;;;-1:-1:-1;9688:110:13;;9807:328;8580:1;8573:14;;;8617:4;8604:18;;9902:1;9916:169;9930:8;9927:1;9924:15;9916:169;;;10012:14;;9997:13;;;9990:37;10055:16;;;;9947:10;;9916:169;;;9920:3;;10116:8;10109:5;10105:20;10098:27;;9654:481;-1:-1:-1;10151:3:13;;8633:1527;-1:-1:-1;;;;;;;;;;;8633:1527:13:o;10806:128::-;10846:3;10877:1;10873:6;10870:1;10867:13;10864:39;;;10883:18;;:::i;:::-;-1:-1:-1;10919:9:13;;10806:128::o;12403:489::-;-1:-1:-1;;;;;12672:15:13;;;12654:34;;12724:15;;12719:2;12704:18;;12697:43;12771:2;12756:18;;12749:34;;;12819:3;12814:2;12799:18;;12792:31;;;12597:4;;12840:46;;12866:19;;12858:6;12840:46;:::i;:::-;12832:54;12403:489;-1:-1:-1;;;;;;12403:489:13:o;12897:249::-;12966:6;13019:2;13007:9;12998:7;12994:23;12990:32;12987:52;;;13035:1;13032;13025:12;12987:52;13067:9;13061:16;13086:30;13110:5;13086:30;:::i;13151:135::-;13190:3;-1:-1:-1;;13211:17:13;;13208:43;;;13231:18;;:::i;:::-;-1:-1:-1;13278:1:13;13267:13;;13151:135::o;13291:125::-;13331:4;13359:1;13356;13353:8;13350:34;;;13364:18;;:::i;:::-;-1:-1:-1;13401:9:13;;13291:125::o;13421:112::-;13453:1;13479;13469:35;;13484:18;;:::i;:::-;-1:-1:-1;13518:9:13;;13421:112::o;13538:127::-;13599:10;13594:3;13590:20;13587:1;13580:31;13630:4;13627:1;13620:15;13654:4;13651:1;13644:15
Swarm Source
ipfs://a12ad70db66068bc8cc87a7956137994a605970f1548952f7a743faae5bda0b8
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.