Overview
ETH Balance
0.1 ETH
Eth Value
$327.05 (@ $3,270.54/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 53 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Set Base URI | 19492715 | 102 days ago | IN | 0 ETH | 0.00087548 | ||||
Set Approval For... | 19327695 | 126 days ago | IN | 0 ETH | 0.00520531 | ||||
Claim Free NF Ts | 18988588 | 173 days ago | IN | 0 ETH | 0.00501282 | ||||
Claim Free NF Ts | 18988570 | 173 days ago | IN | 0 ETH | 0.00430405 | ||||
Claim Free NF Ts | 18555121 | 234 days ago | IN | 0 ETH | 0.00353269 | ||||
Claim Reserved | 16708799 | 493 days ago | IN | 0 ETH | 0.00185251 | ||||
Claim Free NF Ts | 16555390 | 515 days ago | IN | 0 ETH | 0.00396066 | ||||
Claim Free NF Ts | 16554444 | 515 days ago | IN | 0 ETH | 0.01538218 | ||||
Safe Transfer Fr... | 16553554 | 515 days ago | IN | 0 ETH | 0.00186559 | ||||
Safe Transfer Fr... | 16546717 | 516 days ago | IN | 0 ETH | 0.00193467 | ||||
Safe Transfer Fr... | 16546707 | 516 days ago | IN | 0 ETH | 0.00203312 | ||||
Claim Free NF Ts | 16546701 | 516 days ago | IN | 0 ETH | 0.00283027 | ||||
Safe Transfer Fr... | 16546690 | 516 days ago | IN | 0 ETH | 0.00167566 | ||||
Safe Transfer Fr... | 16546685 | 516 days ago | IN | 0 ETH | 0.00260656 | ||||
Safe Transfer Fr... | 16546463 | 516 days ago | IN | 0 ETH | 0.00238996 | ||||
Safe Transfer Fr... | 16546437 | 516 days ago | IN | 0 ETH | 0.00230355 | ||||
Safe Transfer Fr... | 16544322 | 516 days ago | IN | 0 ETH | 0.0032312 | ||||
Safe Transfer Fr... | 16544293 | 516 days ago | IN | 0 ETH | 0.00324525 | ||||
Safe Transfer Fr... | 16539031 | 517 days ago | IN | 0 ETH | 0.00229509 | ||||
Safe Transfer Fr... | 16538994 | 517 days ago | IN | 0 ETH | 0.00258225 | ||||
Safe Transfer Fr... | 16538988 | 517 days ago | IN | 0 ETH | 0.0021313 | ||||
Safe Transfer Fr... | 16538979 | 517 days ago | IN | 0 ETH | 0.00335383 | ||||
Safe Transfer Fr... | 16538852 | 517 days ago | IN | 0 ETH | 0.00196723 | ||||
Safe Transfer Fr... | 16538845 | 517 days ago | IN | 0 ETH | 0.00227594 | ||||
Safe Transfer Fr... | 16538841 | 517 days ago | IN | 0 ETH | 0.00243602 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MIXEDBREEDS
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /** * ╔═╗┬ ┬┌─┐┌─┐ ╔╗ ┌─┐┬ ╦═╗ ╔╦╗┌─┐┌─┐┌─┐ * ║ ├─┤├┤ ├┤ ╠╩╗│ ││ ╠╦╝ ║║│ ││ ┬├┤ * * ╚═╝┴ ┴└─┘└ ╚═╝└─┘┴ ╩╚═ ═╩╝└─┘└─┘└─┘ * * ╔╦╗┬─┐ ┬┌─┐┌┬┐ ╔╗ ┬─┐┌─┐┌─┐┌┬┐┌─┐ * ║║║│┌┴┬┘├┤ ││ ╠╩╗├┬┘├┤ ├┤ ││└─┐ * ╩ ╩┴┴ └─└─┘─┴┘ ╚═╝┴└─└─┘└─┘─┴┘└─┘ * * A new 15k Gen2 NFT set following the Gen1 Release (C.B.R.D. KITCHEN BRIGADE MUTTS) * Tons of possibilities: 600+ traits! 20 breeds, 220 unique coats, hundreds more items! * Each Gen1 ID (all 10k) is entitled to claim a free Gen2 NFT from this contract. * Full details at www.ChefBoiRDoge.com */ pragma solidity 0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC721Enumerable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {DefaultOperatorFilterer} from 'operator-filter-registry/src/DefaultOperatorFilterer.sol'; contract MIXEDBREEDS is Ownable, ERC721A, PaymentSplitter, DefaultOperatorFilterer { uint public maxSupply = 15000; // Hard-coded in setMaxSupply() also. uint public mintPrice = 0.1 ether; uint public promoPrice = 0.09 ether; bool public presaleIsLive = false; string public provenanceHash; uint public randomOffset; uint public reservedNFTs; bool public saleIsLive = false; uint public transactionLimit = 200; uint public walletLimit = 200; string private contractURIval; string private metadataURI; bool private mintLock; bool private provenanceLock = false; uint id = totalSupply(); // Deployer wallet reserves the 10,000 claimable NFTs: address public claimHoldingWallet = 0x65aaA7Aa9931dbdc03dB79Ca1b58F99A0aC1a001; // GEN1 ERC721Enumerable contract addrress: // MAINNET: 0x1bc7234A2E6bF2F487771977AC22aeeD482b9A79 address public ERC721_contract = 0x1bc7234A2E6bF2F487771977AC22aeeD482b9A79; mapping (uint => bool) public claimedIDs; // Merkle tree: bytes32 public merkleRoot; mapping(address => bool) public allowlistClaimed; struct Account { uint nftsReserved; uint mintedNFTs; uint isAdmin; } mapping(address => Account) public accounts; struct AffiliateAccount { uint affiliateFee; uint affiliateUnpaidSales; uint affiliateTotalSales; uint affiliateAmountPaid; address affiliateReceiver; bool affiliateIsActive; } mapping(string => AffiliateAccount) public affiliateAccounts; event Mint(address indexed sender, uint totalSupply); event PermanentURI(string _value, uint256 indexed _id); event Burn(address indexed sender, uint indexed _id); address[] private _distro; uint[] private _distro_shares; string[] private affiliateDistro; // Merkle tree (add bytes32 _merkleRoot) constructor(address[] memory distro, uint[] memory distro_shares, address[] memory teamclaim, bytes32 _merkleRoot) ERC721A("Chef Boi R Doge: Mixed Breeds", "CBRDM") PaymentSplitter(distro, distro_shares) { metadataURI = "ipfs://QmVPLq3wPzs1K429DLJy8iJuSdRWoVDiTb4TA8JFi7fNGb/"; // prereveal accounts[msg.sender] = Account( 0, 0, 0 ); // Set Team NFTs & Initial Admin Levels: accounts[teamclaim[0]] = Account(10000, 0, 3); // Deployer holder of 10k claimables accounts[teamclaim[1]] = Account( 17, 0, 1); accounts[teamclaim[2]] = Account( 5, 0, 1); accounts[teamclaim[3]] = Account( 1, 0, 1); accounts[teamclaim[4]] = Account( 12, 0, 1); accounts[teamclaim[5]] = Account( 15, 0, 1); reservedNFTs = 10050; _distro = distro; _distro_shares = distro_shares; // Merkle tree: merkleRoot = _merkleRoot; } // (^_^) Modifiers (^_^) modifier minAdmin1() { require(accounts[msg.sender].isAdmin > 0 , "Error: Level 1(+) admin clearance required."); _; } modifier minAdmin2() { require(accounts[msg.sender].isAdmin > 1, "Error: Level 2(+) admin clearance required."); _; } modifier minAdmin3() { require(accounts[msg.sender].isAdmin > 2, "Error: Level 3(+) admin clearance required."); _; } modifier noReentrant() { require(!mintLock, "Error: No re-entrancy."); mintLock = true; _; mintLock = false; } // (^_^) Overrides (^_^) // ERC721A: Start token IDs at 1 instead of 0 function _startTokenId() internal view virtual override returns (uint256) { return 1; } // ERC721A: Xfer functions for OS Operator Filter Registry function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } // ERC721A: Xfer functions for OS Operator Filter Registry function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } // ERC721A: Xfer functions for OS Operator Filter Registry function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // OZ Payment Splitter, make release() restricted to minAdmin3 function release(address payable account) public override minAdmin3 { super.release(account); } // OZ Payment Splitter, make release() restricted to minAdmin3 function release(IERC20 token, address account) public override minAdmin3 { super.release(token, account); } // (^_^) Setters (^_^) function adminLevelRaise(address _addr) external onlyOwner { accounts[_addr].isAdmin ++; } function adminLevelLower(address _addr) external onlyOwner { accounts[_addr].isAdmin --; } // basic mint function for anyone desiring to easily mint from the contract function contractMint(uint _amount) external payable noReentrant { require(saleIsLive, "Error: Sale is not active. Via contractMint()."); require(totalSupply() + _amount <= (maxSupply - reservedNFTs), "Error: Purchase would exceed max supply. Via contractMint()."); require((_amount + accounts[msg.sender].mintedNFTs) <= walletLimit, "Error: You would exceed the wallet limit. Via contractMint()."); require(!isContract(msg.sender), "Error: Contracts cannot mint. Via contractMint()."); require(msg.value >= (mintPrice * _amount), "Error: Not enough ether sent. Via contractMint()."); accounts[msg.sender].mintedNFTs += _amount; _safeMint(msg.sender, _amount); emit Mint(msg.sender, totalSupply()); } function provenanceHashLock() external onlyOwner { provenanceLock = true; } function provenanceSet(string memory _provenanceHash) external onlyOwner { require(provenanceLock == false); provenanceHash = _provenanceHash; } function reservesDecrease(uint _decreaseReservedBy, address _addr) external onlyOwner { require(reservedNFTs - _decreaseReservedBy >= 0, "Error: This would make reserved less than 0."); require(accounts[_addr].nftsReserved - _decreaseReservedBy >= 0, "Error: User does not have this many reserved NFTs."); reservedNFTs -= _decreaseReservedBy; accounts[_addr].nftsReserved -= _decreaseReservedBy; } function reservesIncrease(uint _increaseReservedBy, address _addr) external onlyOwner { require(reservedNFTs + totalSupply() + _increaseReservedBy <= maxSupply, "Error: This would exceed the max supply."); reservedNFTs += _increaseReservedBy; accounts[_addr].nftsReserved += _increaseReservedBy; if ( accounts[_addr].isAdmin == 0 ) { accounts[_addr].isAdmin ++; } } function salePresaleActivate() external minAdmin2 { presaleIsLive = true; } function salePresaleDeactivate() external minAdmin2 { presaleIsLive = false; } function salePublicActivate() external minAdmin2 { saleIsLive = true; } function salePublicDeactivate() external minAdmin2 { saleIsLive = false; } function setBaseURI(string memory _newURI) external minAdmin2 { metadataURI = _newURI; } function setContractURI(string memory _newURI) external onlyOwner { contractURIval = _newURI; } function setMaxSupply(uint _maxSupply) external onlyOwner { require(_maxSupply <= 15000, 'Error: New max supply cannot exceed original max.'); maxSupply = _maxSupply; } function setMintPrice(uint _newPrice) external onlyOwner { mintPrice = _newPrice; } function setPromoPrice(uint _newPrice) external onlyOwner { promoPrice = _newPrice; } function setRandomValue(address account, uint lowValue, uint highValue) external onlyOwner returns (uint) { require(randomOffset==0, "Error: Random offset has already been set."); require(highValue > lowValue, "Error: Low value must be lower than High value."); uint mod_operator = highValue + 1 - lowValue; uint random_id = lowValue + uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, block.gaslimit, account)))% mod_operator; randomOffset = random_id; return random_id; } function setTransactionLimit(uint _newTxLimit) external onlyOwner { transactionLimit = _newTxLimit; } function setWalletLimit(uint _newLimit) external onlyOwner { walletLimit = _newLimit; } // (^_^) Getters (^_^) // -- For OpenSea function contractURI() public view returns (string memory) { return contractURIval; } // -- For Metadata function _baseURI() internal view virtual override returns (string memory) { return metadataURI; } // (^_^) Main NFT Drop Mgmt. Functions (^_^) function airDropNFT(address[] memory _addr) external minAdmin2 { require(totalSupply() + _addr.length <= (maxSupply - reservedNFTs), "Error: You would exceed the airdrop limit."); for (uint i = 0; i < _addr.length; i++) { _safeMint(_addr[i], 1); emit Mint(msg.sender, totalSupply()); } } // FREE CLAIM FUNCTIONALITY: function claimIDset(uint _thisID) internal { claimedIDs[_thisID]=true; } // Users can check this on the contract to see if a Gen1 ID is claimed. function claimedIDList(uint _thisID) public view returns (bool){ return claimedIDs[_thisID]; } function claimFreeNFTs() external payable noReentrant { // Num tokens owned by msg.sender: IERC721 instance = IERC721(ERC721_contract); uint numTokens = instance.balanceOf(msg.sender); uint availableClaims = numTokens; uint numMapped = 0; uint claimLimit = 100; // limit # free mints to 100/tx, just for good measure. // Array of specific IDs owned by msg.sender: IERC721Enumerable instance2 = IERC721Enumerable(ERC721_contract); uint[] memory tokenArray = new uint[](numTokens); // Iterate through the list of owned tokens to arrive // at amount to mint and also to map claimed ones: for (uint i = 0; i < numTokens; i++) { tokenArray[i] = instance2.tokenOfOwnerByIndex(msg.sender, i); if ( claimedIDList(tokenArray[i]) ) { // If the token is mapped already, then reduce availableClaims by one: availableClaims -= 1; } else { // If not, then map it: claimIDset(tokenArray[i]); numMapped++; } if ( numMapped == claimLimit ) { break; } } // Var availableClaims is the amount to mint, so... if ( availableClaims > 0 ) { // subject to 50/tx limit if ( availableClaims > claimLimit ) { availableClaims == claimLimit; } // Mint them: accounts[msg.sender].mintedNFTs += availableClaims; _safeMint(msg.sender, availableClaims); emit Mint(msg.sender, totalSupply()); // Reduce claimable quantity. (We are holding 10k claimable // reserves in teamclaim[0], the deploy wallet.) accounts[claimHoldingWallet].nftsReserved -= availableClaims; reservedNFTs -= availableClaims; } } function claimReserved(uint _amount) external minAdmin1 { require(_amount > 0, "Error: Need to have reserved supply."); require(accounts[msg.sender].nftsReserved >= _amount, "Error: You are trying to claim more NFTs than you have reserved."); require(totalSupply() + _amount <= maxSupply, "Error: You would exceed the max supply limit."); accounts[msg.sender].nftsReserved -= _amount; reservedNFTs -= _amount; _safeMint(msg.sender, _amount); emit Mint(msg.sender, totalSupply()); } function mint(uint _amount, bool isAffiliate, string memory affiliateRef) external payable noReentrant { require(saleIsLive, "Error: Sale is not active."); require(totalSupply() + _amount <= (maxSupply - reservedNFTs), "Error: Purchase would exceed max supply."); require((_amount + accounts[msg.sender].mintedNFTs) <= walletLimit, "Error: You would exceed the wallet limit."); require(_amount <= transactionLimit, "Error: You would exceed the transaction limit."); require(!isContract(msg.sender), "Error: Contracts cannot mint."); if(isAffiliate) { require(msg.value >= (promoPrice * _amount), "Error: Not enough ether sent."); bool isActive = affiliateAccounts[affiliateRef].affiliateIsActive; require(isActive, "Error: Affiliate account invalid or disabled."); affiliateAccounts[affiliateRef].affiliateUnpaidSales += _amount; affiliateAccounts[affiliateRef].affiliateTotalSales += _amount; } else { require(msg.value >= (mintPrice * _amount), "Error: Not enough ether sent."); } accounts[msg.sender].mintedNFTs += _amount; _safeMint(msg.sender, _amount); emit Mint(msg.sender, totalSupply()); } function burn(uint _id) external returns (bool, uint) { require(msg.sender == ownerOf(_id) || msg.sender == getApproved(_id) || isApprovedForAll(ownerOf(_id), msg.sender), "Error: You must own this token to burn it."); _burn(_id); emit Burn(msg.sender, _id); return (true, _id); } // Payout Function 1 --> Distribute Shares to Affiliates *and* Payees (DSAP) // In addition to including this function, we also modified the PaymentSplitter // release() function to make it minAdmin3, offering further assurance to // affiliates that affiliate funds will be paid out prior to defined shares. function distributeSharesAffilsAndPayees() external minAdmin2 noReentrant { // A. Payout affiliates: for (uint i = 0; i < affiliateDistro.length; i++) { // The ref name -- eg. jim, etc. string memory affiliateRef = affiliateDistro[i]; // The wallet addr to be paid for this affiliate: address DSAP_receiver_wallet = affiliateAccounts[affiliateRef].affiliateReceiver; // The fee due per sale for this affiliate: uint DSAP_fee = affiliateAccounts[affiliateRef].affiliateFee; // The # of mints they are credited with: uint DSAP_mintedNFTs = affiliateAccounts[affiliateRef].affiliateUnpaidSales; // Payout calc: uint DSAP_payout = DSAP_fee * DSAP_mintedNFTs; if ( DSAP_payout == 0 ) { continue; } // Require that the contract balance is enough to send out ETH: require(address(this).balance >= DSAP_payout, "Error: Insufficient balance"); // Send payout to the affiliate: (bool sent, bytes memory data) = payable(DSAP_receiver_wallet).call{value: DSAP_payout}(""); require(sent, "Error: Failed to send ETH to receiver"); // Update total amt earned for this person: affiliateAccounts[affiliateRef].affiliateAmountPaid += DSAP_payout; // Set their affiliateUnpaidSales back to 0: affiliateAccounts[affiliateRef].affiliateUnpaidSales = 0; } // B. Then pay defined shareholders: for (uint i = 0; i < _distro.length; i++) { release(payable(_distro[i])); } } // Payout Function 2 --> Standard distribute per OZ payment splitter // (present as a backup distrubute mechanism only). function distributeSharesPayeesOnly() external onlyOwner { for (uint i = 0; i < _distro.length; i++) { release(payable(_distro[i])); } } function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } // (^_^) GenNFTs Affiliate Program functions (^_^) // New functionality created by GenerativeNFTs.io to aid in influencer trust and transparency. function genNftsAffiliateAdd(address _addr, string memory affiliateRef, uint fee) external onlyOwner { // REMINDER: Submit fee in WEI! require(fee > 0, "Error: Fee must be > 0 (and s/b in WEI)."); // FORMAT: lowercase alpha-numeric; will enforce in affiliateValidateName(). require(validateAffiliateName(affiliateRef), "Error: Affiliate Reference code used doesn't pass validations."); // ORDER: fee, minted NFTs, ttl minted, ttl amt earned, wallet, active: affiliateAccounts[affiliateRef] = AffiliateAccount(fee, 0, 0, 0, _addr, true); affiliateDistro.push(affiliateRef); } function genNftsAffiliateDisable(string memory affiliateRef) external onlyOwner { require(affiliateAccounts[affiliateRef].affiliateFee > 0 , "Error: Affiliate reference likely wrong."); affiliateAccounts[affiliateRef].affiliateIsActive = false; } function genNftsAffiliateEnable(string memory affiliateRef) external onlyOwner { require(affiliateAccounts[affiliateRef].affiliateFee > 0 , "Error: Affiliate reference likely wrong."); affiliateAccounts[affiliateRef].affiliateIsActive = true; } function genNftsLookupAffilRef(address _addr) public view returns (string memory) { for (uint i = 0; i < affiliateDistro.length; i++) { string memory affiliateRef = affiliateDistro[i]; address thisWallet = affiliateAccounts[affiliateRef].affiliateReceiver; if ( thisWallet==_addr ) { return affiliateRef; } } } function validateAffiliateName(string memory str) public pure returns (bool){ bytes memory b = bytes(str); if ( b.length < 3 ) return false; if ( b.length > 15 ) return false; // Can't be > 15 chars if ( b[0] == 0x20 ) return false; // No leading space if ( b[b.length - 1] == 0x20 ) return false; // No trailing space bytes1 lastChar = b[0]; for( uint i; i < b.length; i++ ){ bytes1 char = b[i]; if (char == 0x20) return false; // Can't contain spaces // We want all lowercase alpha-numeric here. // But to include UC as well, add: // !(char >= 0x41 && char <= 0x5A) && // A-Z if ( !(char >= 0x30 && char <= 0x39) && // 9-0 !(char >= 0x61 && char <= 0x7A) // a-z ) return false; lastChar = char; } return true; } // (^_^) Merkle tree functions (^_^) function allowlistMint(bytes32[] calldata _merkleProof, uint _amount) external payable noReentrant { require(presaleIsLive, "Error: Allowlist Sale is not active."); require(totalSupply() + _amount <= (maxSupply - reservedNFTs), "Error: Purchase would exceed max supply."); require((_amount + accounts[msg.sender].mintedNFTs) <= walletLimit, "Error: You would exceed the wallet limit."); require(_amount <= transactionLimit, "Error: You would exceed the transaction limit."); require(!isContract(msg.sender), "Error: Contracts cannot mint."); require(msg.value >= (mintPrice * _amount), "Error: Not enough ether sent."); require(!allowlistClaimed[msg.sender], "Error: You have already claimed all of your NFTs."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Error: You are not allowlisted."); if ( ( _amount + accounts[msg.sender].mintedNFTs ) == walletLimit ) { allowlistClaimed[msg.sender] = true; } accounts[msg.sender].mintedNFTs += _amount; _safeMint(msg.sender, _amount); emit Mint(msg.sender, totalSupply()); } function allowlistNewMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } // (^_^) THE END, FRENS! (^_^) // LFG! @SwiggaJuice -- [email protected] // .--- .. -- .--.-. --. . -. . .-. .- - .. ...- . -. ..-. - ... .-.-.- .. --- }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../token/ERC721/extensions/IERC721Enumerable.sol";
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity 0.8.17; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // 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; } // 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 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 && 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())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !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() && !_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; } 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 { _mint(to, quantity, _data, true); } /** * @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, bytes memory _data, bool safe ) 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 (safe && 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 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 This is 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 // OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. * */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _totalReleased is the sum of all values in _released. // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow. _totalReleased += payment; unchecked { _released[account] += payment; } Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token]. // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment" // cannot overflow. _erc20TotalReleased[token] += payment; unchecked { _erc20Released[token][account] += payment; } SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// 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 pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// 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) (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 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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 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) (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 (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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// 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/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // 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 (from == msg.sender) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"distro","type":"address[]"},{"internalType":"uint256[]","name":"distro_shares","type":"uint256[]"},{"internalType":"address[]","name":"teamclaim","type":"address[]"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"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":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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":"ERC721_contract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accounts","outputs":[{"internalType":"uint256","name":"nftsReserved","type":"uint256"},{"internalType":"uint256","name":"mintedNFTs","type":"uint256"},{"internalType":"uint256","name":"isAdmin","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"adminLevelLower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"adminLevelRaise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"affiliateAccounts","outputs":[{"internalType":"uint256","name":"affiliateFee","type":"uint256"},{"internalType":"uint256","name":"affiliateUnpaidSales","type":"uint256"},{"internalType":"uint256","name":"affiliateTotalSales","type":"uint256"},{"internalType":"uint256","name":"affiliateAmountPaid","type":"uint256"},{"internalType":"address","name":"affiliateReceiver","type":"address"},{"internalType":"bool","name":"affiliateIsActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"airDropNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"allowlistNewMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFreeNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimHoldingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_thisID","type":"uint256"}],"name":"claimedIDList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedIDs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"contractMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeSharesAffilsAndPayees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeSharesPayeesOnly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"string","name":"affiliateRef","type":"string"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"genNftsAffiliateAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"affiliateRef","type":"string"}],"name":"genNftsAffiliateDisable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"affiliateRef","type":"string"}],"name":"genNftsAffiliateEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"genNftsLookupAffilRef","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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"isAffiliate","type":"bool"},{"internalType":"string","name":"affiliateRef","type":"string"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHashLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"provenanceSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"randomOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_decreaseReservedBy","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"reservesDecrease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_increaseReservedBy","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"reservesIncrease","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":[],"name":"saleIsLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePresaleActivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePresaleDeactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePublicActivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePublicDeactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPromoPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"lowValue","type":"uint256"},{"internalType":"uint256","name":"highValue","type":"uint256"}],"name":"setRandomValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTxLimit","type":"uint256"}],"name":"setTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactionLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateAffiliateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052613a9860105567016345785d8a000060115567013fbe85edc900006012556013805460ff1990811690915560178054909116905560c86018819055601955601c805461ff00191690556002546001540360001901601d55601e80546001600160a01b03199081167365aaa7aa9931dbdc03db79ca1b58f99a0ac1a00117909155601f8054909116731bc7234a2e6bf2f487771977ac22aeed482b9a79179055348015620000b057600080fd5b50604051620065a5380380620065a5833981016040819052620000d39162000b8f565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600185856040518060400160405280601d81526020017f4368656620426f69205220446f67653a204d697865642042726565647300000081525060405180604001604052806005815260200164434252444d60d81b8152506200015a620001546200079560201b60201c565b62000799565b600362000168838262000d11565b50600462000177828262000d11565b506001805550508051825114620001f05760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620002435760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620001e7565b60005b8251811015620002af576200029a83828151811062000269576200026962000ddd565b602002602001015183838151811062000286576200028662000ddd565b6020026020010151620007e960201b60201c565b80620002a68162000e09565b91505062000246565b5050506daaeb6d7670e522a718067333cd4e3b15620003f75780156200034557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200032657600080fd5b505af11580156200033b573d6000803e3d6000fd5b50505050620003f7565b6001600160a01b03821615620003965760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200030b565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620003dd57600080fd5b505af1158015620003f2573d6000803e3d6000fd5b505050505b50506040518060600160405280603681526020016200656f60369139601b9062000422908262000d11565b506040805160608082018352600080835260208084018281528486018381523384526023808452878520965187559151600187015551600290950194909455845192830185526127108352820181905260039382019390935284519092908590829062000493576200049362000ddd565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050604051806060016040528060118152602001600081526020016001815250602360008460018151811062000514576200051462000ddd565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050604051806060016040528060058152602001600081526020016001815250602360008460028151811062000595576200059562000ddd565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050604051806060016040528060018152602001600081526020016001815250602360008460038151811062000616576200061662000ddd565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050506040518060600160405280600c8152602001600081526020016001815250602360008460048151811062000697576200069762000ddd565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050506040518060600160405280600f8152602001600081526020016001815250602360008460058151811062000718576200071862000ddd565b6020908102919091018101516001600160a01b03168252818101929092526040908101600020835181558383015160018201559201516002909201919091556127426016558451620007719160259190870190620009d7565b5082516200078790602690602086019062000a41565b506021555062000e41915050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620008565760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620001e7565b60008111620008a85760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620001e7565b6001600160a01b0382166000908152600b602052604090205415620009245760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620001e7565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b602052604090208190556009546200098e90829062000e25565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805482825590600052602060002090810192821562000a2f579160200282015b8281111562000a2f57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620009f8565b5062000a3d92915062000a7f565b5090565b82805482825590600052602060002090810192821562000a2f579160200282015b8281111562000a2f57825182559160200191906001019062000a62565b5b8082111562000a3d576000815560010162000a80565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000ad75762000ad762000a96565b604052919050565b60006001600160401b0382111562000afb5762000afb62000a96565b5060051b60200190565b600082601f83011262000b1757600080fd5b8151602062000b3062000b2a8362000adf565b62000aac565b82815260059290921b8401810191818101908684111562000b5057600080fd5b8286015b8481101562000b845780516001600160a01b038116811462000b765760008081fd5b835291830191830162000b54565b509695505050505050565b6000806000806080858703121562000ba657600080fd5b84516001600160401b038082111562000bbe57600080fd5b62000bcc8883890162000b05565b955060209150818701518181111562000be457600080fd5b8701601f8101891362000bf657600080fd5b805162000c0762000b2a8262000adf565b81815260059190911b8201840190848101908b83111562000c2757600080fd5b928501925b8284101562000c475783518252928501929085019062000c2c565b60408b015190985094505050508082111562000c6257600080fd5b5062000c718782880162000b05565b606096909601519497939650505050565b600181811c9082168062000c9757607f821691505b60208210810362000cb857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000d0c57600081815260208120601f850160051c8101602086101562000ce75750805b601f850160051c820191505b8181101562000d085782815560010162000cf3565b5050505b505050565b81516001600160401b0381111562000d2d5762000d2d62000a96565b62000d458162000d3e845462000c82565b8462000cbe565b602080601f83116001811462000d7d576000841562000d645750858301515b600019600386901b1c1916600185901b17855562000d08565b600085815260208120601f198616915b8281101562000dae5788860151825594840194600190910190840162000d8d565b508582101562000dcd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000e1e5762000e1e62000df3565b5060010190565b8082018082111562000e3b5762000e3b62000df3565b92915050565b61571e8062000e516000396000f3fe6080604052600436106104775760003560e01c806382610d621161024a578063c6ab67a311610139578063e985e9c5116100b6578063f4a0a5281161007a578063f4a0a52814610ed4578063f610372b14610ef4578063f8901d0a14610f07578063fc15ad0614610f1c578063ff868c5314610f3c57600080fd5b8063e985e9c514610e1b578063f19605d614610e64578063f1d5f51714610e7a578063f2fde38b14610e9a578063f412f5b614610eba57600080fd5b8063d79779b2116100fd578063d79779b214610d77578063dcd17c1714610dad578063de3585f714610dc2578063e33b7de314610df1578063e8a3d48514610e0657600080fd5b8063c6ab67a314610ce0578063c87b56dd14610cf5578063cd42cbd414610d15578063ce7c2ac214610d2b578063d5abeb0114610d6157600080fd5b8063a22cb465116101c7578063b58be5721161018b578063b58be57214610c4a578063b88d4fde14610c60578063c45ac05014610c80578063c5a4e67214610ca0578063c656f99414610cc057600080fd5b8063a22cb46514610baa578063a35e9f3114610bca578063a3f8eace14610bea578063a838185514610c0a578063a8b715e814610c2a57600080fd5b80638da5cb5b1161020e5780638da5cb5b14610b015780639367370b14610b1f578063938e3d7b14610b3f57806395d89b4114610b5f5780639852595c14610b7457600080fd5b806382610d6214610a6c57806385d20e2d14610a8c57806386b06a4014610aac5780638b7a987b14610ac15780638b83209b14610ae157600080fd5b80633b555e14116103665780635e5c06e2116102e35780636f8b44b0116102a75780636f8b44b0146109e257806370a0823114610a02578063715018a614610a2257806371dd257414610a375780637440a96b14610a4c57600080fd5b80635e5c06e21461090657806362152f941461095d5780636352211e1461098c57806364bfa546146109ac5780636817c76c146109cc57600080fd5b806342842e0e1161032a57806342842e0e1461084f57806342966c681461086f57806348b75044146108a65780634cc71dfe146108c657806355f804b3146108e657600080fd5b80633b555e14146107b85780633c8463a1146107d8578063406072a9146107ee57806340ecf62c1461083457806342063d291461084757600080fd5b806320589799116103f4578063306e9f6a116103b8578063306e9f6a146106a657806330b42ec2146106bb578063346f5a73146106eb5780633a98ef391461078d5780633b238f56146107a257600080fd5b8063205897991461062657806323b872dd1461063b57806326f8f7e61461065b5780632eb4a7ab1461067b5780632f36e3821461069157600080fd5b80631338a83f1161043b5780631338a83f1461059657806318160ddd146105a957806318602dc8146105cc57806319165587146105e65780631e733c9c1461060657600080fd5b806301ffc9a7146104c557806306fdde03146104fa578063081812fc1461051c578063095ea7b31461055457806312a910541461057657600080fd5b366104c0577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104d157600080fd5b506104e56104e0366004614bae565b610f5c565b60405190151581526020015b60405180910390f35b34801561050657600080fd5b5061050f610fae565b6040516104f19190614c1b565b34801561052857600080fd5b5061053c610537366004614c2e565b611040565b6040516001600160a01b0390911681526020016104f1565b34801561056057600080fd5b5061057461056f366004614c5c565b611084565b005b34801561058257600080fd5b50610574610591366004614c2e565b611111565b6105746105a4366004614c88565b61111e565b3480156105b557600080fd5b506105be6114bd565b6040519081526020016104f1565b3480156105d857600080fd5b506013546104e59060ff1681565b3480156105f257600080fd5b50610574610601366004614d02565b6114cb565b34801561061257600080fd5b50610574610621366004614d1f565b611509565b34801561063257600080fd5b5061057461162a565b34801561064757600080fd5b50610574610656366004614d4f565b61166b565b34801561066757600080fd5b50610574610676366004614c2e565b6117c7565b34801561068757600080fd5b506105be60215481565b34801561069d57600080fd5b50610574611a0b565b3480156106b257600080fd5b50610574611a62565b3480156106c757600080fd5b506104e56106d6366004614d02565b60226020526000908152604090205460ff1681565b3480156106f757600080fd5b50610755610706366004614e4d565b805160208183018101805160248252928201919093012091528054600182015460028301546003840154600490940154929391929091906001600160a01b03811690600160a01b900460ff1686565b6040805196875260208701959095529385019290925260608401526001600160a01b03166080830152151560a082015260c0016104f1565b34801561079957600080fd5b506009546105be565b3480156107ae57600080fd5b506105be60155481565b3480156107c457600080fd5b506105746107d3366004614d02565b611aa0565b3480156107e457600080fd5b506105be60195481565b3480156107fa57600080fd5b506105be610809366004614e81565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b610574610842366004614ebd565b611ad7565b610574611e1d565b34801561085b57600080fd5b5061057461086a366004614d4f565b612116565b34801561087b57600080fd5b5061088f61088a366004614c2e565b612267565b6040805192151583526020830191909152016104f1565b3480156108b257600080fd5b506105746108c1366004614e81565b612383565b3480156108d257600080fd5b5061050f6108e1366004614d02565b6123bf565b3480156108f257600080fd5b50610574610901366004614e4d565b6124d5565b34801561091257600080fd5b50610942610921366004614d02565b60236020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016104f1565b34801561096957600080fd5b506104e5610978366004614c2e565b602080526000908152604090205460ff1681565b34801561099857600080fd5b5061053c6109a7366004614c2e565b612513565b3480156109b857600080fd5b506105746109c7366004614c2e565b612525565b3480156109d857600080fd5b506105be60115481565b3480156109ee57600080fd5b506105746109fd366004614c2e565b612532565b348015610a0e57600080fd5b506105be610a1d366004614d02565b6125ab565b348015610a2e57600080fd5b506105746125f9565b348015610a4357600080fd5b5061057461260d565b348015610a5857600080fd5b50610574610a67366004614e4d565b61297c565b348015610a7857600080fd5b50601e5461053c906001600160a01b031681565b348015610a9857600080fd5b50610574610aa7366004614e4d565b612a04565b348015610ab857600080fd5b50610574612a5d565b348015610acd57600080fd5b506104e5610adc366004614e4d565b612a9b565b348015610aed57600080fd5b5061053c610afc366004614c2e565b612c3e565b348015610b0d57600080fd5b506000546001600160a01b031661053c565b348015610b2b57600080fd5b50610574610b3a366004614e4d565b612c6e565b348015610b4b57600080fd5b50610574610b5a366004614e4d565b612c97565b348015610b6b57600080fd5b5061050f612cab565b348015610b8057600080fd5b506105be610b8f366004614d02565b6001600160a01b03166000908152600c602052604090205490565b348015610bb657600080fd5b50610574610bc5366004614f15565b612cba565b348015610bd657600080fd5b50601f5461053c906001600160a01b031681565b348015610bf657600080fd5b506105be610c05366004614d02565b612d4f565b348015610c1657600080fd5b50610574610c25366004614d1f565b612d97565b348015610c3657600080fd5b506105be610c45366004614f43565b612ee7565b348015610c5657600080fd5b506105be60165481565b348015610c6c57600080fd5b50610574610c7b366004614f78565b613054565b348015610c8c57600080fd5b506105be610c9b366004614e81565b6131b3565b348015610cac57600080fd5b50610574610cbb366004614c2e565b61327e565b348015610ccc57600080fd5b50610574610cdb366004614d02565b61328b565b348015610cec57600080fd5b5061050f6132ba565b348015610d0157600080fd5b5061050f610d10366004614c2e565b613348565b348015610d2157600080fd5b506105be60125481565b348015610d3757600080fd5b506105be610d46366004614d02565b6001600160a01b03166000908152600b602052604090205490565b348015610d6d57600080fd5b506105be60105481565b348015610d8357600080fd5b506105be610d92366004614d02565b6001600160a01b03166000908152600e602052604090205490565b348015610db957600080fd5b506105746133cb565b348015610dce57600080fd5b506104e5610ddd366004614c2e565b600090815260208052604090205460ff1690565b348015610dfd57600080fd5b50600a546105be565b348015610e1257600080fd5b5061050f6133e4565b348015610e2757600080fd5b506104e5610e36366004614e81565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610e7057600080fd5b506105be60185481565b348015610e8657600080fd5b50610574610e95366004614c2e565b6133f3565b348015610ea657600080fd5b50610574610eb5366004614d02565b613400565b348015610ec657600080fd5b506017546104e59060ff1681565b348015610ee057600080fd5b50610574610eef366004614c2e565b613476565b610574610f02366004614c2e565b613483565b348015610f1357600080fd5b5061057461378f565b348015610f2857600080fd5b50610574610f37366004614ff7565b6137d0565b348015610f4857600080fd5b50610574610f573660046150a8565b6138f2565b60006001600160e01b031982166380ac58cd60e01b1480610f8d57506001600160e01b03198216635b5e139f60e01b145b80610fa857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610fbd90615100565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe990615100565b80156110365780601f1061100b57610100808354040283529160200191611036565b820191906000526020600020905b81548152906001019060200180831161101957829003601f168201915b5050505050905090565b600061104b82613acc565b611068576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061108f82612513565b9050806001600160a01b0316836001600160a01b0316036110c35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906110e357506110e18133610e36565b155b15611101576040516367d9dca160e11b815260040160405180910390fd5b61110c838383613b05565b505050565b611119613b61565b601255565b601c5460ff161561114a5760405162461bcd60e51b815260040161114190615134565b60405180910390fd5b601c805460ff1916600117905560135460ff166111b55760405162461bcd60e51b8152602060048201526024808201527f4572726f723a20416c6c6f776c6973742053616c65206973206e6f742061637460448201526334bb329760e11b6064820152608401611141565b6016546010546111c5919061517a565b816111ce6114bd565b6111d8919061518d565b11156111f65760405162461bcd60e51b8152600401611141906151a0565b60195433600090815260236020526040902060010154611216908361518d565b11156112345760405162461bcd60e51b8152600401611141906151e8565b6018548111156112565760405162461bcd60e51b815260040161114190615231565b333b156112a55760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e0000006044820152606401611141565b806011546112b3919061527f565b3410156112d25760405162461bcd60e51b815260040161114190615296565b3360009081526022602052604090205460ff161561134c5760405162461bcd60e51b815260206004820152603160248201527f4572726f723a20596f75206861766520616c726561647920636c61696d65642060448201527030b6361037b3103cb7bab91027232a399760791b6064820152608401611141565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506113c6848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506021549150849050613bbb565b6114125760405162461bcd60e51b815260206004820152601f60248201527f4572726f723a20596f7520617265206e6f7420616c6c6f776c69737465642e006044820152606401611141565b60195433600090815260236020526040902060010154611432908461518d565b0361145257336000908152602260205260409020805460ff191660011790555b336000908152602360205260408120600101805484929061147490849061518d565b9091555061148490503383613bd1565b336000805160206156c983398151915261149c6114bd565b60405190815260200160405180910390a25050601c805460ff191690555050565b600254600154036000190190565b336000908152602360205260409020600290810154116114fd5760405162461bcd60e51b8152600401611141906152cd565b61150681613beb565b50565b611511613b61565b6010548261151d6114bd565b60165461152a919061518d565b611534919061518d565b11156115935760405162461bcd60e51b815260206004820152602860248201527f4572726f723a205468697320776f756c642065786365656420746865206d61786044820152671039bab838363c9760c11b6064820152608401611141565b81601660008282546115a5919061518d565b90915550506001600160a01b038116600090815260236020526040812080548492906115d290849061518d565b90915550506001600160a01b0381166000908152602360205260408120600201549003611626576001600160a01b038116600090815260236020526040812060020180549161162083615318565b91905055505b5050565b3360009081526023602052604090206002015460011061165c5760405162461bcd60e51b815260040161114190615331565b6013805460ff19166001179055565b826daaeb6d7670e522a718067333cd4e3b156117b657336001600160a01b038216036116a15761169c848484613cd2565b6117c1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156116f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611714919061537c565b80156117975750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611773573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611797919061537c565b6117b657604051633b79c77360e21b8152336004820152602401611141565b6117c1848484613cd2565b50505050565b3360009081526023602052604090206002015461183a5760405162461bcd60e51b815260206004820152602b60248201527f4572726f723a204c6576656c2031282b292061646d696e20636c656172616e6360448201526a32903932b8bab4b932b21760a91b6064820152608401611141565b600081116118965760405162461bcd60e51b8152602060048201526024808201527f4572726f723a204e65656420746f20686176652072657365727665642073757060448201526338363c9760e11b6064820152608401611141565b3360009081526023602052604090205481111561191d576040805162461bcd60e51b81526020600482015260248101919091527f4572726f723a20596f752061726520747279696e6720746f20636c61696d206d60448201527f6f7265204e465473207468616e20796f7520686176652072657365727665642e6064820152608401611141565b601054816119296114bd565b611933919061518d565b11156119975760405162461bcd60e51b815260206004820152602d60248201527f4572726f723a20596f7520776f756c642065786365656420746865206d61782060448201526c39bab838363c903634b6b4ba1760991b6064820152608401611141565b33600090815260236020526040812080548392906119b690849061517a565b9250508190555080601660008282546119cf919061517a565b909155506119df90503382613bd1565b336000805160206156c98339815191526119f76114bd565b60405190815260200160405180910390a250565b611a13613b61565b60005b60255481101561150657611a5060258281548110611a3657611a36615399565b6000918252602090912001546001600160a01b03166114cb565b80611a5a81615318565b915050611a16565b33600090815260236020526040902060020154600110611a945760405162461bcd60e51b815260040161114190615331565b6013805460ff19169055565b611aa8613b61565b6001600160a01b0381166000908152602360205260408120600201805491611acf836153af565b919050555050565b601c5460ff1615611afa5760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560175460ff16611b595760405162461bcd60e51b815260206004820152601a60248201527f4572726f723a2053616c65206973206e6f74206163746976652e0000000000006044820152606401611141565b601654601054611b69919061517a565b83611b726114bd565b611b7c919061518d565b1115611b9a5760405162461bcd60e51b8152600401611141906151a0565b60195433600090815260236020526040902060010154611bba908561518d565b1115611bd85760405162461bcd60e51b8152600401611141906151e8565b601854831115611bfa5760405162461bcd60e51b815260040161114190615231565b333b15611c495760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e0000006044820152606401611141565b8115611d865782601254611c5d919061527f565b341015611c7c5760405162461bcd60e51b815260040161114190615296565b6000602482604051611c8e91906153c6565b9081526040519081900360200190206004015460ff600160a01b90910416905080611d115760405162461bcd60e51b815260206004820152602d60248201527f4572726f723a20416666696c69617465206163636f756e7420696e76616c696460448201526c1037b9103234b9b0b13632b21760991b6064820152608401611141565b83602483604051611d2291906153c6565b90815260200160405180910390206001016000828254611d42919061518d565b9250508190555083602483604051611d5a91906153c6565b90815260200160405180910390206002016000828254611d7a919061518d565b90915550611db3915050565b82601154611d94919061527f565b341015611db35760405162461bcd60e51b815260040161114190615296565b3360009081526023602052604081206001018054859290611dd590849061518d565b90915550611de590503384613bd1565b336000805160206156c9833981519152611dfd6114bd565b60405190815260200160405180910390a25050601c805460ff1916905550565b601c5460ff1615611e405760405162461bcd60e51b815260040161114190615134565b601c805460ff19166001179055601f546040516370a0823160e01b81523360048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015611e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebe91906153e2565b601f5490915081906000906064906001600160a01b031682846001600160401b03811115611eee57611eee614d90565b604051908082528060200260200182016040528015611f17578160200160208202803683370190505b50905060005b8681101561205857604051632f745c5960e01b8152336004820152602481018290526001600160a01b03841690632f745c5990604401602060405180830381865afa158015611f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9491906153e2565b828281518110611fa657611fa6615399565b602002602001018181525050611fe3828281518110611fc757611fc7615399565b6020026020010151600090815260208052604090205460ff1690565b15611ffa57611ff360018761517a565b955061203f565b61203182828151811061200f5761200f615399565b602002602001015160009081526020805260409020805460ff19166001179055565b8461203b81615318565b9550505b848414612058578061205081615318565b915050611f1d565b50841561210357336000908152602360205260408120600101805487929061208190849061518d565b9091555061209190503386613bd1565b336000805160206156c98339815191526120a96114bd565b60405190815260200160405180910390a2601e546001600160a01b0316600090815260236020526040812080548792906120e490849061517a565b9250508190555084601660008282546120fd919061517a565b90915550505b5050601c805460ff191690555050505050565b826daaeb6d7670e522a718067333cd4e3b1561225c57336001600160a01b038216036121475761169c848484613cdd565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ba919061537c565b801561223d5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223d919061537c565b61225c57604051633b79c77360e21b8152336004820152602401611141565b6117c1848484613cdd565b60008061227383612513565b6001600160a01b0316336001600160a01b031614806122ab575061229683611040565b6001600160a01b0316336001600160a01b0316145b806122e657506122e66122bd84612513565b6001600160a01b0316600090815260086020908152604080832033845290915290205460ff1690565b6123455760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a20596f75206d757374206f776e207468697320746f6b656e20746044820152693790313ab9371034ba1760b11b6064820152608401611141565b61234e83613cf8565b604051839033907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a3506001929050565b336000908152602360205260409020600290810154116123b55760405162461bcd60e51b8152600401611141906152cd565b6116268282613d03565b606060005b6027548110156124cf576000602782815481106123e3576123e3615399565b9060005260206000200180546123f890615100565b80601f016020809104026020016040519081016040528092919081815260200182805461242490615100565b80156124715780601f1061244657610100808354040283529160200191612471565b820191906000526020600020905b81548152906001019060200180831161245457829003601f168201915b50505050509050600060248260405161248a91906153c6565b908152604051908190036020019020600401546001600160a01b039081169150851681036124ba57509392505050565b505080806124c790615318565b9150506123c4565b50919050565b336000908152602360205260409020600201546001106125075760405162461bcd60e51b815260040161114190615331565b601b6116268282615449565b600061251e82613e14565b5192915050565b61252d613b61565b601855565b61253a613b61565b613a988111156125a65760405162461bcd60e51b815260206004820152603160248201527f4572726f723a204e6577206d617820737570706c792063616e6e6f742065786360448201527032b2b21037b934b3b4b730b61036b0bc1760791b6064820152608401611141565b601055565b60006001600160a01b0382166125d4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b612601613b61565b61260b6000613f3b565b565b3360009081526023602052604090206002015460011061263f5760405162461bcd60e51b815260040161114190615331565b601c5460ff16156126625760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560005b6027548110156129395760006027828154811061269157612691615399565b9060005260206000200180546126a690615100565b80601f01602080910402602001604051908101604052809291908181526020018280546126d290615100565b801561271f5780601f106126f45761010080835404028352916020019161271f565b820191906000526020600020905b81548152906001019060200180831161270257829003601f168201915b50505050509050600060248260405161273891906153c6565b908152604051908190036020018120600401546001600160a01b031691506000906024906127679085906153c6565b90815260405190819003602001812054915060009060249061278a9086906153c6565b90815260405190819003602001902060010154905060006127ab828461527f565b9050806000036127bf575050505050612927565b8047101561280f5760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a20496e73756666696369656e742062616c616e636500000000006044820152606401611141565b600080856001600160a01b03168360405160006040518083038185875af1925050503d806000811461285d576040519150601f19603f3d011682016040523d82523d6000602084013e612862565b606091505b5091509150816128c25760405162461bcd60e51b815260206004820152602560248201527f4572726f723a204661696c656420746f2073656e642045544820746f2072656360448201526432b4bb32b960d91b6064820152608401611141565b826024886040516128d391906153c6565b908152602001604051809103902060030160008282546128f3919061518d565b92505081905550600060248860405161290c91906153c6565b90815260405190819003602001902060010155505050505050505b8061293181615318565b915050612672565b5060005b60255481101561296f5761295d60258281548110611a3657611a36615399565b8061296781615318565b91505061293d565b50601c805460ff19169055565b612984613b61565b600060248260405161299691906153c6565b90815260405190819003602001902054116129c35760405162461bcd60e51b815260040161114190615508565b60006024826040516129d591906153c6565b9081526040519081900360200190206004018054911515600160a01b0260ff60a01b1990921691909117905550565b612a0c613b61565b6000602482604051612a1e91906153c6565b9081526040519081900360200190205411612a4b5760405162461bcd60e51b815260040161114190615508565b60016024826040516129d591906153c6565b33600090815260236020526040902060020154600110612a8f5760405162461bcd60e51b815260040161114190615331565b6017805460ff19169055565b600080829050600381511015612ab45750600092915050565b600f81511115612ac75750600092915050565b80600081518110612ada57612ada615399565b01602001516001600160f81b031916600160fd1b03612afc5750600092915050565b8060018251612b0b919061517a565b81518110612b1b57612b1b615399565b01602001516001600160f81b031916600160fd1b03612b3d5750600092915050565b600081600081518110612b5257612b52615399565b01602001516001600160f81b031916905060005b8251811015612c33576000838281518110612b8357612b83615399565b01602001516001600160f81b0319169050600160fd1b819003612bac5750600095945050505050565b600360fc1b6001600160f81b0319821610801590612bd85750603960f81b6001600160f81b0319821611155b158015612c0e5750606160f81b6001600160f81b0319821610801590612c0c5750603d60f91b6001600160f81b0319821611155b155b15612c1f5750600095945050505050565b915080612c2b81615318565b915050612b66565b506001949350505050565b6000600d8281548110612c5357612c53615399565b6000918252602090912001546001600160a01b031692915050565b612c76613b61565b601c54610100900460ff1615612c8b57600080fd5b60146116268282615449565b612c9f613b61565b601a6116268282615449565b606060048054610fbd90615100565b336001600160a01b03831603612ce35760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080612d5b600a5490565b612d65904761518d565b9050612d908382612d8b866001600160a01b03166000908152600c602052604090205490565b613f8b565b9392505050565b612d9f613b61565b600082601654612daf919061517a565b1015612e125760405162461bcd60e51b815260206004820152602c60248201527f4572726f723a205468697320776f756c64206d616b652072657365727665642060448201526b3632b9b9903a3430b710181760a11b6064820152608401611141565b6001600160a01b038116600090815260236020526040812054612e3690849061517a565b1015612e9f5760405162461bcd60e51b815260206004820152603260248201527f4572726f723a205573657220646f6573206e6f7420686176652074686973206d60448201527130b73c903932b9b2b93b32b21027232a399760711b6064820152608401611141565b8160166000828254612eb1919061517a565b90915550506001600160a01b03811660009081526023602052604081208054849290612ede90849061517a565b90915550505050565b6000612ef1613b61565b60155415612f545760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a2052616e646f6d206f66667365742068617320616c7265616479604482015269103132b2b71039b2ba1760b11b6064820152608401611141565b828211612fbb5760405162461bcd60e51b815260206004820152602f60248201527f4572726f723a204c6f772076616c7565206d757374206265206c6f776572207460448201526e3430b7102434b3b4103b30b63ab29760891b6064820152608401611141565b600083612fc984600161518d565b612fd3919061517a565b905060008144424589604051602001613018949392919093845260208401929092526040830152606090811b6bffffffffffffffffffffffff19169082015260740190565b6040516020818303038152906040528051906020012060001c61303b9190615566565b613045908661518d565b60158190559695505050505050565b836daaeb6d7670e522a718067333cd4e3b156131a057336001600160a01b0382160361308b5761308685858585613fc9565b6131ac565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156130da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130fe919061537c565b80156131815750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561315d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613181919061537c565b6131a057604051633b79c77360e21b8152336004820152602401611141565b6131ac85858585613fc9565b5050505050565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015613212573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061323691906153e2565b613240919061518d565b6001600160a01b038086166000908152600f60209081526040808320938816835292905220549091506132769084908390613f8b565b949350505050565b613286613b61565b602155565b613293613b61565b6001600160a01b0381166000908152602360205260408120600201805491611acf83615318565b601480546132c790615100565b80601f01602080910402602001604051908101604052809291908181526020018280546132f390615100565b80156133405780601f1061331557610100808354040283529160200191613340565b820191906000526020600020905b81548152906001019060200180831161332357829003601f168201915b505050505081565b606061335382613acc565b61337057604051630a14c4b560e41b815260040160405180910390fd5b600061337a614014565b9050805160000361339a5760405180602001604052806000815250612d90565b806133a484614023565b6040516020016133b592919061557a565b6040516020818303038152906040529392505050565b6133d3613b61565b601c805461ff001916610100179055565b6060601a8054610fbd90615100565b6133fb613b61565b601955565b613408613b61565b6001600160a01b03811661346d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611141565b61150681613f3b565b61347e613b61565b601155565b601c5460ff16156134a65760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560175460ff1661351c5760405162461bcd60e51b815260206004820152602e60248201527f4572726f723a2053616c65206973206e6f74206163746976652e20566961206360448201526d37b73a3930b1ba26b4b73a14149760911b6064820152608401611141565b60165460105461352c919061517a565b816135356114bd565b61353f919061518d565b11156135b35760405162461bcd60e51b815260206004820152603c60248201527f4572726f723a20507572636861736520776f756c6420657863656564206d617860448201527f20737570706c792e2056696120636f6e74726163744d696e7428292e000000006064820152608401611141565b601954336000908152602360205260409020600101546135d3908361518d565b11156136475760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20596f7520776f756c6420657863656564207468652077616c6c60448201527f6574206c696d69742e2056696120636f6e74726163744d696e7428292e0000006064820152608401611141565b333b156136b05760405162461bcd60e51b815260206004820152603160248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e205669604482015270309031b7b73a3930b1ba26b4b73a14149760791b6064820152608401611141565b806011546136be919061527f565b3410156137275760405162461bcd60e51b815260206004820152603160248201527f4572726f723a204e6f7420656e6f7567682065746865722073656e742e205669604482015270309031b7b73a3930b1ba26b4b73a14149760791b6064820152608401611141565b336000908152602360205260408120600101805483929061374990849061518d565b9091555061375990503382613bd1565b336000805160206156c98339815191526137716114bd565b60405190815260200160405180910390a250601c805460ff19169055565b336000908152602360205260409020600201546001106137c15760405162461bcd60e51b815260040161114190615331565b6017805460ff19166001179055565b336000908152602360205260409020600201546001106138025760405162461bcd60e51b815260040161114190615331565b601654601054613812919061517a565b815161381c6114bd565b613826919061518d565b11156138875760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a20596f7520776f756c64206578636565642074686520616972646044820152693937b8103634b6b4ba1760b11b6064820152608401611141565b60005b8151811015611626576138b78282815181106138a8576138a8615399565b60200260200101516001613bd1565b336000805160206156c98339815191526138cf6114bd565b60405190815260200160405180910390a2806138ea81615318565b91505061388a565b6138fa613b61565b6000811161395b5760405162461bcd60e51b815260206004820152602860248201527f4572726f723a20466565206d757374206265203e20302028616e6420732f622060448201526734b7102ba2a4949760c11b6064820152608401611141565b61396482612a9b565b6139d65760405162461bcd60e51b815260206004820152603e60248201527f4572726f723a20416666696c69617465205265666572656e636520636f64652060448201527f7573656420646f65736e277420706173732076616c69646174696f6e732e00006064820152608401611141565b6040518060c00160405280828152602001600081526020016000815260200160008152602001846001600160a01b0316815260200160011515815250602483604051613a2291906153c6565b9081526040805191829003602090810190922083518155918301516001808401919091559083015160028301556060830151600383015560808301516004909201805460a0909401511515600160a01b026001600160a81b03199094166001600160a01b03909316929092179290921790556027805491820181556000527f98a476f1687bc3d60a2da2adbcba2c46958e61fa2fb4042cd7bc5816a710195b016117c18382615449565b600081600111158015613ae0575060015482105b8015610fa8575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b0316331461260b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611141565b600082613bc885846140b5565b14949350505050565b611626828260405180602001604052806000815250614102565b6001600160a01b0381166000908152600b6020526040902054613c205760405162461bcd60e51b8152600401611141906155a9565b6000613c2b82612d4f565b905080600003613c4d5760405162461bcd60e51b8152600401611141906155ef565b80600a6000828254613c5f919061518d565b90915550506001600160a01b0382166000908152600c60205260409020805482019055613c8c828261410f565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b61110c838383614228565b61110c83838360405180602001604052806000815250613054565b611506816000614401565b6001600160a01b0381166000908152600b6020526040902054613d385760405162461bcd60e51b8152600401611141906155a9565b6000613d4483836131b3565b905080600003613d665760405162461bcd60e51b8152600401611141906155ef565b6001600160a01b0383166000908152600e602052604081208054839290613d8e90849061518d565b90915550506001600160a01b038084166000908152600f60209081526040808320938616835292905220805482019055613dc98383836145b5565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b60408051606081018252600080825260208201819052918101919091528180600111158015613e44575060015481105b15613f2257600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290613f205780516001600160a01b031615613eb7579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613f1b579392505050565b613eb7565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384166000908152600b602052604081205490918391613fb5908661527f565b613fbf919061563a565b613276919061517a565b613fd4848484614228565b6001600160a01b0383163b15158015613ff65750613ff484848484614607565b155b156117c1576040516368d2bf6b60e11b815260040160405180910390fd5b6060601b8054610fbd90615100565b60606000614030836146f2565b60010190506000816001600160401b0381111561404f5761404f614d90565b6040519080825280601f01601f191660200182016040528015614079576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461408357509392505050565b600081815b84518110156140fa576140e6828683815181106140d9576140d9615399565b60200260200101516147ca565b9150806140f281615318565b9150506140ba565b509392505050565b61110c83838360016147f6565b8047101561415f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611141565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146141ac576040519150601f19603f3d011682016040523d82523d6000602084013e6141b1565b606091505b505090508061110c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611141565b600061423382613e14565b9050836001600160a01b031681600001516001600160a01b03161461426a5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061428857506142888533610e36565b806142a357503361429884611040565b6001600160a01b0316145b9050806142c357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166142ea57604051633a954ecd60e21b815260040160405180910390fd5b6142f660008487613b05565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143ca5760015482146143ca57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206156a983398151915260405160405180910390a46131ac565b600061440c83613e14565b80519091508215614472576000336001600160a01b038316148061443557506144358233610e36565b8061445057503361444586611040565b6001600160a01b0316145b90508061447057604051632ce44b5f60e11b815260040160405180910390fd5b505b61447e60008583613b05565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661457c57600154821461457c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206156a9833981519152908390a450506002805460010190555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261110c9084906149a3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061463c90339089908890889060040161564e565b6020604051808303816000875af1925050508015614677575060408051601f3d908101601f191682019092526146749181019061568b565b60015b6146d5573d8080156146a5576040519150601f19603f3d011682016040523d82523d6000602084013e6146aa565b606091505b5080516000036146cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106147315772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061475d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061477b57662386f26fc10000830492506010015b6305f5e1008310614793576305f5e100830492506008015b61271083106147a757612710830492506004015b606483106147b9576064830492506002015b600a8310610fa85760010192915050565b60008183106147e6576000828152602084905260409020612d90565b5060009182526020526040902090565b6001546001600160a01b03851661481f57604051622e076360e81b815260040160405180910390fd5b836000036148405760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156148f157506001600160a01b0387163b15155b15614967575b60405182906001600160a01b038916906000906000805160206156a9833981519152908290a46149306000888480600101955088614607565b61494d576040516368d2bf6b60e11b815260040160405180910390fd5b8082036148f757826001541461496257600080fd5b61499a565b5b6040516001830192906001600160a01b038916906000906000805160206156a9833981519152908290a4808203614968575b506001556131ac565b60006149f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614a759092919063ffffffff16565b80519091501561110c5780806020019051810190614a16919061537c565b61110c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401611141565b6060613276848460008585600080866001600160a01b03168587604051614a9c91906153c6565b60006040518083038185875af1925050503d8060008114614ad9576040519150601f19603f3d011682016040523d82523d6000602084013e614ade565b606091505b5091509150614aef87838387614afa565b979650505050505050565b60608315614b69578251600003614b62576001600160a01b0385163b614b625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401611141565b5081613276565b6132768383815115614b7e5781518083602001fd5b8060405162461bcd60e51b81526004016111419190614c1b565b6001600160e01b03198116811461150657600080fd5b600060208284031215614bc057600080fd5b8135612d9081614b98565b60005b83811015614be6578181015183820152602001614bce565b50506000910152565b60008151808452614c07816020860160208601614bcb565b601f01601f19169290920160200192915050565b602081526000612d906020830184614bef565b600060208284031215614c4057600080fd5b5035919050565b6001600160a01b038116811461150657600080fd5b60008060408385031215614c6f57600080fd5b8235614c7a81614c47565b946020939093013593505050565b600080600060408486031215614c9d57600080fd5b83356001600160401b0380821115614cb457600080fd5b818601915086601f830112614cc857600080fd5b813581811115614cd757600080fd5b8760208260051b8501011115614cec57600080fd5b6020928301989097509590910135949350505050565b600060208284031215614d1457600080fd5b8135612d9081614c47565b60008060408385031215614d3257600080fd5b823591506020830135614d4481614c47565b809150509250929050565b600080600060608486031215614d6457600080fd5b8335614d6f81614c47565b92506020840135614d7f81614c47565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614dce57614dce614d90565b604052919050565b60006001600160401b03831115614def57614def614d90565b614e02601f8401601f1916602001614da6565b9050828152838383011115614e1657600080fd5b828260208301376000602084830101529392505050565b600082601f830112614e3e57600080fd5b612d9083833560208501614dd6565b600060208284031215614e5f57600080fd5b81356001600160401b03811115614e7557600080fd5b61327684828501614e2d565b60008060408385031215614e9457600080fd5b8235614e9f81614c47565b91506020830135614d4481614c47565b801515811461150657600080fd5b600080600060608486031215614ed257600080fd5b833592506020840135614ee481614eaf565b915060408401356001600160401b03811115614eff57600080fd5b614f0b86828701614e2d565b9150509250925092565b60008060408385031215614f2857600080fd5b8235614f3381614c47565b91506020830135614d4481614eaf565b600080600060608486031215614f5857600080fd5b8335614f6381614c47565b95602085013595506040909401359392505050565b60008060008060808587031215614f8e57600080fd5b8435614f9981614c47565b93506020850135614fa981614c47565b92506040850135915060608501356001600160401b03811115614fcb57600080fd5b8501601f81018713614fdc57600080fd5b614feb87823560208401614dd6565b91505092959194509250565b6000602080838503121561500a57600080fd5b82356001600160401b038082111561502157600080fd5b818501915085601f83011261503557600080fd5b81358181111561504757615047614d90565b8060051b9150615058848301614da6565b818152918301840191848101908884111561507257600080fd5b938501935b8385101561509c578435925061508c83614c47565b8282529385019390850190615077565b98975050505050505050565b6000806000606084860312156150bd57600080fd5b83356150c881614c47565b925060208401356001600160401b038111156150e357600080fd5b6150ef86828701614e2d565b925050604084013590509250925092565b600181811c9082168061511457607f821691505b6020821081036124cf57634e487b7160e01b600052602260045260246000fd5b60208082526016908201527522b93937b91d10273790393296b2b73a3930b731bc9760511b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610fa857610fa8615164565b80820180821115610fa857610fa8615164565b60208082526028908201527f4572726f723a20507572636861736520776f756c6420657863656564206d61786040820152671039bab838363c9760c11b606082015260800190565b60208082526029908201527f4572726f723a20596f7520776f756c6420657863656564207468652077616c6c60408201526832ba103634b6b4ba1760b91b606082015260800190565b6020808252602e908201527f4572726f723a20596f7520776f756c642065786365656420746865207472616e60408201526d39b0b1ba34b7b7103634b6b4ba1760911b606082015260800190565b8082028115828204841417610fa857610fa8615164565b6020808252601d908201527f4572726f723a204e6f7420656e6f7567682065746865722073656e742e000000604082015260600190565b6020808252602b908201527f4572726f723a204c6576656c2033282b292061646d696e20636c656172616e6360408201526a32903932b8bab4b932b21760a91b606082015260800190565b60006001820161532a5761532a615164565b5060010190565b6020808252602b908201527f4572726f723a204c6576656c2032282b292061646d696e20636c656172616e6360408201526a32903932b8bab4b932b21760a91b606082015260800190565b60006020828403121561538e57600080fd5b8151612d9081614eaf565b634e487b7160e01b600052603260045260246000fd5b6000816153be576153be615164565b506000190190565b600082516153d8818460208701614bcb565b9190910192915050565b6000602082840312156153f457600080fd5b5051919050565b601f82111561110c57600081815260208120601f850160051c810160208610156154225750805b601f850160051c820191505b818110156154415782815560010161542e565b505050505050565b81516001600160401b0381111561546257615462614d90565b615476816154708454615100565b846153fb565b602080601f8311600181146154ab57600084156154935750858301515b600019600386901b1c1916600185901b178555615441565b600085815260208120601f198616915b828110156154da578886015182559484019460019091019084016154bb565b50858210156154f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f4572726f723a20416666696c69617465207265666572656e6365206c696b656c6040820152673c903bb937b7339760c11b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261557557615575615550565b500690565b6000835161558c818460208801614bcb565b8351908301906155a0818360208801614bcb565b01949350505050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60008261564957615649615550565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061568190830184614bef565b9695505050505050565b60006020828403121561569d57600080fd5b8151612d9081614b9856feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885a2646970667358221220d71028510d3cde8d95800ba44e088c5895189d63d774c060c9cd3b85064f917364736f6c63430008110033697066733a2f2f516d56504c713377507a73314b343239444c4a7938694a75536452576f5644695462345441384a466937664e47622f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000340a1679b39ccb074e4128834a9cf575425bcc0f2811d05debac2f78c73376c7162000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000691dd7b83f32d199aa2593c308b20dda91c67d5e000000000000000000000000a222c1174132309d98b891dcb5c93f09aee23b96000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f000000000000000000000000a049675f410212cc89534358cbaec6cc4a0c71cc000000000000000000000000b648c3e65c5e0221988fc0bc2a6731aa84c3420f00000000000000000000000097481ac52d0915a47cbadcb43055daa1ba8641af000000000000000000000000f04227bf3401aacf28ec87596e59807d25f162aa000000000000000000000000de66923e1cd333c8c6d660daec6ccbf897ca8128000000000000000000000000256f7e34c0302f8a93bb74de6a7196c080f7b7f60000000000000000000000001184c8eb78d538ba3f60ce7599686d5481ff8515000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000003fc00000000000000000000000000000000000000000000000000000000000001d000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000ba20000000000000000000000000000000000000000000000000000000000000cec000000000000000000000000000000000000000000000000000000000000014a0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000002260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000600000000000000000000000065aaa7aa9931dbdc03db79ca1b58f99a0ac1a001000000000000000000000000a126a2a819b3456b04cf36c820a80f56fd24dff8000000000000000000000000db85c683c4e4a2555e0e93368fc003f4885014c3000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f000000000000000000000000925e13a5ab1d9d6e36bd2d3af9da3ac14f1693b4000000000000000000000000e215a87ce35b40a56643838bb9ea16293cc1f1de
Deployed Bytecode
0x6080604052600436106104775760003560e01c806382610d621161024a578063c6ab67a311610139578063e985e9c5116100b6578063f4a0a5281161007a578063f4a0a52814610ed4578063f610372b14610ef4578063f8901d0a14610f07578063fc15ad0614610f1c578063ff868c5314610f3c57600080fd5b8063e985e9c514610e1b578063f19605d614610e64578063f1d5f51714610e7a578063f2fde38b14610e9a578063f412f5b614610eba57600080fd5b8063d79779b2116100fd578063d79779b214610d77578063dcd17c1714610dad578063de3585f714610dc2578063e33b7de314610df1578063e8a3d48514610e0657600080fd5b8063c6ab67a314610ce0578063c87b56dd14610cf5578063cd42cbd414610d15578063ce7c2ac214610d2b578063d5abeb0114610d6157600080fd5b8063a22cb465116101c7578063b58be5721161018b578063b58be57214610c4a578063b88d4fde14610c60578063c45ac05014610c80578063c5a4e67214610ca0578063c656f99414610cc057600080fd5b8063a22cb46514610baa578063a35e9f3114610bca578063a3f8eace14610bea578063a838185514610c0a578063a8b715e814610c2a57600080fd5b80638da5cb5b1161020e5780638da5cb5b14610b015780639367370b14610b1f578063938e3d7b14610b3f57806395d89b4114610b5f5780639852595c14610b7457600080fd5b806382610d6214610a6c57806385d20e2d14610a8c57806386b06a4014610aac5780638b7a987b14610ac15780638b83209b14610ae157600080fd5b80633b555e14116103665780635e5c06e2116102e35780636f8b44b0116102a75780636f8b44b0146109e257806370a0823114610a02578063715018a614610a2257806371dd257414610a375780637440a96b14610a4c57600080fd5b80635e5c06e21461090657806362152f941461095d5780636352211e1461098c57806364bfa546146109ac5780636817c76c146109cc57600080fd5b806342842e0e1161032a57806342842e0e1461084f57806342966c681461086f57806348b75044146108a65780634cc71dfe146108c657806355f804b3146108e657600080fd5b80633b555e14146107b85780633c8463a1146107d8578063406072a9146107ee57806340ecf62c1461083457806342063d291461084757600080fd5b806320589799116103f4578063306e9f6a116103b8578063306e9f6a146106a657806330b42ec2146106bb578063346f5a73146106eb5780633a98ef391461078d5780633b238f56146107a257600080fd5b8063205897991461062657806323b872dd1461063b57806326f8f7e61461065b5780632eb4a7ab1461067b5780632f36e3821461069157600080fd5b80631338a83f1161043b5780631338a83f1461059657806318160ddd146105a957806318602dc8146105cc57806319165587146105e65780631e733c9c1461060657600080fd5b806301ffc9a7146104c557806306fdde03146104fa578063081812fc1461051c578063095ea7b31461055457806312a910541461057657600080fd5b366104c0577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104d157600080fd5b506104e56104e0366004614bae565b610f5c565b60405190151581526020015b60405180910390f35b34801561050657600080fd5b5061050f610fae565b6040516104f19190614c1b565b34801561052857600080fd5b5061053c610537366004614c2e565b611040565b6040516001600160a01b0390911681526020016104f1565b34801561056057600080fd5b5061057461056f366004614c5c565b611084565b005b34801561058257600080fd5b50610574610591366004614c2e565b611111565b6105746105a4366004614c88565b61111e565b3480156105b557600080fd5b506105be6114bd565b6040519081526020016104f1565b3480156105d857600080fd5b506013546104e59060ff1681565b3480156105f257600080fd5b50610574610601366004614d02565b6114cb565b34801561061257600080fd5b50610574610621366004614d1f565b611509565b34801561063257600080fd5b5061057461162a565b34801561064757600080fd5b50610574610656366004614d4f565b61166b565b34801561066757600080fd5b50610574610676366004614c2e565b6117c7565b34801561068757600080fd5b506105be60215481565b34801561069d57600080fd5b50610574611a0b565b3480156106b257600080fd5b50610574611a62565b3480156106c757600080fd5b506104e56106d6366004614d02565b60226020526000908152604090205460ff1681565b3480156106f757600080fd5b50610755610706366004614e4d565b805160208183018101805160248252928201919093012091528054600182015460028301546003840154600490940154929391929091906001600160a01b03811690600160a01b900460ff1686565b6040805196875260208701959095529385019290925260608401526001600160a01b03166080830152151560a082015260c0016104f1565b34801561079957600080fd5b506009546105be565b3480156107ae57600080fd5b506105be60155481565b3480156107c457600080fd5b506105746107d3366004614d02565b611aa0565b3480156107e457600080fd5b506105be60195481565b3480156107fa57600080fd5b506105be610809366004614e81565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b610574610842366004614ebd565b611ad7565b610574611e1d565b34801561085b57600080fd5b5061057461086a366004614d4f565b612116565b34801561087b57600080fd5b5061088f61088a366004614c2e565b612267565b6040805192151583526020830191909152016104f1565b3480156108b257600080fd5b506105746108c1366004614e81565b612383565b3480156108d257600080fd5b5061050f6108e1366004614d02565b6123bf565b3480156108f257600080fd5b50610574610901366004614e4d565b6124d5565b34801561091257600080fd5b50610942610921366004614d02565b60236020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016104f1565b34801561096957600080fd5b506104e5610978366004614c2e565b602080526000908152604090205460ff1681565b34801561099857600080fd5b5061053c6109a7366004614c2e565b612513565b3480156109b857600080fd5b506105746109c7366004614c2e565b612525565b3480156109d857600080fd5b506105be60115481565b3480156109ee57600080fd5b506105746109fd366004614c2e565b612532565b348015610a0e57600080fd5b506105be610a1d366004614d02565b6125ab565b348015610a2e57600080fd5b506105746125f9565b348015610a4357600080fd5b5061057461260d565b348015610a5857600080fd5b50610574610a67366004614e4d565b61297c565b348015610a7857600080fd5b50601e5461053c906001600160a01b031681565b348015610a9857600080fd5b50610574610aa7366004614e4d565b612a04565b348015610ab857600080fd5b50610574612a5d565b348015610acd57600080fd5b506104e5610adc366004614e4d565b612a9b565b348015610aed57600080fd5b5061053c610afc366004614c2e565b612c3e565b348015610b0d57600080fd5b506000546001600160a01b031661053c565b348015610b2b57600080fd5b50610574610b3a366004614e4d565b612c6e565b348015610b4b57600080fd5b50610574610b5a366004614e4d565b612c97565b348015610b6b57600080fd5b5061050f612cab565b348015610b8057600080fd5b506105be610b8f366004614d02565b6001600160a01b03166000908152600c602052604090205490565b348015610bb657600080fd5b50610574610bc5366004614f15565b612cba565b348015610bd657600080fd5b50601f5461053c906001600160a01b031681565b348015610bf657600080fd5b506105be610c05366004614d02565b612d4f565b348015610c1657600080fd5b50610574610c25366004614d1f565b612d97565b348015610c3657600080fd5b506105be610c45366004614f43565b612ee7565b348015610c5657600080fd5b506105be60165481565b348015610c6c57600080fd5b50610574610c7b366004614f78565b613054565b348015610c8c57600080fd5b506105be610c9b366004614e81565b6131b3565b348015610cac57600080fd5b50610574610cbb366004614c2e565b61327e565b348015610ccc57600080fd5b50610574610cdb366004614d02565b61328b565b348015610cec57600080fd5b5061050f6132ba565b348015610d0157600080fd5b5061050f610d10366004614c2e565b613348565b348015610d2157600080fd5b506105be60125481565b348015610d3757600080fd5b506105be610d46366004614d02565b6001600160a01b03166000908152600b602052604090205490565b348015610d6d57600080fd5b506105be60105481565b348015610d8357600080fd5b506105be610d92366004614d02565b6001600160a01b03166000908152600e602052604090205490565b348015610db957600080fd5b506105746133cb565b348015610dce57600080fd5b506104e5610ddd366004614c2e565b600090815260208052604090205460ff1690565b348015610dfd57600080fd5b50600a546105be565b348015610e1257600080fd5b5061050f6133e4565b348015610e2757600080fd5b506104e5610e36366004614e81565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610e7057600080fd5b506105be60185481565b348015610e8657600080fd5b50610574610e95366004614c2e565b6133f3565b348015610ea657600080fd5b50610574610eb5366004614d02565b613400565b348015610ec657600080fd5b506017546104e59060ff1681565b348015610ee057600080fd5b50610574610eef366004614c2e565b613476565b610574610f02366004614c2e565b613483565b348015610f1357600080fd5b5061057461378f565b348015610f2857600080fd5b50610574610f37366004614ff7565b6137d0565b348015610f4857600080fd5b50610574610f573660046150a8565b6138f2565b60006001600160e01b031982166380ac58cd60e01b1480610f8d57506001600160e01b03198216635b5e139f60e01b145b80610fa857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610fbd90615100565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe990615100565b80156110365780601f1061100b57610100808354040283529160200191611036565b820191906000526020600020905b81548152906001019060200180831161101957829003601f168201915b5050505050905090565b600061104b82613acc565b611068576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061108f82612513565b9050806001600160a01b0316836001600160a01b0316036110c35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906110e357506110e18133610e36565b155b15611101576040516367d9dca160e11b815260040160405180910390fd5b61110c838383613b05565b505050565b611119613b61565b601255565b601c5460ff161561114a5760405162461bcd60e51b815260040161114190615134565b60405180910390fd5b601c805460ff1916600117905560135460ff166111b55760405162461bcd60e51b8152602060048201526024808201527f4572726f723a20416c6c6f776c6973742053616c65206973206e6f742061637460448201526334bb329760e11b6064820152608401611141565b6016546010546111c5919061517a565b816111ce6114bd565b6111d8919061518d565b11156111f65760405162461bcd60e51b8152600401611141906151a0565b60195433600090815260236020526040902060010154611216908361518d565b11156112345760405162461bcd60e51b8152600401611141906151e8565b6018548111156112565760405162461bcd60e51b815260040161114190615231565b333b156112a55760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e0000006044820152606401611141565b806011546112b3919061527f565b3410156112d25760405162461bcd60e51b815260040161114190615296565b3360009081526022602052604090205460ff161561134c5760405162461bcd60e51b815260206004820152603160248201527f4572726f723a20596f75206861766520616c726561647920636c61696d65642060448201527030b6361037b3103cb7bab91027232a399760791b6064820152608401611141565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506113c6848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506021549150849050613bbb565b6114125760405162461bcd60e51b815260206004820152601f60248201527f4572726f723a20596f7520617265206e6f7420616c6c6f776c69737465642e006044820152606401611141565b60195433600090815260236020526040902060010154611432908461518d565b0361145257336000908152602260205260409020805460ff191660011790555b336000908152602360205260408120600101805484929061147490849061518d565b9091555061148490503383613bd1565b336000805160206156c983398151915261149c6114bd565b60405190815260200160405180910390a25050601c805460ff191690555050565b600254600154036000190190565b336000908152602360205260409020600290810154116114fd5760405162461bcd60e51b8152600401611141906152cd565b61150681613beb565b50565b611511613b61565b6010548261151d6114bd565b60165461152a919061518d565b611534919061518d565b11156115935760405162461bcd60e51b815260206004820152602860248201527f4572726f723a205468697320776f756c642065786365656420746865206d61786044820152671039bab838363c9760c11b6064820152608401611141565b81601660008282546115a5919061518d565b90915550506001600160a01b038116600090815260236020526040812080548492906115d290849061518d565b90915550506001600160a01b0381166000908152602360205260408120600201549003611626576001600160a01b038116600090815260236020526040812060020180549161162083615318565b91905055505b5050565b3360009081526023602052604090206002015460011061165c5760405162461bcd60e51b815260040161114190615331565b6013805460ff19166001179055565b826daaeb6d7670e522a718067333cd4e3b156117b657336001600160a01b038216036116a15761169c848484613cd2565b6117c1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156116f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611714919061537c565b80156117975750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611773573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611797919061537c565b6117b657604051633b79c77360e21b8152336004820152602401611141565b6117c1848484613cd2565b50505050565b3360009081526023602052604090206002015461183a5760405162461bcd60e51b815260206004820152602b60248201527f4572726f723a204c6576656c2031282b292061646d696e20636c656172616e6360448201526a32903932b8bab4b932b21760a91b6064820152608401611141565b600081116118965760405162461bcd60e51b8152602060048201526024808201527f4572726f723a204e65656420746f20686176652072657365727665642073757060448201526338363c9760e11b6064820152608401611141565b3360009081526023602052604090205481111561191d576040805162461bcd60e51b81526020600482015260248101919091527f4572726f723a20596f752061726520747279696e6720746f20636c61696d206d60448201527f6f7265204e465473207468616e20796f7520686176652072657365727665642e6064820152608401611141565b601054816119296114bd565b611933919061518d565b11156119975760405162461bcd60e51b815260206004820152602d60248201527f4572726f723a20596f7520776f756c642065786365656420746865206d61782060448201526c39bab838363c903634b6b4ba1760991b6064820152608401611141565b33600090815260236020526040812080548392906119b690849061517a565b9250508190555080601660008282546119cf919061517a565b909155506119df90503382613bd1565b336000805160206156c98339815191526119f76114bd565b60405190815260200160405180910390a250565b611a13613b61565b60005b60255481101561150657611a5060258281548110611a3657611a36615399565b6000918252602090912001546001600160a01b03166114cb565b80611a5a81615318565b915050611a16565b33600090815260236020526040902060020154600110611a945760405162461bcd60e51b815260040161114190615331565b6013805460ff19169055565b611aa8613b61565b6001600160a01b0381166000908152602360205260408120600201805491611acf836153af565b919050555050565b601c5460ff1615611afa5760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560175460ff16611b595760405162461bcd60e51b815260206004820152601a60248201527f4572726f723a2053616c65206973206e6f74206163746976652e0000000000006044820152606401611141565b601654601054611b69919061517a565b83611b726114bd565b611b7c919061518d565b1115611b9a5760405162461bcd60e51b8152600401611141906151a0565b60195433600090815260236020526040902060010154611bba908561518d565b1115611bd85760405162461bcd60e51b8152600401611141906151e8565b601854831115611bfa5760405162461bcd60e51b815260040161114190615231565b333b15611c495760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e0000006044820152606401611141565b8115611d865782601254611c5d919061527f565b341015611c7c5760405162461bcd60e51b815260040161114190615296565b6000602482604051611c8e91906153c6565b9081526040519081900360200190206004015460ff600160a01b90910416905080611d115760405162461bcd60e51b815260206004820152602d60248201527f4572726f723a20416666696c69617465206163636f756e7420696e76616c696460448201526c1037b9103234b9b0b13632b21760991b6064820152608401611141565b83602483604051611d2291906153c6565b90815260200160405180910390206001016000828254611d42919061518d565b9250508190555083602483604051611d5a91906153c6565b90815260200160405180910390206002016000828254611d7a919061518d565b90915550611db3915050565b82601154611d94919061527f565b341015611db35760405162461bcd60e51b815260040161114190615296565b3360009081526023602052604081206001018054859290611dd590849061518d565b90915550611de590503384613bd1565b336000805160206156c9833981519152611dfd6114bd565b60405190815260200160405180910390a25050601c805460ff1916905550565b601c5460ff1615611e405760405162461bcd60e51b815260040161114190615134565b601c805460ff19166001179055601f546040516370a0823160e01b81523360048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015611e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebe91906153e2565b601f5490915081906000906064906001600160a01b031682846001600160401b03811115611eee57611eee614d90565b604051908082528060200260200182016040528015611f17578160200160208202803683370190505b50905060005b8681101561205857604051632f745c5960e01b8152336004820152602481018290526001600160a01b03841690632f745c5990604401602060405180830381865afa158015611f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9491906153e2565b828281518110611fa657611fa6615399565b602002602001018181525050611fe3828281518110611fc757611fc7615399565b6020026020010151600090815260208052604090205460ff1690565b15611ffa57611ff360018761517a565b955061203f565b61203182828151811061200f5761200f615399565b602002602001015160009081526020805260409020805460ff19166001179055565b8461203b81615318565b9550505b848414612058578061205081615318565b915050611f1d565b50841561210357336000908152602360205260408120600101805487929061208190849061518d565b9091555061209190503386613bd1565b336000805160206156c98339815191526120a96114bd565b60405190815260200160405180910390a2601e546001600160a01b0316600090815260236020526040812080548792906120e490849061517a565b9250508190555084601660008282546120fd919061517a565b90915550505b5050601c805460ff191690555050505050565b826daaeb6d7670e522a718067333cd4e3b1561225c57336001600160a01b038216036121475761169c848484613cdd565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ba919061537c565b801561223d5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223d919061537c565b61225c57604051633b79c77360e21b8152336004820152602401611141565b6117c1848484613cdd565b60008061227383612513565b6001600160a01b0316336001600160a01b031614806122ab575061229683611040565b6001600160a01b0316336001600160a01b0316145b806122e657506122e66122bd84612513565b6001600160a01b0316600090815260086020908152604080832033845290915290205460ff1690565b6123455760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a20596f75206d757374206f776e207468697320746f6b656e20746044820152693790313ab9371034ba1760b11b6064820152608401611141565b61234e83613cf8565b604051839033907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a3506001929050565b336000908152602360205260409020600290810154116123b55760405162461bcd60e51b8152600401611141906152cd565b6116268282613d03565b606060005b6027548110156124cf576000602782815481106123e3576123e3615399565b9060005260206000200180546123f890615100565b80601f016020809104026020016040519081016040528092919081815260200182805461242490615100565b80156124715780601f1061244657610100808354040283529160200191612471565b820191906000526020600020905b81548152906001019060200180831161245457829003601f168201915b50505050509050600060248260405161248a91906153c6565b908152604051908190036020019020600401546001600160a01b039081169150851681036124ba57509392505050565b505080806124c790615318565b9150506123c4565b50919050565b336000908152602360205260409020600201546001106125075760405162461bcd60e51b815260040161114190615331565b601b6116268282615449565b600061251e82613e14565b5192915050565b61252d613b61565b601855565b61253a613b61565b613a988111156125a65760405162461bcd60e51b815260206004820152603160248201527f4572726f723a204e6577206d617820737570706c792063616e6e6f742065786360448201527032b2b21037b934b3b4b730b61036b0bc1760791b6064820152608401611141565b601055565b60006001600160a01b0382166125d4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b612601613b61565b61260b6000613f3b565b565b3360009081526023602052604090206002015460011061263f5760405162461bcd60e51b815260040161114190615331565b601c5460ff16156126625760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560005b6027548110156129395760006027828154811061269157612691615399565b9060005260206000200180546126a690615100565b80601f01602080910402602001604051908101604052809291908181526020018280546126d290615100565b801561271f5780601f106126f45761010080835404028352916020019161271f565b820191906000526020600020905b81548152906001019060200180831161270257829003601f168201915b50505050509050600060248260405161273891906153c6565b908152604051908190036020018120600401546001600160a01b031691506000906024906127679085906153c6565b90815260405190819003602001812054915060009060249061278a9086906153c6565b90815260405190819003602001902060010154905060006127ab828461527f565b9050806000036127bf575050505050612927565b8047101561280f5760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a20496e73756666696369656e742062616c616e636500000000006044820152606401611141565b600080856001600160a01b03168360405160006040518083038185875af1925050503d806000811461285d576040519150601f19603f3d011682016040523d82523d6000602084013e612862565b606091505b5091509150816128c25760405162461bcd60e51b815260206004820152602560248201527f4572726f723a204661696c656420746f2073656e642045544820746f2072656360448201526432b4bb32b960d91b6064820152608401611141565b826024886040516128d391906153c6565b908152602001604051809103902060030160008282546128f3919061518d565b92505081905550600060248860405161290c91906153c6565b90815260405190819003602001902060010155505050505050505b8061293181615318565b915050612672565b5060005b60255481101561296f5761295d60258281548110611a3657611a36615399565b8061296781615318565b91505061293d565b50601c805460ff19169055565b612984613b61565b600060248260405161299691906153c6565b90815260405190819003602001902054116129c35760405162461bcd60e51b815260040161114190615508565b60006024826040516129d591906153c6565b9081526040519081900360200190206004018054911515600160a01b0260ff60a01b1990921691909117905550565b612a0c613b61565b6000602482604051612a1e91906153c6565b9081526040519081900360200190205411612a4b5760405162461bcd60e51b815260040161114190615508565b60016024826040516129d591906153c6565b33600090815260236020526040902060020154600110612a8f5760405162461bcd60e51b815260040161114190615331565b6017805460ff19169055565b600080829050600381511015612ab45750600092915050565b600f81511115612ac75750600092915050565b80600081518110612ada57612ada615399565b01602001516001600160f81b031916600160fd1b03612afc5750600092915050565b8060018251612b0b919061517a565b81518110612b1b57612b1b615399565b01602001516001600160f81b031916600160fd1b03612b3d5750600092915050565b600081600081518110612b5257612b52615399565b01602001516001600160f81b031916905060005b8251811015612c33576000838281518110612b8357612b83615399565b01602001516001600160f81b0319169050600160fd1b819003612bac5750600095945050505050565b600360fc1b6001600160f81b0319821610801590612bd85750603960f81b6001600160f81b0319821611155b158015612c0e5750606160f81b6001600160f81b0319821610801590612c0c5750603d60f91b6001600160f81b0319821611155b155b15612c1f5750600095945050505050565b915080612c2b81615318565b915050612b66565b506001949350505050565b6000600d8281548110612c5357612c53615399565b6000918252602090912001546001600160a01b031692915050565b612c76613b61565b601c54610100900460ff1615612c8b57600080fd5b60146116268282615449565b612c9f613b61565b601a6116268282615449565b606060048054610fbd90615100565b336001600160a01b03831603612ce35760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080612d5b600a5490565b612d65904761518d565b9050612d908382612d8b866001600160a01b03166000908152600c602052604090205490565b613f8b565b9392505050565b612d9f613b61565b600082601654612daf919061517a565b1015612e125760405162461bcd60e51b815260206004820152602c60248201527f4572726f723a205468697320776f756c64206d616b652072657365727665642060448201526b3632b9b9903a3430b710181760a11b6064820152608401611141565b6001600160a01b038116600090815260236020526040812054612e3690849061517a565b1015612e9f5760405162461bcd60e51b815260206004820152603260248201527f4572726f723a205573657220646f6573206e6f7420686176652074686973206d60448201527130b73c903932b9b2b93b32b21027232a399760711b6064820152608401611141565b8160166000828254612eb1919061517a565b90915550506001600160a01b03811660009081526023602052604081208054849290612ede90849061517a565b90915550505050565b6000612ef1613b61565b60155415612f545760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a2052616e646f6d206f66667365742068617320616c7265616479604482015269103132b2b71039b2ba1760b11b6064820152608401611141565b828211612fbb5760405162461bcd60e51b815260206004820152602f60248201527f4572726f723a204c6f772076616c7565206d757374206265206c6f776572207460448201526e3430b7102434b3b4103b30b63ab29760891b6064820152608401611141565b600083612fc984600161518d565b612fd3919061517a565b905060008144424589604051602001613018949392919093845260208401929092526040830152606090811b6bffffffffffffffffffffffff19169082015260740190565b6040516020818303038152906040528051906020012060001c61303b9190615566565b613045908661518d565b60158190559695505050505050565b836daaeb6d7670e522a718067333cd4e3b156131a057336001600160a01b0382160361308b5761308685858585613fc9565b6131ac565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156130da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130fe919061537c565b80156131815750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561315d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613181919061537c565b6131a057604051633b79c77360e21b8152336004820152602401611141565b6131ac85858585613fc9565b5050505050565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015613212573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061323691906153e2565b613240919061518d565b6001600160a01b038086166000908152600f60209081526040808320938816835292905220549091506132769084908390613f8b565b949350505050565b613286613b61565b602155565b613293613b61565b6001600160a01b0381166000908152602360205260408120600201805491611acf83615318565b601480546132c790615100565b80601f01602080910402602001604051908101604052809291908181526020018280546132f390615100565b80156133405780601f1061331557610100808354040283529160200191613340565b820191906000526020600020905b81548152906001019060200180831161332357829003601f168201915b505050505081565b606061335382613acc565b61337057604051630a14c4b560e41b815260040160405180910390fd5b600061337a614014565b9050805160000361339a5760405180602001604052806000815250612d90565b806133a484614023565b6040516020016133b592919061557a565b6040516020818303038152906040529392505050565b6133d3613b61565b601c805461ff001916610100179055565b6060601a8054610fbd90615100565b6133fb613b61565b601955565b613408613b61565b6001600160a01b03811661346d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611141565b61150681613f3b565b61347e613b61565b601155565b601c5460ff16156134a65760405162461bcd60e51b815260040161114190615134565b601c805460ff1916600117905560175460ff1661351c5760405162461bcd60e51b815260206004820152602e60248201527f4572726f723a2053616c65206973206e6f74206163746976652e20566961206360448201526d37b73a3930b1ba26b4b73a14149760911b6064820152608401611141565b60165460105461352c919061517a565b816135356114bd565b61353f919061518d565b11156135b35760405162461bcd60e51b815260206004820152603c60248201527f4572726f723a20507572636861736520776f756c6420657863656564206d617860448201527f20737570706c792e2056696120636f6e74726163744d696e7428292e000000006064820152608401611141565b601954336000908152602360205260409020600101546135d3908361518d565b11156136475760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20596f7520776f756c6420657863656564207468652077616c6c60448201527f6574206c696d69742e2056696120636f6e74726163744d696e7428292e0000006064820152608401611141565b333b156136b05760405162461bcd60e51b815260206004820152603160248201527f4572726f723a20436f6e7472616374732063616e6e6f74206d696e742e205669604482015270309031b7b73a3930b1ba26b4b73a14149760791b6064820152608401611141565b806011546136be919061527f565b3410156137275760405162461bcd60e51b815260206004820152603160248201527f4572726f723a204e6f7420656e6f7567682065746865722073656e742e205669604482015270309031b7b73a3930b1ba26b4b73a14149760791b6064820152608401611141565b336000908152602360205260408120600101805483929061374990849061518d565b9091555061375990503382613bd1565b336000805160206156c98339815191526137716114bd565b60405190815260200160405180910390a250601c805460ff19169055565b336000908152602360205260409020600201546001106137c15760405162461bcd60e51b815260040161114190615331565b6017805460ff19166001179055565b336000908152602360205260409020600201546001106138025760405162461bcd60e51b815260040161114190615331565b601654601054613812919061517a565b815161381c6114bd565b613826919061518d565b11156138875760405162461bcd60e51b815260206004820152602a60248201527f4572726f723a20596f7520776f756c64206578636565642074686520616972646044820152693937b8103634b6b4ba1760b11b6064820152608401611141565b60005b8151811015611626576138b78282815181106138a8576138a8615399565b60200260200101516001613bd1565b336000805160206156c98339815191526138cf6114bd565b60405190815260200160405180910390a2806138ea81615318565b91505061388a565b6138fa613b61565b6000811161395b5760405162461bcd60e51b815260206004820152602860248201527f4572726f723a20466565206d757374206265203e20302028616e6420732f622060448201526734b7102ba2a4949760c11b6064820152608401611141565b61396482612a9b565b6139d65760405162461bcd60e51b815260206004820152603e60248201527f4572726f723a20416666696c69617465205265666572656e636520636f64652060448201527f7573656420646f65736e277420706173732076616c69646174696f6e732e00006064820152608401611141565b6040518060c00160405280828152602001600081526020016000815260200160008152602001846001600160a01b0316815260200160011515815250602483604051613a2291906153c6565b9081526040805191829003602090810190922083518155918301516001808401919091559083015160028301556060830151600383015560808301516004909201805460a0909401511515600160a01b026001600160a81b03199094166001600160a01b03909316929092179290921790556027805491820181556000527f98a476f1687bc3d60a2da2adbcba2c46958e61fa2fb4042cd7bc5816a710195b016117c18382615449565b600081600111158015613ae0575060015482105b8015610fa8575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b0316331461260b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611141565b600082613bc885846140b5565b14949350505050565b611626828260405180602001604052806000815250614102565b6001600160a01b0381166000908152600b6020526040902054613c205760405162461bcd60e51b8152600401611141906155a9565b6000613c2b82612d4f565b905080600003613c4d5760405162461bcd60e51b8152600401611141906155ef565b80600a6000828254613c5f919061518d565b90915550506001600160a01b0382166000908152600c60205260409020805482019055613c8c828261410f565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b61110c838383614228565b61110c83838360405180602001604052806000815250613054565b611506816000614401565b6001600160a01b0381166000908152600b6020526040902054613d385760405162461bcd60e51b8152600401611141906155a9565b6000613d4483836131b3565b905080600003613d665760405162461bcd60e51b8152600401611141906155ef565b6001600160a01b0383166000908152600e602052604081208054839290613d8e90849061518d565b90915550506001600160a01b038084166000908152600f60209081526040808320938616835292905220805482019055613dc98383836145b5565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b60408051606081018252600080825260208201819052918101919091528180600111158015613e44575060015481105b15613f2257600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290613f205780516001600160a01b031615613eb7579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613f1b579392505050565b613eb7565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384166000908152600b602052604081205490918391613fb5908661527f565b613fbf919061563a565b613276919061517a565b613fd4848484614228565b6001600160a01b0383163b15158015613ff65750613ff484848484614607565b155b156117c1576040516368d2bf6b60e11b815260040160405180910390fd5b6060601b8054610fbd90615100565b60606000614030836146f2565b60010190506000816001600160401b0381111561404f5761404f614d90565b6040519080825280601f01601f191660200182016040528015614079576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461408357509392505050565b600081815b84518110156140fa576140e6828683815181106140d9576140d9615399565b60200260200101516147ca565b9150806140f281615318565b9150506140ba565b509392505050565b61110c83838360016147f6565b8047101561415f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611141565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146141ac576040519150601f19603f3d011682016040523d82523d6000602084013e6141b1565b606091505b505090508061110c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611141565b600061423382613e14565b9050836001600160a01b031681600001516001600160a01b03161461426a5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061428857506142888533610e36565b806142a357503361429884611040565b6001600160a01b0316145b9050806142c357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166142ea57604051633a954ecd60e21b815260040160405180910390fd5b6142f660008487613b05565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143ca5760015482146143ca57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206156a983398151915260405160405180910390a46131ac565b600061440c83613e14565b80519091508215614472576000336001600160a01b038316148061443557506144358233610e36565b8061445057503361444586611040565b6001600160a01b0316145b90508061447057604051632ce44b5f60e11b815260040160405180910390fd5b505b61447e60008583613b05565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661457c57600154821461457c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206156a9833981519152908390a450506002805460010190555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261110c9084906149a3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061463c90339089908890889060040161564e565b6020604051808303816000875af1925050508015614677575060408051601f3d908101601f191682019092526146749181019061568b565b60015b6146d5573d8080156146a5576040519150601f19603f3d011682016040523d82523d6000602084013e6146aa565b606091505b5080516000036146cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106147315772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061475d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061477b57662386f26fc10000830492506010015b6305f5e1008310614793576305f5e100830492506008015b61271083106147a757612710830492506004015b606483106147b9576064830492506002015b600a8310610fa85760010192915050565b60008183106147e6576000828152602084905260409020612d90565b5060009182526020526040902090565b6001546001600160a01b03851661481f57604051622e076360e81b815260040160405180910390fd5b836000036148405760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156148f157506001600160a01b0387163b15155b15614967575b60405182906001600160a01b038916906000906000805160206156a9833981519152908290a46149306000888480600101955088614607565b61494d576040516368d2bf6b60e11b815260040160405180910390fd5b8082036148f757826001541461496257600080fd5b61499a565b5b6040516001830192906001600160a01b038916906000906000805160206156a9833981519152908290a4808203614968575b506001556131ac565b60006149f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614a759092919063ffffffff16565b80519091501561110c5780806020019051810190614a16919061537c565b61110c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401611141565b6060613276848460008585600080866001600160a01b03168587604051614a9c91906153c6565b60006040518083038185875af1925050503d8060008114614ad9576040519150601f19603f3d011682016040523d82523d6000602084013e614ade565b606091505b5091509150614aef87838387614afa565b979650505050505050565b60608315614b69578251600003614b62576001600160a01b0385163b614b625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401611141565b5081613276565b6132768383815115614b7e5781518083602001fd5b8060405162461bcd60e51b81526004016111419190614c1b565b6001600160e01b03198116811461150657600080fd5b600060208284031215614bc057600080fd5b8135612d9081614b98565b60005b83811015614be6578181015183820152602001614bce565b50506000910152565b60008151808452614c07816020860160208601614bcb565b601f01601f19169290920160200192915050565b602081526000612d906020830184614bef565b600060208284031215614c4057600080fd5b5035919050565b6001600160a01b038116811461150657600080fd5b60008060408385031215614c6f57600080fd5b8235614c7a81614c47565b946020939093013593505050565b600080600060408486031215614c9d57600080fd5b83356001600160401b0380821115614cb457600080fd5b818601915086601f830112614cc857600080fd5b813581811115614cd757600080fd5b8760208260051b8501011115614cec57600080fd5b6020928301989097509590910135949350505050565b600060208284031215614d1457600080fd5b8135612d9081614c47565b60008060408385031215614d3257600080fd5b823591506020830135614d4481614c47565b809150509250929050565b600080600060608486031215614d6457600080fd5b8335614d6f81614c47565b92506020840135614d7f81614c47565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614dce57614dce614d90565b604052919050565b60006001600160401b03831115614def57614def614d90565b614e02601f8401601f1916602001614da6565b9050828152838383011115614e1657600080fd5b828260208301376000602084830101529392505050565b600082601f830112614e3e57600080fd5b612d9083833560208501614dd6565b600060208284031215614e5f57600080fd5b81356001600160401b03811115614e7557600080fd5b61327684828501614e2d565b60008060408385031215614e9457600080fd5b8235614e9f81614c47565b91506020830135614d4481614c47565b801515811461150657600080fd5b600080600060608486031215614ed257600080fd5b833592506020840135614ee481614eaf565b915060408401356001600160401b03811115614eff57600080fd5b614f0b86828701614e2d565b9150509250925092565b60008060408385031215614f2857600080fd5b8235614f3381614c47565b91506020830135614d4481614eaf565b600080600060608486031215614f5857600080fd5b8335614f6381614c47565b95602085013595506040909401359392505050565b60008060008060808587031215614f8e57600080fd5b8435614f9981614c47565b93506020850135614fa981614c47565b92506040850135915060608501356001600160401b03811115614fcb57600080fd5b8501601f81018713614fdc57600080fd5b614feb87823560208401614dd6565b91505092959194509250565b6000602080838503121561500a57600080fd5b82356001600160401b038082111561502157600080fd5b818501915085601f83011261503557600080fd5b81358181111561504757615047614d90565b8060051b9150615058848301614da6565b818152918301840191848101908884111561507257600080fd5b938501935b8385101561509c578435925061508c83614c47565b8282529385019390850190615077565b98975050505050505050565b6000806000606084860312156150bd57600080fd5b83356150c881614c47565b925060208401356001600160401b038111156150e357600080fd5b6150ef86828701614e2d565b925050604084013590509250925092565b600181811c9082168061511457607f821691505b6020821081036124cf57634e487b7160e01b600052602260045260246000fd5b60208082526016908201527522b93937b91d10273790393296b2b73a3930b731bc9760511b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610fa857610fa8615164565b80820180821115610fa857610fa8615164565b60208082526028908201527f4572726f723a20507572636861736520776f756c6420657863656564206d61786040820152671039bab838363c9760c11b606082015260800190565b60208082526029908201527f4572726f723a20596f7520776f756c6420657863656564207468652077616c6c60408201526832ba103634b6b4ba1760b91b606082015260800190565b6020808252602e908201527f4572726f723a20596f7520776f756c642065786365656420746865207472616e60408201526d39b0b1ba34b7b7103634b6b4ba1760911b606082015260800190565b8082028115828204841417610fa857610fa8615164565b6020808252601d908201527f4572726f723a204e6f7420656e6f7567682065746865722073656e742e000000604082015260600190565b6020808252602b908201527f4572726f723a204c6576656c2033282b292061646d696e20636c656172616e6360408201526a32903932b8bab4b932b21760a91b606082015260800190565b60006001820161532a5761532a615164565b5060010190565b6020808252602b908201527f4572726f723a204c6576656c2032282b292061646d696e20636c656172616e6360408201526a32903932b8bab4b932b21760a91b606082015260800190565b60006020828403121561538e57600080fd5b8151612d9081614eaf565b634e487b7160e01b600052603260045260246000fd5b6000816153be576153be615164565b506000190190565b600082516153d8818460208701614bcb565b9190910192915050565b6000602082840312156153f457600080fd5b5051919050565b601f82111561110c57600081815260208120601f850160051c810160208610156154225750805b601f850160051c820191505b818110156154415782815560010161542e565b505050505050565b81516001600160401b0381111561546257615462614d90565b615476816154708454615100565b846153fb565b602080601f8311600181146154ab57600084156154935750858301515b600019600386901b1c1916600185901b178555615441565b600085815260208120601f198616915b828110156154da578886015182559484019460019091019084016154bb565b50858210156154f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f4572726f723a20416666696c69617465207265666572656e6365206c696b656c6040820152673c903bb937b7339760c11b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261557557615575615550565b500690565b6000835161558c818460208801614bcb565b8351908301906155a0818360208801614bcb565b01949350505050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60008261564957615649615550565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061568190830184614bef565b9695505050505050565b60006020828403121561569d57600080fd5b8151612d9081614b9856feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885a2646970667358221220d71028510d3cde8d95800ba44e088c5895189d63d774c060c9cd3b85064f917364736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000340a1679b39ccb074e4128834a9cf575425bcc0f2811d05debac2f78c73376c7162000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000691dd7b83f32d199aa2593c308b20dda91c67d5e000000000000000000000000a222c1174132309d98b891dcb5c93f09aee23b96000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f000000000000000000000000a049675f410212cc89534358cbaec6cc4a0c71cc000000000000000000000000b648c3e65c5e0221988fc0bc2a6731aa84c3420f00000000000000000000000097481ac52d0915a47cbadcb43055daa1ba8641af000000000000000000000000f04227bf3401aacf28ec87596e59807d25f162aa000000000000000000000000de66923e1cd333c8c6d660daec6ccbf897ca8128000000000000000000000000256f7e34c0302f8a93bb74de6a7196c080f7b7f60000000000000000000000001184c8eb78d538ba3f60ce7599686d5481ff8515000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000003fc00000000000000000000000000000000000000000000000000000000000001d000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000ba20000000000000000000000000000000000000000000000000000000000000cec000000000000000000000000000000000000000000000000000000000000014a0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000002260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000600000000000000000000000065aaa7aa9931dbdc03db79ca1b58f99a0ac1a001000000000000000000000000a126a2a819b3456b04cf36c820a80f56fd24dff8000000000000000000000000db85c683c4e4a2555e0e93368fc003f4885014c3000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f000000000000000000000000925e13a5ab1d9d6e36bd2d3af9da3ac14f1693b4000000000000000000000000e215a87ce35b40a56643838bb9ea16293cc1f1de
-----Decoded View---------------
Arg [0] : distro (address[]): 0x691dd7b83f32d199aa2593c308B20DDA91C67D5E,0xA222c1174132309D98B891dCB5c93f09aEE23b96,0x623FdB678C500bD3451C02D791f48F1DD86f238F,0xA049675F410212CC89534358cbAec6cc4A0C71CC,0xb648c3E65C5e0221988fc0bC2A6731Aa84C3420f,0x97481Ac52d0915A47cbAdCB43055daA1Ba8641aF,0xf04227BF3401aAcF28eC87596E59807D25F162aA,0xde66923E1Cd333C8C6d660dAEc6CCbF897CA8128,0x256F7e34C0302F8a93BB74DE6A7196C080f7b7F6,0x1184c8eb78d538BA3F60cE7599686d5481ff8515
Arg [1] : distro_shares (uint256[]): 1020,464,100,2978,3308,330,600,600,550,50
Arg [2] : teamclaim (address[]): 0x65aaA7Aa9931dbdc03dB79Ca1b58F99A0aC1a001,0xa126a2A819b3456B04cf36C820A80F56fd24DFF8,0xDb85C683c4E4a2555e0e93368Fc003f4885014c3,0x623FdB678C500bD3451C02D791f48F1DD86f238F,0x925e13a5aB1d9D6e36Bd2D3af9DA3aC14F1693B4,0xE215a87CE35b40A56643838BB9EA16293cC1f1DE
Arg [3] : _merkleRoot (bytes32): 0xa1679b39ccb074e4128834a9cf575425bcc0f2811d05debac2f78c73376c7162
-----Encoded View---------------
33 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [3] : a1679b39ccb074e4128834a9cf575425bcc0f2811d05debac2f78c73376c7162
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 000000000000000000000000691dd7b83f32d199aa2593c308b20dda91c67d5e
Arg [6] : 000000000000000000000000a222c1174132309d98b891dcb5c93f09aee23b96
Arg [7] : 000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f
Arg [8] : 000000000000000000000000a049675f410212cc89534358cbaec6cc4a0c71cc
Arg [9] : 000000000000000000000000b648c3e65c5e0221988fc0bc2a6731aa84c3420f
Arg [10] : 00000000000000000000000097481ac52d0915a47cbadcb43055daa1ba8641af
Arg [11] : 000000000000000000000000f04227bf3401aacf28ec87596e59807d25f162aa
Arg [12] : 000000000000000000000000de66923e1cd333c8c6d660daec6ccbf897ca8128
Arg [13] : 000000000000000000000000256f7e34c0302f8a93bb74de6a7196c080f7b7f6
Arg [14] : 0000000000000000000000001184c8eb78d538ba3f60ce7599686d5481ff8515
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [16] : 00000000000000000000000000000000000000000000000000000000000003fc
Arg [17] : 00000000000000000000000000000000000000000000000000000000000001d0
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000ba2
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000cec
Arg [21] : 000000000000000000000000000000000000000000000000000000000000014a
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000226
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [27] : 00000000000000000000000065aaa7aa9931dbdc03db79ca1b58f99a0ac1a001
Arg [28] : 000000000000000000000000a126a2a819b3456b04cf36c820a80f56fd24dff8
Arg [29] : 000000000000000000000000db85c683c4e4a2555e0e93368fc003f4885014c3
Arg [30] : 000000000000000000000000623fdb678c500bd3451c02d791f48f1dd86f238f
Arg [31] : 000000000000000000000000925e13a5ab1d9d6e36bd2d3af9da3ac14f1693b4
Arg [32] : 000000000000000000000000e215a87ce35b40a56643838bb9ea16293cc1f1de
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,267.2 | 0.1 | $326.72 |
Loading...
Loading
[ 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.