Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 166 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 19123304 | 692 days ago | IN | 0 ETH | 0.00077338 | ||||
| Set Approval For... | 16645895 | 1040 days ago | IN | 0 ETH | 0.00176199 | ||||
| Set Approval For... | 16645363 | 1040 days ago | IN | 0 ETH | 0.00179399 | ||||
| Set Approval For... | 16645341 | 1040 days ago | IN | 0 ETH | 0.00179606 | ||||
| Safe Transfer Fr... | 16644969 | 1040 days ago | IN | 0 ETH | 0.00221573 | ||||
| Safe Transfer Fr... | 16643938 | 1040 days ago | IN | 0 ETH | 0.00351596 | ||||
| Set Approval For... | 16642931 | 1040 days ago | IN | 0 ETH | 0.00240395 | ||||
| Set Approval For... | 16641046 | 1041 days ago | IN | 0 ETH | 0.00141393 | ||||
| Set Approval For... | 16638611 | 1041 days ago | IN | 0 ETH | 0.00197971 | ||||
| Set Approval For... | 16638500 | 1041 days ago | IN | 0 ETH | 0.0024452 | ||||
| Set Approval For... | 16637684 | 1041 days ago | IN | 0 ETH | 0.00357182 | ||||
| Set Approval For... | 16635948 | 1041 days ago | IN | 0 ETH | 0.00255952 | ||||
| Set Approval For... | 16635391 | 1041 days ago | IN | 0 ETH | 0.00198824 | ||||
| Set Approval For... | 16635390 | 1041 days ago | IN | 0 ETH | 0.00298707 | ||||
| Set Approval For... | 16628103 | 1042 days ago | IN | 0 ETH | 0.00210184 | ||||
| Safe Transfer Fr... | 16628092 | 1042 days ago | IN | 0 ETH | 0.00229499 | ||||
| Safe Transfer Fr... | 16627794 | 1042 days ago | IN | 0 ETH | 0.0033795 | ||||
| Set Approval For... | 16624765 | 1043 days ago | IN | 0 ETH | 0.0009131 | ||||
| Safe Transfer Fr... | 16622635 | 1043 days ago | IN | 0 ETH | 0.00166852 | ||||
| Set Approval For... | 16622263 | 1043 days ago | IN | 0 ETH | 0.00093068 | ||||
| Set Approval For... | 16621869 | 1043 days ago | IN | 0 ETH | 0.00186592 | ||||
| Safe Transfer Fr... | 16619971 | 1044 days ago | IN | 0 ETH | 0.0013914 | ||||
| Set Approval For... | 16609954 | 1045 days ago | IN | 0 ETH | 0.00087762 | ||||
| Set Approval For... | 16609864 | 1045 days ago | IN | 0 ETH | 0.00097919 | ||||
| Safe Transfer Fr... | 16609840 | 1045 days ago | IN | 0 ETH | 0.0008651 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 16592974 | 1047 days ago | 185.19372693 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.42089483 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.63134225 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.43473247 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.43473247 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.01383763 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.02767527 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.05535055 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.02767527 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.02767527 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.02767527 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.02767527 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.04151291 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.04151291 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.25196033 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.04151291 ETH | ||||
| Transfer | 16592974 | 1047 days ago | 0.50392066 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MPSS
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
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/**
* @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 {DefaultOperatorFilterer} from "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import {ERC721AO} from "./ERC721AO.sol";
contract MPSS is ERC721AO, Ownable, ReentrancyGuard, DefaultOperatorFilterer
{
struct MintPass
{
uint _PriceStart; // [0] -> _PriceStart
uint _PriceEnd; // [1] -> _PriceEnd
uint _MaximumAvailableForSale; // [2] -> _MaximumAvailableForSale
uint _UnixTimestampStartingBlock; // [3] -> _UnixTimestampStartingBlock
uint _SecondsBetweenPriceDecay; // [5] -> _SecondsBetweenPriceDecay
bool _Active; // [6] -> _Active
}
struct InternalSale
{
uint _AmountSold; // [0] -> _AmountSold
uint _FinalClearingPrice; // [1] -> _FinalClearingPrice
uint _UniqueSales; // [2] -> _UniqueSales
}
struct UserSaleInformation
{
uint _UserCurrentPrice; // [0] -> _UserCurrentPrice
uint _UserAmountPurchased; // [1] -> _UserAmountPurchased
uint _UserFullSetAllocation; // [2] -> _UserFullSetAllocation
uint _UserAmountRemaining; // [3] -> _UserAmountRemaining
bool _UserBrightListEligible; // [4] -> _UserBrightListEligible
bool _UserSalePaused; // [5] -> _UserSalePaused
}
struct SaleInformation
{
uint _UserCurrentPrice; // [0] -> _UserCurrentPrice
uint _UserRemaining; // [1] -> _UserRemaining
uint _UserSaleStartTime; // [2] -> _UserSaleStartTime
uint _UserStartingPrice; // [3] -> _UserStartingPrice
uint _UserEndingPrice; // [4] -> _UserEndingPrice
}
MintPass public MintPassSale = MintPass(
5 ether, // [0] -> _PriceStart
0.5 ether, // [1] -> _PriceEnd
95, // [2] -> _MaximumAvailableForSale
1675965600, // [3] -> _UnixTimestampStartingBlock
1084, // [4] -> _SecondsBetweenPriceDecay
true // [5] -> _Active
);
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(uint=>uint) public UniqueSalePriorityStatus; // `OrderID` => `Priority`
mapping(uint=>uint) public _PriorityDiscount; // `PriorityIndex` => `Discount` note: True Discount = 100 - `Discount`
mapping(address=>uint) public _UserPurchasedAmt; // `Wallet` => `Total Purchased Amount`
mapping(address=>uint) public _FullSetAllocation; // `Wallet` => `Purchasable Amount`
uint private constant MAXIMUM_PURCHASE_AMOUNT = 3;
uint public CurrentOrderRefundIndex;
bytes32 public _Root = 0x0613263cb8d5ad17312f566633fa573e47039ace68bec9ac96fdce7332a78616;
address public _LiveMint = 0xf441aAF6a47c8A0e2d6317de6cB20a8f43481544;
string public baseURI = "ipfs://QmdrBrdRNC4xvcrcxsWfMvpNg6bJW7MgwxPX7Awg89rqs2/";
event Purchased(address Recipient, uint Amount, uint MessageValue, uint PurchaseValue, uint AmountSold);
event RefundReverted(uint OrderIndex);
event NewTimestamp(uint Timestamp);
event Refunded(uint RefundAmount);
constructor() ERC721AO("Mint Pass Sunset From The Bluffs | Nat Sarkissian | MPSS", "MPSS")
{
_PriorityDiscount[0] = 80; // 100 - 80 = 20% Discount => Full Set
_PriorityDiscount[1] = 90; // 100 - 90 = 10% Discount => Citizen
_PriorityDiscount[0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff] = 100; // 0% Discount
_mint(0xB96E81f80b3AEEf65CB6d0E280b15FD5DBE71937, 5);
_transferOwnership(0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700); // `operator.brightmoments.eth`
}
/*---------------------
* EXTERNAL FUNCTIONS *
----------------------*/
/**
* @dev Purchases NFTs
*/
function PurchasePass(uint Amount, bytes32[] calldata Proof) external payable nonReentrant
{
require(block.timestamp >= MintPassSale._UnixTimestampStartingBlock, "MP: Sale Not Started Yet");
require(tx.origin == msg.sender, "MP: EOA Only");
require(MintPassSale._Active, "MP: Sale Ended");
(bool BrightListEligible, uint Priority) = VerifyBrightList(msg.sender, Proof);
if(BrightListEligible)
{
if(_FullSetAllocation[msg.sender] > 0)
{
if(Amount > _FullSetAllocation[msg.sender])
{
Amount = _FullSetAllocation[msg.sender];
if(Amount > MAXIMUM_PURCHASE_AMOUNT) { Amount = MAXIMUM_PURCHASE_AMOUNT; } // Only Allows Up To Maximum Purchase
}
_FullSetAllocation[msg.sender] -= Amount;
Priority = 0; // Highest Priority (Full Set)
}
else { Priority = 1; } // Second Highest Priority (Citizen)
}
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 = _UserPurchasedAmt[msg.sender] + Amount;
require(Amount > 0 && Amount <= MAXIMUM_PURCHASE_AMOUNT, "MP: Incorrect Amount");
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)); } // Refunds The Intra-Transaction Difference
UniqueSaleToOrderValue[MintPassInternalSale._UniqueSales] = CurrentPurchaseValue;
UniqueSaleIndexToAddress[MintPassInternalSale._UniqueSales] = msg.sender;
UniqueSalePurchaseAmount[MintPassInternalSale._UniqueSales] = Amount;
UniqueSaleBrightListStatus[MintPassInternalSale._UniqueSales] = BrightListEligible;
UniqueSalePriorityStatus[MintPassInternalSale._UniqueSales] = Priority;
MintPassInternalSale._UniqueSales = MintPassInternalSale._UniqueSales + 1;
MintPassInternalSale._AmountSold = NewAmountSold;
_UserPurchasedAmt[msg.sender] = NewUserPurchasedAmount;
require(MintPassInternalSale._AmountSold <= MintPassSale._MaximumAvailableForSale, "MP: Overflow");
if(MintPassInternalSale._AmountSold == MintPassSale._MaximumAvailableForSale) // End Sales
{
MintPassInternalSale._FinalClearingPrice = CurrentPrice;
___EndMintPassSale();
}
_mint(msg.sender, Amount);
emit Purchased(msg.sender, Amount, msg.value, CurrentPurchaseValue, NewAmountSold);
}
/*------------------
* ADMIN FUNCTIONS *
-------------------*/
/**
* @dev Seeds Full Set Allocations
* note: This Is In-Lieu Of A Merkle Proof uint Validation, Which Is The Better Approach
*/
function __SeedFullSetAllocations(address[] calldata Wallets, uint[] calldata Amounts) external onlyOwner
{
for(uint x; x < Wallets.length; x++) { _FullSetAllocation[Wallets[x]] = Amounts[x]; }
}
/**
* @dev Changes The Operator Filter State
*/
function __ChangeOperatorFilterState(bool State) external onlyOwner { OPERATOR_FILTER_ENABLED = State; }
/**
* @dev Overrides Clearing Price
*/
function __OverrideClearingPrice(uint Price) external onlyOwner { MintPassInternalSale._FinalClearingPrice = Price; }
/**
* @dev Initiates Withdraw Of Refunds & Sale Proceeds
*/
function __InitiateRefundsAndProceeds() external onlyOwner
{
require(MintPassInternalSale._FinalClearingPrice > 0, "Final Clearing Price Not Seeded");
for(uint OrderIndex = CurrentOrderRefundIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
{
if(!UniqueSaleBrightListStatus[OrderIndex]) // No Discount
{
(bool ConfirmedRefund,) = UniqueSaleIndexToAddress[OrderIndex].call{
value: UniqueSaleToOrderValue[OrderIndex] - (MintPassInternalSale._FinalClearingPrice * UniqueSalePurchaseAmount[OrderIndex])
} ("");
if(!ConfirmedRefund) { emit RefundReverted(OrderIndex); }
}
else // BrightList Discount
{
(bool ConfirmedRefund,) = UniqueSaleIndexToAddress[OrderIndex].call{
value: UniqueSaleToOrderValue[OrderIndex] - (
(
(MintPassInternalSale._FinalClearingPrice * _PriorityDiscount[UniqueSalePriorityStatus[OrderIndex]])
/
100
)
*
UniqueSalePurchaseAmount[OrderIndex]
)
} ("");
if(!ConfirmedRefund) { emit RefundReverted(OrderIndex); }
}
}
(bool ConfirmedWithdraw,) = msg.sender.call{ value: address(this).balance }("");
require(ConfirmedWithdraw, "MP: Multisig Refund Failed, Use Other Withdraw Function");
CurrentOrderRefundIndex = MintPassInternalSale._UniqueSales;
}
/**
* @dev Changes Sale Start Block
*/
function __NewBlockTimestampStart(uint Timestamp) external onlyOwner
{
MintPassSale._UnixTimestampStartingBlock = Timestamp;
emit NewTimestamp(Timestamp);
}
/**
* @dev Changes Merkle Root
*/
function __NewRoot(bytes32 Root) external onlyOwner { _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 Changes The BaseURI For JSON Metadata
*/
function __NewBaseURI(string calldata NewURI) external onlyOwner { baseURI = NewURI; }
/**
* @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
{
(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; TokenID++)
{
IERC721(Contract).transferFrom(address(this), Recipient, TokenIDs[TokenID]);
}
}
/*-----------------
* VIEW FUNCTIONS *
------------------*/
/**
* @dev Returns MP Sale Information
*/
function ViewAllMPSaleInformation() public view returns (MintPass memory, SaleInformation memory)
{
return(
MintPassSale,
SaleInformation(
ViewCurrentPriceMintPass(),
MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold,
MintPassSale._UnixTimestampStartingBlock,
MintPassSale._PriceStart,
MintPassSale._PriceEnd
)
);
}
/**
* @dev Returns MP Sale Information For A Given Wallet
*/
function ViewWalletSaleInformation(
address Wallet,
bytes32[] calldata Proof
) external view returns (UserSaleInformation memory) {
bool MintPassSalePaused;
(bool BrightList, uint Priority) = VerifyBrightList(Wallet, Proof);
if(
!(MintPassSale._Active)
&&
(MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold > 0)
) { MintPassSalePaused = true; }
return(
UserSaleInformation(
ViewCurrentPriceMintPass(),
_UserPurchasedAmt[Wallet],
_FullSetAllocation[Wallet],
MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold,
BrightList,
MintPassSalePaused
)
);
}
/**
* @dev Returns The Total Refund Total
*/
function ViewRefundTotalForWallet(address Wallet) public view returns(uint, uint[] memory)
{
uint[] memory _OrderIndexes = new uint[](MintPassInternalSale._UniqueSales);
uint _UniqueIndexes;
uint _RefundTotal;
uint _RefundTx;
uint _Price = ViewCurrentPriceMintPass();
for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
{
if(UniqueSaleIndexToAddress[OrderIndex] == Wallet)
{
if(!UniqueSaleBrightListStatus[OrderIndex]) // No Discount
{
_RefundTx = UniqueSaleToOrderValue[OrderIndex] - (
_Price * UniqueSalePurchaseAmount[OrderIndex]
);
_RefundTotal += _RefundTx;
}
else // BrightList Discount
{
_RefundTx = UniqueSaleToOrderValue[OrderIndex] - (
(
(_Price * _PriorityDiscount[UniqueSalePriorityStatus[OrderIndex]])
/
100
)
*
UniqueSalePurchaseAmount[OrderIndex]
);
_RefundTotal += _RefundTx;
}
_OrderIndexes[_UniqueIndexes] = OrderIndex;
_UniqueIndexes += 1;
}
}
uint[] memory _FormattedIndexes = new uint[](_UniqueIndexes);
for(uint x; x < _UniqueIndexes; x++) { _FormattedIndexes[x] = _OrderIndexes[x]; }
return (_RefundTotal, _FormattedIndexes);
}
/**
* @dev Returns The Total Refund Total
*/
function ViewRefundTotal() public view returns(uint)
{
uint _RefundTotal;
uint _RefundTx;
uint _Price = ViewCurrentPriceMintPass();
for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
{
if(!UniqueSaleBrightListStatus[OrderIndex]) // No Discount
{
_RefundTx = UniqueSaleToOrderValue[OrderIndex] - (
_Price * UniqueSalePurchaseAmount[OrderIndex]
);
_RefundTotal += _RefundTx;
}
else // BrightList Discount
{
_RefundTx = UniqueSaleToOrderValue[OrderIndex] - (
(
(_Price * _PriorityDiscount[UniqueSalePriorityStatus[OrderIndex]])
/
100
)
*
UniqueSalePurchaseAmount[OrderIndex]
);
_RefundTotal += _RefundTx;
}
}
return _RefundTotal;
}
/**
* @dev Returns Net Profits In WEI
*/
function ViewProfitsMinusRefunds() public view returns(uint) { return (address(this).balance - ViewRefundTotal()); }
/*---------------------
* INTERNAL FUNCTIONS *
----------------------*/
/**
* @dev Returns Current Dutch Price For Mint Pass
*/
function ViewCurrentPriceMintPass() internal view returns (uint Price)
{
if(block.timestamp <= MintPassSale._UnixTimestampStartingBlock) { return MintPassSale._PriceStart; } // Sale Not Started
if(MintPassInternalSale._FinalClearingPrice > 0) { return MintPassInternalSale._FinalClearingPrice; } // Sale Finished
uint CurrentPrice = MintPassSale._PriceStart;
uint SecondsElapsed = block.timestamp - MintPassSale._UnixTimestampStartingBlock;
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) public view returns (bool, uint)
{
bytes32 Leaf = keccak256(abi.encodePacked(Recipient));
bool Eligible = MerkleProof.verify(Proof, _Root, Leaf);
if(Eligible) { return(true, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); } // Eligible
else { return(false, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); } // Not Eligible
}
/**
* @dev Ends Mint Pass Sale On Sellout
*/
function ___EndMintPassSale() internal { MintPassSale._Active = 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);
}
/*---------------------
* OVERRIDE FUNCTIONS *
----------------------*/
function setApprovalForAll(
address operator,
bool approved
) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); }
function approve(
address operator,
uint256 tokenId
) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); }
function transferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); }
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); }
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); }
/*--------------------
* 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
// 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.8.0) (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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// 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 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 (last updated v4.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* 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
// 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.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The tree and the proofs can be generated using our
* https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
* You will find a quickstart guide in the readme.
*
* 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.
* OpenZeppelin's JavaScript library generates merkle trees that are safe
* against this attack out of the box.
*/
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 simultaneously proven to be a part of a merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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}
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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 sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* _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}.
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _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) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _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
// ERC721AO Contracts v3.3.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.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 ERC721AO is Context, ERC165, IERC721A {
using Address for address;
using Strings for uint256;
// 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(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 virtual override {
address owner = ERC721AO.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[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-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 Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) 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;
if (to.isContract()) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex < end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex < end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @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());
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
// ERC721A 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 ERC721A compliant contract.
*/
interface IERC721A 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
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
* @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide
* administration methods on the contract itself to interact with the registry otherwise the subscription
* will be locked to the options set during construction.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
/// @dev The constructor that is called when the contract is being deployed.
constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
/**
* @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
* true if supplied registrant address is not registered.
*/
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
/**
* @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
*/
function register(address registrant) external;
/**
* @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
*/
function registerAndSubscribe(address registrant, address subscription) external;
/**
* @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
* address without subscribing.
*/
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
/**
* @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
* Note that this does not remove any filtered addresses or codeHashes.
* Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
*/
function unregister(address addr) external;
/**
* @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
*/
function updateOperator(address registrant, address operator, bool filtered) external;
/**
* @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
*/
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
/**
* @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
*/
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
/**
* @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
*/
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
/**
* @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
* subscription if present.
* Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
* subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
* used.
*/
function subscribe(address registrant, address registrantToSubscribe) external;
/**
* @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
*/
function unsubscribe(address registrant, bool copyExistingEntries) external;
/**
* @notice Get the subscription address of a given registrant, if any.
*/
function subscriptionOf(address addr) external returns (address registrant);
/**
* @notice Get the set of addresses subscribed to a given registrant.
* Note that order is not guaranteed as updates are made.
*/
function subscribers(address registrant) external returns (address[] memory);
/**
* @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
* Note that order is not guaranteed as updates are made.
*/
function subscriberAt(address registrant, uint256 index) external returns (address);
/**
* @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
*/
function copyEntriesOf(address registrant, address registrantToCopy) external;
/**
* @notice Returns true if operator is filtered by a given address or its subscription.
*/
function isOperatorFiltered(address registrant, address operator) external returns (bool);
/**
* @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
*/
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
/**
* @notice Returns true if a codeHash is filtered by a given address or its subscription.
*/
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
/**
* @notice Returns a list of filtered operators for a given address or its subscription.
*/
function filteredOperators(address addr) external returns (address[] memory);
/**
* @notice Returns the set of filtered codeHashes for a given address or its subscription.
* Note that order is not guaranteed as updates are made.
*/
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
/**
* @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
* its subscription.
* Note that order is not guaranteed as updates are made.
*/
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
/**
* @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
* its subscription.
* Note that order is not guaranteed as updates are made.
*/
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
/**
* @notice Returns true if an address has registered
*/
function isRegistered(address addr) external returns (bool);
/**
* @dev Convenience method to compute the code hash of an arbitrary contract
*/
function codeHashOf(address addr) external returns (bytes32);
}// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
* Please note that if your token contract does not provide an owner with EIP-173, it must provide
* administration methods on the contract itself to interact with the registry otherwise the subscription
* will be locked to the options set during construction.
*/
abstract contract OperatorFilterer {
/// @dev Emitted when an operator is not allowed.
error OperatorNotAllowed(address operator);
bool OPERATOR_FILTER_ENABLED = true;
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);
/// @dev The constructor that is called when the contract is being deployed.
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
/**
* @dev A helper function to check if an operator is allowed.
*/
modifier onlyAllowedOperator(address from) virtual {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if(OPERATOR_FILTER_ENABLED)
{
if (from != msg.sender) {
_checkFilterOperator(msg.sender);
}
}
_;
}
/**
* @dev A helper function to check if an operator approval is allowed.
*/
modifier onlyAllowedOperatorApproval(address operator) virtual {
if(OPERATOR_FILTER_ENABLED) { _checkFilterOperator(operator); }
_;
}
/**
* @dev A helper function to check if an operator is allowed.
*/
function _checkFilterOperator(address operator) internal view virtual {
if(OPERATOR_FILTER_ENABLED)
{
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
// under normal circumstances, this function will revert rather than return false, but inheriting contracts
// may specify their own OperatorFilterRegistry implementations, which may behave differently
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
// Check registry code length to facilitate testing in environments without a deployed registry.
}
}{
"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
Contract ABI
API[{"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":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"uint256","name":"Timestamp","type":"uint256"}],"name":"NewTimestamp","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":"uint256","name":"OrderIndex","type":"uint256"}],"name":"RefundReverted","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":"CurrentOrderRefundIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"_UnixTimestampStartingBlock","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_Active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"Amount","type":"uint256"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"PurchasePass","outputs":[],"stateMutability":"payable","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":"UniqueSalePriorityStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"VerifyBrightList","outputs":[{"internalType":"bool","name":"","type":"bool"},{"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":"_UnixTimestampStartingBlock","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_Active","type":"bool"}],"internalType":"struct MPSS.MintPass","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"_UserCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_UserRemaining","type":"uint256"},{"internalType":"uint256","name":"_UserSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_UserStartingPrice","type":"uint256"},{"internalType":"uint256","name":"_UserEndingPrice","type":"uint256"}],"internalType":"struct MPSS.SaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewProfitsMinusRefunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewRefundTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"}],"name":"ViewRefundTotalForWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"ViewWalletSaleInformation","outputs":[{"components":[{"internalType":"uint256","name":"_UserCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_UserAmountPurchased","type":"uint256"},{"internalType":"uint256","name":"_UserFullSetAllocation","type":"uint256"},{"internalType":"uint256","name":"_UserAmountRemaining","type":"uint256"},{"internalType":"bool","name":"_UserBrightListEligible","type":"bool"},{"internalType":"bool","name":"_UserSalePaused","type":"bool"}],"internalType":"struct MPSS.UserSaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_FullSetAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"","type":"uint256"}],"name":"_PriorityDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_Root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_UserPurchasedAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"State","type":"bool"}],"name":"__ChangeOperatorFilterState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__InitiateRefundsAndProceeds","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":"__NewBlockTimestampStart","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":"uint256","name":"Price","type":"uint256"}],"name":"__OverrideClearingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"Wallets","type":"address[]"},{"internalType":"uint256[]","name":"Amounts","type":"uint256[]"}],"name":"__SeedFullSetAllocations","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":"operator","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
600a805460ff199081166001908117909255674563918244f4000060808190526706f05b59d3b2000060a0819052605f60c08190526363e534a060e081905261043c610100819052610120879052600b94909455600c92909255600d55600e55600f556010805490911690911790556000610140819052610160819052610180819052601181905560128190556013557f0613263cb8d5ad17312f566633fa573e47039ace68bec9ac96fdce7332a78616601d55601e80546001600160a01b03191673f441aaf6a47c8a0e2d6317de6cb20a8f4348154417905561020060405260366101a081815290620045896101c039601f90620000ff9082620005b8565b503480156200010d57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806060016040528060388152602001620045bf603891396040805180820190915260048152634d50535360e01b60208201526002620001688382620005b8565b506003620001778282620005b8565b50506000805550620001893362000392565b60016009556daaeb6d7670e522a718067333cd4e3b15620002d35780156200022157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200020257600080fd5b505af115801562000217573d6000803e3d6000fd5b50505050620002d3565b6001600160a01b03821615620002725760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620001e7565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620002b957600080fd5b505af1158015620002ce573d6000803e3d6000fd5b505050505b5050601960205260507fd2ac945fcc0096878c763e37d6929b78378c1a2defabde8ba7ee5ed1d6e7a5b255605a7ffc941c3961fb6541da34150022cddf959da0fb2353866a6bfbd249c2da0929145560001960005260647f0d7f73ba8afef39cfc7064e55120c450f3d9a24fe3988ad6d7c5309656095f0a556200036d73b96e81f80b3aeef65cb6d0e280b15fd5dbe719376005620003e4565b6200038c73e06f5fae754e81bc050215ff89b03d9e9ff2070062000392565b62000684565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0383166200040e57604051622e076360e81b815260040160405180910390fd5b81600003620004305760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080546001600160801b031981166001600160401b038083168a018116918217680100000000000000006001600160401b031990941690921783900481168a01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210620004c25750600055505050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200053f57607f821691505b6020821081036200056057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050f57600081815260208120601f850160051c810160208610156200058f5750805b601f850160051c820191505b81811015620005b0578281556001016200059b565b505050505050565b81516001600160401b03811115620005d457620005d462000514565b620005ec81620005e584546200052a565b8462000566565b602080601f8311600181146200062457600084156200060b5750858301515b600019600386901b1c1916600185901b178555620005b0565b600085815260208120601f198616915b82811015620006555788860151825594840194600190910190840162000634565b5085821015620006745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613ef580620006946000396000f3fe60806040526004361061033f5760003560e01c80637041599b116101b0578063a95bf5e0116100ec578063c87b56dd11610095578063e74bcbe01161006f578063e74bcbe014610a66578063e964500314610ad6578063e985e9c514610af6578063f2fde38b14610b3f57600080fd5b8063c87b56dd146109f9578063ca17fc0c14610a19578063cd27a03614610a4657600080fd5b8063b88d4fde116100c6578063b88d4fde1461098c578063bcb0ba7b146109ac578063c00072d6146109cc57600080fd5b8063a95bf5e014610928578063b08a5ac714610948578063b6ac22bc1461095e57600080fd5b8063944f1cc31161015957806397a05e8d1161013357806397a05e8d14610876578063987de88e146108965780639e9fbbee146108f3578063a22cb4651461090857600080fd5b8063944f1cc3146107a2578063952e26571461082a57806395d89b411461086157600080fd5b806381eeb2a61161018a57806381eeb2a61461072e5780638c174409146107645780638da5cb5b1461078457600080fd5b80637041599b146106bf57806370a08231146106f9578063715018a61461071957600080fd5b8063361e795f1161027f5780635578ad4211610228578063681b712111610202578063681b71211461064a5780636c0360eb1461066a5780636d325d311461067f5780636f08bbe51461069f57600080fd5b80635578ad42146105e7578063615cec66146105fa5780636352211e1461062a57600080fd5b8063422d6e0111610259578063422d6e011461057a57806342842e0e1461059a5780634ea786d9146105ba57600080fd5b8063361e795f146105235780633a83c5951461053857806341f434341461055857600080fd5b80631467493d116102ec5780631a5b8b2f116102c65780631a5b8b2f146104895780631cbe1880146104b657806323b872dd146104e35780632b5931ca1461050357600080fd5b80631467493d1461042e57806314c1c4fa1461045b57806318160ddd1461047057600080fd5b8063095ea7b31161031d578063095ea7b3146103d357806309beb0c0146103f55780630cf250861461040a57600080fd5b806301ffc9a71461034457806306fdde0314610379578063081812fc1461039b575b600080fd5b34801561035057600080fd5b5061036461035f3660046135e2565b610b5f565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061038e610c44565b604051610370919061366d565b3480156103a757600080fd5b506103bb6103b6366004613680565b610cd6565b6040516001600160a01b039091168152602001610370565b3480156103df57600080fd5b506103f36103ee3660046136ae565b610d33565b005b34801561040157600080fd5b506103f3610d58565b34801561041657600080fd5b50610420601d5481565b604051908152602001610370565b34801561043a57600080fd5b506104206104493660046136da565b601a6020526000908152604090205481565b34801561046757600080fd5b50610420610d8f565b34801561047c57600080fd5b5060015460005403610420565b34801561049557600080fd5b506104206104a4366004613680565b60186020526000908152604090205481565b3480156104c257600080fd5b506104206104d1366004613680565b60156020526000908152604090205481565b3480156104ef57600080fd5b506103f36104fe3660046136f7565b610e90565b34801561050f57600080fd5b506103f361051e366004613680565b610ec7565b34801561052f57600080fd5b506103f3610f0a565b34801561054457600080fd5b506103f3610553366004613738565b61122a565b34801561056457600080fd5b506103bb6daaeb6d7670e522a718067333cd4e81565b34801561058657600080fd5b506103f3610595366004613680565b61123f565b3480156105a657600080fd5b506103f36105b53660046136f7565b61124c565b3480156105c657600080fd5b506104206105d5366004613680565b60166020526000908152604090205481565b6103f36105f53660046137f6565b61127d565b34801561060657600080fd5b50610364610615366004613680565b60176020526000908152604090205460ff1681565b34801561063657600080fd5b506103bb610645366004613680565b611758565b34801561065657600080fd5b50601e546103bb906001600160a01b031681565b34801561067657600080fd5b5061038e61176a565b34801561068b57600080fd5b506103bb61069a366004613680565b6117f8565b3480156106ab57600080fd5b506103f36106ba366004613680565b611934565b3480156106cb57600080fd5b506011546012546013546106de92919083565b60408051938452602084019290925290820152606001610370565b34801561070557600080fd5b506104206107143660046136da565b611941565b34801561072557600080fd5b506103f36119a9565b34801561073a57600080fd5b506103bb610749366004613680565b6014602052600090815260409020546001600160a01b031681565b34801561077057600080fd5b506103f361077f3660046136da565b6119bd565b34801561079057600080fd5b506008546001600160a01b03166103bb565b3480156107ae57600080fd5b506107b76119ff565b6040805183518152602080850151818301528483015182840152606080860151818401526080808701518185015260a096870151151596840196909652845160c08401529084015160e0830152918301516101008201529082015161012082015291015161014082015261016001610370565b34801561083657600080fd5b5061084a610845366004613842565b611b0c565b604080519215158352602083019190915201610370565b34801561086d57600080fd5b5061038e611bcc565b34801561088257600080fd5b506103f361089136600461387e565b611bdb565b3480156108a257600080fd5b50600b54600c54600d54600e54600f546010546108c495949392919060ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c001610370565b3480156108ff57600080fd5b50610420611c65565b34801561091457600080fd5b506103f36109233660046138f8565b611c7e565b34801561093457600080fd5b506103f3610943366004613931565b611c9e565b34801561095457600080fd5b50610420601c5481565b34801561096a57600080fd5b5061097e6109793660046136da565b611cd7565b60405161037092919061394e565b34801561099857600080fd5b506103f36109a73660046139cb565b611f18565b3480156109b857600080fd5b506103f36109c7366004613680565b611f4a565b3480156109d857600080fd5b506104206109e7366004613680565b60196020526000908152604090205481565b348015610a0557600080fd5b5061038e610a14366004613680565b611f57565b348015610a2557600080fd5b50610420610a343660046136da565b601b6020526000908152604090205481565b348015610a5257600080fd5b506103f3610a61366004613ac9565b611ff4565b348015610a7257600080fd5b50610a86610a81366004613842565b6120c4565b6040516103709190600060c0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015292915050565b348015610ae257600080fd5b506103f3610af13660046136ae565b6121bb565b348015610b0257600080fd5b50610364610b11366004613b22565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b4b57600080fd5b506103f3610b5a3660046136da565b61228c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bf257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c3e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060028054610c5390613b50565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7f90613b50565b8015610ccc5780601f10610ca157610100808354040283529160200191610ccc565b820191906000526020600020905b815481529060010190602001808311610caf57829003601f168201915b5050505050905090565b6000610ce182612319565b610d17576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600a54829060ff1615610d4957610d498161235d565b610d538383612453565b505050565b610d60612523565b60405133904780156108fc02916000818181858888f19350505050158015610d8c573d6000803e3d6000fd5b50565b600080600080610d9d61257d565b905060005b601354811015610e875760008181526017602052604090205460ff16610e0757600081815260156020526040902054610ddb9083613bcc565b600082815260166020526040902054610df49190613be3565b9250610e008385613bf6565b9350610e75565b60008181526015602090815260408083205460188352818420548452601990925290912054606490610e399085613bcc565b610e439190613c38565b610e4d9190613bcc565b600082815260166020526040902054610e669190613be3565b9250610e728385613bf6565b93505b80610e7f81613c4c565b915050610da2565b50919392505050565b600a54839060ff1615610eb6576001600160a01b0381163314610eb657610eb63361235d565b610ec184848461261a565b50505050565b610ecf612523565b600e8190556040518181527f8fa07ea445e3bf1b6cb6384af9738c519c5b3c1c54bd47edcf043764f90251bf9060200160405180910390a150565b610f12612523565b601254610f665760405162461bcd60e51b815260206004820152601f60248201527f46696e616c20436c656172696e67205072696365204e6f74205365656465640060448201526064015b60405180910390fd5b601c545b6013548110156111625760008181526017602052604090205460ff1661105a5760008181526014602090815260408083205460159092528220546012546001600160a01b0390921691610fbd9190613bcc565b600084815260166020526040902054610fd69190613be3565b604051600081818185875af1925050503d8060008114611012576040519150601f19603f3d011682016040523d82523d6000602084013e611017565b606091505b5050905080611054576040518281527f1bbcf33ec2a6d4e4aa02d397ac902f61d569c626bd822ba30c4d4d1c034cc7469060200160405180910390a15b50611150565b6000818152601460209081526040808320546015835281842054601884528285205485526019909352908320546012546001600160a01b0390921692916064916110a391613bcc565b6110ad9190613c38565b6110b79190613bcc565b6000848152601660205260409020546110d09190613be3565b604051600081818185875af1925050503d806000811461110c576040519150601f19603f3d011682016040523d82523d6000602084013e611111565b606091505b505090508061114e576040518281527f1bbcf33ec2a6d4e4aa02d397ac902f61d569c626bd822ba30c4d4d1c034cc7469060200160405180910390a15b505b8061115a81613c4c565b915050610f6a565b50604051600090339047908381818185875af1925050503d80600081146111a5576040519150601f19603f3d011682016040523d82523d6000602084013e6111aa565b606091505b50509050806112215760405162461bcd60e51b815260206004820152603760248201527f4d503a204d756c746973696720526566756e64204661696c65642c205573652060448201527f4f746865722057697468647261772046756e6374696f6e0000000000000000006064820152608401610f5d565b50601354601c55565b611232612523565b601f610d53828483613cb4565b611247612523565b601d55565b600a54839060ff1615611272576001600160a01b0381163314611272576112723361235d565b610ec1848484612625565b611285612640565b600e544210156112d75760405162461bcd60e51b815260206004820152601860248201527f4d503a2053616c65204e6f7420537461727465642059657400000000000000006044820152606401610f5d565b3233146113265760405162461bcd60e51b815260206004820152600c60248201527f4d503a20454f41204f6e6c7900000000000000000000000000000000000000006044820152606401610f5d565b60105460ff166113785760405162461bcd60e51b815260206004820152600e60248201527f4d503a2053616c6520456e6465640000000000000000000000000000000000006044820152606401610f5d565b600080611386338585611b0c565b91509150811561140e57336000908152601b60205260409020541561140a57336000908152601b60205260409020548511156113dc57336000908152601b6020526040902054945060038511156113dc57600394505b336000908152601b6020526040812080548792906113fb908490613be3565b909155506000915061140e9050565b5060015b600d5460115461141f908790613bf6565b111561143857601154600d546114359190613be3565b94505b601154600090611449908790613bf6565b600d5490915081111561149e5760405162461bcd60e51b815260206004820152600c60248201527f4d503a20536f6c64204f757400000000000000000000000000000000000000006044820152606401610f5d565b336000908152601a60205260408120546114b9908890613bf6565b90506000871180156114cc575060038711155b6115185760405162461bcd60e51b815260206004820152601460248201527f4d503a20496e636f727265637420416d6f756e740000000000000000000000006044820152606401610f5d565b600061152261257d565b905060006115308983613bcc565b9050803410156115825760405162461bcd60e51b815260206004820152601d60248201527f4d503a20496e636f72726563742045544820416d6f756e742053656e740000006044820152606401610f5d565b8034111561159d5761159d336115988334613be3565b612699565b601380546000908152601660209081526040808320859055835483526014825280832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317905583548352601582528083208d9055835483526017825280832080548b15157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116179055835483526018909152902086905554611647906001613bf6565b6013556011848155336000908152601a60205260409020849055600d54905411156116b45760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f766572666c6f7700000000000000000000000000000000000000006044820152606401610f5d565b600d54601154036116f15760128290556116f1601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6116fb338a612774565b60408051338152602081018b90523481830152606081018390526080810186905290517f5f5252e81556cf80e49da97ac40f17af2fb3b00e318b675ae93089f555bfa3809181900360a00190a1505050505050610d536001600955565b600061176382612929565b5192915050565b601f805461177790613b50565b80601f01602080910402602001604051908101604052809291908181526020018280546117a390613b50565b80156117f05780601f106117c5576101008083540402835291602001916117f0565b820191906000526020600020905b8154815290600101906020018083116117d357829003601f168201915b505050505081565b601e546000906001600160a01b031633146118555760405162461bcd60e51b815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152606401610f5d565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000903090636352211e90602401602060405180830381865afa1580156118ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d19190613d92565b90506001600160a01b0381166119295760405162461bcd60e51b815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152606401610f5d565b610c3e836000612ab2565b61193c612523565b601255565b60006001600160a01b038216611983576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6119b1612523565b6119bb6000612d61565b565b6119c5612523565b601e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611a3a6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b611a6c6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600b6040518060a00160405280611a8161257d565b8152601154600d54602090920191611a999190613be3565b8152600e54602080830191909152600b54604080840191909152600c54606093840152805160c081018252855481526001860154928101929092526002850154908201526003840154918101919091526004830154608082015260059092015460ff16151560a083015290939092509050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819081906034016040516020818303038152906040528051906020012090506000611ba086868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601d549150859050612dcb565b90508015611bb8576001600019935093505050611bc4565b60006000199350935050505b935093915050565b606060038054610c5390613b50565b611be3612523565b60005b83811015611c5e57828282818110611c0057611c00613daf565b90506020020135601b6000878785818110611c1d57611c1d613daf565b9050602002016020810190611c3291906136da565b6001600160a01b0316815260208101919091526040016000205580611c5681613c4c565b915050611be6565b5050505050565b6000611c6f610d8f565b611c799047613be3565b905090565b600a54829060ff1615611c9457611c948161235d565b610d538383612de1565b611ca6612523565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60006060600060116002015467ffffffffffffffff811115611cfb57611cfb61399c565b604051908082528060200260200182016040528015611d24578160200160208202803683370190505b509050600080600080611d3561257d565b905060005b601354811015611e6c576000818152601460205260409020546001600160a01b03808b16911603611e5a5760008181526017602052604090205460ff16611dc057600081815260156020526040902054611d949083613bcc565b600082815260166020526040902054611dad9190613be3565b9250611db98385613bf6565b9350611e2e565b60008181526015602090815260408083205460188352818420548452601990925290912054606490611df29085613bcc565b611dfc9190613c38565b611e069190613bcc565b600082815260166020526040902054611e1f9190613be3565b9250611e2b8385613bf6565b93505b80868681518110611e4157611e41613daf565b6020908102919091010152611e57600186613bf6565b94505b80611e6481613c4c565b915050611d3a565b5060008467ffffffffffffffff811115611e8857611e8861399c565b604051908082528060200260200182016040528015611eb1578160200160208202803683370190505b50905060005b85811015611f0857868181518110611ed157611ed1613daf565b6020026020010151828281518110611eeb57611eeb613daf565b602090810291909101015280611f0081613c4c565b915050611eb7565b5092989297509195505050505050565b600a54849060ff1615611f3e576001600160a01b0381163314611f3e57611f3e3361235d565b611c5e85858585612ead565b611f52612523565b600c55565b6060611f6282612319565b611f98576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611fa2612f0a565b90508051600003611fc25760405180602001604052806000815250611fed565b80611fcc84612f19565b604051602001611fdd929190613dde565b6040516020818303038152906040525b9392505050565b611ffc612523565b60005b81811015611c5e57846001600160a01b03166323b872dd308686868681811061202a5761202a613daf565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561209957600080fd5b505af11580156120ad573d6000803e3d6000fd5b5050505080806120bc90613c4c565b915050611fff565b6121016040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b6000806000612111878787611b0c565b601054919350915060ff161580156121385750601154600d5460009161213691613be3565b115b1561214257600192505b6040518060c0016040528061215561257d565b81526001600160a01b0389166000818152601a602090815260408083205482860152928252601b90528190205490820152601154600d5460609092019161219c9190613be3565b8152602001831515815260200184151581525093505050509392505050565b6121c3612523565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b5050905080610d535760405162461bcd60e51b815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152608401610f5d565b612294612523565b6001600160a01b0381166123105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f5d565b610d8c81612d61565b6000805482108015610c3e5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b600a5460ff1615610d8c576daaeb6d7670e522a718067333cd4e3b15610d8c576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156123ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124129190613e35565b610d8c576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610f5d565b600061245e82611758565b9050806001600160a01b0316836001600160a01b0316036124ab576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614612518576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16612518576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d53838383612fb9565b6008546001600160a01b031633146119bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f5d565b600e5460009042116125905750600b5490565b6012541561259f575060125490565b600b54600e546000906125b29042613be3565b600f549091506125c29082613c38565b600f5492901c916002906125d68184613e52565b6125e09085613bcc565b6125ea9190613c38565b6125f49190613c38565b6125fe9083613be3565b600c549092508211612614575050600c54919050565b50919050565b610d5383838361302d565b610d5383838360405180602001604052806000815250611f18565b6002600954036126925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f5d565b6002600955565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126e6576040519150601f19603f3d011682016040523d82523d6000602084013e6126eb565b606091505b505090508061273c5760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610f5d565b6040518281527f3d2a04f53164bedf9a8a46353305d6b2d2261410406df3b41f99ce6489dc003c9060200160405180910390a1505050565b6000546001600160a01b0383166127b7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816000036127f1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168a01811690920217909155858452600490925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106128dd5750600055505050565b604080516060810182526000808252602082018190529181019190915281600054811015612a8057600081815260046020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290612a7e5780516001600160a01b0316156129ea579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612a79579392505050565b6129ea565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612abd83612929565b80519091508215612b5a576000336001600160a01b0383161480612b0457506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b80612b1f575033612b1486610cd6565b6001600160a01b0316145b905080612b58576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b6660008583612fb9565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff8084169190910181167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4290931674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911690971796909617167c0100000000000000000000000000000000000000000000000000000000178555918901808452922080549194909116612d17576000548214612d17578054602087015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612dd885846132ed565b14949350505050565b336001600160a01b03831603612e23576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612eb884848461302d565b6001600160a01b0383163b15610ec157612ed48484848461333a565b610ec1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060601f8054610c5390613b50565b60606000612f26836134a6565b600101905060008167ffffffffffffffff811115612f4657612f4661399c565b6040519080825280601f01601f191660200182016040528015612f70576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612f7a57509392505050565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061303882612929565b9050836001600160a01b031681600001516001600160a01b031614613089576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806130c557506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b806130e05750336130d584610cd6565b6001600160a01b0316145b905080613119576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613159576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61316560008487612fb9565b6001600160a01b03858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217835587018084529220805491939091166132a45760005482146132a4578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c5e565b600081815b84518110156133325761331e8286838151811061331157613311613daf565b6020026020010151613588565b91508061332a81613c4c565b9150506132f2565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290613388903390899088908890600401613e66565b6020604051808303816000875af19250505080156133e1575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526133de91810190613ea2565b60015b613458573d80801561340f576040519150601f19603f3d011682016040523d82523d6000602084013e613414565b606091505b508051600003613450576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106134ef577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061351b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061353957662386f26fc10000830492506010015b6305f5e1008310613551576305f5e100830492506008015b612710831061356557612710830492506004015b60648310613577576064830492506002015b600a8310610c3e5760010192915050565b60008183106135a4576000828152602084905260409020611fed565b5060009182526020526040902090565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d8c57600080fd5b6000602082840312156135f457600080fd5b8135611fed816135b4565b60005b8381101561361a578181015183820152602001613602565b50506000910152565b6000815180845261363b8160208601602086016135ff565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611fed6020830184613623565b60006020828403121561369257600080fd5b5035919050565b6001600160a01b0381168114610d8c57600080fd5b600080604083850312156136c157600080fd5b82356136cc81613699565b946020939093013593505050565b6000602082840312156136ec57600080fd5b8135611fed81613699565b60008060006060848603121561370c57600080fd5b833561371781613699565b9250602084013561372781613699565b929592945050506040919091013590565b6000806020838503121561374b57600080fd5b823567ffffffffffffffff8082111561376357600080fd5b818501915085601f83011261377757600080fd5b81358181111561378657600080fd5b86602082850101111561379857600080fd5b60209290920196919550909350505050565b60008083601f8401126137bc57600080fd5b50813567ffffffffffffffff8111156137d457600080fd5b6020830191508360208260051b85010111156137ef57600080fd5b9250929050565b60008060006040848603121561380b57600080fd5b83359250602084013567ffffffffffffffff81111561382957600080fd5b613835868287016137aa565b9497909650939450505050565b60008060006040848603121561385757600080fd5b833561386281613699565b9250602084013567ffffffffffffffff81111561382957600080fd5b6000806000806040858703121561389457600080fd5b843567ffffffffffffffff808211156138ac57600080fd5b6138b8888389016137aa565b909650945060208701359150808211156138d157600080fd5b506138de878288016137aa565b95989497509550505050565b8015158114610d8c57600080fd5b6000806040838503121561390b57600080fd5b823561391681613699565b91506020830135613926816138ea565b809150509250929050565b60006020828403121561394357600080fd5b8135611fed816138ea565b6000604082018483526020604081850152818551808452606086019150828701935060005b8181101561398f57845183529383019391830191600101613973565b5090979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080600080608085870312156139e157600080fd5b84356139ec81613699565b935060208501356139fc81613699565b925060408501359150606085013567ffffffffffffffff80821115613a2057600080fd5b818701915087601f830112613a3457600080fd5b813581811115613a4657613a4661399c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613a8c57613a8c61399c565b816040528281528a6020848701011115613aa557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613adf57600080fd5b8435613aea81613699565b93506020850135613afa81613699565b9250604085013567ffffffffffffffff811115613b1657600080fd5b6138de878288016137aa565b60008060408385031215613b3557600080fd5b8235613b4081613699565b9150602083013561392681613699565b600181811c90821680613b6457607f821691505b602082108103612614577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610c3e57610c3e613b9d565b81810381811115610c3e57610c3e613b9d565b80820180821115610c3e57610c3e613b9d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613c4757613c47613c09565b500490565b60006000198203613c5f57613c5f613b9d565b5060010190565b601f821115610d5357600081815260208120601f850160051c81016020861015613c8d5750805b601f850160051c820191505b81811015613cac57828155600101613c99565b505050505050565b67ffffffffffffffff831115613ccc57613ccc61399c565b613ce083613cda8354613b50565b83613c66565b6000601f841160018114613d145760008515613cfc5750838201355b600019600387901b1c1916600186901b178355611c5e565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015613d635786850135825560209485019460019092019101613d43565b5086821015613d805760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060208284031215613da457600080fd5b8151611fed81613699565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008351613df08184602088016135ff565b835190830190613e048183602088016135ff565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215613e4757600080fd5b8151611fed816138ea565b600082613e6157613e61613c09565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e986080830184613623565b9695505050505050565b600060208284031215613eb457600080fd5b8151611fed816135b456fea2646970667358221220b9c05ad99b4e21c497ebfe936b3bc2fa87258b9ce09bd59753226cc0d54330d464736f6c63430008110033697066733a2f2f516d6472427264524e43347876637263787357664d76704e6736624a57374d6777785058374177673839727173322f4d696e7420506173732053756e7365742046726f6d2054686520426c75666673207c204e6174205361726b69737369616e207c204d505353
Deployed Bytecode
0x60806040526004361061033f5760003560e01c80637041599b116101b0578063a95bf5e0116100ec578063c87b56dd11610095578063e74bcbe01161006f578063e74bcbe014610a66578063e964500314610ad6578063e985e9c514610af6578063f2fde38b14610b3f57600080fd5b8063c87b56dd146109f9578063ca17fc0c14610a19578063cd27a03614610a4657600080fd5b8063b88d4fde116100c6578063b88d4fde1461098c578063bcb0ba7b146109ac578063c00072d6146109cc57600080fd5b8063a95bf5e014610928578063b08a5ac714610948578063b6ac22bc1461095e57600080fd5b8063944f1cc31161015957806397a05e8d1161013357806397a05e8d14610876578063987de88e146108965780639e9fbbee146108f3578063a22cb4651461090857600080fd5b8063944f1cc3146107a2578063952e26571461082a57806395d89b411461086157600080fd5b806381eeb2a61161018a57806381eeb2a61461072e5780638c174409146107645780638da5cb5b1461078457600080fd5b80637041599b146106bf57806370a08231146106f9578063715018a61461071957600080fd5b8063361e795f1161027f5780635578ad4211610228578063681b712111610202578063681b71211461064a5780636c0360eb1461066a5780636d325d311461067f5780636f08bbe51461069f57600080fd5b80635578ad42146105e7578063615cec66146105fa5780636352211e1461062a57600080fd5b8063422d6e0111610259578063422d6e011461057a57806342842e0e1461059a5780634ea786d9146105ba57600080fd5b8063361e795f146105235780633a83c5951461053857806341f434341461055857600080fd5b80631467493d116102ec5780631a5b8b2f116102c65780631a5b8b2f146104895780631cbe1880146104b657806323b872dd146104e35780632b5931ca1461050357600080fd5b80631467493d1461042e57806314c1c4fa1461045b57806318160ddd1461047057600080fd5b8063095ea7b31161031d578063095ea7b3146103d357806309beb0c0146103f55780630cf250861461040a57600080fd5b806301ffc9a71461034457806306fdde0314610379578063081812fc1461039b575b600080fd5b34801561035057600080fd5b5061036461035f3660046135e2565b610b5f565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061038e610c44565b604051610370919061366d565b3480156103a757600080fd5b506103bb6103b6366004613680565b610cd6565b6040516001600160a01b039091168152602001610370565b3480156103df57600080fd5b506103f36103ee3660046136ae565b610d33565b005b34801561040157600080fd5b506103f3610d58565b34801561041657600080fd5b50610420601d5481565b604051908152602001610370565b34801561043a57600080fd5b506104206104493660046136da565b601a6020526000908152604090205481565b34801561046757600080fd5b50610420610d8f565b34801561047c57600080fd5b5060015460005403610420565b34801561049557600080fd5b506104206104a4366004613680565b60186020526000908152604090205481565b3480156104c257600080fd5b506104206104d1366004613680565b60156020526000908152604090205481565b3480156104ef57600080fd5b506103f36104fe3660046136f7565b610e90565b34801561050f57600080fd5b506103f361051e366004613680565b610ec7565b34801561052f57600080fd5b506103f3610f0a565b34801561054457600080fd5b506103f3610553366004613738565b61122a565b34801561056457600080fd5b506103bb6daaeb6d7670e522a718067333cd4e81565b34801561058657600080fd5b506103f3610595366004613680565b61123f565b3480156105a657600080fd5b506103f36105b53660046136f7565b61124c565b3480156105c657600080fd5b506104206105d5366004613680565b60166020526000908152604090205481565b6103f36105f53660046137f6565b61127d565b34801561060657600080fd5b50610364610615366004613680565b60176020526000908152604090205460ff1681565b34801561063657600080fd5b506103bb610645366004613680565b611758565b34801561065657600080fd5b50601e546103bb906001600160a01b031681565b34801561067657600080fd5b5061038e61176a565b34801561068b57600080fd5b506103bb61069a366004613680565b6117f8565b3480156106ab57600080fd5b506103f36106ba366004613680565b611934565b3480156106cb57600080fd5b506011546012546013546106de92919083565b60408051938452602084019290925290820152606001610370565b34801561070557600080fd5b506104206107143660046136da565b611941565b34801561072557600080fd5b506103f36119a9565b34801561073a57600080fd5b506103bb610749366004613680565b6014602052600090815260409020546001600160a01b031681565b34801561077057600080fd5b506103f361077f3660046136da565b6119bd565b34801561079057600080fd5b506008546001600160a01b03166103bb565b3480156107ae57600080fd5b506107b76119ff565b6040805183518152602080850151818301528483015182840152606080860151818401526080808701518185015260a096870151151596840196909652845160c08401529084015160e0830152918301516101008201529082015161012082015291015161014082015261016001610370565b34801561083657600080fd5b5061084a610845366004613842565b611b0c565b604080519215158352602083019190915201610370565b34801561086d57600080fd5b5061038e611bcc565b34801561088257600080fd5b506103f361089136600461387e565b611bdb565b3480156108a257600080fd5b50600b54600c54600d54600e54600f546010546108c495949392919060ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c001610370565b3480156108ff57600080fd5b50610420611c65565b34801561091457600080fd5b506103f36109233660046138f8565b611c7e565b34801561093457600080fd5b506103f3610943366004613931565b611c9e565b34801561095457600080fd5b50610420601c5481565b34801561096a57600080fd5b5061097e6109793660046136da565b611cd7565b60405161037092919061394e565b34801561099857600080fd5b506103f36109a73660046139cb565b611f18565b3480156109b857600080fd5b506103f36109c7366004613680565b611f4a565b3480156109d857600080fd5b506104206109e7366004613680565b60196020526000908152604090205481565b348015610a0557600080fd5b5061038e610a14366004613680565b611f57565b348015610a2557600080fd5b50610420610a343660046136da565b601b6020526000908152604090205481565b348015610a5257600080fd5b506103f3610a61366004613ac9565b611ff4565b348015610a7257600080fd5b50610a86610a81366004613842565b6120c4565b6040516103709190600060c0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015292915050565b348015610ae257600080fd5b506103f3610af13660046136ae565b6121bb565b348015610b0257600080fd5b50610364610b11366004613b22565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b4b57600080fd5b506103f3610b5a3660046136da565b61228c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bf257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c3e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060028054610c5390613b50565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7f90613b50565b8015610ccc5780601f10610ca157610100808354040283529160200191610ccc565b820191906000526020600020905b815481529060010190602001808311610caf57829003601f168201915b5050505050905090565b6000610ce182612319565b610d17576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600a54829060ff1615610d4957610d498161235d565b610d538383612453565b505050565b610d60612523565b60405133904780156108fc02916000818181858888f19350505050158015610d8c573d6000803e3d6000fd5b50565b600080600080610d9d61257d565b905060005b601354811015610e875760008181526017602052604090205460ff16610e0757600081815260156020526040902054610ddb9083613bcc565b600082815260166020526040902054610df49190613be3565b9250610e008385613bf6565b9350610e75565b60008181526015602090815260408083205460188352818420548452601990925290912054606490610e399085613bcc565b610e439190613c38565b610e4d9190613bcc565b600082815260166020526040902054610e669190613be3565b9250610e728385613bf6565b93505b80610e7f81613c4c565b915050610da2565b50919392505050565b600a54839060ff1615610eb6576001600160a01b0381163314610eb657610eb63361235d565b610ec184848461261a565b50505050565b610ecf612523565b600e8190556040518181527f8fa07ea445e3bf1b6cb6384af9738c519c5b3c1c54bd47edcf043764f90251bf9060200160405180910390a150565b610f12612523565b601254610f665760405162461bcd60e51b815260206004820152601f60248201527f46696e616c20436c656172696e67205072696365204e6f74205365656465640060448201526064015b60405180910390fd5b601c545b6013548110156111625760008181526017602052604090205460ff1661105a5760008181526014602090815260408083205460159092528220546012546001600160a01b0390921691610fbd9190613bcc565b600084815260166020526040902054610fd69190613be3565b604051600081818185875af1925050503d8060008114611012576040519150601f19603f3d011682016040523d82523d6000602084013e611017565b606091505b5050905080611054576040518281527f1bbcf33ec2a6d4e4aa02d397ac902f61d569c626bd822ba30c4d4d1c034cc7469060200160405180910390a15b50611150565b6000818152601460209081526040808320546015835281842054601884528285205485526019909352908320546012546001600160a01b0390921692916064916110a391613bcc565b6110ad9190613c38565b6110b79190613bcc565b6000848152601660205260409020546110d09190613be3565b604051600081818185875af1925050503d806000811461110c576040519150601f19603f3d011682016040523d82523d6000602084013e611111565b606091505b505090508061114e576040518281527f1bbcf33ec2a6d4e4aa02d397ac902f61d569c626bd822ba30c4d4d1c034cc7469060200160405180910390a15b505b8061115a81613c4c565b915050610f6a565b50604051600090339047908381818185875af1925050503d80600081146111a5576040519150601f19603f3d011682016040523d82523d6000602084013e6111aa565b606091505b50509050806112215760405162461bcd60e51b815260206004820152603760248201527f4d503a204d756c746973696720526566756e64204661696c65642c205573652060448201527f4f746865722057697468647261772046756e6374696f6e0000000000000000006064820152608401610f5d565b50601354601c55565b611232612523565b601f610d53828483613cb4565b611247612523565b601d55565b600a54839060ff1615611272576001600160a01b0381163314611272576112723361235d565b610ec1848484612625565b611285612640565b600e544210156112d75760405162461bcd60e51b815260206004820152601860248201527f4d503a2053616c65204e6f7420537461727465642059657400000000000000006044820152606401610f5d565b3233146113265760405162461bcd60e51b815260206004820152600c60248201527f4d503a20454f41204f6e6c7900000000000000000000000000000000000000006044820152606401610f5d565b60105460ff166113785760405162461bcd60e51b815260206004820152600e60248201527f4d503a2053616c6520456e6465640000000000000000000000000000000000006044820152606401610f5d565b600080611386338585611b0c565b91509150811561140e57336000908152601b60205260409020541561140a57336000908152601b60205260409020548511156113dc57336000908152601b6020526040902054945060038511156113dc57600394505b336000908152601b6020526040812080548792906113fb908490613be3565b909155506000915061140e9050565b5060015b600d5460115461141f908790613bf6565b111561143857601154600d546114359190613be3565b94505b601154600090611449908790613bf6565b600d5490915081111561149e5760405162461bcd60e51b815260206004820152600c60248201527f4d503a20536f6c64204f757400000000000000000000000000000000000000006044820152606401610f5d565b336000908152601a60205260408120546114b9908890613bf6565b90506000871180156114cc575060038711155b6115185760405162461bcd60e51b815260206004820152601460248201527f4d503a20496e636f727265637420416d6f756e740000000000000000000000006044820152606401610f5d565b600061152261257d565b905060006115308983613bcc565b9050803410156115825760405162461bcd60e51b815260206004820152601d60248201527f4d503a20496e636f72726563742045544820416d6f756e742053656e740000006044820152606401610f5d565b8034111561159d5761159d336115988334613be3565b612699565b601380546000908152601660209081526040808320859055835483526014825280832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317905583548352601582528083208d9055835483526017825280832080548b15157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116179055835483526018909152902086905554611647906001613bf6565b6013556011848155336000908152601a60205260409020849055600d54905411156116b45760405162461bcd60e51b815260206004820152600c60248201527f4d503a204f766572666c6f7700000000000000000000000000000000000000006044820152606401610f5d565b600d54601154036116f15760128290556116f1601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6116fb338a612774565b60408051338152602081018b90523481830152606081018390526080810186905290517f5f5252e81556cf80e49da97ac40f17af2fb3b00e318b675ae93089f555bfa3809181900360a00190a1505050505050610d536001600955565b600061176382612929565b5192915050565b601f805461177790613b50565b80601f01602080910402602001604051908101604052809291908181526020018280546117a390613b50565b80156117f05780601f106117c5576101008083540402835291602001916117f0565b820191906000526020600020905b8154815290600101906020018083116117d357829003601f168201915b505050505081565b601e546000906001600160a01b031633146118555760405162461bcd60e51b815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152606401610f5d565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000903090636352211e90602401602060405180830381865afa1580156118ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d19190613d92565b90506001600160a01b0381166119295760405162461bcd60e51b815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152606401610f5d565b610c3e836000612ab2565b61193c612523565b601255565b60006001600160a01b038216611983576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6119b1612523565b6119bb6000612d61565b565b6119c5612523565b601e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611a3a6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b611a6c6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600b6040518060a00160405280611a8161257d565b8152601154600d54602090920191611a999190613be3565b8152600e54602080830191909152600b54604080840191909152600c54606093840152805160c081018252855481526001860154928101929092526002850154908201526003840154918101919091526004830154608082015260059092015460ff16151560a083015290939092509050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819081906034016040516020818303038152906040528051906020012090506000611ba086868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601d549150859050612dcb565b90508015611bb8576001600019935093505050611bc4565b60006000199350935050505b935093915050565b606060038054610c5390613b50565b611be3612523565b60005b83811015611c5e57828282818110611c0057611c00613daf565b90506020020135601b6000878785818110611c1d57611c1d613daf565b9050602002016020810190611c3291906136da565b6001600160a01b0316815260208101919091526040016000205580611c5681613c4c565b915050611be6565b5050505050565b6000611c6f610d8f565b611c799047613be3565b905090565b600a54829060ff1615611c9457611c948161235d565b610d538383612de1565b611ca6612523565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60006060600060116002015467ffffffffffffffff811115611cfb57611cfb61399c565b604051908082528060200260200182016040528015611d24578160200160208202803683370190505b509050600080600080611d3561257d565b905060005b601354811015611e6c576000818152601460205260409020546001600160a01b03808b16911603611e5a5760008181526017602052604090205460ff16611dc057600081815260156020526040902054611d949083613bcc565b600082815260166020526040902054611dad9190613be3565b9250611db98385613bf6565b9350611e2e565b60008181526015602090815260408083205460188352818420548452601990925290912054606490611df29085613bcc565b611dfc9190613c38565b611e069190613bcc565b600082815260166020526040902054611e1f9190613be3565b9250611e2b8385613bf6565b93505b80868681518110611e4157611e41613daf565b6020908102919091010152611e57600186613bf6565b94505b80611e6481613c4c565b915050611d3a565b5060008467ffffffffffffffff811115611e8857611e8861399c565b604051908082528060200260200182016040528015611eb1578160200160208202803683370190505b50905060005b85811015611f0857868181518110611ed157611ed1613daf565b6020026020010151828281518110611eeb57611eeb613daf565b602090810291909101015280611f0081613c4c565b915050611eb7565b5092989297509195505050505050565b600a54849060ff1615611f3e576001600160a01b0381163314611f3e57611f3e3361235d565b611c5e85858585612ead565b611f52612523565b600c55565b6060611f6282612319565b611f98576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611fa2612f0a565b90508051600003611fc25760405180602001604052806000815250611fed565b80611fcc84612f19565b604051602001611fdd929190613dde565b6040516020818303038152906040525b9392505050565b611ffc612523565b60005b81811015611c5e57846001600160a01b03166323b872dd308686868681811061202a5761202a613daf565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561209957600080fd5b505af11580156120ad573d6000803e3d6000fd5b5050505080806120bc90613c4c565b915050611fff565b6121016040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b6000806000612111878787611b0c565b601054919350915060ff161580156121385750601154600d5460009161213691613be3565b115b1561214257600192505b6040518060c0016040528061215561257d565b81526001600160a01b0389166000818152601a602090815260408083205482860152928252601b90528190205490820152601154600d5460609092019161219c9190613be3565b8152602001831515815260200184151581525093505050509392505050565b6121c3612523565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b5050905080610d535760405162461bcd60e51b815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152608401610f5d565b612294612523565b6001600160a01b0381166123105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f5d565b610d8c81612d61565b6000805482108015610c3e5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b600a5460ff1615610d8c576daaeb6d7670e522a718067333cd4e3b15610d8c576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156123ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124129190613e35565b610d8c576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610f5d565b600061245e82611758565b9050806001600160a01b0316836001600160a01b0316036124ab576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614612518576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16612518576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d53838383612fb9565b6008546001600160a01b031633146119bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f5d565b600e5460009042116125905750600b5490565b6012541561259f575060125490565b600b54600e546000906125b29042613be3565b600f549091506125c29082613c38565b600f5492901c916002906125d68184613e52565b6125e09085613bcc565b6125ea9190613c38565b6125f49190613c38565b6125fe9083613be3565b600c549092508211612614575050600c54919050565b50919050565b610d5383838361302d565b610d5383838360405180602001604052806000815250611f18565b6002600954036126925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f5d565b6002600955565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126e6576040519150601f19603f3d011682016040523d82523d6000602084013e6126eb565b606091505b505090508061273c5760405162461bcd60e51b815260206004820152601160248201527f4d503a20526566756e64206661696c65640000000000000000000000000000006044820152606401610f5d565b6040518281527f3d2a04f53164bedf9a8a46353305d6b2d2261410406df3b41f99ce6489dc003c9060200160405180910390a1505050565b6000546001600160a01b0383166127b7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816000036127f1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168a01811690920217909155858452600490925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106128dd5750600055505050565b604080516060810182526000808252602082018190529181019190915281600054811015612a8057600081815260046020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290612a7e5780516001600160a01b0316156129ea579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612a79579392505050565b6129ea565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612abd83612929565b80519091508215612b5a576000336001600160a01b0383161480612b0457506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b80612b1f575033612b1486610cd6565b6001600160a01b0316145b905080612b58576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b6660008583612fb9565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff8084169190910181167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4290931674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911690971796909617167c0100000000000000000000000000000000000000000000000000000000178555918901808452922080549194909116612d17576000548214612d17578054602087015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612dd885846132ed565b14949350505050565b336001600160a01b03831603612e23576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612eb884848461302d565b6001600160a01b0383163b15610ec157612ed48484848461333a565b610ec1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060601f8054610c5390613b50565b60606000612f26836134a6565b600101905060008167ffffffffffffffff811115612f4657612f4661399c565b6040519080825280601f01601f191660200182016040528015612f70576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612f7a57509392505050565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061303882612929565b9050836001600160a01b031681600001516001600160a01b031614613089576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806130c557506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b806130e05750336130d584610cd6565b6001600160a01b0316145b905080613119576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613159576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61316560008487612fb9565b6001600160a01b03858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217835587018084529220805491939091166132a45760005482146132a4578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c5e565b600081815b84518110156133325761331e8286838151811061331157613311613daf565b6020026020010151613588565b91508061332a81613c4c565b9150506132f2565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290613388903390899088908890600401613e66565b6020604051808303816000875af19250505080156133e1575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526133de91810190613ea2565b60015b613458573d80801561340f576040519150601f19603f3d011682016040523d82523d6000602084013e613414565b606091505b508051600003613450576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106134ef577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061351b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061353957662386f26fc10000830492506010015b6305f5e1008310613551576305f5e100830492506008015b612710831061356557612710830492506004015b60648310613577576064830492506002015b600a8310610c3e5760010192915050565b60008183106135a4576000828152602084905260409020611fed565b5060009182526020526040902090565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d8c57600080fd5b6000602082840312156135f457600080fd5b8135611fed816135b4565b60005b8381101561361a578181015183820152602001613602565b50506000910152565b6000815180845261363b8160208601602086016135ff565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611fed6020830184613623565b60006020828403121561369257600080fd5b5035919050565b6001600160a01b0381168114610d8c57600080fd5b600080604083850312156136c157600080fd5b82356136cc81613699565b946020939093013593505050565b6000602082840312156136ec57600080fd5b8135611fed81613699565b60008060006060848603121561370c57600080fd5b833561371781613699565b9250602084013561372781613699565b929592945050506040919091013590565b6000806020838503121561374b57600080fd5b823567ffffffffffffffff8082111561376357600080fd5b818501915085601f83011261377757600080fd5b81358181111561378657600080fd5b86602082850101111561379857600080fd5b60209290920196919550909350505050565b60008083601f8401126137bc57600080fd5b50813567ffffffffffffffff8111156137d457600080fd5b6020830191508360208260051b85010111156137ef57600080fd5b9250929050565b60008060006040848603121561380b57600080fd5b83359250602084013567ffffffffffffffff81111561382957600080fd5b613835868287016137aa565b9497909650939450505050565b60008060006040848603121561385757600080fd5b833561386281613699565b9250602084013567ffffffffffffffff81111561382957600080fd5b6000806000806040858703121561389457600080fd5b843567ffffffffffffffff808211156138ac57600080fd5b6138b8888389016137aa565b909650945060208701359150808211156138d157600080fd5b506138de878288016137aa565b95989497509550505050565b8015158114610d8c57600080fd5b6000806040838503121561390b57600080fd5b823561391681613699565b91506020830135613926816138ea565b809150509250929050565b60006020828403121561394357600080fd5b8135611fed816138ea565b6000604082018483526020604081850152818551808452606086019150828701935060005b8181101561398f57845183529383019391830191600101613973565b5090979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080600080608085870312156139e157600080fd5b84356139ec81613699565b935060208501356139fc81613699565b925060408501359150606085013567ffffffffffffffff80821115613a2057600080fd5b818701915087601f830112613a3457600080fd5b813581811115613a4657613a4661399c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613a8c57613a8c61399c565b816040528281528a6020848701011115613aa557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613adf57600080fd5b8435613aea81613699565b93506020850135613afa81613699565b9250604085013567ffffffffffffffff811115613b1657600080fd5b6138de878288016137aa565b60008060408385031215613b3557600080fd5b8235613b4081613699565b9150602083013561392681613699565b600181811c90821680613b6457607f821691505b602082108103612614577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610c3e57610c3e613b9d565b81810381811115610c3e57610c3e613b9d565b80820180821115610c3e57610c3e613b9d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613c4757613c47613c09565b500490565b60006000198203613c5f57613c5f613b9d565b5060010190565b601f821115610d5357600081815260208120601f850160051c81016020861015613c8d5750805b601f850160051c820191505b81811015613cac57828155600101613c99565b505050505050565b67ffffffffffffffff831115613ccc57613ccc61399c565b613ce083613cda8354613b50565b83613c66565b6000601f841160018114613d145760008515613cfc5750838201355b600019600387901b1c1916600186901b178355611c5e565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015613d635786850135825560209485019460019092019101613d43565b5086821015613d805760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060208284031215613da457600080fd5b8151611fed81613699565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008351613df08184602088016135ff565b835190830190613e048183602088016135ff565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215613e4757600080fd5b8151611fed816138ea565b600082613e6157613e61613c09565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e986080830184613623565b9695505050505050565b600060208284031215613eb457600080fd5b8151611fed816135b456fea2646970667358221220b9c05ad99b4e21c497ebfe936b3bc2fa87258b9ce09bd59753226cc0d54330d464736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.