Overview
TokenID
57
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 |
---|
Contract Name:
MPPH
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT-BROUGKR /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ /** * @dev: @brougkr */ pragma solidity 0.8.17; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {ERC721MP} from "./ERC721MP.sol"; import {IWaitlist} from "./IWaitlist.sol"; contract MPPH is ERC721MP, Ownable, ReentrancyGuard { struct MintPass { uint _PriceStart; // [0] -> _PriceStart uint _PriceEnd; // [1] -> _PriceEnd uint _MaximumAvailableForSale; // [2] -> _MaximumAvailableForSale uint _StartingBlockUnixTimestamp; // [3] -> _StartingBlockUnixTimestamp uint _SecondsBetweenPriceDecay; // [4] -> _SecondsBetweenPriceDecay bool _ActivePublic; // [5] -> _ActivePublic bytes32 _Root; // [7] -> _Root } struct InternalSale { uint _AmountSold; // [0] -> _AmountSold uint _FinalClearingPrice; // [1] -> _FinalClearingPrice uint _UniqueSales; // [2] -> _UniqueSales } struct UserSaleInformation { // Mint Pass Information uint _MintPassCurrentPrice; // [0] -> _MintPassCurrentPrice uint _MintPassAmountPurchased; // [1] -> _MintPassAmountPurchased uint _MintPassAmountRemaining; // [2] -> _MintPassAmountRemaining bool _MintPassEligible; // [3] -> _MintPassEligible bool _MintPassSalePaused; // [4] -> _MintPassSalePaused } struct SaleInformation { // Mint Pass Information uint _MintPassCurrentPrice; // [0] -> _MintPassCurrentPrice uint _MintPassRemaining; // [1] -> _MintPassRemaining uint _MintPassSaleStartTime; // [2] -> _MintPassSaleStartTime uint _MintPassStartingPrice; // [3] -> _MintPassStartingPrice uint _MintPassEndingPrice; // [4] -> _MintPassEndingPrice } struct UserHoldings { uint[] _TokenIDs; // [0] -> _TokenIDs uint[] _ArtistIDs; // [1] -> _ArtistIDs uint _FinalClearingPrice; // [2] -> _FinalClearingPrice } struct MPHoldings { uint[] _TokenIDs; uint[] _ArtistIDs; bool _ArtistRevealedIDs; bool _ArtistRevealedNames; } MintPass public MintPassSale = MintPass( 3 ether, // [0] -> _PriceStart 0.25 ether, // [1] -> _PriceEnd 50, // [2] -> _MaximumAvailableForSale 1666890000, // [3] -> _StartingBlockUnixTimestamp 1004, // [4] -> _SecondsBetweenPriceDecay true, // [5] -> _ActivePublic 0xebb31ccf8dbd220f189963bfca5616a792d029f1977098da0ad9f8e37341443e // [6] -> _Root ); InternalSale public MintPassInternalSale = InternalSale( 0, // [0] -> _AmountSold 0, // [1] -> _FinalClearingPrice 0 // [2] -> _UniqueSales ); mapping(uint=>address) public UniqueSaleIndexToAddress; // `OrderID` => `Recipient` mapping(uint=>uint) public UniqueSalePurchaseAmount; // `OrderID` => `Order Amount` mapping(uint=>uint) public UniqueSaleToOrderValue; // `OrderID` => `Order Value` mapping(uint=>bool) public UniqueSaleBrightListStatus; // `OrderID` => `BrightListed` mapping(address=>uint) public _MintPassPurchasedAmt; // `Wallet` => `Total Purchased Amount` string public baseURI = "ipfs://QmT24SCxUBaHhVtFEUEVUzsd1cAYTkLWPSsNrakrkVoLE3/"; bool public RefundsDistributed; address public _LiveMint = 0x7603C5eed8e57Ad795ec5F0081eFB21d1eEBf937; address public _Waitlist; event MerkleRootsChanged(bytes32 OldRootMintPass, bytes32 OldRootMintPack, bytes32 NewRootMintPass, bytes32 NewRootMintPack); event PurchasedMintPack(address Recipient, uint Amount, uint MessageValue, uint PurchaseValue, uint AmountSold); event Purchased(address Recipient, uint Amount, uint MessageValue, uint PurchaseValue, uint AmountSold); event RandomArtistIDsSeeded(string URL, uint[] NewArtistIDs); event MerkleRootChanged(bytes32 OldRoot, bytes32 NewRoot); event OptionRedeemed(uint[] TokenIDs, address Recipient); event ArtistNamesSeeded(string URL, string[] Names); event NewStartingTimestamp(uint Timestamp); event ClaimStateSwitched(bool State); event Refunded(uint RefundAmount); constructor() ERC721MP("Mint Pass Pohualli | Fahad Falls | MPPH", "MPPH") { // Transfers Ownership // _transferOwnership(0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700); // operator.brightmoments.eth _mint(0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700, 50); _WhitelistedSender[0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700] = true; } /*--------------------- * EXTERNAL FUNCTIONS * ----------------------*/ /** * @dev Purchases NFTs */ function PurchasePass(uint Amount) external payable nonReentrant { require(tx.origin == msg.sender, "MP: Only EOA"); require(block.timestamp >= MintPassSale._StartingBlockUnixTimestamp, "MP: Sale Not Started Yet"); require(MintPassSale._ActivePublic, "MP: Sale Not Active"); if(MintPassInternalSale._AmountSold + Amount > MintPassSale._MaximumAvailableForSale) { Amount = MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold; } uint NewAmountSold = MintPassInternalSale._AmountSold + Amount; require(NewAmountSold <= MintPassSale._MaximumAvailableForSale, "MP: Sold Out"); uint NewUserPurchasedAmount = _MintPassPurchasedAmt[msg.sender] + Amount; require(Amount > 0 && Amount <= 5, "MP: Incorrect Amount"); // bool BrightListEligible = VerifyBrightList(msg.sender, Proof, MintPassSale._Root); uint CurrentPrice = ViewCurrentPriceMintPass(); uint CurrentPurchaseValue = CurrentPrice * Amount; require(msg.value >= CurrentPurchaseValue, "MP: Incorrect ETH Amount Sent"); if(msg.value > CurrentPurchaseValue) { __Refund(msg.sender, (msg.value - CurrentPurchaseValue)); } UniqueSaleToOrderValue[MintPassInternalSale._UniqueSales] = CurrentPurchaseValue; UniqueSaleIndexToAddress[MintPassInternalSale._UniqueSales] = msg.sender; UniqueSalePurchaseAmount[MintPassInternalSale._UniqueSales] = Amount; // UniqueSaleBrightListStatus[MintPassInternalSale._UniqueSales] = BrightListEligible; MintPassInternalSale._UniqueSales = MintPassInternalSale._UniqueSales + 1; MintPassInternalSale._AmountSold = NewAmountSold; _MintPassPurchasedAmt[msg.sender] = NewUserPurchasedAmount; require(MintPassInternalSale._AmountSold <= MintPassSale._MaximumAvailableForSale, "MP: Overflow"); if(MintPassInternalSale._AmountSold == MintPassSale._MaximumAvailableForSale) // End Sales { MintPassInternalSale._FinalClearingPrice = CurrentPrice; IWaitlist(_Waitlist).SeedClearingPrice(0, CurrentPrice, 75); ___EndMintPassSale(); } _mint(msg.sender, Amount); emit Purchased(msg.sender, Amount, msg.value, CurrentPurchaseValue, NewAmountSold); } /*------------------ * ADMIN FUNCTIONS * -------------------*/ /** * @dev Overrides Clearing Price */ function __OverrideClearingPrice(uint Price) external onlyOwner { MintPassInternalSale._FinalClearingPrice = Price; } /** * @dev Toggles Active Public Sale State For Mint Pass */ function __ToggleActivePublicMintPass() external onlyOwner { MintPassSale._ActivePublic = !MintPassSale._ActivePublic; } /** * @dev Initiates Refunds For Sale */ function __InitiateRefunds() external onlyOwner { require(MintPassInternalSale._FinalClearingPrice > 0, "MP: Final Clearing Price Not Seeded"); require(!RefundsDistributed, "MP: Can Only Call This Function Once"); RefundsDistributed = true; for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++) { (bool Confirmed,) = UniqueSaleIndexToAddress[OrderIndex].call{ value: UniqueSaleToOrderValue[OrderIndex] - (MintPassInternalSale._FinalClearingPrice * UniqueSalePurchaseAmount[OrderIndex]) } (""); require(Confirmed, "MP: Refund failed"); } } // /** // * @dev Initiates Withdraw Of Refunds & Sale Proceeds // */ // function __InitiateRefundsAndProceeds() external onlyOwner // { // require(MintPassInternalSale._FinalClearingPrice > 0, "Final Clearing Price Not Seeded"); // for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++) // { // if(!UniqueSaleBrightListStatus[OrderIndex]) // No Discount // { // (bool ConfirmedRefund,) = UniqueSaleIndexToAddress[OrderIndex].call{ // value: UniqueSaleToOrderValue[OrderIndex] - (MintPassInternalSale._FinalClearingPrice * UniqueSalePurchaseAmount[OrderIndex]) // } (""); // require(ConfirmedRefund, "MP: Normal Refund failed"); // } // else // BrightList Discount // { // (bool ConfirmedRefund,) = UniqueSaleIndexToAddress[OrderIndex].call{ // value: UniqueSaleToOrderValue[OrderIndex] - (((MintPassInternalSale._FinalClearingPrice * 75) / 100) * UniqueSalePurchaseAmount[OrderIndex]) // } (""); // require(ConfirmedRefund, "MP: BrightList Refund failed"); // } // } // (bool ConfirmedWithdraw,) = msg.sender.call{ value: address(this).balance } (""); // require(ConfirmedWithdraw, "MP: Multisig Refund failed"); // } /** * @dev Changes Starting Block Timestamps */ function __NewBlockTimestamps(uint Timestamp) external onlyOwner { MintPassSale._StartingBlockUnixTimestamp = Timestamp; emit NewStartingTimestamp(Timestamp); } /** * @dev Changes Merkle Root */ function __NewRoot(bytes32 Root) external onlyOwner { MintPassSale._Root = Root; } /** * @dev Changes Ending Price For Mint Pass *** DENOTED IN WEI *** */ function __NewEndingPrice(uint PriceEnd) external onlyOwner { MintPassSale._PriceEnd = PriceEnd; } /** * @dev Instantiates New LiveMint Address */ function __NewLiveMintAddress(address NewAddress) external onlyOwner { _LiveMint = NewAddress; } /** * @dev Instantiates New Waitlist Address */ function __NewWaitlistAddress(address NewAddress) external onlyOwner { _Waitlist = NewAddress; } /** * @dev Instantiates New LiveMint Contract Address */ function __NewWhitelistedSenderAddress(address NewAddress) external onlyOwner { _WhitelistedSender[NewAddress] = !_WhitelistedSender[NewAddress]; } /** * @dev Changes The BaseURI For JSON Metadata */ function __NewBaseURI(string calldata NewURI) external onlyOwner { baseURI = NewURI; } /** * @dev Ends All Sales */ function __EndAllSales() external onlyOwner { MintPassSale._ActivePublic = false; } /** * @dev Withdraws All Ether From The Contract */ function ___WithdrawEther() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } /** * @dev Withdraws Ether From Contract To Address With An Amount */ function ___WithdrawEtherToAddress(address payable Recipient, uint Amount) external onlyOwner { require(Amount > 0 && Amount <= address(this).balance, "Invalid Amount"); (bool Success, ) = Recipient.call{value: Amount}(""); require(Success, "Unable to Withdraw, Recipient May Have Reverted"); } /** * @dev Withdraws ERC721s From Contract */ function ___WithdrawERC721(address Contract, address Recipient, uint[] calldata TokenIDs) external onlyOwner { for(uint TokenID; TokenID < TokenIDs.length;) { IERC721(Contract).transferFrom(address(this), Recipient, TokenIDs[TokenID]); unchecked { TokenID++; } } } /*----------------- * VIEW FUNCTIONS * ------------------*/ /** * @dev Returns Address & Corresponding Refund Amount At `OrderIndex` */ function ViewOrderRefund(uint OrderIndex) public view returns(address Wallet, uint RefundAmount) { return( UniqueSaleIndexToAddress[OrderIndex], UniqueSaleToOrderValue[OrderIndex] - (ViewCurrentPriceMintPass() * UniqueSalePurchaseAmount[OrderIndex]) ); } /** * @dev Returns All Order Information Including Addresses And Corresponding Refund Amounts */ function ViewAllOrderRefunds() public view returns (address[] memory, uint[] memory) { address[] memory Addresses = new address[](MintPassInternalSale._UniqueSales); uint[] memory Refunds = new uint[](MintPassInternalSale._UniqueSales); uint CurrentPrice = ViewCurrentPriceMintPass(); for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales;) { Addresses[OrderIndex] = UniqueSaleIndexToAddress[OrderIndex]; Refunds[OrderIndex] = UniqueSaleToOrderValue[OrderIndex] - (CurrentPrice * UniqueSalePurchaseAmount[OrderIndex]); unchecked { OrderIndex++; } } return(Addresses, Refunds); } /** * @dev Returns Total Refund Amount & Sale Purchase Value */ function ViewTotalRefundAmountAndSaleProceeds() public view returns (uint Refund, uint SaleProceeds) { unchecked { uint TotalRefundAmount; uint CurrentPrice = ViewCurrentPriceMintPass(); for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++) { TotalRefundAmount += UniqueSaleToOrderValue[OrderIndex] - (CurrentPrice * UniqueSalePurchaseAmount[OrderIndex]); } uint TotalSaleProceeds = address(this).balance - TotalRefundAmount; return (TotalRefundAmount, TotalSaleProceeds); } } /** * @dev Returns MP Sale Information */ function ViewAllMPSaleInformation() public view returns (MintPass memory, SaleInformation memory) { return( MintPassSale, SaleInformation( ViewCurrentPriceMintPass(), MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold, MintPassSale._StartingBlockUnixTimestamp, MintPassSale._PriceStart, MintPassSale._PriceEnd ) ); } /** * @dev Returns MP Sale Information For A Given Wallet */ function ViewWalletSaleInformation( address Wallet, bytes32[] calldata MintPassProof ) external view returns (UserSaleInformation memory) { bool MintPassSalePaused; if( !(MintPassSale._ActivePublic) && (MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold > 0) ) { MintPassSalePaused = true; } return( UserSaleInformation( ViewCurrentPriceMintPass(), _MintPassPurchasedAmt[Wallet], MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold, VerifyBrightList(Wallet, MintPassProof, MintPassSale._Root), MintPassSalePaused ) ); } /*--------------------- * INTERNAL FUNCTIONS * ----------------------*/ /** * @dev Returns Current Dutch Price For Mint Pass */ function ViewCurrentPriceMintPass() internal view returns (uint Price) { if(block.timestamp <= MintPassSale._StartingBlockUnixTimestamp) { return MintPassSale._PriceStart; } // Sale Not Started if(MintPassInternalSale._FinalClearingPrice > 0) { return MintPassInternalSale._FinalClearingPrice; } // Sale Finished uint CurrentPrice = MintPassSale._PriceStart; uint SecondsElapsed = block.timestamp - MintPassSale._StartingBlockUnixTimestamp; CurrentPrice >>= SecondsElapsed / MintPassSale._SecondsBetweenPriceDecay; // Div/2 For Each Half Life Iterated Upon CurrentPrice -= (CurrentPrice * (SecondsElapsed % MintPassSale._SecondsBetweenPriceDecay)) / MintPassSale._SecondsBetweenPriceDecay / 2; if(CurrentPrice <= MintPassSale._PriceEnd) { return MintPassSale._PriceEnd; } // Sale Ended At Resting Band return CurrentPrice; // Sale Currently Active } /** * @dev Returns Base URI */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev Returns If User Is On BrightList */ function VerifyBrightList(address Recipient, bytes32[] calldata Proof, bytes32 Root) internal pure returns (bool) { bytes32 Leaf = keccak256(abi.encodePacked(Recipient)); return MerkleProof.verify(Proof, Root, Leaf); } /** * @dev Ends Mint Pass Sale On Sellout */ function ___EndMintPassSale() internal { MintPassSale._ActivePublic = false; } /** * @dev Refunds `Recipient` ETH Amount `Value` */ function __Refund(address Recipient, uint Value) internal { (bool Confirmed,) = Recipient.call{value: Value}(""); require(Confirmed, "MP: Refund failed"); emit Refunded(Value); } /*-------------------- * LIVEMINT FUNCTION * ---------------------*/ /** * @dev LiveMint Redeems Mint Pass If Not Already Burned & Sends Minted Work To Owner's Wallet */ function _LiveMintBurn(uint TokenID) external returns (address _Recipient) { require(msg.sender == _LiveMint, "MP: Sender Is Not Live Mint"); address Recipient = IERC721(address(this)).ownerOf(TokenID); require(Recipient != address(0), "MP: Invalid Recipient"); _burn(TokenID, false); return (Recipient); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs // forked for this impl pragma solidity ^0.8.4; import './IERC721MP.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @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 ERC721MP is Context, ERC165, IERC721MP { using Address for address; using Strings for uint256; // CryptoCitizenLiveMint Contract mapping(address=>bool) public _WhitelistedSender; bool public _ArtistsRevealedIDs; bool public _ArtistRevealedNames; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(bool=>mapping(bool=>mapping(address => mapping(address => bool)))) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ 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(); } } /** * 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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary 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 { _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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, tokenId.toString(), '.json')) : ''; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721MP.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @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 == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_ArtistsRevealedIDs][_ArtistRevealedNames][_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. * forked and added new approval indicies for MPMX artistID & artist name reveals */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[_ArtistsRevealedIDs][_ArtistRevealedNames][owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @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 { _transfer(from, to, tokenId); if (to.isContract()) 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 && !_ownerships[tokenId].burned; } /** * @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. */ 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 or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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 _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = ( _msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender() ); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = ( _msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender() || _WhitelistedSender[tx.origin] ); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IWaitlist { function SeedClearingPrice(uint WaitlistIndex, uint Price, uint Discount) external; }
// 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 (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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 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); }
// SPDX-License-Identifier: MIT // ERC721MP Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721MP compliant contract. */ interface IERC721MP is IERC721, IERC721Metadata { /** * 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(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// 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 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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// 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": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"string","name":"URL","type":"string"},{"indexed":false,"internalType":"string[]","name":"Names","type":"string[]"}],"name":"ArtistNamesSeeded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"State","type":"bool"}],"name":"ClaimStateSwitched","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"OldRoot","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRoot","type":"bytes32"}],"name":"MerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"OldRootMintPass","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"OldRootMintPack","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRootMintPass","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRootMintPack","type":"bytes32"}],"name":"MerkleRootsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"Timestamp","type":"uint256"}],"name":"NewStartingTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"Recipient","type":"address"}],"name":"OptionRedeemed","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":"Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"MessageValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"PurchaseValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"AmountSold","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"MessageValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"PurchaseValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"AmountSold","type":"uint256"}],"name":"PurchasedMintPack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"URL","type":"string"},{"indexed":false,"internalType":"uint256[]","name":"NewArtistIDs","type":"uint256[]"}],"name":"RandomArtistIDsSeeded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RefundAmount","type":"uint256"}],"name":"Refunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MintPassInternalSale","outputs":[{"internalType":"uint256","name":"_AmountSold","type":"uint256"},{"internalType":"uint256","name":"_FinalClearingPrice","type":"uint256"},{"internalType":"uint256","name":"_UniqueSales","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPassSale","outputs":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"PurchasePass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"RefundsDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSaleBrightListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSaleIndexToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSalePurchaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSaleToOrderValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewAllMPSaleInformation","outputs":[{"components":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"internalType":"struct MPPH.MintPass","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"_MintPassCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassRemaining","type":"uint256"},{"internalType":"uint256","name":"_MintPassSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_MintPassStartingPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassEndingPrice","type":"uint256"}],"internalType":"struct MPPH.SaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewAllOrderRefunds","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"OrderIndex","type":"uint256"}],"name":"ViewOrderRefund","outputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"uint256","name":"RefundAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewTotalRefundAmountAndSaleProceeds","outputs":[{"internalType":"uint256","name":"Refund","type":"uint256"},{"internalType":"uint256","name":"SaleProceeds","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"bytes32[]","name":"MintPassProof","type":"bytes32[]"}],"name":"ViewWalletSaleInformation","outputs":[{"components":[{"internalType":"uint256","name":"_MintPassCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassAmountPurchased","type":"uint256"},{"internalType":"uint256","name":"_MintPassAmountRemaining","type":"uint256"},{"internalType":"bool","name":"_MintPassEligible","type":"bool"},{"internalType":"bool","name":"_MintPassSalePaused","type":"bool"}],"internalType":"struct MPPH.UserSaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtistRevealedNames","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtistsRevealedIDs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_LiveMint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"_LiveMintBurn","outputs":[{"internalType":"address","name":"_Recipient","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_MintPassPurchasedAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_Waitlist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_WhitelistedSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"__EndAllSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__InitiateRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"NewURI","type":"string"}],"name":"__NewBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Timestamp","type":"uint256"}],"name":"__NewBlockTimestamps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"PriceEnd","type":"uint256"}],"name":"__NewEndingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewLiveMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"Root","type":"bytes32"}],"name":"__NewRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewWaitlistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewWhitelistedSenderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Price","type":"uint256"}],"name":"__OverrideClearingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleActivePublicMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Contract","type":"address"},{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"___WithdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"___WithdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"Recipient","type":"address"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"___WithdrawEtherToAddress","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseURI","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":[{"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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"}]
Contract Creation Code
6729a2241af62c000060808190526703782dace9d9000060a0819052603260c081905263635ab91060e08190526103ec61010081905260016101208190527febb31ccf8dbd220f189963bfca5616a792d029f1977098da0ad9f8e37341443e610140819052600c96909655600d94909455600e92909255600f556010556011805460ff1916909117905560125560006101608190526101808190526101a08190526013819055601481905560155561022060405260366101c08181529062003ef36101e039601b90620000d3908262000405565b50601c8054610100600160a81b031916747603c5eed8e57ad795ec5f0081efb21d1eebf937001790553480156200010957600080fd5b5060405180606001604052806027815260200162003f29602791396040805180820190915260048082526309aa0a0960e31b60208301526200014c838262000405565b5060056200015b828262000405565b50506000600255506200016e33620001e3565b6001600b556200019473e06f5fae754e81bc050215ff89b03d9e9ff20700603262000235565b73e06f5fae754e81bc050215ff89b03d9e9ff2070060009081526020527ff9c5f1d982f0fba7f057cd29faa0be9bb0aa3e7e954999f2f4f0d59f50dd11ce805460ff19166001179055620004d1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002546001600160a01b0383166200025f57604051622e076360e81b815260040160405180910390fd5b81600003620002815760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260076020908152604080832080546001600160801b031981166001600160401b038083168a018116918217680100000000000000006001600160401b031990941690921783900481168a01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106200031357506002555b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200038c57607f821691505b602082108103620003ad57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035c57600081815260208120601f850160051c81016020861015620003dc5750805b601f850160051c820191505b81811015620003fd57828155600101620003e8565b505050505050565b81516001600160401b0381111562000421576200042162000361565b620004398162000432845462000377565b84620003b3565b602080601f831160018114620004715760008415620004585750858301515b600019600386901b1c1916600185901b178555620003fd565b600085815260208120601f198616915b82811015620004a25788860151825594840194600190910190840162000481565b5085821015620004c15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613a1280620004e16000396000f3fe60806040526004361061033f5760003560e01c80637041599b116101b0578063b88d4fde116100ec578063df6c186411610095578063e96450031161006f578063e964500314610aa9578063e985e9c514610ac9578063efaf3af514610b34578063f2fde38b14610b6457600080fd5b8063df6c186414610a0a578063e2a8582614610a29578063e74bcbe014610a4357600080fd5b8063cd27a036116100c6578063cd27a036146109b5578063d84a54d8146109d5578063da1599b7146109ea57600080fd5b8063b88d4fde14610955578063bcb0ba7b14610975578063c87b56dd1461099557600080fd5b80638c17440911610159578063944f1cc311610133578063944f1cc31461082457806395d89b41146108b7578063987de88e146108cc578063a22cb4651461093557600080fd5b80638c174409146107c65780638d8d5db6146107e65780638da5cb5b1461080657600080fd5b8063724d84ff1161018a578063724d84ff146107435780637ad4a6671461077057806381eeb2a61461079057600080fd5b80637041599b146106d457806370a082311461070e578063715018a61461072e57600080fd5b80633a83c5951161027f578063615cec6611610228578063681b712111610202578063681b71211461065a5780636c0360eb1461067f5780636d325d31146106945780636f08bbe5146106b457600080fd5b8063615cec66146105f05780636352211e14610620578063644db1571461064057600080fd5b8063480fc85811610259578063480fc858146105765780634ac5b14e146105995780634ea786d9146105c357600080fd5b80633a83c59514610516578063422d6e011461053657806342842e0e1461055657600080fd5b806318160ddd116102ec5780631cbe1880116102c65780631cbe18801461047557806323b872dd146104a25780632fc9e90f146104c257806331bdd8951461050157600080fd5b806318160ddd1461041d57806318b1b30b146104405780631bc0ace71461046057600080fd5b8063081812fc1161031d578063081812fc146103b0578063095ea7b3146103e857806309beb0c01461040857600080fd5b806301ffc9a71461034457806302da50081461037957806306fdde031461038e575b600080fd5b34801561035057600080fd5b5061036461035f3660046131a9565b610b84565b60405190151581526020015b60405180910390f35b61038c6103873660046131c6565b610c69565b005b34801561039a57600080fd5b506103a3611120565b604051610370919061324d565b3480156103bc57600080fd5b506103d06103cb3660046131c6565b6111b2565b6040516001600160a01b039091168152602001610370565b3480156103f457600080fd5b5061038c610403366004613275565b61120f565b34801561041457600080fd5b5061038c611306565b34801561042957600080fd5b50600354600254035b604051908152602001610370565b34801561044c57600080fd5b50601d546103d0906001600160a01b031681565b34801561046c57600080fd5b5061038c61133d565b34801561048157600080fd5b506104326104903660046131c6565b60176020526000908152604090205481565b3480156104ae57600080fd5b5061038c6104bd3660046132a1565b611351565b3480156104ce57600080fd5b506104e26104dd3660046131c6565b61135c565b604080516001600160a01b039093168352602083019190915201610370565b34801561050d57600080fd5b5061038c6113b6565b34801561052257600080fd5b5061038c6105313660046132e2565b6115b6565b34801561054257600080fd5b5061038c6105513660046131c6565b6115cb565b34801561056257600080fd5b5061038c6105713660046132a1565b6115d8565b34801561058257600080fd5b5061058b6115f3565b604051610370929190613354565b3480156105a557600080fd5b506105ae61174f565b60408051928352602083019190915201610370565b3480156105cf57600080fd5b506104326105de3660046131c6565b60186020526000908152604090205481565b3480156105fc57600080fd5b5061036461060b3660046131c6565b60196020526000908152604090205460ff1681565b34801561062c57600080fd5b506103d061063b3660046131c6565b6117a7565b34801561064c57600080fd5b506001546103649060ff1681565b34801561066657600080fd5b50601c546103d09061010090046001600160a01b031681565b34801561068b57600080fd5b506103a36117b9565b3480156106a057600080fd5b506103d06106af3660046131c6565b611847565b3480156106c057600080fd5b5061038c6106cf3660046131c6565b611988565b3480156106e057600080fd5b506013546014546015546106f392919083565b60408051938452602084019290925290820152606001610370565b34801561071a57600080fd5b506104326107293660046133d8565b611995565b34801561073a57600080fd5b5061038c6119fd565b34801561074f57600080fd5b5061043261075e3660046133d8565b601a6020526000908152604090205481565b34801561077c57600080fd5b5061038c61078b3660046133d8565b611a11565b34801561079c57600080fd5b506103d06107ab3660046131c6565b6016602052600090815260409020546001600160a01b031681565b3480156107d257600080fd5b5061038c6107e13660046133d8565b611a42565b3480156107f257600080fd5b5061038c6108013660046131c6565b611a89565b34801561081257600080fd5b50600a546001600160a01b03166103d0565b34801561083057600080fd5b50610839611acc565b6040805183518152602080850151818301528483015182840152606080860151818401526080808701518185015260a08088015115159085015260c09687015196840196909652845160e084015290840151610100830152918301516101208201529082015161014082015291015161016082015261018001610370565b3480156108c357600080fd5b506103a3611bed565b3480156108d857600080fd5b50600c54600d54600e54600f546010546011546012546108fe96959493929160ff169087565b6040805197885260208801969096529486019390935260608501919091526080840152151560a083015260c082015260e001610370565b34801561094157600080fd5b5061038c6109503660046133f5565b611bfc565b34801561096157600080fd5b5061038c610970366004613462565b611cd1565b34801561098157600080fd5b5061038c6109903660046131c6565b611d34565b3480156109a157600080fd5b506103a36109b03660046131c6565b611d41565b3480156109c157600080fd5b5061038c6109d03660046135ac565b611dde565b3480156109e157600080fd5b5061038c611eae565b3480156109f657600080fd5b5061038c610a053660046133d8565b611eca565b348015610a1657600080fd5b5060015461036490610100900460ff1681565b348015610a3557600080fd5b50601c546103649060ff1681565b348015610a4f57600080fd5b50610a63610a5e366004613611565b611f0c565b6040516103709190600060a08201905082518252602083015160208301526040830151604083015260608301511515606083015260808301511515608083015292915050565b348015610ab557600080fd5b5061038c610ac4366004613275565b611fe7565b348015610ad557600080fd5b50610364610ae4366004613666565b60015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0396871683528152838220949095168152929093529020541690565b348015610b4057600080fd5b50610364610b4f3660046133d8565b60006020819052908152604090205460ff1681565b348015610b7057600080fd5b5061038c610b7f3660046133d8565b612114565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c1757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c6357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002600b5403610cc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600b55323314610d145760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f6e6c7920454f4100000000000000000000000000000000000000006044820152606401610cb7565b600f54421015610d665760405162461bcd60e51b815260206004820152601860248201527f4d503a2053616c65204e6f7420537461727465642059657400000000000000006044820152606401610cb7565b60115460ff16610db85760405162461bcd60e51b815260206004820152601360248201527f4d503a2053616c65204e6f7420416374697665000000000000000000000000006044820152606401610cb7565b600e54601354610dc99083906136c3565b1115610de257601354600e54610ddf91906136d6565b90505b601354600090610df39083906136c3565b600e54909150811115610e485760405162461bcd60e51b815260206004820152600c60248201527f4d503a20536f6c64204f757400000000000000000000000000000000000000006044820152606401610cb7565b336000908152601a6020526040812054610e639084906136c3565b9050600083118015610e76575060058311155b610ec25760405162461bcd60e51b815260206004820152601460248201527f4d503a20496e636f727265637420416d6f756e740000000000000000000000006044820152606401610cb7565b6000610ecc6121a1565b90506000610eda85836136e9565b905080341015610f2c5760405162461bcd60e51b815260206004820152601d60248201527f4d503a20496e636f72726563742045544820416d6f756e742053656e740000006044820152606401610cb7565b80341115610f4757610f4733610f4283346136d6565b61223e565b601580546000908152601860209081526040808320859055835483526016825280832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055835483526017909152902086905554610fac9060016136c3565b6015556013848155336000908152601a60205260409020849055600e54905411156110195760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f766572666c6f7700000000000000000000000000000000000000006044820152606401610cb7565b600e54601354036110bd576014829055601d546040517fddc6892c0000000000000000000000000000000000000000000000000000000081526000600482015260248101849052604b60448201526001600160a01b039091169063ddc6892c90606401600060405180830381600087803b15801561109657600080fd5b505af11580156110aa573d6000803e3d6000fd5b505050506110bd6011805460ff19169055565b6110c73386612319565b60408051338152602081018790523481830152606081018390526080810186905290517f5f5252e81556cf80e49da97ac40f17af2fb3b00e318b675ae93089f555bfa3809181900360a00190a150506001600b55505050565b60606004805461112f90613700565b80601f016020809104026020016040519081016040528092919081815260200182805461115b90613700565b80156111a85780601f1061117d576101008083540402835291602001916111a8565b820191906000526020600020905b81548152906001019060200180831161118b57829003601f168201915b5050505050905090565b60006111bd826124ce565b6111f3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061121a826117a7565b9050806001600160a01b0316836001600160a01b031603611267576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146112f65760015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0386168352815283822033835290529190912054166112f6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611301838383612513565b505050565b61130e612587565b60405133904780156108fc02916000818181858888f1935050505015801561133a573d6000803e3d6000fd5b50565b611345612587565b6011805460ff19169055565b6113018383836125e1565b600081815260166020908152604080832054601790925282205482916001600160a01b03169061138a6121a1565b61139491906136e9565b6000858152601860205260409020546113ad91906136d6565b91509150915091565b6113be612587565b6014546114335760405162461bcd60e51b815260206004820152602360248201527f4d503a2046696e616c20436c656172696e67205072696365204e6f742053656560448201527f64656400000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b601c5460ff16156114ab5760405162461bcd60e51b8152602060048201526024808201527f4d503a2043616e204f6e6c792043616c6c20546869732046756e6374696f6e2060448201527f4f6e6365000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b601c805460ff1916600117905560005b60155481101561133a5760008181526016602090815260408083205460179092528220546014546001600160a01b03909216916114f891906136e9565b60008481526018602052604090205461151191906136d6565b604051600081818185875af1925050503d806000811461154d576040519150601f19603f3d011682016040523d82523d6000602084013e611552565b606091505b50509050806115a35760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610cb7565b50806115ae8161374d565b9150506114bb565b6115be612587565b601b6113018284836137b5565b6115d3612587565b601255565b61130183838360405180602001604052806000815250611cd1565b606080600060136002015467ffffffffffffffff81111561161657611616613433565b60405190808252806020026020018201604052801561163f578160200160208202803683370190505b509050600060136002015467ffffffffffffffff81111561166257611662613433565b60405190808252806020026020018201604052801561168b578160200160208202803683370190505b50905060006116986121a1565b905060005b6015548110156117445760008181526016602052604090205484516001600160a01b03909116908590839081106116d6576116d6613893565b6001600160a01b0390921660209283029190910182015260008281526017909152604090205461170690836136e9565b60008281526018602052604090205461171f91906136d6565b83828151811061173157611731613893565b602090810291909101015260010161169d565b509194909350915050565b60008060008061175d6121a1565b905060005b6015548110156117995760008181526017602090815260408083205460189092529091205490830290039290920191600101611762565b509093478590039350915050565b60006117b2826128c3565b5192915050565b601b80546117c690613700565b80601f01602080910402602001604051908101604052809291908181526020018280546117f290613700565b801561183f5780601f106118145761010080835404028352916020019161183f565b820191906000526020600020905b81548152906001019060200180831161182257829003601f168201915b505050505081565b601c5460009061010090046001600160a01b031633146118a95760405162461bcd60e51b815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152606401610cb7565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000903090636352211e90602401602060405180830381865afa158015611901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192591906138c2565b90506001600160a01b03811661197d5760405162461bcd60e51b815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152606401610cb7565b610c63836000612a4c565b611990612587565b601455565b60006001600160a01b0382166119d7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611a05612587565b611a0f6000612d38565b565b611a19612587565b6001600160a01b03166000908152602081905260409020805460ff19811660ff90911615179055565b611a4a612587565b601c80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b611a91612587565b600f8190556040518181527f01a1275c6b737669759df0bbde4c0157e375c47ec3e2ae639907bbb69264ca939060200160405180910390a150565b611b116040518060e001604052806000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600080191681525090565b611b436040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600c6040518060a00160405280611b586121a1565b8152601354600e54602090920191611b7091906136d6565b8152600f54602080830191909152600c54604080840191909152600d54606093840152805160e0810182528554815260018601549281019290925260028501549082015260038401549181019190915260048301546080820152600583015460ff16151560a082015260069092015460c083015290939092509050565b60606005805461112f90613700565b336001600160a01b03831603611c3e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460ff8082161515600090815260096020908152604080832061010090950490931615158252928352818120338083529084528282206001600160a01b03871680845290855291839020805460ff19168615159081179091559251928352909290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611cdc8484846125e1565b6001600160a01b0383163b15611d2e57611cf884848484612da2565b611d2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d3c612587565b600d55565b6060611d4c826124ce565b611d82576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d8c612f0f565b90508051600003611dac5760405180602001604052806000815250611dd7565b80611db684612f1e565b604051602001611dc79291906138df565b6040516020818303038152906040525b9392505050565b611de6612587565b60005b81811015611ea757846001600160a01b03166323b872dd3086868686818110611e1457611e14613893565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611e8357600080fd5b505af1158015611e97573d6000803e3d6000fd5b505060019092019150611de99050565b5050505050565b611eb6612587565b6011805460ff19811660ff90911615179055565b611ed2612587565b601d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611f426040518060a001604052806000815260200160008152602001600081526020016000151581526020016000151581525090565b60115460009060ff16158015611f675750601354600e54600091611f65916136d6565b115b15611f70575060015b6040518060a00160405280611f836121a1565b81526001600160a01b0387166000908152601a60209081526040918290205490830152601354600e549190920191611fba916136d6565b8152602001611fd0878787600c60060154613053565b151581526020018215158152509150509392505050565b611fef612587565b600081118015611fff5750478111155b61204b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420416d6f756e740000000000000000000000000000000000006044820152606401610cb7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612098576040519150601f19603f3d011682016040523d82523d6000602084013e61209d565b606091505b50509050806113015760405162461bcd60e51b815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152608401610cb7565b61211c612587565b6001600160a01b0381166121985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb7565b61133a81612d38565b600f5460009042116121b45750600c5490565b601454156121c3575060145490565b600c54600f546000906121d690426136d6565b6010549091506121e69082613965565b60105492901c916002906121fa8184613979565b61220490856136e9565b61220e9190613965565b6122189190613965565b61222290836136d6565b600d549092508211612238575050600d54919050565b50919050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461228b576040519150601f19603f3d011682016040523d82523d6000602084013e612290565b606091505b50509050806122e15760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610cb7565b6040518281527f3d2a04f53164bedf9a8a46353305d6b2d2261410406df3b41f99ce6489dc003c9060200160405180910390a1505050565b6002546001600160a01b03831661235c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612396576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168a01811690920217909155858452600690925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106124825750600255505050565b600060025482108015610c635750506000908152600660205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526008602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314611a0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60006125ec826128c3565b9050836001600160a01b031681600001516001600160a01b03161461263d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061269b575060015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b038a168352815283822033835290529190912054165b806126b65750336126ab846111b2565b6001600160a01b0316145b9050806126ef576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661272f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61273b60008487612513565b6001600160a01b03858116600090815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102178355870180845292208054919390911661287a57600254821461287a578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ea7565b604080516060810182526000808252602082018190529181019190915281600254811015612a1a57600081815260066020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290612a185780516001600160a01b031615612984579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612a13579392505050565b612984565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612a57836128c3565b80519091508215612b30576000336001600160a01b0383161480612ac0575060015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0387168352815283822033835290529190912054165b80612adb575033612ad0866111b2565b6001600160a01b0316145b80612af557503260009081526020819052604090205460ff165b905080612b2e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b3c60008583612513565b6001600160a01b038082166000818152600760209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff8084169190910181167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600690945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4290931674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911690971796909617167c0100000000000000000000000000000000000000000000000000000000178555918901808452922080549194909116612ced576002548214612ced578054602087015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506003805460010190555050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612df090339089908890889060040161398d565b6020604051808303816000875af1925050508015612e49575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612e46918101906139bf565b60015b612ec0573d808015612e77576040519150601f19603f3d011682016040523d82523d6000602084013e612e7c565b606091505b508051600003612eb8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6060601b805461112f90613700565b606081600003612f6157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f8b5780612f758161374d565b9150612f849050600a83613965565b9150612f65565b60008167ffffffffffffffff811115612fa657612fa6613433565b6040519080825280601f01601f191660200182016040528015612fd0576020820181803683370190505b5090505b8415612f0757612fe56001836136d6565b9150612ff2600a86613979565b612ffd9060306136c3565b60f81b81838151811061301257613012613893565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061304c600a86613965565b9450612fd4565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b16602082015260009081906034016040516020818303038152906040528051906020012090506130e28585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506130ec9050565b9695505050505050565b6000826130f98584613102565b14949350505050565b600081815b8451811015613147576131338286838151811061312657613126613893565b602002602001015161314f565b91508061313f8161374d565b915050613107565b509392505050565b600081831061316b576000828152602084905260409020611dd7565b5060009182526020526040902090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461133a57600080fd5b6000602082840312156131bb57600080fd5b8135611dd78161317b565b6000602082840312156131d857600080fd5b5035919050565b60005b838110156131fa5781810151838201526020016131e2565b50506000910152565b6000815180845261321b8160208601602086016131df565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611dd76020830184613203565b6001600160a01b038116811461133a57600080fd5b6000806040838503121561328857600080fd5b823561329381613260565b946020939093013593505050565b6000806000606084860312156132b657600080fd5b83356132c181613260565b925060208401356132d181613260565b929592945050506040919091013590565b600080602083850312156132f557600080fd5b823567ffffffffffffffff8082111561330d57600080fd5b818501915085601f83011261332157600080fd5b81358181111561333057600080fd5b86602082850101111561334257600080fd5b60209290920196919550909350505050565b604080825283519082018190526000906020906060840190828701845b828110156133965781516001600160a01b031684529284019290840190600101613371565b5050508381038285015284518082528583019183019060005b818110156133cb578351835292840192918401916001016133af565b5090979650505050505050565b6000602082840312156133ea57600080fd5b8135611dd781613260565b6000806040838503121561340857600080fd5b823561341381613260565b91506020830135801515811461342857600080fd5b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561347857600080fd5b843561348381613260565b9350602085013561349381613260565b925060408501359150606085013567ffffffffffffffff808211156134b757600080fd5b818701915087601f8301126134cb57600080fd5b8135818111156134dd576134dd613433565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561352357613523613433565b816040528281528a602084870101111561353c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f84011261357257600080fd5b50813567ffffffffffffffff81111561358a57600080fd5b6020830191508360208260051b85010111156135a557600080fd5b9250929050565b600080600080606085870312156135c257600080fd5b84356135cd81613260565b935060208501356135dd81613260565b9250604085013567ffffffffffffffff8111156135f957600080fd5b61360587828801613560565b95989497509550505050565b60008060006040848603121561362657600080fd5b833561363181613260565b9250602084013567ffffffffffffffff81111561364d57600080fd5b61365986828701613560565b9497909650939450505050565b6000806040838503121561367957600080fd5b823561368481613260565b9150602083013561342881613260565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610c6357610c63613694565b81810381811115610c6357610c63613694565b8082028115828204841417610c6357610c63613694565b600181811c9082168061371457607f821691505b602082108103612238577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600019820361376057613760613694565b5060010190565b601f82111561130157600081815260208120601f850160051c8101602086101561378e5750805b601f850160051c820191505b818110156137ad5782815560010161379a565b505050505050565b67ffffffffffffffff8311156137cd576137cd613433565b6137e1836137db8354613700565b83613767565b6000601f84116001811461381557600085156137fd5750838201355b600019600387901b1c1916600186901b178355611ea7565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156138645786850135825560209485019460019092019101613844565b50868210156138815760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156138d457600080fd5b8151611dd781613260565b600083516138f18184602088016131df565b8351908301906139058183602088016131df565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261397457613974613936565b500490565b60008261398857613988613936565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130e26080830184613203565b6000602082840312156139d157600080fd5b8151611dd78161317b56fea26469706673582212203ad863f5d631122a0d3ac9f6912d9217e34402e55c3234e42caaf652792df25464736f6c63430008110033697066733a2f2f516d543234534378554261486856744645554556557a736431634159546b4c575053734e72616b726b566f4c45332f4d696e74205061737320506f6875616c6c69207c2046616861642046616c6c73207c204d505048
Deployed Bytecode
0x60806040526004361061033f5760003560e01c80637041599b116101b0578063b88d4fde116100ec578063df6c186411610095578063e96450031161006f578063e964500314610aa9578063e985e9c514610ac9578063efaf3af514610b34578063f2fde38b14610b6457600080fd5b8063df6c186414610a0a578063e2a8582614610a29578063e74bcbe014610a4357600080fd5b8063cd27a036116100c6578063cd27a036146109b5578063d84a54d8146109d5578063da1599b7146109ea57600080fd5b8063b88d4fde14610955578063bcb0ba7b14610975578063c87b56dd1461099557600080fd5b80638c17440911610159578063944f1cc311610133578063944f1cc31461082457806395d89b41146108b7578063987de88e146108cc578063a22cb4651461093557600080fd5b80638c174409146107c65780638d8d5db6146107e65780638da5cb5b1461080657600080fd5b8063724d84ff1161018a578063724d84ff146107435780637ad4a6671461077057806381eeb2a61461079057600080fd5b80637041599b146106d457806370a082311461070e578063715018a61461072e57600080fd5b80633a83c5951161027f578063615cec6611610228578063681b712111610202578063681b71211461065a5780636c0360eb1461067f5780636d325d31146106945780636f08bbe5146106b457600080fd5b8063615cec66146105f05780636352211e14610620578063644db1571461064057600080fd5b8063480fc85811610259578063480fc858146105765780634ac5b14e146105995780634ea786d9146105c357600080fd5b80633a83c59514610516578063422d6e011461053657806342842e0e1461055657600080fd5b806318160ddd116102ec5780631cbe1880116102c65780631cbe18801461047557806323b872dd146104a25780632fc9e90f146104c257806331bdd8951461050157600080fd5b806318160ddd1461041d57806318b1b30b146104405780631bc0ace71461046057600080fd5b8063081812fc1161031d578063081812fc146103b0578063095ea7b3146103e857806309beb0c01461040857600080fd5b806301ffc9a71461034457806302da50081461037957806306fdde031461038e575b600080fd5b34801561035057600080fd5b5061036461035f3660046131a9565b610b84565b60405190151581526020015b60405180910390f35b61038c6103873660046131c6565b610c69565b005b34801561039a57600080fd5b506103a3611120565b604051610370919061324d565b3480156103bc57600080fd5b506103d06103cb3660046131c6565b6111b2565b6040516001600160a01b039091168152602001610370565b3480156103f457600080fd5b5061038c610403366004613275565b61120f565b34801561041457600080fd5b5061038c611306565b34801561042957600080fd5b50600354600254035b604051908152602001610370565b34801561044c57600080fd5b50601d546103d0906001600160a01b031681565b34801561046c57600080fd5b5061038c61133d565b34801561048157600080fd5b506104326104903660046131c6565b60176020526000908152604090205481565b3480156104ae57600080fd5b5061038c6104bd3660046132a1565b611351565b3480156104ce57600080fd5b506104e26104dd3660046131c6565b61135c565b604080516001600160a01b039093168352602083019190915201610370565b34801561050d57600080fd5b5061038c6113b6565b34801561052257600080fd5b5061038c6105313660046132e2565b6115b6565b34801561054257600080fd5b5061038c6105513660046131c6565b6115cb565b34801561056257600080fd5b5061038c6105713660046132a1565b6115d8565b34801561058257600080fd5b5061058b6115f3565b604051610370929190613354565b3480156105a557600080fd5b506105ae61174f565b60408051928352602083019190915201610370565b3480156105cf57600080fd5b506104326105de3660046131c6565b60186020526000908152604090205481565b3480156105fc57600080fd5b5061036461060b3660046131c6565b60196020526000908152604090205460ff1681565b34801561062c57600080fd5b506103d061063b3660046131c6565b6117a7565b34801561064c57600080fd5b506001546103649060ff1681565b34801561066657600080fd5b50601c546103d09061010090046001600160a01b031681565b34801561068b57600080fd5b506103a36117b9565b3480156106a057600080fd5b506103d06106af3660046131c6565b611847565b3480156106c057600080fd5b5061038c6106cf3660046131c6565b611988565b3480156106e057600080fd5b506013546014546015546106f392919083565b60408051938452602084019290925290820152606001610370565b34801561071a57600080fd5b506104326107293660046133d8565b611995565b34801561073a57600080fd5b5061038c6119fd565b34801561074f57600080fd5b5061043261075e3660046133d8565b601a6020526000908152604090205481565b34801561077c57600080fd5b5061038c61078b3660046133d8565b611a11565b34801561079c57600080fd5b506103d06107ab3660046131c6565b6016602052600090815260409020546001600160a01b031681565b3480156107d257600080fd5b5061038c6107e13660046133d8565b611a42565b3480156107f257600080fd5b5061038c6108013660046131c6565b611a89565b34801561081257600080fd5b50600a546001600160a01b03166103d0565b34801561083057600080fd5b50610839611acc565b6040805183518152602080850151818301528483015182840152606080860151818401526080808701518185015260a08088015115159085015260c09687015196840196909652845160e084015290840151610100830152918301516101208201529082015161014082015291015161016082015261018001610370565b3480156108c357600080fd5b506103a3611bed565b3480156108d857600080fd5b50600c54600d54600e54600f546010546011546012546108fe96959493929160ff169087565b6040805197885260208801969096529486019390935260608501919091526080840152151560a083015260c082015260e001610370565b34801561094157600080fd5b5061038c6109503660046133f5565b611bfc565b34801561096157600080fd5b5061038c610970366004613462565b611cd1565b34801561098157600080fd5b5061038c6109903660046131c6565b611d34565b3480156109a157600080fd5b506103a36109b03660046131c6565b611d41565b3480156109c157600080fd5b5061038c6109d03660046135ac565b611dde565b3480156109e157600080fd5b5061038c611eae565b3480156109f657600080fd5b5061038c610a053660046133d8565b611eca565b348015610a1657600080fd5b5060015461036490610100900460ff1681565b348015610a3557600080fd5b50601c546103649060ff1681565b348015610a4f57600080fd5b50610a63610a5e366004613611565b611f0c565b6040516103709190600060a08201905082518252602083015160208301526040830151604083015260608301511515606083015260808301511515608083015292915050565b348015610ab557600080fd5b5061038c610ac4366004613275565b611fe7565b348015610ad557600080fd5b50610364610ae4366004613666565b60015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0396871683528152838220949095168152929093529020541690565b348015610b4057600080fd5b50610364610b4f3660046133d8565b60006020819052908152604090205460ff1681565b348015610b7057600080fd5b5061038c610b7f3660046133d8565b612114565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c1757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c6357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002600b5403610cc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600b55323314610d145760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f6e6c7920454f4100000000000000000000000000000000000000006044820152606401610cb7565b600f54421015610d665760405162461bcd60e51b815260206004820152601860248201527f4d503a2053616c65204e6f7420537461727465642059657400000000000000006044820152606401610cb7565b60115460ff16610db85760405162461bcd60e51b815260206004820152601360248201527f4d503a2053616c65204e6f7420416374697665000000000000000000000000006044820152606401610cb7565b600e54601354610dc99083906136c3565b1115610de257601354600e54610ddf91906136d6565b90505b601354600090610df39083906136c3565b600e54909150811115610e485760405162461bcd60e51b815260206004820152600c60248201527f4d503a20536f6c64204f757400000000000000000000000000000000000000006044820152606401610cb7565b336000908152601a6020526040812054610e639084906136c3565b9050600083118015610e76575060058311155b610ec25760405162461bcd60e51b815260206004820152601460248201527f4d503a20496e636f727265637420416d6f756e740000000000000000000000006044820152606401610cb7565b6000610ecc6121a1565b90506000610eda85836136e9565b905080341015610f2c5760405162461bcd60e51b815260206004820152601d60248201527f4d503a20496e636f72726563742045544820416d6f756e742053656e740000006044820152606401610cb7565b80341115610f4757610f4733610f4283346136d6565b61223e565b601580546000908152601860209081526040808320859055835483526016825280832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055835483526017909152902086905554610fac9060016136c3565b6015556013848155336000908152601a60205260409020849055600e54905411156110195760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f766572666c6f7700000000000000000000000000000000000000006044820152606401610cb7565b600e54601354036110bd576014829055601d546040517fddc6892c0000000000000000000000000000000000000000000000000000000081526000600482015260248101849052604b60448201526001600160a01b039091169063ddc6892c90606401600060405180830381600087803b15801561109657600080fd5b505af11580156110aa573d6000803e3d6000fd5b505050506110bd6011805460ff19169055565b6110c73386612319565b60408051338152602081018790523481830152606081018390526080810186905290517f5f5252e81556cf80e49da97ac40f17af2fb3b00e318b675ae93089f555bfa3809181900360a00190a150506001600b55505050565b60606004805461112f90613700565b80601f016020809104026020016040519081016040528092919081815260200182805461115b90613700565b80156111a85780601f1061117d576101008083540402835291602001916111a8565b820191906000526020600020905b81548152906001019060200180831161118b57829003601f168201915b5050505050905090565b60006111bd826124ce565b6111f3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061121a826117a7565b9050806001600160a01b0316836001600160a01b031603611267576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146112f65760015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0386168352815283822033835290529190912054166112f6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611301838383612513565b505050565b61130e612587565b60405133904780156108fc02916000818181858888f1935050505015801561133a573d6000803e3d6000fd5b50565b611345612587565b6011805460ff19169055565b6113018383836125e1565b600081815260166020908152604080832054601790925282205482916001600160a01b03169061138a6121a1565b61139491906136e9565b6000858152601860205260409020546113ad91906136d6565b91509150915091565b6113be612587565b6014546114335760405162461bcd60e51b815260206004820152602360248201527f4d503a2046696e616c20436c656172696e67205072696365204e6f742053656560448201527f64656400000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b601c5460ff16156114ab5760405162461bcd60e51b8152602060048201526024808201527f4d503a2043616e204f6e6c792043616c6c20546869732046756e6374696f6e2060448201527f4f6e6365000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b601c805460ff1916600117905560005b60155481101561133a5760008181526016602090815260408083205460179092528220546014546001600160a01b03909216916114f891906136e9565b60008481526018602052604090205461151191906136d6565b604051600081818185875af1925050503d806000811461154d576040519150601f19603f3d011682016040523d82523d6000602084013e611552565b606091505b50509050806115a35760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610cb7565b50806115ae8161374d565b9150506114bb565b6115be612587565b601b6113018284836137b5565b6115d3612587565b601255565b61130183838360405180602001604052806000815250611cd1565b606080600060136002015467ffffffffffffffff81111561161657611616613433565b60405190808252806020026020018201604052801561163f578160200160208202803683370190505b509050600060136002015467ffffffffffffffff81111561166257611662613433565b60405190808252806020026020018201604052801561168b578160200160208202803683370190505b50905060006116986121a1565b905060005b6015548110156117445760008181526016602052604090205484516001600160a01b03909116908590839081106116d6576116d6613893565b6001600160a01b0390921660209283029190910182015260008281526017909152604090205461170690836136e9565b60008281526018602052604090205461171f91906136d6565b83828151811061173157611731613893565b602090810291909101015260010161169d565b509194909350915050565b60008060008061175d6121a1565b905060005b6015548110156117995760008181526017602090815260408083205460189092529091205490830290039290920191600101611762565b509093478590039350915050565b60006117b2826128c3565b5192915050565b601b80546117c690613700565b80601f01602080910402602001604051908101604052809291908181526020018280546117f290613700565b801561183f5780601f106118145761010080835404028352916020019161183f565b820191906000526020600020905b81548152906001019060200180831161182257829003601f168201915b505050505081565b601c5460009061010090046001600160a01b031633146118a95760405162461bcd60e51b815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152606401610cb7565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000903090636352211e90602401602060405180830381865afa158015611901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192591906138c2565b90506001600160a01b03811661197d5760405162461bcd60e51b815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152606401610cb7565b610c63836000612a4c565b611990612587565b601455565b60006001600160a01b0382166119d7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611a05612587565b611a0f6000612d38565b565b611a19612587565b6001600160a01b03166000908152602081905260409020805460ff19811660ff90911615179055565b611a4a612587565b601c80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b611a91612587565b600f8190556040518181527f01a1275c6b737669759df0bbde4c0157e375c47ec3e2ae639907bbb69264ca939060200160405180910390a150565b611b116040518060e001604052806000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600080191681525090565b611b436040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600c6040518060a00160405280611b586121a1565b8152601354600e54602090920191611b7091906136d6565b8152600f54602080830191909152600c54604080840191909152600d54606093840152805160e0810182528554815260018601549281019290925260028501549082015260038401549181019190915260048301546080820152600583015460ff16151560a082015260069092015460c083015290939092509050565b60606005805461112f90613700565b336001600160a01b03831603611c3e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460ff8082161515600090815260096020908152604080832061010090950490931615158252928352818120338083529084528282206001600160a01b03871680845290855291839020805460ff19168615159081179091559251928352909290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611cdc8484846125e1565b6001600160a01b0383163b15611d2e57611cf884848484612da2565b611d2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d3c612587565b600d55565b6060611d4c826124ce565b611d82576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d8c612f0f565b90508051600003611dac5760405180602001604052806000815250611dd7565b80611db684612f1e565b604051602001611dc79291906138df565b6040516020818303038152906040525b9392505050565b611de6612587565b60005b81811015611ea757846001600160a01b03166323b872dd3086868686818110611e1457611e14613893565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611e8357600080fd5b505af1158015611e97573d6000803e3d6000fd5b505060019092019150611de99050565b5050505050565b611eb6612587565b6011805460ff19811660ff90911615179055565b611ed2612587565b601d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611f426040518060a001604052806000815260200160008152602001600081526020016000151581526020016000151581525090565b60115460009060ff16158015611f675750601354600e54600091611f65916136d6565b115b15611f70575060015b6040518060a00160405280611f836121a1565b81526001600160a01b0387166000908152601a60209081526040918290205490830152601354600e549190920191611fba916136d6565b8152602001611fd0878787600c60060154613053565b151581526020018215158152509150509392505050565b611fef612587565b600081118015611fff5750478111155b61204b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420416d6f756e740000000000000000000000000000000000006044820152606401610cb7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612098576040519150601f19603f3d011682016040523d82523d6000602084013e61209d565b606091505b50509050806113015760405162461bcd60e51b815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152608401610cb7565b61211c612587565b6001600160a01b0381166121985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb7565b61133a81612d38565b600f5460009042116121b45750600c5490565b601454156121c3575060145490565b600c54600f546000906121d690426136d6565b6010549091506121e69082613965565b60105492901c916002906121fa8184613979565b61220490856136e9565b61220e9190613965565b6122189190613965565b61222290836136d6565b600d549092508211612238575050600d54919050565b50919050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461228b576040519150601f19603f3d011682016040523d82523d6000602084013e612290565b606091505b50509050806122e15760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610cb7565b6040518281527f3d2a04f53164bedf9a8a46353305d6b2d2261410406df3b41f99ce6489dc003c9060200160405180910390a1505050565b6002546001600160a01b03831661235c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612396576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168a01811690920217909155858452600690925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106124825750600255505050565b600060025482108015610c635750506000908152600660205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526008602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314611a0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60006125ec826128c3565b9050836001600160a01b031681600001516001600160a01b03161461263d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061269b575060015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b038a168352815283822033835290529190912054165b806126b65750336126ab846111b2565b6001600160a01b0316145b9050806126ef576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661272f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61273b60008487612513565b6001600160a01b03858116600090815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102178355870180845292208054919390911661287a57600254821461287a578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ea7565b604080516060810182526000808252602082018190529181019190915281600254811015612a1a57600081815260066020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290612a185780516001600160a01b031615612984579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612a13579392505050565b612984565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612a57836128c3565b80519091508215612b30576000336001600160a01b0383161480612ac0575060015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0387168352815283822033835290529190912054165b80612adb575033612ad0866111b2565b6001600160a01b0316145b80612af557503260009081526020819052604090205460ff165b905080612b2e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b3c60008583612513565b6001600160a01b038082166000818152600760209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff8084169190910181167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600690945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4290931674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911690971796909617167c0100000000000000000000000000000000000000000000000000000000178555918901808452922080549194909116612ced576002548214612ced578054602087015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506003805460010190555050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612df090339089908890889060040161398d565b6020604051808303816000875af1925050508015612e49575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612e46918101906139bf565b60015b612ec0573d808015612e77576040519150601f19603f3d011682016040523d82523d6000602084013e612e7c565b606091505b508051600003612eb8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6060601b805461112f90613700565b606081600003612f6157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f8b5780612f758161374d565b9150612f849050600a83613965565b9150612f65565b60008167ffffffffffffffff811115612fa657612fa6613433565b6040519080825280601f01601f191660200182016040528015612fd0576020820181803683370190505b5090505b8415612f0757612fe56001836136d6565b9150612ff2600a86613979565b612ffd9060306136c3565b60f81b81838151811061301257613012613893565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061304c600a86613965565b9450612fd4565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b16602082015260009081906034016040516020818303038152906040528051906020012090506130e28585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506130ec9050565b9695505050505050565b6000826130f98584613102565b14949350505050565b600081815b8451811015613147576131338286838151811061312657613126613893565b602002602001015161314f565b91508061313f8161374d565b915050613107565b509392505050565b600081831061316b576000828152602084905260409020611dd7565b5060009182526020526040902090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461133a57600080fd5b6000602082840312156131bb57600080fd5b8135611dd78161317b565b6000602082840312156131d857600080fd5b5035919050565b60005b838110156131fa5781810151838201526020016131e2565b50506000910152565b6000815180845261321b8160208601602086016131df565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611dd76020830184613203565b6001600160a01b038116811461133a57600080fd5b6000806040838503121561328857600080fd5b823561329381613260565b946020939093013593505050565b6000806000606084860312156132b657600080fd5b83356132c181613260565b925060208401356132d181613260565b929592945050506040919091013590565b600080602083850312156132f557600080fd5b823567ffffffffffffffff8082111561330d57600080fd5b818501915085601f83011261332157600080fd5b81358181111561333057600080fd5b86602082850101111561334257600080fd5b60209290920196919550909350505050565b604080825283519082018190526000906020906060840190828701845b828110156133965781516001600160a01b031684529284019290840190600101613371565b5050508381038285015284518082528583019183019060005b818110156133cb578351835292840192918401916001016133af565b5090979650505050505050565b6000602082840312156133ea57600080fd5b8135611dd781613260565b6000806040838503121561340857600080fd5b823561341381613260565b91506020830135801515811461342857600080fd5b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561347857600080fd5b843561348381613260565b9350602085013561349381613260565b925060408501359150606085013567ffffffffffffffff808211156134b757600080fd5b818701915087601f8301126134cb57600080fd5b8135818111156134dd576134dd613433565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561352357613523613433565b816040528281528a602084870101111561353c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f84011261357257600080fd5b50813567ffffffffffffffff81111561358a57600080fd5b6020830191508360208260051b85010111156135a557600080fd5b9250929050565b600080600080606085870312156135c257600080fd5b84356135cd81613260565b935060208501356135dd81613260565b9250604085013567ffffffffffffffff8111156135f957600080fd5b61360587828801613560565b95989497509550505050565b60008060006040848603121561362657600080fd5b833561363181613260565b9250602084013567ffffffffffffffff81111561364d57600080fd5b61365986828701613560565b9497909650939450505050565b6000806040838503121561367957600080fd5b823561368481613260565b9150602083013561342881613260565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610c6357610c63613694565b81810381811115610c6357610c63613694565b8082028115828204841417610c6357610c63613694565b600181811c9082168061371457607f821691505b602082108103612238577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600019820361376057613760613694565b5060010190565b601f82111561130157600081815260208120601f850160051c8101602086101561378e5750805b601f850160051c820191505b818110156137ad5782815560010161379a565b505050505050565b67ffffffffffffffff8311156137cd576137cd613433565b6137e1836137db8354613700565b83613767565b6000601f84116001811461381557600085156137fd5750838201355b600019600387901b1c1916600186901b178355611ea7565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156138645786850135825560209485019460019092019101613844565b50868210156138815760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156138d457600080fd5b8151611dd781613260565b600083516138f18184602088016131df565b8351908301906139058183602088016131df565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261397457613974613936565b500490565b60008261398857613988613936565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130e26080830184613203565b6000602082840312156139d157600080fd5b8151611dd78161317b56fea26469706673582212203ad863f5d631122a0d3ac9f6912d9217e34402e55c3234e42caaf652792df25464736f6c63430008110033
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.