Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1783
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xc5edb173...95De05f7b The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Esion
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /* MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0dc:;;:cokXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX0x,. .... .c0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWO,. .lkKXXKOo' .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO' .cKWMMMMMMMK; 'OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWl :XMMMMMMMMMWo .xMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWl .lWMMMMMMMMWk' '0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0Oc .kNMMMMMWKl. .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKOdlc;'.. . .dWMMMWd. 'd0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKko:'. ..,:ldxO00OOXWMMMW0l,. .'cxXWMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMWXkc,. .,cok0XNMMMMMMMMMMMMMMMMMWXOd:. .ckNMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMXx:. ':dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOl' ;kNMWXK0O0KNWMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMW0l. .,oONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXx; .;l;.. ..;lONMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMWKl. .lONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx' .;::;'. ;OWMMMMMMMM MMMMMMMMMMMMMMMMMMMXd. .oKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKc. cXWMMWNOc. .kMMMMMMMM MMMMMMMMMMMMMMMMMWO; .lKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWOdxXMMMMMMMNo :XMMMMMMM MMMMMMMMMMMMMMMMNd. ,OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMx. ;XMMMMMMM MMMMMMMMMMMMMMMNl. .cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK; lNMMMMMMM MMMMMMMMMMMMMMNo. .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNO; ,0MMMMMMMM MMMMMMMMMMMMMWk. lNMMMMMMMMMMMMMMMMMMMMMMMWKkoc::;;::lxKWMMMMMMMMMMMMMMMMMMMMKdccc:'. :0MMMMMMMMM MMMMMMMMMMMMMX; ,0MMMMMMMMMMMMMMMMMMMMMMXx;. .':ccc;. .cONMMMMMMMMMMMMMMMMMMk. .:xNMMMMMMMMMM MMMMMMMMMMMMMx. oWMMMMMMMMMMMMMMMMMMMMNx' 'lolc:;:okx:. .cKMMMMMMMMMMMMMMMMM0' 'ldkKWMMMMMMMMMMMM MMMMMMMMMMMMNc 'OMMMMMMMMMMMMMMMMMMMMXc .dx:. .:xx, ,0MMMMMMMMMMMMMMMM0' :XMMMMMMMMMMMMMMMM MMMMMMMMMMMMK, ;XMMMMMMMMMMMMMMMMMMMNl 'kd. .lk' lNMMMMMMMMMMMMMMM0' ,KMMMMMMMMMMMMMMMM MMMMMMMMMMMMO. cNMMMMMMMMMMMMMMMMMMMk. .xO' 'x: ;XMMMMMMMMMMMMMMMO. ,KMMMMMMMMMMMMMMMM MMMMMMMMMMMM0' cNMMMMMMMMMMMMMMMMMMWl ,KO. :x, cNMMMMMMMMMMMMMMWd. :XMMMMMMMMMMMMMMMM MMMMMMMMMMMMK, ;KMMMMMMMMMMMMMMMMMMWl '0No. .:kc .kWMMMMMMMMMMMMMMN: oWMMMMMMMMMMMMMMMM MMMMMMMMMMMMNc .kMMMMMMMMMMMMMMMMMMMk. cXWOl,.....;lkk; .dNMMMMMMMMMMMMMMMO. .kMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMk. cXMMMMMMMMMMMMMMMMMMWd. ,d0XNXKXXNWXl. ,kWMMMMMMMMMMMMMMMNc ;XMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMNl .dWMMMMMMMMMMMMMMMMMMWO:. ..;clcclOd. 'xNMMMMMMMMMMMMMMMMWk. .xWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMK: .xWMMMMMMMMMMMMMMMMMMMW0dc,... dO' :XMMMMMMMMMMMMMMMMM0, cNMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMK: .dNMMMMMMMMMMMMMMMMMMMMMMWXKO: .xO. :XMMMMMMMMMMMMMMMW0, ;KMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMXc. .cKWMMMMMMMMMMMMMMMMMMMMMMMMk. '' .kWMMMMMMMMMMMMMMNx. ;0MMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMNx' .lONMMMMMMMMMMMMMMMMMMMMMMWkl:,;l0WMMMMMMMMMMMMMW0:. .lKMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMXd, .,lodollcclodk0XWMMMMMMMMMMWWWMMMMMMMMMMMMMNOdc. .xWMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMXx;. .:OWMMMMMMMMMMMMMMMMMMMMMW0l' cXMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMWKkdollloool:. :NMMMMMMMMMMMMMMMMMMMWKc. .oNMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk:. .xWMMMMMMMMMMMMMMMMMMWk' .kWMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk; .oNMMMMMMMMMMMMMMMMMMNx. .:' ,KMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0:. .oNMMMMMMMMMMMMMMMMMMNo. ,kWk. oWMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMNd. lNMMMMMMMMMMMMMMMMMMWd. :KMMNc '0MMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMK: cKXK0Okxddooooooddxxkd. cXMMMMk. lNMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMM0, . .,,.. ,KMMMMMNc '0MMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMM0, .,. .,:cclll;. .kWMMMMMMk. oWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMM0, .c; .kWMMMMMWd'. ;XMMMMMMMK; ;KMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMXc lo. ,KMMMMMMNc oWMMMMMMMWo .OMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMWd. :O; :NMMMMWWK, .kMMMMMMMMMk. oWMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMK, .kk. 'olc:;;;,. ,KMMMMMMMMMK, :NMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMWd. cXl :XMMMMMMMMMNc ,KMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNl .xK; cNMMMMMMMMMWl '0MMMMMMMMMMMMMMMM */ contract Esion is ERC721A, ERC2981, Ownable, ReentrancyGuard, Pausable { using Strings for uint256; event Minted(address indexed receiver, uint256 quantity); event Burn(uint256 tokenId); struct SaleInfo { uint256 price; uint256 mintStartTime; } struct AllowedAmounts { uint8 raffle; uint8 premint; } uint256 private constant MAX_SUPPLY = 10000; uint8 private constant MAX_PUBLIC_MINTABLE_AMOUNT = 3; uint8 private constant RAFFLE_STEP = 0; uint8 private constant PREMINT_STEP = 1; uint8 private constant PUBLIC_STEP = 2; uint8 private constant STEP_COUNT = 3; uint8 private teamReservedAmount = 100; uint256 private raffleReservedAmount = 3107; string private metadataUri; bool private isRevealed = false; mapping(address => AllowedAmounts) public allowedAmounts; mapping(address => uint8) public walletPublicMintedAmount; mapping(uint8 => SaleInfo) public saleInfo; constructor( string memory _metadataUri, address _royaltyReceiver, uint96 _royaltyFeeNumerator, SaleInfo[] memory _saleInfoList ) ERC721A("ESION", "ESION") { metadataUri = _metadataUri; _setDefaultRoyalty(_royaltyReceiver, _royaltyFeeNumerator); _setSaleInfo(_saleInfoList); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (!isRevealed) { return string(abi.encodePacked(metadataUri, "prereveal")); } return string(abi.encodePacked(metadataUri, Strings.toString(_tokenId))); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(metadataUri, "contractURI")); } function mint(uint8 amount, uint8 step) external payable nonReentrant whenNotPaused isNotContract { require(!isPublicMintEnded(), "All Mint Phase is ended"); require(_checkMintStepValid(step), "Not exist mint step"); uint8 _currStep = getCurrentStep(); if (_currStep != step) { revert("Steps that have not started or are finished"); } uint256 _price = saleInfo[step].price * amount; require(msg.value == _price, "Invalid ETH balance"); require(_totalMinted() + amount <= MAX_SUPPLY, "Sold out in this step"); if (step == RAFFLE_STEP) { require(_totalMinted() + amount <= raffleReservedAmount, "Sold out in this step"); require(allowedAmounts[msg.sender].raffle - amount >= 0, "Don't have mint authority"); allowedAmounts[msg.sender].raffle -= amount; } else if (step == PREMINT_STEP) { require(allowedAmounts[msg.sender].premint - amount >= 0, "Don't have mint authority"); allowedAmounts[msg.sender].premint -= amount; } else if (step == PUBLIC_STEP) { require(getPublicAllowedAmounts(msg.sender) - amount >= 0, "Already exceed mint amount"); walletPublicMintedAmount[msg.sender] += amount; } else { revert("Not exist mint step"); } _mint(msg.sender, amount); emit Minted(msg.sender, amount); } function mintForTeam(uint8 amount) external onlyOwner { require(!isPublicMintEnded(), "All Mint Phase is ended"); require(amount <= teamReservedAmount, "Already exceed mint amount"); require(_totalMinted() + amount <= MAX_SUPPLY, "Already exceed mint amount"); teamReservedAmount -= amount; _mint(msg.sender, amount); emit Minted(msg.sender, amount); } function burn(uint256 tokenId) external onlyOwner { _burn(tokenId); emit Burn(tokenId); } function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) { revert("Ether transfer failed"); } } function setMetadataUri(string calldata _metadataUri) external onlyOwner { metadataUri = _metadataUri; } function setIsReveal(bool _isReveal) external onlyOwner { isRevealed = _isReveal; } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { super._setDefaultRoyalty(receiver, feeNumerator); } function setSaleInfo(SaleInfo[] memory _saleInfoList) external onlyOwner { _setSaleInfo(_saleInfoList); } function _setSaleInfo(SaleInfo[] memory _saleInfoList) private { require(_saleInfoList.length == STEP_COUNT, "Invalid argument"); for (uint8 i = 0; i < _saleInfoList.length; i++) { saleInfo[i] = _saleInfoList[i]; } } function setPremintAllowedAmount(address[] calldata _addressList, uint8[] calldata _amountList) external onlyOwner { require(_addressList.length == _amountList.length, "Invalid argument"); for (uint256 i = 0; i < _addressList.length; i++) { _setAllowedAmount(_addressList[i], _amountList[i], PREMINT_STEP); } } function setRaffleAllowedAmount(address[] calldata _addressList, uint8[] calldata _amountList) external onlyOwner { require(_addressList.length == _amountList.length, "Invalid argument"); for (uint256 i = 0; i < _addressList.length; i++) { _setAllowedAmount(_addressList[i], _amountList[i], RAFFLE_STEP); } } function setRaffleReservedAmount(uint256 _amount) external onlyOwner { raffleReservedAmount = _amount; } function _setAllowedAmount( address _address, uint8 _amount, uint8 _step ) private { require(_address != address(0), "address can't be 0"); if (_step == PREMINT_STEP) { allowedAmounts[_address].premint = _amount; } else if (_step == RAFFLE_STEP) { allowedAmounts[_address].raffle = _amount; } else { revert("Not exist mint step"); } } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function _checkMintStepValid(uint8 step) internal pure returns (bool) { return step < STEP_COUNT; } function getCurrentStep() public view returns (uint8) { uint8 _step; for (_step = STEP_COUNT - 1; _step >= 0; _step--) { if (block.timestamp >= saleInfo[_step].mintStartTime) { return _step; } } revert("Minting hasn't started yet"); } function getPublicAllowedAmounts(address _address) public view returns (uint8) { require(_address != address(0), "address can't be 0"); if (MAX_PUBLIC_MINTABLE_AMOUNT >= walletPublicMintedAmount[_address]) { return MAX_PUBLIC_MINTABLE_AMOUNT - walletPublicMintedAmount[_address]; } return 0; } function isSoldOut() public view returns (bool) { return _totalMinted() == MAX_SUPPLY; } function isRaffleSoldOut() public view returns (bool) { return _totalMinted() == raffleReservedAmount; } function isPublicMintEnded() public view returns (bool) { return block.timestamp >= saleInfo[PUBLIC_STEP].mintStartTime + 24 hours; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } modifier isNotContract() { require(msg.sender == tx.origin, "Sender is not EOA"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _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 // 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _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 // 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 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_metadataUri","type":"string"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeeNumerator","type":"uint96"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"mintStartTime","type":"uint256"}],"internalType":"struct Esion.SaleInfo[]","name":"_saleInfoList","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Burn","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":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Minted","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":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedAmounts","outputs":[{"internalType":"uint8","name":"raffle","type":"uint8"},{"internalType":"uint8","name":"premint","type":"uint8"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStep","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getPublicAllowedAmounts","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"isPublicMintEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRaffleSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"uint8","name":"step","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"mintForTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uint8","name":"","type":"uint8"}],"name":"saleInfo","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"mintStartTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isReveal","type":"bool"}],"name":"setIsReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataUri","type":"string"}],"name":"setMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint8[]","name":"_amountList","type":"uint8[]"}],"name":"setPremintAllowedAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint8[]","name":"_amountList","type":"uint8[]"}],"name":"setRaffleAllowedAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setRaffleReservedAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"mintStartTime","type":"uint256"}],"internalType":"struct Esion.SaleInfo[]","name":"_saleInfoList","type":"tuple[]"}],"name":"setSaleInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletPublicMintedAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600c805461ff001916616400179055610c23600d55600f805460ff191690553480156200003057600080fd5b50604051620032a6380380620032a6833981016040819052620000539162000507565b60408051808201825260058082526422a9a4a7a760d91b602080840182815285518087019096529285528401528151919291620000939160029162000309565b508051620000a990600390602084019062000309565b50506000805550620000bb3362000101565b6001600b55600c805460ff191690558351620000df90600e90602087019062000309565b50620000ec838362000153565b620000f78162000258565b5050505062000693565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001c75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200021f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001be565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b80516003146200029e5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401620001be565b60005b81518160ff1610156200030557818160ff1681518110620002c657620002c662000611565b60209081029190910181015160ff8316600090815260128352604090208151815591015160019091015580620002fc8162000627565b915050620002a1565b5050565b828054620003179062000656565b90600052602060002090601f0160209004810192826200033b576000855562000386565b82601f106200035657805160ff191683800117855562000386565b8280016001018555821562000386579182015b828111156200038657825182559160200191906001019062000369565b506200039492915062000398565b5090565b5b8082111562000394576000815560010162000399565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620003ea57620003ea620003af565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200041b576200041b620003af565b604052919050565b80516001600160a01b03811681146200043b57600080fd5b919050565b80516001600160601b03811681146200043b57600080fd5b600082601f8301126200046a57600080fd5b815160206001600160401b03821115620004885762000488620003af565b62000498818360051b01620003f0565b82815260069290921b84018101918181019086841115620004b857600080fd5b8286015b84811015620004fc5760408189031215620004d75760008081fd5b620004e1620003c5565b815181528482015185820152835291830191604001620004bc565b509695505050505050565b600080600080608085870312156200051e57600080fd5b84516001600160401b03808211156200053657600080fd5b818701915087601f8301126200054b57600080fd5b815181811115620005605762000560620003af565b602062000576601f8301601f19168201620003f0565b8281528a828487010111156200058b57600080fd5b60005b83811015620005ab5785810183015182820184015282016200058e565b83811115620005bd5760008385840101525b509750620005cd89820162000423565b96505050620005df6040880162000440565b93506060870151915080821115620005f657600080fd5b50620006058782880162000458565b91505092959194509250565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156200064d57634e487b7160e01b600052601160045260246000fd5b60010192915050565b600181811c908216806200066b57607f821691505b602082108114156200068d57634e487b7160e01b600052602260045260246000fd5b50919050565b612c0380620006a36000396000f3fe6080604052600436106102465760003560e01c806352349f5211610139578063a22cb465116100b6578063e8a3d4851161007a578063e8a3d485146106e4578063e985e9c5146106f9578063f2fde38b14610742578063f3690c4614610762578063f6cea05514610782578063f7a2f953146107cb57600080fd5b8063a22cb46514610611578063ab66dc7614610631578063b88d4fde14610684578063c87b56dd146106a4578063e1950051146106c457600080fd5b806381140d36116100fd57806381140d36146105795780638208f6c1146105a95780638456cb59146105c95780638da5cb5b146105de57806395d89b41146105fc57600080fd5b806352349f52146104ec5780635c975abb1461050c5780636352211e1461052457806370a0823114610544578063715018a61461056457600080fd5b80631a0b8876116101c75780632da5ea171161018b5780632da5ea171461046d5780633ccfd60b146104825780633f4ba83a1461049757806342842e0e146104ac57806342966c68146104cc57600080fd5b80631a0b8876146103bf5780631d3824ea146103d457806323b872dd146103fb57806329a0eee81461041b5780632a55205a1461042e57600080fd5b8063095ea7b31161020e578063095ea7b31461031c5780631130630c1461033c5780631459f7e31461035c578063148bb3d71461037c57806318160ddd1461039c57600080fd5b806301ffc9a71461024b57806304634d8d146102805780630690de37146102a257806306fdde03146102c2578063081812fc146102e4575b600080fd5b34801561025757600080fd5b5061026b6102663660046122d3565b6107e0565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b36600461230c565b610800565b005b3480156102ae57600080fd5b506102a06102bd366004612394565b610816565b3480156102ce57600080fd5b506102d76108c2565b6040516102779190612458565b3480156102f057600080fd5b506103046102ff36600461246b565b610954565b6040516001600160a01b039091168152602001610277565b34801561032857600080fd5b506102a0610337366004612484565b610998565b34801561034857600080fd5b506102a06103573660046124ae565b610a38565b34801561036857600080fd5b506102a0610377366004612590565b610a51565b34801561038857600080fd5b506102a0610397366004612394565b610a65565b3480156103a857600080fd5b50600154600054035b604051908152602001610277565b3480156103cb57600080fd5b5061026b610b01565b3480156103e057600080fd5b506103e9610b15565b60405160ff9091168152602001610277565b34801561040757600080fd5b506102a061041636600461265d565b610b5a565b6102a06104293660046126aa565b610cf5565b34801561043a57600080fd5b5061044e6104493660046126dd565b61121a565b604080516001600160a01b039093168352602083019190915201610277565b34801561047957600080fd5b5061026b6112c8565b34801561048e57600080fd5b506102a06112d6565b3480156104a357600080fd5b506102a061136e565b3480156104b857600080fd5b506102a06104c736600461265d565b611380565b3480156104d857600080fd5b506102a06104e736600461246b565b61139b565b3480156104f857600080fd5b506102a061050736600461270f565b6113e2565b34801561051857600080fd5b50600c5460ff1661026b565b34801561053057600080fd5b5061030461053f36600461246b565b6113fd565b34801561055057600080fd5b506103b161055f36600461272a565b611408565b34801561057057600080fd5b506102a0611457565b34801561058557600080fd5b506103e961059436600461272a565b60116020526000908152604090205460ff1681565b3480156105b557600080fd5b506102a06105c4366004612745565b611469565b3480156105d557600080fd5b506102a06115a4565b3480156105ea57600080fd5b50600a546001600160a01b0316610304565b34801561060857600080fd5b506102d76115b4565b34801561061d57600080fd5b506102a061062c366004612760565b6115c3565b34801561063d57600080fd5b5061066a61064c36600461272a565b60106020526000908152604090205460ff8082169161010090041682565b6040805160ff938416815292909116602083015201610277565b34801561069057600080fd5b506102a061069f36600461278a565b611659565b3480156106b057600080fd5b506102d76106bf36600461246b565b6116a3565b3480156106d057600080fd5b506102a06106df36600461246b565b611760565b3480156106f057600080fd5b506102d761176d565b34801561070557600080fd5b5061026b61071436600461284a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074e57600080fd5b506102a061075d36600461272a565b611795565b34801561076e57600080fd5b506103e961077d36600461272a565b61180b565b34801561078e57600080fd5b506107b661079d366004612745565b6012602052600090815260409020805460019091015482565b60408051928352602083019190915201610277565b3480156107d757600080fd5b5061026b6118aa565b60006107eb826118ed565b806107fa57506107fa8261193b565b92915050565b610808611970565b61081282826119ca565b5050565b61081e611970565b8281146108465760405162461bcd60e51b815260040161083d90612874565b60405180910390fd5b60005b838110156108bb576108a98585838181106108665761086661289e565b905060200201602081019061087b919061272a565b84848481811061088d5761088d61289e565b90506020020160208101906108a29190612745565b6001611ac7565b806108b3816128ca565b915050610849565b5050505050565b6060600280546108d1906128e5565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd906128e5565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f82611b83565b61097c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109a3826113fd565b9050336001600160a01b038216146109dc576109bf8133610714565b6109dc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a40611970565b610a4c600e8383612224565b505050565b610a59611970565b610a6281611baa565b50565b610a6d611970565b828114610a8c5760405162461bcd60e51b815260040161083d90612874565b60005b838110156108bb57610aef858583818110610aac57610aac61289e565b9050602002016020810190610ac1919061272a565b848484818110610ad357610ad361289e565b9050602002016020810190610ae89190612745565b6000611ac7565b80610af9816128ca565b915050610a8f565b6000600d54610b0f60005490565b14905090565b600080610b2460016003612920565b90505b60ff81166000908152601260205260409020600101544210610b4857919050565b80610b5281612943565b915050610b27565b6000610b6582611c2b565b9050836001600160a01b0316816001600160a01b031614610b985760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610bc48187335b6001600160a01b039081169116811491141790565b610bef57610bd28633610714565b610bef57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c1657604051633a954ecd60e21b815260040160405180910390fd5b8015610c2157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610cac5760018401600081815260046020526040902054610caa576000548114610caa5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6002600b541415610d485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161083d565b6002600b55610d55611c93565b333214610d985760405162461bcd60e51b815260206004820152601160248201527053656e646572206973206e6f7420454f4160781b604482015260640161083d565b610da06118aa565b15610de75760405162461bcd60e51b8152602060048201526017602482015276105b1b08135a5b9d08141a185cd9481a5cc8195b991959604a1b604482015260640161083d565b600360ff821610610e305760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b604482015260640161083d565b6000610e3a610b15565b90508160ff168160ff1614610ea55760405162461bcd60e51b815260206004820152602b60248201527f537465707320746861742068617665206e6f742073746172746564206f72206160448201526a1c9948199a5b9a5cda195960aa1b606482015260840161083d565b60ff8281166000908152601260205260408120549091610ec89190861690612960565b9050803414610f0f5760405162461bcd60e51b8152602060048201526013602482015272496e76616c6964204554482062616c616e636560681b604482015260640161083d565b6127108460ff16610f1f60005490565b610f29919061297f565b1115610f6f5760405162461bcd60e51b81526020600482015260156024820152740536f6c64206f757420696e2074686973207374657605c1b604482015260640161083d565b60ff831661108157600d548460ff16610f8760005490565b610f91919061297f565b1115610fd75760405162461bcd60e51b81526020600482015260156024820152740536f6c64206f757420696e2074686973207374657605c1b604482015260640161083d565b33600090815260106020526040812054610ff590869060ff16612920565b60ff1610156110425760405162461bcd60e51b8152602060048201526019602482015278446f6e27742068617665206d696e7420617574686f7269747960381b604482015260640161083d565b336000908152601060205260408120805486929061106490849060ff16612920565b92506101000a81548160ff021916908360ff1602179055506111ca565b60ff83166001141561112757336000908152601060205260408120546110b0908690610100900460ff16612920565b60ff1610156110fd5760405162461bcd60e51b8152602060048201526019602482015278446f6e27742068617665206d696e7420617574686f7269747960381b604482015260640161083d565b3360009081526010602052604090208054859190600190611064908490610100900460ff16612920565b60ff83166002141561118c5760008461113f3361180b565b6111499190612920565b60ff16101561116a5760405162461bcd60e51b815260040161083d90612997565b336000908152601160205260408120805486929061106490849060ff166129ce565b60405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b604482015260640161083d565b6111d7338560ff16611cd9565b60405160ff8516815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200160405180910390a250506001600b555050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161128f5750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112ae906001600160601b031687612960565b6112b89190612a09565b91519350909150505b9250929050565b6000612710610b0f60005490565b6112de611970565b604051600090339047908381818185875af1925050503d8060008114611320576040519150601f19603f3d011682016040523d82523d6000602084013e611325565b606091505b5050905080610a625760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d1c985b9cd9995c8819985a5b1959605a1b604482015260640161083d565b611376611970565b61137e611db6565b565b610a4c83838360405180602001604052806000815250611659565b6113a3611970565b6113ac81611e08565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b6113ea611970565b600f805460ff1916911515919091179055565b60006107fa82611c2b565b60006001600160a01b038216611431576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61145f611970565b61137e6000611e13565b611471611970565b6114796118aa565b156114c05760405162461bcd60e51b8152602060048201526017602482015276105b1b08135a5b9d08141a185cd9481a5cc8195b991959604a1b604482015260640161083d565b600c5460ff610100909104811690821611156114ee5760405162461bcd60e51b815260040161083d90612997565b6127108160ff166114fe60005490565b611508919061297f565b11156115265760405162461bcd60e51b815260040161083d90612997565b80600c60018282829054906101000a900460ff166115449190612920565b92506101000a81548160ff021916908360ff160217905550611569338260ff16611cd9565b60405160ff8216815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200160405180910390a250565b6115ac611970565b61137e611e65565b6060600380546108d1906128e5565b6001600160a01b0382163314156115ed5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611664848484610b5a565b6001600160a01b0383163b1561169d5761168084848484611ea2565b61169d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116ae82611b83565b6117125760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161083d565b600f5460ff1661174457600e60405160200161172e9190612ab7565b6040516020818303038152906040529050919050565b600e61174f83611f9a565b60405160200161172e929190612adc565b611768611970565b600d55565b6060600e6040516020016117819190612b01565b604051602081830303815290604052905090565b61179d611970565b6001600160a01b0381166118025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083d565b610a6281611e13565b60006001600160a01b0382166118585760405162461bcd60e51b81526020600482015260126024820152710616464726573732063616e277420626520360741b604482015260640161083d565b6001600160a01b03821660009081526011602052604090205460ff166003106118a2576001600160a01b0382166000908152601160205260409020546107fa9060ff166003612920565b506000919050565b6002600090815260126020527f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b3546118e5906201518061297f565b421015905090565b60006301ffc9a760e01b6001600160e01b03198316148061191e57506380ac58cd60e01b6001600160e01b03198316145b806107fa5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806107fa57506301ffc9a760e01b6001600160e01b03198316146107fa565b600a546001600160a01b0316331461137e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161083d565b6127106001600160601b0382161115611a385760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161083d565b6001600160a01b038216611a8e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161083d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6001600160a01b038316611b125760405162461bcd60e51b81526020600482015260126024820152710616464726573732063616e277420626520360741b604482015260640161083d565b60ff811660011415611b4f576001600160a01b0383166000908152601060205260409020805460ff84166101000261ff0019909116179055505050565b60ff811661118c576001600160a01b0383166000908152601060205260409020805460ff841660ff19909116179055505050565b60008054821080156107fa575050600090815260046020526040902054600160e01b161590565b8051600314611bcb5760405162461bcd60e51b815260040161083d90612874565b60005b81518160ff16101561081257818160ff1681518110611bef57611bef61289e565b60209081029190910181015160ff8316600090815260128352604090208151815591015160019091015580611c2381612b28565b915050611bce565b600081600054811015611c7a57600081815260046020526040902054600160e01b8116611c78575b80611c71575060001901600081815260046020526040902054611c53565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600c5460ff161561137e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161083d565b6000546001600160a01b038316611d0257604051622e076360e81b815260040160405180910390fd5b81611d205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611d6a5760005550505050565b611dbe612098565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a628160006120e1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e6d611c93565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611deb3390565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ed7903390899088908890600401612b48565b602060405180830381600087803b158015611ef157600080fd5b505af1925050508015611f21575060408051601f3d908101601f19168201909252611f1e91810190612b85565b60015b611f7c573d808015611f4f576040519150601f19603f3d011682016040523d82523d6000602084013e611f54565b606091505b508051611f74576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611fbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fe85780611fd2816128ca565b9150611fe19050600a83612a09565b9150611fc2565b60008167ffffffffffffffff81111561200357612003612520565b6040519080825280601f01601f19166020018201604052801561202d576020820181803683370190505b5090505b8415611f9257612042600183612ba2565b915061204f600a86612bb9565b61205a90603061297f565b60f81b81838151811061206f5761206f61289e565b60200101906001600160f81b031916908160001a905350612091600a86612a09565b9450612031565b600c5460ff1661137e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161083d565b60006120ec83611c2b565b90508060008061210a86600090815260066020526040902080549091565b91509150841561214a5761211f818433610baf565b61214a5761212d8333610714565b61214a57604051632ce44b5f60e11b815260040160405180910390fd5b801561215557600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166121dc57600186016000818152600460205260409020546121da5760005481146121da5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b828054612230906128e5565b90600052602060002090601f0160209004810192826122525760008555612298565b82601f1061226b5782800160ff19823516178555612298565b82800160010185558215612298579182015b8281111561229857823582559160200191906001019061227d565b506122a49291506122a8565b5090565b5b808211156122a457600081556001016122a9565b6001600160e01b031981168114610a6257600080fd5b6000602082840312156122e557600080fd5b8135611c71816122bd565b80356001600160a01b038116811461230757600080fd5b919050565b6000806040838503121561231f57600080fd5b612328836122f0565b915060208301356001600160601b038116811461234457600080fd5b809150509250929050565b60008083601f84011261236157600080fd5b50813567ffffffffffffffff81111561237957600080fd5b6020830191508360208260051b85010111156112c157600080fd5b600080600080604085870312156123aa57600080fd5b843567ffffffffffffffff808211156123c257600080fd5b6123ce8883890161234f565b909650945060208701359150808211156123e757600080fd5b506123f48782880161234f565b95989497509550505050565b60005b8381101561241b578181015183820152602001612403565b8381111561169d5750506000910152565b60008151808452612444816020860160208601612400565b601f01601f19169290920160200192915050565b602081526000611c71602083018461242c565b60006020828403121561247d57600080fd5b5035919050565b6000806040838503121561249757600080fd5b6124a0836122f0565b946020939093013593505050565b600080602083850312156124c157600080fd5b823567ffffffffffffffff808211156124d957600080fd5b818501915085601f8301126124ed57600080fd5b8135818111156124fc57600080fd5b86602082850101111561250e57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561255957612559612520565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561258857612588612520565b604052919050565b600060208083850312156125a357600080fd5b823567ffffffffffffffff808211156125bb57600080fd5b818501915085601f8301126125cf57600080fd5b8135818111156125e1576125e1612520565b6125ef848260051b0161255f565b818152848101925060069190911b83018401908782111561260f57600080fd5b928401925b81841015612652576040848903121561262d5760008081fd5b612635612536565b843581528585013586820152835260409093019291840191612614565b979650505050505050565b60008060006060848603121561267257600080fd5b61267b846122f0565b9250612689602085016122f0565b9150604084013590509250925092565b803560ff8116811461230757600080fd5b600080604083850312156126bd57600080fd5b6126c683612699565b91506126d460208401612699565b90509250929050565b600080604083850312156126f057600080fd5b50508035926020909101359150565b8035801515811461230757600080fd5b60006020828403121561272157600080fd5b611c71826126ff565b60006020828403121561273c57600080fd5b611c71826122f0565b60006020828403121561275757600080fd5b611c7182612699565b6000806040838503121561277357600080fd5b61277c836122f0565b91506126d4602084016126ff565b600080600080608085870312156127a057600080fd5b6127a9856122f0565b935060206127b88187016122f0565b935060408601359250606086013567ffffffffffffffff808211156127dc57600080fd5b818801915088601f8301126127f057600080fd5b81358181111561280257612802612520565b612814601f8201601f1916850161255f565b9150808252898482850101111561282a57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561285d57600080fd5b612866836122f0565b91506126d4602084016122f0565b60208082526010908201526f125b9d985b1a5908185c99dd5b595b9d60821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156128de576128de6128b4565b5060010190565b600181811c908216806128f957607f821691505b6020821081141561291a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060ff821660ff84168082101561293a5761293a6128b4565b90039392505050565b600060ff821680612956576129566128b4565b6000190192915050565b600081600019048311821515161561297a5761297a6128b4565b500290565b60008219821115612992576129926128b4565b500190565b6020808252601a908201527f416c726561647920657863656564206d696e7420616d6f756e74000000000000604082015260600190565b600060ff821660ff84168060ff038211156129eb576129eb6128b4565b019392505050565b634e487b7160e01b600052601260045260246000fd5b600082612a1857612a186129f3565b500490565b8054600090600181811c9080831680612a3757607f831692505b6020808410821415612a5957634e487b7160e01b600052602260045260246000fd5b818015612a6d5760018114612a7e57612aab565b60ff19861689528489019650612aab565b60008881526020902060005b86811015612aa35781548b820152908501908301612a8a565b505084890196505b50505050505092915050565b6000612ac38284612a1d565b681c1c995c995d99585b60ba1b81526009019392505050565b6000612ae88285612a1d565b8351612af8818360208801612400565b01949350505050565b6000612b0d8284612a1d565b6a636f6e747261637455524960a81b8152600b019392505050565b600060ff821660ff811415612b3f57612b3f6128b4565b60010192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b7b9083018461242c565b9695505050505050565b600060208284031215612b9757600080fd5b8151611c71816122bd565b600082821015612bb457612bb46128b4565b500390565b600082612bc857612bc86129f3565b50069056fea26469706673582212203354b58ac3aad4e43d6eb24a3bda8b8ad75a8a9c7388ed65348b142039c310b364736f6c634300080900330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c003581a3f90e897d9ec4b84bd4ccfb956bb988a00000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f696e667572612d697066732e696f2f697066732f516d504b50316d4e4a384d4e5268797171794434336d79765855354642664d4a376e4734655170444478637762612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000001aa535d3d0c00000000000000000000000000000000000000000000000000000000000062e490a0000000000000000000000000000000000000000000000000013fbe85edc900000000000000000000000000000000000000000000000000000000000062e4e5000000000000000000000000000000000000000000000000000214e8348c4f00000000000000000000000000000000000000000000000000000000000062e58dc0
Deployed Bytecode
0x6080604052600436106102465760003560e01c806352349f5211610139578063a22cb465116100b6578063e8a3d4851161007a578063e8a3d485146106e4578063e985e9c5146106f9578063f2fde38b14610742578063f3690c4614610762578063f6cea05514610782578063f7a2f953146107cb57600080fd5b8063a22cb46514610611578063ab66dc7614610631578063b88d4fde14610684578063c87b56dd146106a4578063e1950051146106c457600080fd5b806381140d36116100fd57806381140d36146105795780638208f6c1146105a95780638456cb59146105c95780638da5cb5b146105de57806395d89b41146105fc57600080fd5b806352349f52146104ec5780635c975abb1461050c5780636352211e1461052457806370a0823114610544578063715018a61461056457600080fd5b80631a0b8876116101c75780632da5ea171161018b5780632da5ea171461046d5780633ccfd60b146104825780633f4ba83a1461049757806342842e0e146104ac57806342966c68146104cc57600080fd5b80631a0b8876146103bf5780631d3824ea146103d457806323b872dd146103fb57806329a0eee81461041b5780632a55205a1461042e57600080fd5b8063095ea7b31161020e578063095ea7b31461031c5780631130630c1461033c5780631459f7e31461035c578063148bb3d71461037c57806318160ddd1461039c57600080fd5b806301ffc9a71461024b57806304634d8d146102805780630690de37146102a257806306fdde03146102c2578063081812fc146102e4575b600080fd5b34801561025757600080fd5b5061026b6102663660046122d3565b6107e0565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b36600461230c565b610800565b005b3480156102ae57600080fd5b506102a06102bd366004612394565b610816565b3480156102ce57600080fd5b506102d76108c2565b6040516102779190612458565b3480156102f057600080fd5b506103046102ff36600461246b565b610954565b6040516001600160a01b039091168152602001610277565b34801561032857600080fd5b506102a0610337366004612484565b610998565b34801561034857600080fd5b506102a06103573660046124ae565b610a38565b34801561036857600080fd5b506102a0610377366004612590565b610a51565b34801561038857600080fd5b506102a0610397366004612394565b610a65565b3480156103a857600080fd5b50600154600054035b604051908152602001610277565b3480156103cb57600080fd5b5061026b610b01565b3480156103e057600080fd5b506103e9610b15565b60405160ff9091168152602001610277565b34801561040757600080fd5b506102a061041636600461265d565b610b5a565b6102a06104293660046126aa565b610cf5565b34801561043a57600080fd5b5061044e6104493660046126dd565b61121a565b604080516001600160a01b039093168352602083019190915201610277565b34801561047957600080fd5b5061026b6112c8565b34801561048e57600080fd5b506102a06112d6565b3480156104a357600080fd5b506102a061136e565b3480156104b857600080fd5b506102a06104c736600461265d565b611380565b3480156104d857600080fd5b506102a06104e736600461246b565b61139b565b3480156104f857600080fd5b506102a061050736600461270f565b6113e2565b34801561051857600080fd5b50600c5460ff1661026b565b34801561053057600080fd5b5061030461053f36600461246b565b6113fd565b34801561055057600080fd5b506103b161055f36600461272a565b611408565b34801561057057600080fd5b506102a0611457565b34801561058557600080fd5b506103e961059436600461272a565b60116020526000908152604090205460ff1681565b3480156105b557600080fd5b506102a06105c4366004612745565b611469565b3480156105d557600080fd5b506102a06115a4565b3480156105ea57600080fd5b50600a546001600160a01b0316610304565b34801561060857600080fd5b506102d76115b4565b34801561061d57600080fd5b506102a061062c366004612760565b6115c3565b34801561063d57600080fd5b5061066a61064c36600461272a565b60106020526000908152604090205460ff8082169161010090041682565b6040805160ff938416815292909116602083015201610277565b34801561069057600080fd5b506102a061069f36600461278a565b611659565b3480156106b057600080fd5b506102d76106bf36600461246b565b6116a3565b3480156106d057600080fd5b506102a06106df36600461246b565b611760565b3480156106f057600080fd5b506102d761176d565b34801561070557600080fd5b5061026b61071436600461284a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074e57600080fd5b506102a061075d36600461272a565b611795565b34801561076e57600080fd5b506103e961077d36600461272a565b61180b565b34801561078e57600080fd5b506107b661079d366004612745565b6012602052600090815260409020805460019091015482565b60408051928352602083019190915201610277565b3480156107d757600080fd5b5061026b6118aa565b60006107eb826118ed565b806107fa57506107fa8261193b565b92915050565b610808611970565b61081282826119ca565b5050565b61081e611970565b8281146108465760405162461bcd60e51b815260040161083d90612874565b60405180910390fd5b60005b838110156108bb576108a98585838181106108665761086661289e565b905060200201602081019061087b919061272a565b84848481811061088d5761088d61289e565b90506020020160208101906108a29190612745565b6001611ac7565b806108b3816128ca565b915050610849565b5050505050565b6060600280546108d1906128e5565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd906128e5565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f82611b83565b61097c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109a3826113fd565b9050336001600160a01b038216146109dc576109bf8133610714565b6109dc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a40611970565b610a4c600e8383612224565b505050565b610a59611970565b610a6281611baa565b50565b610a6d611970565b828114610a8c5760405162461bcd60e51b815260040161083d90612874565b60005b838110156108bb57610aef858583818110610aac57610aac61289e565b9050602002016020810190610ac1919061272a565b848484818110610ad357610ad361289e565b9050602002016020810190610ae89190612745565b6000611ac7565b80610af9816128ca565b915050610a8f565b6000600d54610b0f60005490565b14905090565b600080610b2460016003612920565b90505b60ff81166000908152601260205260409020600101544210610b4857919050565b80610b5281612943565b915050610b27565b6000610b6582611c2b565b9050836001600160a01b0316816001600160a01b031614610b985760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610bc48187335b6001600160a01b039081169116811491141790565b610bef57610bd28633610714565b610bef57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c1657604051633a954ecd60e21b815260040160405180910390fd5b8015610c2157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610cac5760018401600081815260046020526040902054610caa576000548114610caa5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6002600b541415610d485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161083d565b6002600b55610d55611c93565b333214610d985760405162461bcd60e51b815260206004820152601160248201527053656e646572206973206e6f7420454f4160781b604482015260640161083d565b610da06118aa565b15610de75760405162461bcd60e51b8152602060048201526017602482015276105b1b08135a5b9d08141a185cd9481a5cc8195b991959604a1b604482015260640161083d565b600360ff821610610e305760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b604482015260640161083d565b6000610e3a610b15565b90508160ff168160ff1614610ea55760405162461bcd60e51b815260206004820152602b60248201527f537465707320746861742068617665206e6f742073746172746564206f72206160448201526a1c9948199a5b9a5cda195960aa1b606482015260840161083d565b60ff8281166000908152601260205260408120549091610ec89190861690612960565b9050803414610f0f5760405162461bcd60e51b8152602060048201526013602482015272496e76616c6964204554482062616c616e636560681b604482015260640161083d565b6127108460ff16610f1f60005490565b610f29919061297f565b1115610f6f5760405162461bcd60e51b81526020600482015260156024820152740536f6c64206f757420696e2074686973207374657605c1b604482015260640161083d565b60ff831661108157600d548460ff16610f8760005490565b610f91919061297f565b1115610fd75760405162461bcd60e51b81526020600482015260156024820152740536f6c64206f757420696e2074686973207374657605c1b604482015260640161083d565b33600090815260106020526040812054610ff590869060ff16612920565b60ff1610156110425760405162461bcd60e51b8152602060048201526019602482015278446f6e27742068617665206d696e7420617574686f7269747960381b604482015260640161083d565b336000908152601060205260408120805486929061106490849060ff16612920565b92506101000a81548160ff021916908360ff1602179055506111ca565b60ff83166001141561112757336000908152601060205260408120546110b0908690610100900460ff16612920565b60ff1610156110fd5760405162461bcd60e51b8152602060048201526019602482015278446f6e27742068617665206d696e7420617574686f7269747960381b604482015260640161083d565b3360009081526010602052604090208054859190600190611064908490610100900460ff16612920565b60ff83166002141561118c5760008461113f3361180b565b6111499190612920565b60ff16101561116a5760405162461bcd60e51b815260040161083d90612997565b336000908152601160205260408120805486929061106490849060ff166129ce565b60405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b604482015260640161083d565b6111d7338560ff16611cd9565b60405160ff8516815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200160405180910390a250506001600b555050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161128f5750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112ae906001600160601b031687612960565b6112b89190612a09565b91519350909150505b9250929050565b6000612710610b0f60005490565b6112de611970565b604051600090339047908381818185875af1925050503d8060008114611320576040519150601f19603f3d011682016040523d82523d6000602084013e611325565b606091505b5050905080610a625760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d1c985b9cd9995c8819985a5b1959605a1b604482015260640161083d565b611376611970565b61137e611db6565b565b610a4c83838360405180602001604052806000815250611659565b6113a3611970565b6113ac81611e08565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b6113ea611970565b600f805460ff1916911515919091179055565b60006107fa82611c2b565b60006001600160a01b038216611431576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61145f611970565b61137e6000611e13565b611471611970565b6114796118aa565b156114c05760405162461bcd60e51b8152602060048201526017602482015276105b1b08135a5b9d08141a185cd9481a5cc8195b991959604a1b604482015260640161083d565b600c5460ff610100909104811690821611156114ee5760405162461bcd60e51b815260040161083d90612997565b6127108160ff166114fe60005490565b611508919061297f565b11156115265760405162461bcd60e51b815260040161083d90612997565b80600c60018282829054906101000a900460ff166115449190612920565b92506101000a81548160ff021916908360ff160217905550611569338260ff16611cd9565b60405160ff8216815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200160405180910390a250565b6115ac611970565b61137e611e65565b6060600380546108d1906128e5565b6001600160a01b0382163314156115ed5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611664848484610b5a565b6001600160a01b0383163b1561169d5761168084848484611ea2565b61169d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116ae82611b83565b6117125760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161083d565b600f5460ff1661174457600e60405160200161172e9190612ab7565b6040516020818303038152906040529050919050565b600e61174f83611f9a565b60405160200161172e929190612adc565b611768611970565b600d55565b6060600e6040516020016117819190612b01565b604051602081830303815290604052905090565b61179d611970565b6001600160a01b0381166118025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083d565b610a6281611e13565b60006001600160a01b0382166118585760405162461bcd60e51b81526020600482015260126024820152710616464726573732063616e277420626520360741b604482015260640161083d565b6001600160a01b03821660009081526011602052604090205460ff166003106118a2576001600160a01b0382166000908152601160205260409020546107fa9060ff166003612920565b506000919050565b6002600090815260126020527f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b3546118e5906201518061297f565b421015905090565b60006301ffc9a760e01b6001600160e01b03198316148061191e57506380ac58cd60e01b6001600160e01b03198316145b806107fa5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806107fa57506301ffc9a760e01b6001600160e01b03198316146107fa565b600a546001600160a01b0316331461137e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161083d565b6127106001600160601b0382161115611a385760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161083d565b6001600160a01b038216611a8e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161083d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6001600160a01b038316611b125760405162461bcd60e51b81526020600482015260126024820152710616464726573732063616e277420626520360741b604482015260640161083d565b60ff811660011415611b4f576001600160a01b0383166000908152601060205260409020805460ff84166101000261ff0019909116179055505050565b60ff811661118c576001600160a01b0383166000908152601060205260409020805460ff841660ff19909116179055505050565b60008054821080156107fa575050600090815260046020526040902054600160e01b161590565b8051600314611bcb5760405162461bcd60e51b815260040161083d90612874565b60005b81518160ff16101561081257818160ff1681518110611bef57611bef61289e565b60209081029190910181015160ff8316600090815260128352604090208151815591015160019091015580611c2381612b28565b915050611bce565b600081600054811015611c7a57600081815260046020526040902054600160e01b8116611c78575b80611c71575060001901600081815260046020526040902054611c53565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600c5460ff161561137e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161083d565b6000546001600160a01b038316611d0257604051622e076360e81b815260040160405180910390fd5b81611d205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611d6a5760005550505050565b611dbe612098565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a628160006120e1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e6d611c93565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611deb3390565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ed7903390899088908890600401612b48565b602060405180830381600087803b158015611ef157600080fd5b505af1925050508015611f21575060408051601f3d908101601f19168201909252611f1e91810190612b85565b60015b611f7c573d808015611f4f576040519150601f19603f3d011682016040523d82523d6000602084013e611f54565b606091505b508051611f74576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611fbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fe85780611fd2816128ca565b9150611fe19050600a83612a09565b9150611fc2565b60008167ffffffffffffffff81111561200357612003612520565b6040519080825280601f01601f19166020018201604052801561202d576020820181803683370190505b5090505b8415611f9257612042600183612ba2565b915061204f600a86612bb9565b61205a90603061297f565b60f81b81838151811061206f5761206f61289e565b60200101906001600160f81b031916908160001a905350612091600a86612a09565b9450612031565b600c5460ff1661137e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161083d565b60006120ec83611c2b565b90508060008061210a86600090815260066020526040902080549091565b91509150841561214a5761211f818433610baf565b61214a5761212d8333610714565b61214a57604051632ce44b5f60e11b815260040160405180910390fd5b801561215557600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166121dc57600186016000818152600460205260409020546121da5760005481146121da5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b828054612230906128e5565b90600052602060002090601f0160209004810192826122525760008555612298565b82601f1061226b5782800160ff19823516178555612298565b82800160010185558215612298579182015b8281111561229857823582559160200191906001019061227d565b506122a49291506122a8565b5090565b5b808211156122a457600081556001016122a9565b6001600160e01b031981168114610a6257600080fd5b6000602082840312156122e557600080fd5b8135611c71816122bd565b80356001600160a01b038116811461230757600080fd5b919050565b6000806040838503121561231f57600080fd5b612328836122f0565b915060208301356001600160601b038116811461234457600080fd5b809150509250929050565b60008083601f84011261236157600080fd5b50813567ffffffffffffffff81111561237957600080fd5b6020830191508360208260051b85010111156112c157600080fd5b600080600080604085870312156123aa57600080fd5b843567ffffffffffffffff808211156123c257600080fd5b6123ce8883890161234f565b909650945060208701359150808211156123e757600080fd5b506123f48782880161234f565b95989497509550505050565b60005b8381101561241b578181015183820152602001612403565b8381111561169d5750506000910152565b60008151808452612444816020860160208601612400565b601f01601f19169290920160200192915050565b602081526000611c71602083018461242c565b60006020828403121561247d57600080fd5b5035919050565b6000806040838503121561249757600080fd5b6124a0836122f0565b946020939093013593505050565b600080602083850312156124c157600080fd5b823567ffffffffffffffff808211156124d957600080fd5b818501915085601f8301126124ed57600080fd5b8135818111156124fc57600080fd5b86602082850101111561250e57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561255957612559612520565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561258857612588612520565b604052919050565b600060208083850312156125a357600080fd5b823567ffffffffffffffff808211156125bb57600080fd5b818501915085601f8301126125cf57600080fd5b8135818111156125e1576125e1612520565b6125ef848260051b0161255f565b818152848101925060069190911b83018401908782111561260f57600080fd5b928401925b81841015612652576040848903121561262d5760008081fd5b612635612536565b843581528585013586820152835260409093019291840191612614565b979650505050505050565b60008060006060848603121561267257600080fd5b61267b846122f0565b9250612689602085016122f0565b9150604084013590509250925092565b803560ff8116811461230757600080fd5b600080604083850312156126bd57600080fd5b6126c683612699565b91506126d460208401612699565b90509250929050565b600080604083850312156126f057600080fd5b50508035926020909101359150565b8035801515811461230757600080fd5b60006020828403121561272157600080fd5b611c71826126ff565b60006020828403121561273c57600080fd5b611c71826122f0565b60006020828403121561275757600080fd5b611c7182612699565b6000806040838503121561277357600080fd5b61277c836122f0565b91506126d4602084016126ff565b600080600080608085870312156127a057600080fd5b6127a9856122f0565b935060206127b88187016122f0565b935060408601359250606086013567ffffffffffffffff808211156127dc57600080fd5b818801915088601f8301126127f057600080fd5b81358181111561280257612802612520565b612814601f8201601f1916850161255f565b9150808252898482850101111561282a57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561285d57600080fd5b612866836122f0565b91506126d4602084016122f0565b60208082526010908201526f125b9d985b1a5908185c99dd5b595b9d60821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156128de576128de6128b4565b5060010190565b600181811c908216806128f957607f821691505b6020821081141561291a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060ff821660ff84168082101561293a5761293a6128b4565b90039392505050565b600060ff821680612956576129566128b4565b6000190192915050565b600081600019048311821515161561297a5761297a6128b4565b500290565b60008219821115612992576129926128b4565b500190565b6020808252601a908201527f416c726561647920657863656564206d696e7420616d6f756e74000000000000604082015260600190565b600060ff821660ff84168060ff038211156129eb576129eb6128b4565b019392505050565b634e487b7160e01b600052601260045260246000fd5b600082612a1857612a186129f3565b500490565b8054600090600181811c9080831680612a3757607f831692505b6020808410821415612a5957634e487b7160e01b600052602260045260246000fd5b818015612a6d5760018114612a7e57612aab565b60ff19861689528489019650612aab565b60008881526020902060005b86811015612aa35781548b820152908501908301612a8a565b505084890196505b50505050505092915050565b6000612ac38284612a1d565b681c1c995c995d99585b60ba1b81526009019392505050565b6000612ae88285612a1d565b8351612af8818360208801612400565b01949350505050565b6000612b0d8284612a1d565b6a636f6e747261637455524960a81b8152600b019392505050565b600060ff821660ff811415612b3f57612b3f6128b4565b60010192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b7b9083018461242c565b9695505050505050565b600060208284031215612b9757600080fd5b8151611c71816122bd565b600082821015612bb457612bb46128b4565b500390565b600082612bc857612bc86129f3565b50069056fea26469706673582212203354b58ac3aad4e43d6eb24a3bda8b8ad75a8a9c7388ed65348b142039c310b364736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ 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.