Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
500 LST
Holders
127
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LSTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheCollection
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import {IERC721} from "openzeppelin/token/ERC721/IERC721.sol"; import {ERC721A} from "ERC721A/ERC721A.sol"; import {Owned} from "solmate/auth/Owned.sol"; import {MerkleProof} from "openzeppelin/utils/cryptography/MerkleProof.sol"; import {Strings} from "openzeppelin/utils/Strings.sol"; import "./Banker.sol"; error InvalidFunds(); error InvalidQuantity(); error InvalidProof(); error InvalidToken(); error MaxQuantityReached(); error MaxQuantityPerTxReached(); error NotEnoughSupply(); error SaleIsNotOpen(); error ContractPaused(); enum Rank { GM, AGM, FO, Gold } enum Phase { Closed, One, Two } enum Sale { Allowlist, Public } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract TheCollection is Owned, ERC721A, Banker { using Strings for uint256; event RankedMint(Rank indexed rank, address indexed account, uint256 startId, uint256 quantity); struct CountTracker { bool phase1ExternalClaim; uint32 phase1Allowlist; uint32 phase1Public; uint32 phase2DraftClaim; uint32 phase2Allowlist; uint32 phase2Public; } uint16 public constant MaxMintPhase1Allowlist = 1; uint16 public constant MaxMintPhase1Total = 5; uint16 public constant MaxMintPhase2Allowlist = 2; uint256 public draftPriceGM = 1 ether; uint256 public draftPriceAGM = 0.5 ether; uint256 public draftPriceFO = 0.19 ether; uint256 public phase2AllowlistPrice = 0.1 ether; uint256 public phase2PublicPrice = 0.15 ether; uint16 public totalSupplyLimit = 6699; /// @dev Total remaining supply of ranks (after external presale has ended) to be minted during phase1 uint16 public mintableTotalSupplyGM; uint16 public mintableTotalSupplyAGM; uint16 public mintableTotalSupplyFO; /// @dev Same as for phase 1, but modifiable by the owner uint16 public maxMintPhase2Total = 10; /// @dev Keep under 10 mint per tx to avoid running into issues with OpenSea + ERC721A /// Modifiable by the owner uint16 public maxMintPerTx = 9; /// @dev Totals of mints for each rank in phase 1. /// Doesn't take in account claims from external presale uint16 public totalMintedGM; uint16 public totalMintedAGM; uint16 public totalMintedFO; /// @dev Must be set by admin once phase 1 has ended. /// It's used to differenciate between revealed tokens of phase 1 and unrevealed tokens of phase 2. /// See {tokenURI(uint256)}. uint16 public phase1EndTokenId; bool public phase1Revealed; bool public phase2Revealed; Phase public phase; Sale public sale; bool public paused; /// @dev Not required to be hosted on IPFS and doesn't change between mainnet and testnets. /// Except for the royalties recipient address, which will always point to the mainnet wallet. string public contractUri = "https://lipsweater.io/collection/collection-metadata.json"; /// @dev Not required to be hosted on IPFS and doesn't change between mainnet and testnets string public unrevealedUri = "ipfs://QmNQyexUM4H2ohxqm91HvFfqYP4hoRqKNE4YSR4BKSqBQC"; string public phase1RevealedBaseUri; string public phase2RevealedBaseUri; mapping(address => CountTracker) _counters; /// @dev Accounts from external presale before phase1, that can claim `AGM quantity` and `FO quantity` /// Structure is <address, AGM quantity, FO quantity> bytes32 public phase1ExternalClaimsMerkle; /// @dev Allowlist of accounts for phase1 bytes32 public phase1AllowlistMerkle; /// @dev Accounts from phase1 that can claim up to `total claimable quantity` depending on the ranks they own /// Structure is <address, total claimable quantity> bytes32 public phase2DraftClaimsMerkle; /// @dev Allowlist of accounts for phase2 bytes32 public phase2AllowlistMerkle; /// @dev Addresses of marketplaces contracts for pre-approuved transfers. /// Modifiable by the owner address[] public approvedProxies; constructor( uint16 supplyGM, uint16 supplyAGM, uint16 supplyFO, address owner, address vault, uint256 vaultGoldsQuantity, address[] memory airdropAccountsGold, address[] memory proxies, Payee memory teamPayee, Payee memory devPayee, Payee memory royalties ) Owned(owner) ERC721A("Lipsweater", "LST") Banker(teamPayee, devPayee, royalties) { mintableTotalSupplyGM = supplyGM; mintableTotalSupplyAGM = supplyAGM; mintableTotalSupplyFO = supplyFO; approvedProxies = proxies; // Cheaper batch airdrop on contract creation // We don't emit `RankedBatchMint` as in airdropXXX() because those accounts and associated ids are known (ids from 1 to length) for (uint256 i = 0; i < airdropAccountsGold.length; ++i) { _mintERC2309(airdropAccountsGold[i], 1); } if (vaultGoldsQuantity > 0) { _mintERC2309(vault, vaultGoldsQuantity); } } /// COLLECTION SETTINGS function _startTokenId() internal pure override returns (uint256) { return 1; } /// @dev See https://docs.opensea.io/docs/contract-level-metadata function contractURI() public view returns (string memory) { return contractUri; } /// @dev Override default behavior to handle an unrevealed phase where all token URIs point to the same image. /// The format of URI is: {BASE}{id} which has following implications: /// - BASE must have a trailing slash; /// - URI must not have an extension function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert InvalidToken(); if (phase1Revealed) { if (tokenId <= phase1EndTokenId) { return string(abi.encodePacked(phase1RevealedBaseUri, tokenId.toString())); } else if (phase2Revealed) { return string(abi.encodePacked(phase2RevealedBaseUri, tokenId.toString())); } } return unrevealedUri; } /// PHASE 1 (= draft) /// Claim free-mint for users who reserved their AGMs and FOs using the external presale. /// Each user can only claim once, so it needs to claim all available tokens at once. /// /// Can be claimed at any point during phase 1. function claimFromExternalPresale( uint256 quantityAGM, uint256 quantityFO, bytes32[] calldata proof ) external isPhase(Phase.One) { // The leaf must match encoded form of <address, quantityAGM, quantityFO> bytes32 leaf = keccak256(abi.encodePacked(msg.sender, quantityAGM, quantityFO)); if (!MerkleProof.verifyCalldata(proof, phase1ExternalClaimsMerkle, leaf)) { revert InvalidProof(); } if (_counters[msg.sender].phase1ExternalClaim) { revert MaxQuantityReached(); } _counters[msg.sender].phase1ExternalClaim = true; /// Do not increment totalMintedXXX, as those are externally presold NFTs before contract creation, /// thus the contract will already have adjusted Supply to match those. if (quantityAGM > 0) { _mintRanked(Rank.AGM, msg.sender, quantityAGM); } if (quantityFO > 0) { _mintRanked(Rank.FO, msg.sender, quantityFO); } } /// Mint of phase 1 for allowlisted users. /// No difference in price with the public mint. /// Quantity is fixed to `MaxMintPhase1Allowlist`, regardless of the choosen rank. /// User can mint up to `MaxMintPhase1Total` tokens in total (not including claims). /// /// Can be minted only during allowlist sale of phase 1. function mintDraftAllowlist(bytes32[] calldata proof) external payable isPhase(Phase.One) isSale(Sale.Allowlist) { if ( !MerkleProof.verifyCalldata( proof, phase1AllowlistMerkle, keccak256(abi.encodePacked(msg.sender)) ) ) { revert InvalidProof(); } CountTracker memory tracker = _counters[msg.sender]; if ( tracker.phase1Allowlist >= MaxMintPhase1Allowlist || (tracker.phase1Public + MaxMintPhase1Allowlist > MaxMintPhase1Total) ) { revert MaxQuantityReached(); } _counters[msg.sender].phase1Allowlist = MaxMintPhase1Allowlist; _mintDraft(msg.sender, MaxMintPhase1Allowlist); } /// Public mint of phase 1. /// Until supplies of GM, AGM and FO run out. /// /// User can mint up to `MaxMintPhase1Total` tokens in total (not including claims). /// /// Token is minted and transfered `to` account. /// Expected to be called by USDT API. /// /// Can be minted only during public sale of phase 1. function crossmintDraft(address to, uint16 quantity) external payable isPhase(Phase.One) isSale(Sale.Public) { CountTracker memory tracker = _counters[to]; if (tracker.phase1Allowlist + tracker.phase1Public + quantity > MaxMintPhase1Total) { revert MaxQuantityReached(); } _counters[to].phase1Public += quantity; _mintDraft(to, quantity); } function _mintDraft(address to, uint16 quantity) internal { if (msg.value == draftPriceGM * quantity) { if (quantity + totalMintedGM > mintableTotalSupplyGM) { revert NotEnoughSupply(); } totalMintedGM += quantity; _mintRanked(Rank.GM, to, quantity); } else if (msg.value == draftPriceAGM * quantity) { if (quantity + totalMintedAGM > mintableTotalSupplyAGM) { revert NotEnoughSupply(); } totalMintedAGM += quantity; _mintRanked(Rank.AGM, to, quantity); } else if (msg.value == draftPriceFO * quantity) { if (quantity + totalMintedFO > mintableTotalSupplyFO) { revert NotEnoughSupply(); } totalMintedFO += quantity; _mintRanked(Rank.FO, to, quantity); } else { revert InvalidFunds(); } } function _mintRanked( Rank rank, address to, uint256 quantity ) internal { emit RankedMint(rank, to, _nextTokenId(), quantity); _mint(to, quantity); } /// PHASE 2 /// Claim free-mint for users who own ranked tokens from phase 1. /// User can claim as many time as they want, however they cannot exceed the total claimable quantity, /// which is defined off-chain when phase 1 is finished, based on what & how many ranks each user owns. /// /// Can be claimed at any point during phase 2, until total supply runs out. function claimFromDraft( uint32 quantity, uint256 totalClaimableQuantity, bytes32[] calldata proof ) external isPhase(Phase.Two) maxQuantityPerTxNotReached(quantity) totalSupplyNotReached(quantity) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender, totalClaimableQuantity)); if (!MerkleProof.verifyCalldata(proof, phase2DraftClaimsMerkle, leaf)) { revert InvalidProof(); } if (_counters[msg.sender].phase2DraftClaim + quantity > totalClaimableQuantity) { revert MaxQuantityReached(); } _counters[msg.sender].phase2DraftClaim += quantity; _mint(msg.sender, quantity); } /// Mint of phase 2 for allowlisted users. /// Price is cheaper than the public mint. /// Total minted quantity in allowlist cannot exceed `MaxMintPhase2Allowlist`. /// User can mint up to `maxMintPhase2Total` tokens in total (not including claims). /// /// Can be minted only during allowlist sale of phase 2. function mintPhase2Allowlist(uint32 quantity, bytes32[] calldata proof) external payable isPhase(Phase.Two) isSale(Sale.Allowlist) totalSupplyNotReached(quantity) withProperFunds(quantity, phase2AllowlistPrice) { if ( !MerkleProof.verifyCalldata( proof, phase2AllowlistMerkle, keccak256(abi.encodePacked(msg.sender)) ) ) { revert InvalidProof(); } CountTracker memory tracker = _counters[msg.sender]; if ( tracker.phase2Allowlist + quantity > MaxMintPhase2Allowlist || (tracker.phase2Allowlist + tracker.phase2Public + quantity > maxMintPhase2Total) ) { revert MaxQuantityReached(); } _counters[msg.sender].phase2Allowlist += quantity; _mint(msg.sender, quantity); } /// Public cross-mint of phase 2. /// Until total supply runs out. /// /// User can mint up to `maxMintPhase2Total` tokens in total (not including claims). /// /// Token is minted and transfered `to` account. /// Expected to be called by USDT API. /// /// Can be minted only during public sale of phase 2. function crossmintPhase2(address to, uint32 quantity) external payable isPhase(Phase.Two) isSale(Sale.Public) maxQuantityPerTxNotReached(quantity) totalSupplyNotReached(quantity) withProperFunds(quantity, phase2PublicPrice) { CountTracker memory tracker = _counters[to]; if (tracker.phase2Allowlist + tracker.phase2Public + quantity > maxMintPhase2Total) { revert MaxQuantityReached(); } _counters[to].phase2Public += quantity; _mint(to, quantity); } /// AIR DROP /// Airdrop 1 or more GMs to provided accounts /// `accounts` length must match `quantities` length /// @dev Owner should respect the `maxQuantityPerTx` limit, we don't enforce it as it's impractical and gas costly function airdropGM(address[] memory accounts, uint256[] memory quantities) external onlyOwner { if (accounts.length != quantities.length) { revert(); } for (uint256 i = 0; i < accounts.length; ++i) { _mintRanked(Rank.GM, accounts[i], quantities[i]); } } /// Airdrop 1 Gold to each provided accounts /// @dev Limited to `maxQuantityPerTx` function airdropGold(address[] memory accounts) external onlyOwner maxQuantityPerTxNotReached(accounts.length) { for (uint256 i = 0; i < accounts.length; ++i) { _mintRanked(Rank.Gold, accounts[i], 1); } } /// Mint and transfer `quantity` of golds to `vault` /// @dev Limited to `maxQuantityPerTx` function airdropGoldsToVault(address vault, uint256 quantity) external onlyOwner maxQuantityPerTxNotReached(quantity) { _mintRanked(Rank.Gold, vault, quantity); } /// GETTERS function getCountTracker(address account) external view returns (CountTracker memory) { return _counters[account]; } function totalMinted() external view returns (uint256) { return _totalMinted(); } /// ADMIN function setStatus(Phase phase_, Sale sale_) external onlyOwner { phase = phase_; sale = sale_; } /// Reveal the phase 1 and provide the real URI of the IPFS folder /// @param revealed allowing to unreveal in case you revealed too soon by mistake /// @param uri pointing to the metadata folder hosted on IPFS. **Don't forget the trailing slash!** /// @param endTokenId the last token id minted in phase 1 function setPhase1Reveal( bool revealed, string memory uri, uint16 endTokenId ) external onlyOwner { phase1Revealed = revealed; phase1RevealedBaseUri = uri; phase1EndTokenId = endTokenId; } /// @dev Allows to only update base URI when partial phase 1 data is revealed, without having to provide the same values for other params. function setPhase1RevealedUri(string memory uri) external onlyOwner { phase1RevealedBaseUri = uri; } /// Reveal the phase 2 and provide the real URI of the IPFS folder /// @param revealed allowing to unreveal in case you revealed too soon by mistake /// @param uri pointing to the metadata folder hosted on IPFS. **Don't forget the trailing slash!** function setPhase2Reveal(bool revealed, string memory uri) external onlyOwner { phase2Revealed = revealed; phase2RevealedBaseUri = uri; } function setMaxMintPhase2Total(uint16 total) external onlyOwner { maxMintPhase2Total = total; } function setMaxMintPerTx(uint16 value) external onlyOwner { maxMintPerTx = value; } function setPhase1ExternalClaimsMerkle(bytes32 root) external onlyOwner { phase1ExternalClaimsMerkle = root; } function setPhase1AllowlistMerkle(bytes32 root) external onlyOwner { phase1AllowlistMerkle = root; } function setPhase2DraftClaimsMerkle(bytes32 root) external onlyOwner { phase2DraftClaimsMerkle = root; } function setPhase2AllowlistMerkle(bytes32 root) external onlyOwner { phase2AllowlistMerkle = root; } function burn(uint256 tokenId) external onlyOwner { _burn(tokenId, true); } function setPaused(bool paused_) external onlyOwner { paused = paused_; } function setContractUri(string memory uri) external onlyOwner { contractUri = uri; } function setUnrevealedUri(string memory uri) external onlyOwner { unrevealedUri = uri; } function setApprovedProxies(address[] memory proxies) external onlyOwner { approvedProxies = proxies; } function setMintableTotalSupplyGM(uint16 total) external onlyOwner { mintableTotalSupplyGM = total; } function setMintableTotalSupplyAGM(uint16 total) external onlyOwner { mintableTotalSupplyAGM = total; } function setMintableTotalSupplyFO(uint16 total) external onlyOwner { mintableTotalSupplyFO = total; } function setTotalSupplyLimit(uint16 total) external onlyOwner { totalSupplyLimit = total; } function setDraftPriceGM(uint256 price) external onlyOwner { draftPriceGM = price; } function setDraftPriceAGM(uint256 price) external onlyOwner { draftPriceAGM = price; } function setDraftPriceFO(uint256 price) external onlyOwner { draftPriceFO = price; } function setPhase2AllowlistPrice(uint256 price) external onlyOwner { phase2AllowlistPrice = price; } function setPhase2PublicPrice(uint256 price) external onlyOwner { phase2PublicPrice = price; } /// PAUSABLE /// @dev Override to handle the pause state. No using OZ Pausable because it adds event logging which is not needed. /// See {ERC721A-_beforeTokenTransfers}. function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { super._beforeTokenTransfers(from, to, startTokenId, quantity); if (paused) revert ContractPaused(); } /// GASLESS PROXIES /// @dev Override to approve OpenSea and Rarible proxy contracts for gas-less trading function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { for (uint256 i = 0; i < approvedProxies.length; ++i) { ProxyRegistry proxyRegistry = ProxyRegistry(approvedProxies[i]); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } } return super.isApprovedForAll(owner, operator); } /// OVERRIDES /// @dev See {IERC165-supportsInterface}. function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, Banker) returns (bool) { return ERC721A.supportsInterface(interfaceId) || Banker.supportsInterface(interfaceId); } /// MODIFIERS modifier isPhase(Phase phase_) { if (phase != phase_) { revert SaleIsNotOpen(); } _; } modifier isSale(Sale sale_) { if (sale != sale_) { revert SaleIsNotOpen(); } _; } modifier totalSupplyNotReached(uint256 quantity) { if (_totalMinted() + quantity > totalSupplyLimit) { revert NotEnoughSupply(); } _; } modifier maxQuantityPerTxNotReached(uint256 quantity) { if (quantity > maxMintPerTx) { revert MaxQuantityPerTxReached(); } _; } modifier withProperFunds(uint256 quantity, uint256 price) { if (msg.value != quantity * price) { revert InvalidFunds(); } _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] calldata leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] calldata leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; import {Owned} from "solmate/auth/Owned.sol"; import {ReentrancyGuard} from "solmate/utils/ReentrancyGuard.sol"; import {IERC165} from "openzeppelin/utils/introspection/IERC165.sol"; import {IERC2981} from "openzeppelin/interfaces/IERC2981.sol"; error InvalidPayees(); error InvalidAccount(); error NoFundsAvailable(); error WithdrawalFailed(); struct Payee { address payable account; uint64 shares; } abstract contract Banker is IERC2981, Owned, ReentrancyGuard { uint256 constant TOTAL_SHARES = 10_000; address payable _teamAccount; uint64 _teamShares; address payable _devAccount; uint64 _devShares; address payable _royaltiesAccount; uint64 _royalties; constructor( Payee memory team, Payee memory dev, Payee memory royalties ) { if ((team.shares + dev.shares != TOTAL_SHARES) || royalties.shares > TOTAL_SHARES) { revert InvalidPayees(); } _teamAccount = team.account; _teamShares = team.shares; _devAccount = dev.account; _devShares = dev.shares; _royaltiesAccount = royalties.account; _royalties = royalties.shares; } function withdraw() external nonReentrant { if (address(this).balance < 10_000) { revert NoFundsAvailable(); } // Shares are verified in constructor to accumulate to 10_000, // the possibility of an overflow is unrealistic uint256 devFunds; uint256 teamFunds; unchecked { devFunds = (address(this).balance * _devShares) / TOTAL_SHARES; teamFunds = (address(this).balance * _teamShares) / TOTAL_SHARES; } /// Transfer the amount to the account (bool devSuccess, ) = _devAccount.call{value: devFunds}(""); (bool teamSuccess, ) = _teamAccount.call{value: teamFunds}(""); if (!devSuccess || !teamSuccess) revert WithdrawalFailed(); } /// @inheritdoc IERC2981 function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { return (_royaltiesAccount, (_salePrice * _royalties) / TOTAL_SHARES); } /// ADMIN function setDevAccount(address payable account) external onlyOwner { _devAccount = account; } function setTeamAccount(address payable account) external onlyOwner { _teamAccount = account; } function setRoyaltiesAccount(address payable account) external onlyOwner { _royaltiesAccount = account; } function setShares(uint64 team, uint64 dev) external onlyOwner { if (team + dev != TOTAL_SHARES) { revert InvalidPayees(); } _teamShares = team; _devShares = dev; } function setRoyalties(uint64 royalties) external onlyOwner { if (royalties > TOTAL_SHARES) { revert InvalidPayees(); } _royalties = royalties; } /// @dev See {IERC165-supportsInterface}. function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Gas optimized reentrancy protection for smart contracts. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/ReentrancyGuard.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol) abstract contract ReentrancyGuard { uint256 private locked = 1; modifier nonReentrant() virtual { require(locked == 1, "REENTRANCY"); locked = 2; _; locked = 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "remappings": [ "ERC721A/=lib/ERC721A/contracts/", "ds-test/=lib/solmate/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "script/=script/", "solmate/=lib/solmate/src/", "src/=src/", "test/=test/", "src/=src/", "test/=test/", "script/=script/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint16","name":"supplyGM","type":"uint16"},{"internalType":"uint16","name":"supplyAGM","type":"uint16"},{"internalType":"uint16","name":"supplyFO","type":"uint16"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"vaultGoldsQuantity","type":"uint256"},{"internalType":"address[]","name":"airdropAccountsGold","type":"address[]"},{"internalType":"address[]","name":"proxies","type":"address[]"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint64","name":"shares","type":"uint64"}],"internalType":"struct Payee","name":"teamPayee","type":"tuple"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint64","name":"shares","type":"uint64"}],"internalType":"struct Payee","name":"devPayee","type":"tuple"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint64","name":"shares","type":"uint64"}],"internalType":"struct Payee","name":"royalties","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InvalidFunds","type":"error"},{"inputs":[],"name":"InvalidPayees","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"MaxQuantityPerTxReached","type":"error"},{"inputs":[],"name":"MaxQuantityReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoFundsAvailable","type":"error"},{"inputs":[],"name":"NotEnoughSupply","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleIsNotOpen","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum Rank","name":"rank","type":"uint8"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"startId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"RankedMint","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":"MaxMintPhase1Allowlist","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxMintPhase1Total","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxMintPhase2Allowlist","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"airdropGM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"airdropGold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdropGoldsToVault","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":"uint256","name":"","type":"uint256"}],"name":"approvedProxies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint256","name":"totalClaimableQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimFromDraft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantityAGM","type":"uint256"},{"internalType":"uint256","name":"quantityFO","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimFromExternalPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"crossmintDraft","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"quantity","type":"uint32"}],"name":"crossmintPhase2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"draftPriceAGM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"draftPriceFO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"draftPriceGM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"}],"name":"getCountTracker","outputs":[{"components":[{"internalType":"bool","name":"phase1ExternalClaim","type":"bool"},{"internalType":"uint32","name":"phase1Allowlist","type":"uint32"},{"internalType":"uint32","name":"phase1Public","type":"uint32"},{"internalType":"uint32","name":"phase2DraftClaim","type":"uint32"},{"internalType":"uint32","name":"phase2Allowlist","type":"uint32"},{"internalType":"uint32","name":"phase2Public","type":"uint32"}],"internalType":"struct TheCollection.CountTracker","name":"","type":"tuple"}],"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":"maxMintPerTx","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPhase2Total","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintDraftAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPhase2Allowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintableTotalSupplyAGM","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintableTotalSupplyFO","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintableTotalSupplyGM","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum Phase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1AllowlistMerkle","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1EndTokenId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1ExternalClaimsMerkle","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1Revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1RevealedBaseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2AllowlistMerkle","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2AllowlistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2DraftClaimsMerkle","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2PublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2Revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2RevealedBaseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale","outputs":[{"internalType":"enum Sale","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"proxies","type":"address[]"}],"name":"setApprovedProxies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"setDevAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setDraftPriceAGM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setDraftPriceFO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setDraftPriceGM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"value","type":"uint16"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"total","type":"uint16"}],"name":"setMaxMintPhase2Total","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"total","type":"uint16"}],"name":"setMintableTotalSupplyAGM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"total","type":"uint16"}],"name":"setMintableTotalSupplyFO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"total","type":"uint16"}],"name":"setMintableTotalSupplyGM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPhase1AllowlistMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPhase1ExternalClaimsMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint16","name":"endTokenId","type":"uint16"}],"name":"setPhase1Reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPhase1RevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPhase2AllowlistMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPhase2AllowlistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPhase2DraftClaimsMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPhase2PublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"string","name":"uri","type":"string"}],"name":"setPhase2Reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"royalties","type":"uint64"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"setRoyaltiesAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"team","type":"uint64"},{"internalType":"uint64","name":"dev","type":"uint64"}],"name":"setShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Phase","name":"phase_","type":"uint8"},{"internalType":"enum Sale","name":"sale_","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"setTeamAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"total","type":"uint16"}],"name":"setTotalSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setUnrevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedAGM","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedFO","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedGM","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"unrevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6001600955670de0b6b3a7640000600d556706f05b59d3b20000600e556702a303fe4b530000600f5567016345785d8a0000601055670214e8348c4f00006011556012805461ffff63ffffffff60401b0119166a09000a0000000000001a2b17905560e0604052603960808181529062004f2460a03980516200008b9160139160209091019062000543565b5060405180606001604052806035815260200162004eef603591398051620000bc9160149160209091019062000543565b50348015620000ca57600080fd5b5060405162004f5d38038062004f5d833981016040819052620000ed91620007b9565b604080518082018252600a8152692634b839bbb2b0ba32b960b11b6020808301919091528251808401845260038152621314d560ea1b91810191909152600080546001600160a01b0319166001600160a01b038d1690811782559351879487948794909390928f9291907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a35081516200019290600390602085019062000543565b508051620001a890600490602084019062000543565b506001805550506020808301519084015161271091620001c891620008e5565b6001600160401b0316141580620001ed575061271081602001516001600160401b0316115b156200020c57604051630582b8e160e31b815260040160405180910390fd5b8260000151600a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508260200151600a60146101000a8154816001600160401b0302191690836001600160401b031602179055508160000151600b60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508160200151600b60146101000a8154816001600160401b0302191690836001600160401b031602179055508060000151600c60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060200151600c60146101000a8154816001600160401b0302191690836001600160401b031602179055505050508a601260026101000a81548161ffff021916908361ffff16021790555089601260046101000a81548161ffff021916908361ffff16021790555088601260066101000a81548161ffff021916908361ffff16021790555083601c908051906020019062000380929190620005d2565b5060005b8551811015620003d057620003bd868281518110620003a757620003a762000913565b60200260200101516001620003f560201b60201c565b620003c88162000929565b905062000384565b508515620003e457620003e48787620003f5565b505050505050505050505062000981565b6001546001600160a01b0383166200041f57604051622e076360e81b815260040160405180910390fd5b81600003620004415760405163b562e8dd60e01b815260040160405180910390fd5b6113888211156200046557604051633db1f9af60e01b815260040160405180910390fd5b620004746000848385620004f8565b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600582528083206001871460e11b4260a01b17851790558051600019868801018152905185927fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d928290030190a40160015550565b62000511848484846200053d60201b620029151760201c565b601254600160c01b900460ff16156200053d5760405163ab35696f60e01b815260040160405180910390fd5b50505050565b828054620005519062000945565b90600052602060002090601f016020900481019282620005755760008555620005c0565b82601f106200059057805160ff1916838001178555620005c0565b82800160010185558215620005c0579182015b82811115620005c0578251825591602001919060010190620005a3565b50620005ce9291506200062a565b5090565b828054828255906000526020600020908101928215620005c0579160200282015b82811115620005c057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620005f3565b5b80821115620005ce57600081556001016200062b565b805161ffff811681146200065457600080fd5b919050565b6001600160a01b03811681146200066f57600080fd5b50565b8051620006548162000659565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620006a757600080fd5b815160206001600160401b0380831115620006c657620006c66200067f565b8260051b604051601f19603f83011681018181108482111715620006ee57620006ee6200067f565b6040529384528581018301938381019250878511156200070d57600080fd5b83870191505b8482101562000739578151620007298162000659565b8352918301919083019062000713565b979650505050505050565b6000604082840312156200075757600080fd5b604080519081016001600160401b0380821183831017156200077d576200077d6200067f565b8160405282935084519150620007938262000659565b9082526020840151908082168214620007ab57600080fd5b506020919091015292915050565b60008060008060008060008060008060006101c08c8e031215620007dc57600080fd5b620007e78c62000641565b9a50620007f760208d0162000641565b99506200080760408d0162000641565b98506200081760608d0162000672565b97506200082760808d0162000672565b60a08d015160c08e015191985096506001600160401b038111156200084b57600080fd5b620008598e828f0162000695565b60e08e015190965090506001600160401b038111156200087857600080fd5b620008868e828f0162000695565b945050620008998d6101008e0162000744565b9250620008ab8d6101408e0162000744565b9150620008bd8d6101808e0162000744565b90509295989b509295989b9093969950565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b038281168482168083038211156200090a576200090a620008cf565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016200093e576200093e620008cf565b5060010190565b600181811c908216806200095a57607f821691505b6020821081036200097b57634e487b7160e01b600052602260045260246000fd5b50919050565b61455e80620009916000396000f3fe6080604052600436106104eb5760003560e01c80636cb3c6c91161028c578063b6bd11d01161015a578063c87b56dd116100cc578063d9ecc97d11610085578063d9ecc97d1461103f578063da2af32114611061578063da45569214611081578063de7fcb1d14611097578063e8a3d485146110b9578063e985e9c5146110ce57600080fd5b8063c87b56dd14610f89578063ca8b49d214610fa9578063ccb4807b14610fc9578063ceb16b6b14610fe9578063d0a389c914610fff578063d267da401461101f57600080fd5b8063c07c7adc1161011e578063c07c7adc14610ee9578063c0e24d5e14610f09578063c0e8902214610f1e578063c4bf279214610f34578063c80709b714610f54578063c810ec9214610f7457600080fd5b8063b6bd11d014610e63578063b88d4fde14610e79578063bac21a2214610e99578063bfb1cead14610eb4578063c02c1bcd14610ed457600080fd5b8063951ea498116101fe578063a2309ff8116101b7578063a2309ff814610d9e578063aa0d42d114610db3578063acf7f57e14610dd3578063aecb9ca714610df5578063b1c9fe6e14610e15578063b6a7412114610e4357600080fd5b8063951ea49814610cf357806395d89b4114610d13578063981d1c7014610d285780639d96485e14610d485780639e94411614610d68578063a22cb46514610d7e57600080fd5b8063818423e111610250578063818423e114610c3c57806388d7dbfd14610c5c5780638da5cb5b14610c7e57806390fb5fb914610c9e578063947e9ca614610cbe57806394e3e31914610cd357600080fd5b80636cb3c6c914610aa75780636db1977d14610ac957806370a0823114610ade5780637fc7a60e14610afe578063806b19ec14610c2957600080fd5b80632da9b48d116103c95780634daf33b21161033b5780636352211e116102f45780636352211e146109d7578063646f4a9f146109f75780636728548814610a175780636ac52fd114610a395780636ad1fe0214610a595780636ae09a8a14610a8757600080fd5b80634daf33b21461092c57806357d572b51461093f57806358c45d861461095f5780635c975abb146109755780635ea33f0414610996578063627dff2c146109b657600080fd5b80633ccfd60b1161038d5780633ccfd60b1461087457806340d3be151461088957806342842e0e146108a957806342966c68146108c957806345d8258c146108e9578063488f87331461090c57600080fd5b80632da9b48d146107de57806334ea50d814610800578063371dd5c21461082057806338faeb2d146108415780633947b4cf1461086157600080fd5b80630de04d681161046257806318160ddd1161042657806318160ddd146106fa578063213631561461071757806323b872dd1461073f5780632458b9461461075f57806328c18af71461077f5780632a55205a1461079f57600080fd5b80630de04d68146106635780630ffa7da71461067957806312b640791461069957806313af4035146106ba57806316c38b3c146106da57600080fd5b806306fdde03116104b457806306fdde031461059e578063076020fe146105c0578063081812fc146105d6578063095ea7b31461060e5780630b97ce1c1461062e5780630cc148a31461064e57600080fd5b806280a2e2146104f057806301ffc9a714610512578063035fc7e81461054757806305ca62021461056b5780630625373d1461058b575b600080fd5b3480156104fc57600080fd5b5061051061050b3660046139c9565b6110ee565b005b34801561051e57600080fd5b5061053261052d3660046139f8565b611126565b60405190151581526020015b60405180910390f35b34801561055357600080fd5b5061055d600f5481565b60405190815260200161053e565b34801561057757600080fd5b50610510610586366004613ad2565b611146565b610510610599366004613b4a565b611187565b3480156105aa57600080fd5b506105b361134a565b60405161053e9190613be3565b3480156105cc57600080fd5b5061055d60105481565b3480156105e257600080fd5b506105f66105f13660046139c9565b6113dc565b6040516001600160a01b03909116815260200161053e565b34801561061a57600080fd5b50610510610629366004613c0b565b611420565b34801561063a57600080fd5b50610510610649366004613c37565b6114c0565b34801561065a57600080fd5b506105b361150c565b34801561066f57600080fd5b5061055d60115481565b34801561068557600080fd5b50610510610694366004613c6b565b61159a565b3480156106a557600080fd5b5060125461053290600160a81b900460ff1681565b3480156106c657600080fd5b506105106106d5366004613c37565b6115dc565b3480156106e657600080fd5b506105106106f5366004613c96565b611651565b34801561070657600080fd5b50600254600154036000190161055d565b34801561072357600080fd5b5061072c600281565b60405161ffff909116815260200161053e565b34801561074b57600080fd5b5061051061075a366004613cb1565b611699565b34801561076b57600080fd5b5061051061077a366004613c0b565b611849565b34801561078b57600080fd5b5061051061079a3660046139c9565b6118b4565b3480156107ab57600080fd5b506107bf6107ba366004613cf2565b6118e3565b604080516001600160a01b03909316835260208301919091520161053e565b3480156107ea57600080fd5b5060125461072c90600160301b900461ffff1681565b34801561080c57600080fd5b5061051061081b366004613dab565b61192a565b34801561082c57600080fd5b5060125461072c9062010000900461ffff1681565b34801561084d57600080fd5b5061051061085c366004613c6b565b611967565b61051061086f366004613df3565b6119b5565b34801561088057600080fd5b50610510611c22565b34801561089557600080fd5b506105106108a43660046139c9565b611ddc565b3480156108b557600080fd5b506105106108c4366004613cb1565b611e0b565b3480156108d557600080fd5b506105106108e43660046139c9565b611e26565b3480156108f557600080fd5b5060125461072c90640100000000900461ffff1681565b34801561091857600080fd5b506105106109273660046139c9565b611e5e565b61051061093a366004613e28565b611e8d565b34801561094b57600080fd5b5061051061095a3660046139c9565b61202a565b34801561096b57600080fd5b5061055d600d5481565b34801561098157600080fd5b5060125461053290600160c01b900460ff1681565b3480156109a257600080fd5b506105106109b1366004613c37565b612059565b3480156109c257600080fd5b5060125461053290600160a01b900460ff1681565b3480156109e357600080fd5b506105f66109f23660046139c9565b6120a5565b348015610a0357600080fd5b50610510610a123660046139c9565b6120b0565b348015610a2357600080fd5b5060125461072c90600160401b900461ffff1681565b348015610a4557600080fd5b50610510610a54366004613e54565b6120df565b348015610a6557600080fd5b50601254610a7a90600160b81b900460ff1681565b60405161053e9190613eb7565b348015610a9357600080fd5b50610510610aa2366004613ee8565b612133565b348015610ab357600080fd5b5060125461072c90600160801b900461ffff1681565b348015610ad557600080fd5b5061072c600181565b348015610aea57600080fd5b5061055d610af9366004613c37565b6121ce565b348015610b0a57600080fd5b50610bc9610b19366004613c37565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506001600160a01b0316600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff6101008204811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b830482166080820152600160881b9092041660a082015290565b60405161053e9190600060c082019050825115158252602083015163ffffffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a0850152505092915050565b610510610c37366004613f12565b61221c565b348015610c4857600080fd5b50610510610c573660046139c9565b61249f565b348015610c6857600080fd5b5060125461072c90600160701b900461ffff1681565b348015610c8a57600080fd5b506000546105f6906001600160a01b031681565b348015610caa57600080fd5b50610510610cb9366004613ad2565b6124ce565b348015610cca57600080fd5b506105b361250b565b348015610cdf57600080fd5b50610510610cee366004613f64565b612518565b348015610cff57600080fd5b50610510610d0e366004613fc1565b612591565b348015610d1f57600080fd5b506105b3612613565b348015610d3457600080fd5b50610510610d43366004613c6b565b612622565b348015610d5457600080fd5b50610510610d63366004613dab565b612671565b348015610d7457600080fd5b5061055d60195481565b348015610d8a57600080fd5b50610510610d99366004614002565b61270d565b348015610daa57600080fd5b5061055d6127a2565b348015610dbf57600080fd5b50610510610dce36600461402e565b6127b6565b348015610ddf57600080fd5b5060125461072c90600160901b900461ffff1681565b348015610e0157600080fd5b50610510610e10366004613c37565b612839565b348015610e2157600080fd5b50601254610e3690600160b01b900460ff1681565b60405161053e9190614049565b348015610e4f57600080fd5b50610510610e5e366004613c6b565b612885565b348015610e6f57600080fd5b5061055d601b5481565b348015610e8557600080fd5b50610510610e9436600461405d565b6128d1565b348015610ea557600080fd5b5060125461072c9061ffff1681565b348015610ec057600080fd5b50610510610ecf3660046140dc565b61291b565b348015610ee057600080fd5b506105b3612a36565b348015610ef557600080fd5b50610510610f04366004613c6b565b612a43565b348015610f1557600080fd5b506105b3612a8d565b348015610f2a57600080fd5b5061055d600e5481565b348015610f4057600080fd5b50610510610f4f36600461412e565b612a9a565b348015610f6057600080fd5b50610510610f6f366004613c6b565b612c71565b348015610f8057600080fd5b5061072c600581565b348015610f9557600080fd5b506105b3610fa43660046139c9565b612cc2565b348015610fb557600080fd5b506105f6610fc43660046139c9565b612df1565b348015610fd557600080fd5b50610510610fe4366004613ad2565b612e1b565b348015610ff557600080fd5b5061055d60185481565b34801561100b57600080fd5b5061051061101a3660046139c9565b612e58565b34801561102b57600080fd5b5061051061103a36600461416f565b612e87565b34801561104b57600080fd5b5060125461072c90600160601b900461ffff1681565b34801561106d57600080fd5b5061051061107c3660046139c9565b612f19565b34801561108d57600080fd5b5061055d601a5481565b3480156110a357600080fd5b5060125461072c90600160501b900461ffff1681565b3480156110c557600080fd5b506105b3612f48565b3480156110da57600080fd5b506105326110e9366004614229565b612f57565b6000546001600160a01b031633146111215760405162461bcd60e51b815260040161111890614257565b60405180910390fd5b601a55565b600061113182613054565b806111405750611140826130a2565b92915050565b6000546001600160a01b031633146111705760405162461bcd60e51b815260040161111890614257565b80516111839060159060208401906138db565b5050565b600180601254600160b01b900460ff1660028111156111a8576111a8613ea1565b146111c657604051637d89aa0d60e11b815260040160405180910390fd5b600080601254600160b81b900460ff1660018111156111e7576111e7613ea1565b1461120557604051637d89aa0d60e11b815260040160405180910390fd5b6019546040516001600160601b03193360601b1660208201526112469186918691906034015b604051602081830303815290604052805190602001206130d8565b611263576040516309bde33960e01b815260040160405180910390fd5b33600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff61010082048116938301849052600160281b8204811694830194909452600160481b810484166060830152600160681b810484166080830152600160881b900490921660a083015260011115806112fb575060408101516005906112f390600190614293565b63ffffffff16115b15611319576040516357ecdf3b60e01b815260040160405180910390fd5b336000818152601760205260409020805464ffffffff0019166101001790556113439060016130f2565b5050505050565b606060038054611359906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611385906142bb565b80156113d25780601f106113a7576101008083540402835291602001916113d2565b820191906000526020600020905b8154815290600101906020018083116113b557829003601f168201915b5050505050905090565b60006113e782613300565b611404576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061142b826120a5565b9050336001600160a01b03821614611464576114478133612f57565b611464576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146114ea5760405162461bcd60e51b815260040161111890614257565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60168054611519906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611545906142bb565b80156115925780601f1061156757610100808354040283529160200191611592565b820191906000526020600020905b81548152906001019060200180831161157557829003601f168201915b505050505081565b6000546001600160a01b031633146115c45760405162461bcd60e51b815260040161111890614257565b6012805461ffff191661ffff92909216919091179055565b6000546001600160a01b031633146116065760405162461bcd60e51b815260040161111890614257565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b6000546001600160a01b0316331461167b5760405162461bcd60e51b815260040161111890614257565b60128054911515600160c01b0260ff60c01b19909216919091179055565b60006116a482613335565b9050836001600160a01b0316816001600160a01b0316146116d75760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546117038187335b6001600160a01b039081169116811491141790565b61172e576117118633612f57565b61172e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661175557604051633a954ecd60e21b815260040160405180910390fd5b61176286868660016133a4565b801561176d57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036117ff576001840160008181526005602052604081205490036117fd5760015481146117fd5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b031633146118735760405162461bcd60e51b815260040161111890614257565b6012548190600160501b900461ffff168111156118a357604051630a28274b60e11b815260040160405180910390fd5b6118af600384846133cf565b505050565b6000546001600160a01b031633146118de5760405162461bcd60e51b815260040161111890614257565b600e55565b600c5460009081906001600160a01b038116906127109061191490600160a01b90046001600160401b0316866142f5565b61191e919061432a565b915091505b9250929050565b6000546001600160a01b031633146119545760405162461bcd60e51b815260040161111890614257565b805161118390601c90602084019061395f565b6000546001600160a01b031633146119915760405162461bcd60e51b815260040161111890614257565b6012805461ffff9092166401000000000265ffff0000000019909216919091179055565b600280601254600160b01b900460ff1660028111156119d6576119d6613ea1565b146119f457604051637d89aa0d60e11b815260040160405180910390fd5b600180601254600160b81b900460ff166001811115611a1557611a15613ea1565b14611a3357604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff841690600160501b900461ffff16811115611a6957604051630a28274b60e11b815260040160405180910390fd5b60125463ffffffff85169061ffff1681611a866001546000190190565b611a90919061433e565b1115611aaf576040516374d9e0b960e01b815260040160405180910390fd5b60115463ffffffff861690611ac481836142f5565b3414611ae3576040516394b5970f60e01b815260040160405180910390fd5b6001600160a01b038816600090815260176020908152604091829020825160c081018452905460ff811615158252610100810463ffffffff90811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b8304821660808201819052600160881b90930490911660a082018190526012549192600160401b90920461ffff16918a91611b8291614293565b611b8c9190614293565b63ffffffff161115611bb1576040516357ecdf3b60e01b815260040160405180910390fd5b6001600160a01b03891660009081526017602052604090208054899190601190611be9908490600160881b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550611c17898963ffffffff16613432565b505050505050505050565b600954600114611c615760405162461bcd60e51b815260206004820152600a6024820152695245454e5452414e435960b01b6044820152606401611118565b6002600955612710471015611c8957604051632a50c93760e11b815260040160405180910390fd5b600080612710600b60149054906101000a90046001600160401b03166001600160401b0316470281611cbd57611cbd614314565b049150612710600a60149054906101000a90046001600160401b03166001600160401b0316470281611cf157611cf1614314565b600b546040519290910492506000916001600160a01b039091169084908381818185875af1925050503d8060008114611d46576040519150601f19603f3d011682016040523d82523d6000602084013e611d4b565b606091505b5050600a546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611d9f576040519150601f19603f3d011682016040523d82523d6000602084013e611da4565b606091505b50509050811580611db3575080155b15611dd1576040516327fcd9d160e01b815260040160405180910390fd5b505060016009555050565b6000546001600160a01b03163314611e065760405162461bcd60e51b815260040161111890614257565b601855565b6118af838383604051806020016040528060008152506128d1565b6000546001600160a01b03163314611e505760405162461bcd60e51b815260040161111890614257565b611e5b81600161351f565b50565b6000546001600160a01b03163314611e885760405162461bcd60e51b815260040161111890614257565b601b55565b600180601254600160b01b900460ff166002811115611eae57611eae613ea1565b14611ecc57604051637d89aa0d60e11b815260040160405180910390fd5b600180601254600160b81b900460ff166001811115611eed57611eed613ea1565b14611f0b57604051637d89aa0d60e11b815260040160405180910390fd5b6001600160a01b038416600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff61010082048116938301849052600160281b82048116948301859052600160481b820481166060840152600160681b820481166080840152600160881b9091041660a08201529160059161ffff871691611f9791614293565b611fa19190614293565b63ffffffff161115611fc6576040516357ecdf3b60e01b815260040160405180910390fd5b6001600160a01b0385166000908152601760205260409020805461ffff86169190600590612002908490600160281b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff16021790555061134385856130f2565b6000546001600160a01b031633146120545760405162461bcd60e51b815260040161111890614257565b601155565b6000546001600160a01b031633146120835760405162461bcd60e51b815260040161111890614257565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600061114082613335565b6000546001600160a01b031633146120da5760405162461bcd60e51b815260040161111890614257565b600f55565b6000546001600160a01b031633146121095760405162461bcd60e51b815260040161111890614257565b6012805460ff60a81b1916600160a81b8415150217905580516118af9060169060208401906138db565b6000546001600160a01b0316331461215d5760405162461bcd60e51b815260040161111890614257565b61271061216a8284614356565b6001600160401b03161461219157604051630582b8e160e31b815260040160405180910390fd5b600a80546001600160401b03938416600160a01b90810267ffffffffffffffff60a01b1992831617909255600b8054939094169091029116179055565b60006001600160a01b0382166121f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b600280601254600160b01b900460ff16600281111561223d5761223d613ea1565b1461225b57604051637d89aa0d60e11b815260040160405180910390fd5b600080601254600160b81b900460ff16600181111561227c5761227c613ea1565b1461229a57604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff86169061ffff16816122b76001546000190190565b6122c1919061433e565b11156122e0576040516374d9e0b960e01b815260040160405180910390fd5b60105463ffffffff8716906122f581836142f5565b3414612314576040516394b5970f60e01b815260040160405180910390fd5b601b546040516001600160601b03193360601b16602082015261233e91899189919060340161122b565b61235b576040516309bde33960e01b815260040160405180910390fd5b33600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff6101008204811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b8304821660808201819052600160881b90930490911660a0820152906002906123e0908b90614293565b63ffffffff161180612424575060125460a08201516080830151600160401b90920461ffff16918b9161241291614293565b61241c9190614293565b63ffffffff16115b15612442576040516357ecdf3b60e01b815260040160405180910390fd5b33600090815260176020526040902080548a9190600d90612471908490600160681b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550611c17338a63ffffffff16613432565b6000546001600160a01b031633146124c95760405162461bcd60e51b815260040161111890614257565b600d55565b6000546001600160a01b031633146124f85760405162461bcd60e51b815260040161111890614257565b80516111839060149060208401906138db565b60158054611519906142bb565b6000546001600160a01b031633146125425760405162461bcd60e51b815260040161111890614257565b6012805460ff60a01b1916600160a01b85151502179055815161256c9060159060208501906138db565b506012805461ffff909216600160901b0261ffff60901b199092169190911790555050565b6000546001600160a01b031633146125bb5760405162461bcd60e51b815260040161111890614257565b6012805483919060ff60b01b1916600160b01b8360028111156125e0576125e0613ea1565b02179055506012805482919060ff60b81b1916600160b81b83600181111561260a5761260a613ea1565b02179055505050565b606060048054611359906142bb565b6000546001600160a01b0316331461264c5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160301b0267ffff00000000000019909216919091179055565b6000546001600160a01b0316331461269b5760405162461bcd60e51b815260040161111890614257565b8051601254600160501b900461ffff168111156126cb57604051630a28274b60e11b815260040160405180910390fd5b60005b82518110156118af576126fd60038483815181106126ee576126ee614378565b602002602001015160016133cf565b6127068161438e565b90506126ce565b336001600160a01b038316036127365760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006127b16001546000190190565b905090565b6000546001600160a01b031633146127e05760405162461bcd60e51b815260040161111890614257565b612710816001600160401b0316111561280c57604051630582b8e160e31b815260040160405180910390fd5b600c80546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6000546001600160a01b031633146128635760405162461bcd60e51b815260040161111890614257565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146128af5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160501b0261ffff60501b19909216919091179055565b6128dc848484611699565b6001600160a01b0383163b15612915576128f884848484613678565b612915576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600180601254600160b01b900460ff16600281111561293c5761293c613ea1565b1461295a57604051637d89aa0d60e11b815260040160405180910390fd5b6040516001600160601b03193360601b16602082015260348101869052605481018590526000906074016040516020818303038152906040528051906020012090506129aa8484601854846130d8565b6129c7576040516309bde33960e01b815260040160405180910390fd5b3360009081526017602052604090205460ff16156129f8576040516357ecdf3b60e01b815260040160405180910390fd5b336000908152601760205260409020805460ff191660011790558515612a2457612a24600133886133cf565b841561184157611841600233876133cf565b60148054611519906142bb565b6000546001600160a01b03163314612a6d5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216620100000263ffff000019909216919091179055565b60138054611519906142bb565b600280601254600160b01b900460ff166002811115612abb57612abb613ea1565b14612ad957604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff861690600160501b900461ffff16811115612b0f57604051630a28274b60e11b815260040160405180910390fd5b60125463ffffffff87169061ffff1681612b2c6001546000190190565b612b36919061433e565b1115612b55576040516374d9e0b960e01b815260040160405180910390fd5b6040516001600160601b03193360601b16602082015260348101879052600090605401604051602081830303815290604052805190602001209050612b9e8686601a54846130d8565b612bbb576040516309bde33960e01b815260040160405180910390fd5b336000908152601760205260409020548790612be5908a90600160481b900463ffffffff16614293565b63ffffffff161115612c0a576040516357ecdf3b60e01b815260040160405180910390fd5b3360009081526017602052604090208054899190600990612c39908490600160481b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550612c67338963ffffffff16613432565b5050505050505050565b6000546001600160a01b03163314612c9b5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160401b0269ffff000000000000000019909216919091179055565b6060612ccd82613300565b612cea5760405163c1ab6dc160e01b815260040160405180910390fd5b601254600160a01b900460ff1615612d5f57601254600160901b900461ffff168211612d42576015612d1b83613760565b604051602001612d2c9291906143c3565b6040516020818303038152906040529050919050565b601254600160a81b900460ff1615612d5f576016612d1b83613760565b60148054612d6c906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054612d98906142bb565b8015612de55780601f10612dba57610100808354040283529160200191612de5565b820191906000526020600020905b815481529060010190602001808311612dc857829003601f168201915b50505050509050919050565b601c8181548110612e0157600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314612e455760405162461bcd60e51b815260040161111890614257565b80516111839060139060208401906138db565b6000546001600160a01b03163314612e825760405162461bcd60e51b815260040161111890614257565b601055565b6000546001600160a01b03163314612eb15760405162461bcd60e51b815260040161111890614257565b8051825114612ebf57600080fd5b60005b82518110156118af57612f096000848381518110612ee257612ee2614378565b6020026020010151848481518110612efc57612efc614378565b60200260200101516133cf565b612f128161438e565b9050612ec2565b6000546001600160a01b03163314612f435760405162461bcd60e51b815260040161111890614257565b601955565b606060138054611359906142bb565b6000805b601c54811015613022576000601c8281548110612f7a57612f7a614378565b60009182526020909120015460405163c455279160e01b81526001600160a01b038781166004830152918216925090851690829063c455279190602401602060405180830381865afa158015612fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ff89190614469565b6001600160a01b03160361301157600192505050611140565b5061301b8161438e565b9050612f5b565b506001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b60006301ffc9a760e01b6001600160e01b03198316148061308557506380ac58cd60e01b6001600160e01b03198316145b806111405750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061114057506001600160e01b031982166301ffc9a760e01b1492915050565b6000826130e6868685613860565b1490505b949350505050565b8061ffff16600d5461310491906142f5565b34036131985760125461ffff62010000820481169161312c91600160601b9091041683614486565b61ffff16111561314f576040516374d9e0b960e01b815260040160405180910390fd5b806012600c8282829054906101000a900461ffff1661316e9190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836000838361ffff166133cf565b8061ffff16600e546131aa91906142f5565b34036132405760125461ffff64010000000082048116916131d491600160701b9091041683614486565b61ffff1611156131f7576040516374d9e0b960e01b815260040160405180910390fd5b806012600e8282829054906101000a900461ffff166132169190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836001838361ffff166133cf565b8061ffff16600f5461325291906142f5565b34036132e75760125461ffff600160301b820481169161327b91600160801b9091041683614486565b61ffff16111561329e576040516374d9e0b960e01b815260040160405180910390fd5b80601260108282829054906101000a900461ffff166132bd9190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836002838361ffff166133cf565b6040516394b5970f60e01b815260040160405180910390fd5b600081600111158015613314575060015482105b8015611140575050600090815260056020526040902054600160e01b161590565b6000818060011161338b5760015481101561338b5760008181526005602052604081205490600160e01b82169003613389575b8060000361304d575060001901600081815260056020526040902054613368565b505b604051636f96cda160e11b815260040160405180910390fd5b601254600160c01b900460ff16156129155760405163ab35696f60e01b815260040160405180910390fd5b816001600160a01b03168360038111156133eb576133eb613ea1565b7f9c9b2e5aa40f83c2745c7d46c1daa9a0ff22183c2191468ad2ca6c7b82f7455861341560015490565b60408051918252602082018690520160405180910390a36118af82825b6001546001600160a01b03831661345b57604051622e076360e81b815260040160405180910390fd5b8160000361347c5760405163b562e8dd60e01b815260040160405180910390fd5b61348960008483856133a4565b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106134d35760015550505050565b600061352a83613335565b90508060008061354886600090815260076020526040902080549091565b9150915084156135885761355d8184336116ee565b6135885761356b8333612f57565b61358857604051632ce44b5f60e11b815260040160405180910390fd5b6135968360008860016133a4565b80156135a157600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b8516900361362f5760018601600081815260056020526040812054900361362d57600154811461362d5760008181526005602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060028054600101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906136ad9033908990889088906004016144a3565b6020604051808303816000875af19250505080156136e8575060408051601f3d908101601f191682019092526136e5918101906144e0565b60015b613746573d808015613716576040519150601f19603f3d011682016040523d82523d6000602084013e61371b565b606091505b50805160000361373e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130ea565b6060816000036137875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137b1578061379b8161438e565b91506137aa9050600a8361432a565b915061378b565b6000816001600160401b038111156137cb576137cb613a15565b6040519080825280601f01601f1916602001820160405280156137f5576020820181803683370190505b5090505b84156130ea5761380a6001836144fd565b9150613817600a86614514565b61382290603061433e565b60f81b81838151811061383757613837614378565b60200101906001600160f81b031916908160001a905350613859600a8661432a565b94506137f9565b600081815b848110156138a35761388f8287878481811061388357613883614378565b905060200201356138ac565b91508061389b8161438e565b915050613865565b50949350505050565b60008183106138c857600082815260208490526040902061304d565b600083815260208390526040902061304d565b8280546138e7906142bb565b90600052602060002090601f016020900481019282613909576000855561394f565b82601f1061392257805160ff191683800117855561394f565b8280016001018555821561394f579182015b8281111561394f578251825591602001919060010190613934565b5061395b9291506139b4565b5090565b82805482825590600052602060002090810192821561394f579160200282015b8281111561394f57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061397f565b5b8082111561395b57600081556001016139b5565b6000602082840312156139db57600080fd5b5035919050565b6001600160e01b031981168114611e5b57600080fd5b600060208284031215613a0a57600080fd5b813561304d816139e2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a5357613a53613a15565b604052919050565b60006001600160401b03831115613a7457613a74613a15565b613a87601f8401601f1916602001613a2b565b9050828152838383011115613a9b57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ac357600080fd5b61304d83833560208501613a5b565b600060208284031215613ae457600080fd5b81356001600160401b03811115613afa57600080fd5b6130ea84828501613ab2565b60008083601f840112613b1857600080fd5b5081356001600160401b03811115613b2f57600080fd5b6020830191508360208260051b850101111561192357600080fd5b60008060208385031215613b5d57600080fd5b82356001600160401b03811115613b7357600080fd5b613b7f85828601613b06565b90969095509350505050565b60005b83811015613ba6578181015183820152602001613b8e565b838111156129155750506000910152565b60008151808452613bcf816020860160208601613b8b565b601f01601f19169290920160200192915050565b60208152600061304d6020830184613bb7565b6001600160a01b0381168114611e5b57600080fd5b60008060408385031215613c1e57600080fd5b8235613c2981613bf6565b946020939093013593505050565b600060208284031215613c4957600080fd5b813561304d81613bf6565b803561ffff81168114613c6657600080fd5b919050565b600060208284031215613c7d57600080fd5b61304d82613c54565b80358015158114613c6657600080fd5b600060208284031215613ca857600080fd5b61304d82613c86565b600080600060608486031215613cc657600080fd5b8335613cd181613bf6565b92506020840135613ce181613bf6565b929592945050506040919091013590565b60008060408385031215613d0557600080fd5b50508035926020909101359150565b60006001600160401b03821115613d2d57613d2d613a15565b5060051b60200190565b600082601f830112613d4857600080fd5b81356020613d5d613d5883613d14565b613a2b565b82815260059290921b84018101918181019086841115613d7c57600080fd5b8286015b84811015613da0578035613d9381613bf6565b8352918301918301613d80565b509695505050505050565b600060208284031215613dbd57600080fd5b81356001600160401b03811115613dd357600080fd5b6130ea84828501613d37565b803563ffffffff81168114613c6657600080fd5b60008060408385031215613e0657600080fd5b8235613e1181613bf6565b9150613e1f60208401613ddf565b90509250929050565b60008060408385031215613e3b57600080fd5b8235613e4681613bf6565b9150613e1f60208401613c54565b60008060408385031215613e6757600080fd5b613e7083613c86565b915060208301356001600160401b03811115613e8b57600080fd5b613e9785828601613ab2565b9150509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160028310613ecb57613ecb613ea1565b91905290565b80356001600160401b0381168114613c6657600080fd5b60008060408385031215613efb57600080fd5b613f0483613ed1565b9150613e1f60208401613ed1565b600080600060408486031215613f2757600080fd5b613f3084613ddf565b925060208401356001600160401b03811115613f4b57600080fd5b613f5786828701613b06565b9497909650939450505050565b600080600060608486031215613f7957600080fd5b613f8284613c86565b925060208401356001600160401b03811115613f9d57600080fd5b613fa986828701613ab2565b925050613fb860408501613c54565b90509250925092565b60008060408385031215613fd457600080fd5b823560038110613fe357600080fd5b9150602083013560028110613ff757600080fd5b809150509250929050565b6000806040838503121561401557600080fd5b823561402081613bf6565b9150613e1f60208401613c86565b60006020828403121561404057600080fd5b61304d82613ed1565b6020810160038310613ecb57613ecb613ea1565b6000806000806080858703121561407357600080fd5b843561407e81613bf6565b9350602085013561408e81613bf6565b92506040850135915060608501356001600160401b038111156140b057600080fd5b8501601f810187136140c157600080fd5b6140d087823560208401613a5b565b91505092959194509250565b600080600080606085870312156140f257600080fd5b843593506020850135925060408501356001600160401b0381111561411657600080fd5b61412287828801613b06565b95989497509550505050565b6000806000806060858703121561414457600080fd5b61414d85613ddf565b93506020850135925060408501356001600160401b0381111561411657600080fd5b6000806040838503121561418257600080fd5b82356001600160401b038082111561419957600080fd5b6141a586838701613d37565b93506020915081850135818111156141bc57600080fd5b85019050601f810186136141cf57600080fd5b80356141dd613d5882613d14565b81815260059190911b820183019083810190888311156141fc57600080fd5b928401925b8284101561421a57833582529284019290840190614201565b80955050505050509250929050565b6000806040838503121561423c57600080fd5b823561424781613bf6565b91506020830135613ff781613bf6565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156142b2576142b261427d565b01949350505050565b600181811c908216806142cf57607f821691505b6020821081036142ef57634e487b7160e01b600052602260045260246000fd5b50919050565b600081600019048311821515161561430f5761430f61427d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261433957614339614314565b500490565b600082198211156143515761435161427d565b500190565b60006001600160401b038083168185168083038211156142b2576142b261427d565b634e487b7160e01b600052603260045260246000fd5b6000600182016143a0576143a061427d565b5060010190565b600081516143b9818560208601613b8b565b9290920192915050565b600080845481600182811c9150808316806143df57607f831692505b602080841082036143fe57634e487b7160e01b86526022600452602486fd5b818015614412576001811461442357614450565b60ff19861689528489019650614450565b60008b81526020902060005b868110156144485781548b82015290850190830161442f565b505084890196505b50505050505061446081856143a7565b95945050505050565b60006020828403121561447b57600080fd5b815161304d81613bf6565b600061ffff8083168185168083038211156142b2576142b261427d565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144d690830184613bb7565b9695505050505050565b6000602082840312156144f257600080fd5b815161304d816139e2565b60008282101561450f5761450f61427d565b500390565b60008261452357614523614314565b50069056fea26469706673582212200a4d09616c946c131f7622b90bae78f3c99db4c9b97ae3aabe77a31b711e2c8364736f6c634300080d0033697066733a2f2f516d4e51796578554d3448326f6878716d39314876466671595034686f52714b4e453459535234424b537142514368747470733a2f2f6c6970737765617465722e696f2f636f6c6c656374696f6e2f636f6c6c656374696f6e2d6d657461646174612e6a736f6e000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000db0000000000000000000000007f082d121ff1eececf553f5326855147c97f2383000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad93000000000000000000000000000000000000000000000000000000000000006b00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad9300000000000000000000000000000000000000000000000000000000000021340000000000000000000000007f082d121ff1eececf553f5326855147c97f238300000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad9300000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000004f00000000000000000000000094fefdcc640a2ddca67ebca189ba37a84272598b000000000000000000000000650e52425732bf5a74401a8c3111e183deb900ce000000000000000000000000f01e8304e8822c37db65b4ff95ff30f43d35382c00000000000000000000000040f988d30e5c7b6f6478d96e1d239f386fa75013000000000000000000000000cd87b9397091bb4078af53fbbb325be647951ae5000000000000000000000000c72e07aecd4ba815f7dcf5775ad21488368c0f3f0000000000000000000000009f7b1e10665200010d62a26d04de9007ff5d87320000000000000000000000002d18203e0a7f10e6145673bf1c33d7b86c7bbcc2000000000000000000000000e9bcafae35e64ad13df4e13e806a905ac464c7dd000000000000000000000000067031a14657c85204fa8fc9ddf2182670916a55000000000000000000000000363efcb031a8e89d207a5ce5e8d03409fc1158280000000000000000000000003543be4c6bfea708795552ffcbcdb44fceba41d80000000000000000000000001f0936b82c6cbb72c9176b9668418ea6e837530c000000000000000000000000c6a2bc1bd7dce6d724e3b0894c86fc6741d33b01000000000000000000000000c8447169f7a2ddd976cb98b1eff1170575bd922e00000000000000000000000004cb4a0f7533e765a8490cdfef761f6d552202f9000000000000000000000000445eae63c7962cee12c36a0cd8ba1bfa623b4c7c000000000000000000000000224fab37e4874075e8d4acf03d354c525f3aae47000000000000000000000000e21a406603140217a79ebb0aace4b6612f7094d900000000000000000000000014aada8b6308dfa66a0d0bbb2eae79c0fc91f2b30000000000000000000000007f375bce43290e81d3633292f906ddda08ee02f0000000000000000000000000609674147b322af0f9be9b9fac06f961e38b974d00000000000000000000000000167777e0daf9dc2d3a76195ab56e857ec67ab2000000000000000000000000bbc11a93ed4b07b97df36361dc0ca4ff38b8f70f0000000000000000000000007512001c7b8f88ad642f4d0d9c04caff61c49a3c00000000000000000000000017e969ed4401d4fe04f669e4782344557627a89c000000000000000000000000aada0268b315739f26b154df96a58f2c95a871ad000000000000000000000000155d0c8a0d12681bcef020e198d0094fa0cb90ff00000000000000000000000013723aab47173cf96a4d550f257f08f40a830a44000000000000000000000000a15c4dd07182622de0bde4cd3f76e84901e3a06e000000000000000000000000c3a22337ff96562c76831d517e5ffd2959270905000000000000000000000000709e711282177bac53a997963b9519f48bb9fa2c000000000000000000000000ad3c0354bf95dab7844cfd53a8b1ab1c6bcda4e10000000000000000000000000d143fa642edb57ba8d0e683d5eb08abeb94b5a6000000000000000000000000e7d659d9d1bb232a9505fd7e02221e91e193d2b80000000000000000000000002cea8dddf9b5b06ac4f9a6005df484237bdaaf3a00000000000000000000000060b96c818031e8f730665c4ec237653f1ea506b2000000000000000000000000bbd5f61166a5de72b6d38cc82c61403446a650d4000000000000000000000000a176434c04c780baced713aca12a153458cd570f000000000000000000000000cee4c6c3883563b6358c6ea3dcd9a609f4cc9e9c000000000000000000000000611b4e7a48df1c53aeab9f4fe6038b4f6f5d2cf7000000000000000000000000ee0f4bcb6efadc8767e3feb20bb144c4b5795627000000000000000000000000f8ab9ce58d0b8397d324b92257627a0aed48bc730000000000000000000000006e334f5fb722881f8846083dac5f38e473ab730a0000000000000000000000008378309df3489921e5b1538a17ffcd6d495c4b1d0000000000000000000000001ea02ba70a6bce8553acb5cdfbcdf5ab6d719b2d000000000000000000000000c502335254f27d1c08f3467be05961c47c41110300000000000000000000000025cbf60a55c648e803f58100ac774c0d9f2bd8320000000000000000000000002c3c69c87d20f9a013f3fb8839159e1bd1a0f843000000000000000000000000dbb4cc5e068c45525252ccbbf8a718aa0227eae0000000000000000000000000bf5d634c666c16d4283916280b5c3abb92c7392e00000000000000000000000089d06090361f52d22291f57ce3cd50469f7f43b200000000000000000000000085017ff1c5b2e5949ce69ead07f94962cd730cbd000000000000000000000000f95777d7c533cbb1c1f075eef6c05f7313b046410000000000000000000000003e2ead7dcdb698be8f15ad1b735ba7cd2ec1e5dd0000000000000000000000005ecfd16fd53331dd114f67461ca3bab96fc8f2fa000000000000000000000000720480ca4bda85be916de755b92f1f4629ced7270000000000000000000000008f4abe7cf4d3f0a608c0c4204d99b253bc4755b5000000000000000000000000384dcb2a611f840c9baf90fd565ba76134f33308000000000000000000000000ec8d1a614a5ea5e0c85a948ced1f76e7221f7beb0000000000000000000000009284c692f0bff823f3f48471fab18a994ad04700000000000000000000000000105f6ac08e0a9f7949c97429ecd0f3b65c9c69070000000000000000000000003a6af7657de9732155c752453f818e880c28bbd8000000000000000000000000fa496edcfddeadfb1842e4901d5b6ecc25029d4900000000000000000000000088190c9cbaa1ecb698f928162358a50edd0ab3b4000000000000000000000000096316628fa61d3e4615c085a5ff527b1813ea8f0000000000000000000000005c2332abffba8ca8a72404835b13979a7cc40945000000000000000000000000ac775af0915fae64dd8986880409a4306ee88574000000000000000000000000741ac1b07aafd6956b9bb3c017f9734e0fb143510000000000000000000000001a641536722c39354fbddf79ee119b706ffed0fe0000000000000000000000005ae5375ee0f4cff5904b8670d284d518a4fedb030000000000000000000000004313703216f388e7b35e8e7dc4f2dbc3e75ea3a0000000000000000000000000bdc4c76bc0fc869f6d929cf3681d306910b282e2000000000000000000000000106c20050f239f07023c2a2b8def54e1520c73870000000000000000000000008d9b29ba52c10de72d95479d007403c676afc4fa000000000000000000000000ebbe66c4bb07fc188b2fda67528f514012067f720000000000000000000000005ddb3b4a903c873a6fd18448c991786e92f0b65e000000000000000000000000bbb85d042d87da6ad51379903ff72892c98dbbf90000000000000000000000000df5f5560ce2dbf9c332482f4aa901f606076e2e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000004fee7b061c97c9c496b01dbce9cdb10c02f0a0be
Deployed Bytecode
0x6080604052600436106104eb5760003560e01c80636cb3c6c91161028c578063b6bd11d01161015a578063c87b56dd116100cc578063d9ecc97d11610085578063d9ecc97d1461103f578063da2af32114611061578063da45569214611081578063de7fcb1d14611097578063e8a3d485146110b9578063e985e9c5146110ce57600080fd5b8063c87b56dd14610f89578063ca8b49d214610fa9578063ccb4807b14610fc9578063ceb16b6b14610fe9578063d0a389c914610fff578063d267da401461101f57600080fd5b8063c07c7adc1161011e578063c07c7adc14610ee9578063c0e24d5e14610f09578063c0e8902214610f1e578063c4bf279214610f34578063c80709b714610f54578063c810ec9214610f7457600080fd5b8063b6bd11d014610e63578063b88d4fde14610e79578063bac21a2214610e99578063bfb1cead14610eb4578063c02c1bcd14610ed457600080fd5b8063951ea498116101fe578063a2309ff8116101b7578063a2309ff814610d9e578063aa0d42d114610db3578063acf7f57e14610dd3578063aecb9ca714610df5578063b1c9fe6e14610e15578063b6a7412114610e4357600080fd5b8063951ea49814610cf357806395d89b4114610d13578063981d1c7014610d285780639d96485e14610d485780639e94411614610d68578063a22cb46514610d7e57600080fd5b8063818423e111610250578063818423e114610c3c57806388d7dbfd14610c5c5780638da5cb5b14610c7e57806390fb5fb914610c9e578063947e9ca614610cbe57806394e3e31914610cd357600080fd5b80636cb3c6c914610aa75780636db1977d14610ac957806370a0823114610ade5780637fc7a60e14610afe578063806b19ec14610c2957600080fd5b80632da9b48d116103c95780634daf33b21161033b5780636352211e116102f45780636352211e146109d7578063646f4a9f146109f75780636728548814610a175780636ac52fd114610a395780636ad1fe0214610a595780636ae09a8a14610a8757600080fd5b80634daf33b21461092c57806357d572b51461093f57806358c45d861461095f5780635c975abb146109755780635ea33f0414610996578063627dff2c146109b657600080fd5b80633ccfd60b1161038d5780633ccfd60b1461087457806340d3be151461088957806342842e0e146108a957806342966c68146108c957806345d8258c146108e9578063488f87331461090c57600080fd5b80632da9b48d146107de57806334ea50d814610800578063371dd5c21461082057806338faeb2d146108415780633947b4cf1461086157600080fd5b80630de04d681161046257806318160ddd1161042657806318160ddd146106fa578063213631561461071757806323b872dd1461073f5780632458b9461461075f57806328c18af71461077f5780632a55205a1461079f57600080fd5b80630de04d68146106635780630ffa7da71461067957806312b640791461069957806313af4035146106ba57806316c38b3c146106da57600080fd5b806306fdde03116104b457806306fdde031461059e578063076020fe146105c0578063081812fc146105d6578063095ea7b31461060e5780630b97ce1c1461062e5780630cc148a31461064e57600080fd5b806280a2e2146104f057806301ffc9a714610512578063035fc7e81461054757806305ca62021461056b5780630625373d1461058b575b600080fd5b3480156104fc57600080fd5b5061051061050b3660046139c9565b6110ee565b005b34801561051e57600080fd5b5061053261052d3660046139f8565b611126565b60405190151581526020015b60405180910390f35b34801561055357600080fd5b5061055d600f5481565b60405190815260200161053e565b34801561057757600080fd5b50610510610586366004613ad2565b611146565b610510610599366004613b4a565b611187565b3480156105aa57600080fd5b506105b361134a565b60405161053e9190613be3565b3480156105cc57600080fd5b5061055d60105481565b3480156105e257600080fd5b506105f66105f13660046139c9565b6113dc565b6040516001600160a01b03909116815260200161053e565b34801561061a57600080fd5b50610510610629366004613c0b565b611420565b34801561063a57600080fd5b50610510610649366004613c37565b6114c0565b34801561065a57600080fd5b506105b361150c565b34801561066f57600080fd5b5061055d60115481565b34801561068557600080fd5b50610510610694366004613c6b565b61159a565b3480156106a557600080fd5b5060125461053290600160a81b900460ff1681565b3480156106c657600080fd5b506105106106d5366004613c37565b6115dc565b3480156106e657600080fd5b506105106106f5366004613c96565b611651565b34801561070657600080fd5b50600254600154036000190161055d565b34801561072357600080fd5b5061072c600281565b60405161ffff909116815260200161053e565b34801561074b57600080fd5b5061051061075a366004613cb1565b611699565b34801561076b57600080fd5b5061051061077a366004613c0b565b611849565b34801561078b57600080fd5b5061051061079a3660046139c9565b6118b4565b3480156107ab57600080fd5b506107bf6107ba366004613cf2565b6118e3565b604080516001600160a01b03909316835260208301919091520161053e565b3480156107ea57600080fd5b5060125461072c90600160301b900461ffff1681565b34801561080c57600080fd5b5061051061081b366004613dab565b61192a565b34801561082c57600080fd5b5060125461072c9062010000900461ffff1681565b34801561084d57600080fd5b5061051061085c366004613c6b565b611967565b61051061086f366004613df3565b6119b5565b34801561088057600080fd5b50610510611c22565b34801561089557600080fd5b506105106108a43660046139c9565b611ddc565b3480156108b557600080fd5b506105106108c4366004613cb1565b611e0b565b3480156108d557600080fd5b506105106108e43660046139c9565b611e26565b3480156108f557600080fd5b5060125461072c90640100000000900461ffff1681565b34801561091857600080fd5b506105106109273660046139c9565b611e5e565b61051061093a366004613e28565b611e8d565b34801561094b57600080fd5b5061051061095a3660046139c9565b61202a565b34801561096b57600080fd5b5061055d600d5481565b34801561098157600080fd5b5060125461053290600160c01b900460ff1681565b3480156109a257600080fd5b506105106109b1366004613c37565b612059565b3480156109c257600080fd5b5060125461053290600160a01b900460ff1681565b3480156109e357600080fd5b506105f66109f23660046139c9565b6120a5565b348015610a0357600080fd5b50610510610a123660046139c9565b6120b0565b348015610a2357600080fd5b5060125461072c90600160401b900461ffff1681565b348015610a4557600080fd5b50610510610a54366004613e54565b6120df565b348015610a6557600080fd5b50601254610a7a90600160b81b900460ff1681565b60405161053e9190613eb7565b348015610a9357600080fd5b50610510610aa2366004613ee8565b612133565b348015610ab357600080fd5b5060125461072c90600160801b900461ffff1681565b348015610ad557600080fd5b5061072c600181565b348015610aea57600080fd5b5061055d610af9366004613c37565b6121ce565b348015610b0a57600080fd5b50610bc9610b19366004613c37565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506001600160a01b0316600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff6101008204811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b830482166080820152600160881b9092041660a082015290565b60405161053e9190600060c082019050825115158252602083015163ffffffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a0850152505092915050565b610510610c37366004613f12565b61221c565b348015610c4857600080fd5b50610510610c573660046139c9565b61249f565b348015610c6857600080fd5b5060125461072c90600160701b900461ffff1681565b348015610c8a57600080fd5b506000546105f6906001600160a01b031681565b348015610caa57600080fd5b50610510610cb9366004613ad2565b6124ce565b348015610cca57600080fd5b506105b361250b565b348015610cdf57600080fd5b50610510610cee366004613f64565b612518565b348015610cff57600080fd5b50610510610d0e366004613fc1565b612591565b348015610d1f57600080fd5b506105b3612613565b348015610d3457600080fd5b50610510610d43366004613c6b565b612622565b348015610d5457600080fd5b50610510610d63366004613dab565b612671565b348015610d7457600080fd5b5061055d60195481565b348015610d8a57600080fd5b50610510610d99366004614002565b61270d565b348015610daa57600080fd5b5061055d6127a2565b348015610dbf57600080fd5b50610510610dce36600461402e565b6127b6565b348015610ddf57600080fd5b5060125461072c90600160901b900461ffff1681565b348015610e0157600080fd5b50610510610e10366004613c37565b612839565b348015610e2157600080fd5b50601254610e3690600160b01b900460ff1681565b60405161053e9190614049565b348015610e4f57600080fd5b50610510610e5e366004613c6b565b612885565b348015610e6f57600080fd5b5061055d601b5481565b348015610e8557600080fd5b50610510610e9436600461405d565b6128d1565b348015610ea557600080fd5b5060125461072c9061ffff1681565b348015610ec057600080fd5b50610510610ecf3660046140dc565b61291b565b348015610ee057600080fd5b506105b3612a36565b348015610ef557600080fd5b50610510610f04366004613c6b565b612a43565b348015610f1557600080fd5b506105b3612a8d565b348015610f2a57600080fd5b5061055d600e5481565b348015610f4057600080fd5b50610510610f4f36600461412e565b612a9a565b348015610f6057600080fd5b50610510610f6f366004613c6b565b612c71565b348015610f8057600080fd5b5061072c600581565b348015610f9557600080fd5b506105b3610fa43660046139c9565b612cc2565b348015610fb557600080fd5b506105f6610fc43660046139c9565b612df1565b348015610fd557600080fd5b50610510610fe4366004613ad2565b612e1b565b348015610ff557600080fd5b5061055d60185481565b34801561100b57600080fd5b5061051061101a3660046139c9565b612e58565b34801561102b57600080fd5b5061051061103a36600461416f565b612e87565b34801561104b57600080fd5b5060125461072c90600160601b900461ffff1681565b34801561106d57600080fd5b5061051061107c3660046139c9565b612f19565b34801561108d57600080fd5b5061055d601a5481565b3480156110a357600080fd5b5060125461072c90600160501b900461ffff1681565b3480156110c557600080fd5b506105b3612f48565b3480156110da57600080fd5b506105326110e9366004614229565b612f57565b6000546001600160a01b031633146111215760405162461bcd60e51b815260040161111890614257565b60405180910390fd5b601a55565b600061113182613054565b806111405750611140826130a2565b92915050565b6000546001600160a01b031633146111705760405162461bcd60e51b815260040161111890614257565b80516111839060159060208401906138db565b5050565b600180601254600160b01b900460ff1660028111156111a8576111a8613ea1565b146111c657604051637d89aa0d60e11b815260040160405180910390fd5b600080601254600160b81b900460ff1660018111156111e7576111e7613ea1565b1461120557604051637d89aa0d60e11b815260040160405180910390fd5b6019546040516001600160601b03193360601b1660208201526112469186918691906034015b604051602081830303815290604052805190602001206130d8565b611263576040516309bde33960e01b815260040160405180910390fd5b33600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff61010082048116938301849052600160281b8204811694830194909452600160481b810484166060830152600160681b810484166080830152600160881b900490921660a083015260011115806112fb575060408101516005906112f390600190614293565b63ffffffff16115b15611319576040516357ecdf3b60e01b815260040160405180910390fd5b336000818152601760205260409020805464ffffffff0019166101001790556113439060016130f2565b5050505050565b606060038054611359906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611385906142bb565b80156113d25780601f106113a7576101008083540402835291602001916113d2565b820191906000526020600020905b8154815290600101906020018083116113b557829003601f168201915b5050505050905090565b60006113e782613300565b611404576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061142b826120a5565b9050336001600160a01b03821614611464576114478133612f57565b611464576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146114ea5760405162461bcd60e51b815260040161111890614257565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60168054611519906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611545906142bb565b80156115925780601f1061156757610100808354040283529160200191611592565b820191906000526020600020905b81548152906001019060200180831161157557829003601f168201915b505050505081565b6000546001600160a01b031633146115c45760405162461bcd60e51b815260040161111890614257565b6012805461ffff191661ffff92909216919091179055565b6000546001600160a01b031633146116065760405162461bcd60e51b815260040161111890614257565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b6000546001600160a01b0316331461167b5760405162461bcd60e51b815260040161111890614257565b60128054911515600160c01b0260ff60c01b19909216919091179055565b60006116a482613335565b9050836001600160a01b0316816001600160a01b0316146116d75760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546117038187335b6001600160a01b039081169116811491141790565b61172e576117118633612f57565b61172e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661175557604051633a954ecd60e21b815260040160405180910390fd5b61176286868660016133a4565b801561176d57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036117ff576001840160008181526005602052604081205490036117fd5760015481146117fd5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b031633146118735760405162461bcd60e51b815260040161111890614257565b6012548190600160501b900461ffff168111156118a357604051630a28274b60e11b815260040160405180910390fd5b6118af600384846133cf565b505050565b6000546001600160a01b031633146118de5760405162461bcd60e51b815260040161111890614257565b600e55565b600c5460009081906001600160a01b038116906127109061191490600160a01b90046001600160401b0316866142f5565b61191e919061432a565b915091505b9250929050565b6000546001600160a01b031633146119545760405162461bcd60e51b815260040161111890614257565b805161118390601c90602084019061395f565b6000546001600160a01b031633146119915760405162461bcd60e51b815260040161111890614257565b6012805461ffff9092166401000000000265ffff0000000019909216919091179055565b600280601254600160b01b900460ff1660028111156119d6576119d6613ea1565b146119f457604051637d89aa0d60e11b815260040160405180910390fd5b600180601254600160b81b900460ff166001811115611a1557611a15613ea1565b14611a3357604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff841690600160501b900461ffff16811115611a6957604051630a28274b60e11b815260040160405180910390fd5b60125463ffffffff85169061ffff1681611a866001546000190190565b611a90919061433e565b1115611aaf576040516374d9e0b960e01b815260040160405180910390fd5b60115463ffffffff861690611ac481836142f5565b3414611ae3576040516394b5970f60e01b815260040160405180910390fd5b6001600160a01b038816600090815260176020908152604091829020825160c081018452905460ff811615158252610100810463ffffffff90811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b8304821660808201819052600160881b90930490911660a082018190526012549192600160401b90920461ffff16918a91611b8291614293565b611b8c9190614293565b63ffffffff161115611bb1576040516357ecdf3b60e01b815260040160405180910390fd5b6001600160a01b03891660009081526017602052604090208054899190601190611be9908490600160881b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550611c17898963ffffffff16613432565b505050505050505050565b600954600114611c615760405162461bcd60e51b815260206004820152600a6024820152695245454e5452414e435960b01b6044820152606401611118565b6002600955612710471015611c8957604051632a50c93760e11b815260040160405180910390fd5b600080612710600b60149054906101000a90046001600160401b03166001600160401b0316470281611cbd57611cbd614314565b049150612710600a60149054906101000a90046001600160401b03166001600160401b0316470281611cf157611cf1614314565b600b546040519290910492506000916001600160a01b039091169084908381818185875af1925050503d8060008114611d46576040519150601f19603f3d011682016040523d82523d6000602084013e611d4b565b606091505b5050600a546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611d9f576040519150601f19603f3d011682016040523d82523d6000602084013e611da4565b606091505b50509050811580611db3575080155b15611dd1576040516327fcd9d160e01b815260040160405180910390fd5b505060016009555050565b6000546001600160a01b03163314611e065760405162461bcd60e51b815260040161111890614257565b601855565b6118af838383604051806020016040528060008152506128d1565b6000546001600160a01b03163314611e505760405162461bcd60e51b815260040161111890614257565b611e5b81600161351f565b50565b6000546001600160a01b03163314611e885760405162461bcd60e51b815260040161111890614257565b601b55565b600180601254600160b01b900460ff166002811115611eae57611eae613ea1565b14611ecc57604051637d89aa0d60e11b815260040160405180910390fd5b600180601254600160b81b900460ff166001811115611eed57611eed613ea1565b14611f0b57604051637d89aa0d60e11b815260040160405180910390fd5b6001600160a01b038416600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff61010082048116938301849052600160281b82048116948301859052600160481b820481166060840152600160681b820481166080840152600160881b9091041660a08201529160059161ffff871691611f9791614293565b611fa19190614293565b63ffffffff161115611fc6576040516357ecdf3b60e01b815260040160405180910390fd5b6001600160a01b0385166000908152601760205260409020805461ffff86169190600590612002908490600160281b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff16021790555061134385856130f2565b6000546001600160a01b031633146120545760405162461bcd60e51b815260040161111890614257565b601155565b6000546001600160a01b031633146120835760405162461bcd60e51b815260040161111890614257565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600061114082613335565b6000546001600160a01b031633146120da5760405162461bcd60e51b815260040161111890614257565b600f55565b6000546001600160a01b031633146121095760405162461bcd60e51b815260040161111890614257565b6012805460ff60a81b1916600160a81b8415150217905580516118af9060169060208401906138db565b6000546001600160a01b0316331461215d5760405162461bcd60e51b815260040161111890614257565b61271061216a8284614356565b6001600160401b03161461219157604051630582b8e160e31b815260040160405180910390fd5b600a80546001600160401b03938416600160a01b90810267ffffffffffffffff60a01b1992831617909255600b8054939094169091029116179055565b60006001600160a01b0382166121f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b600280601254600160b01b900460ff16600281111561223d5761223d613ea1565b1461225b57604051637d89aa0d60e11b815260040160405180910390fd5b600080601254600160b81b900460ff16600181111561227c5761227c613ea1565b1461229a57604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff86169061ffff16816122b76001546000190190565b6122c1919061433e565b11156122e0576040516374d9e0b960e01b815260040160405180910390fd5b60105463ffffffff8716906122f581836142f5565b3414612314576040516394b5970f60e01b815260040160405180910390fd5b601b546040516001600160601b03193360601b16602082015261233e91899189919060340161122b565b61235b576040516309bde33960e01b815260040160405180910390fd5b33600090815260176020908152604091829020825160c081018452905460ff81161515825263ffffffff6101008204811693830193909352600160281b8104831693820193909352600160481b830482166060820152600160681b8304821660808201819052600160881b90930490911660a0820152906002906123e0908b90614293565b63ffffffff161180612424575060125460a08201516080830151600160401b90920461ffff16918b9161241291614293565b61241c9190614293565b63ffffffff16115b15612442576040516357ecdf3b60e01b815260040160405180910390fd5b33600090815260176020526040902080548a9190600d90612471908490600160681b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550611c17338a63ffffffff16613432565b6000546001600160a01b031633146124c95760405162461bcd60e51b815260040161111890614257565b600d55565b6000546001600160a01b031633146124f85760405162461bcd60e51b815260040161111890614257565b80516111839060149060208401906138db565b60158054611519906142bb565b6000546001600160a01b031633146125425760405162461bcd60e51b815260040161111890614257565b6012805460ff60a01b1916600160a01b85151502179055815161256c9060159060208501906138db565b506012805461ffff909216600160901b0261ffff60901b199092169190911790555050565b6000546001600160a01b031633146125bb5760405162461bcd60e51b815260040161111890614257565b6012805483919060ff60b01b1916600160b01b8360028111156125e0576125e0613ea1565b02179055506012805482919060ff60b81b1916600160b81b83600181111561260a5761260a613ea1565b02179055505050565b606060048054611359906142bb565b6000546001600160a01b0316331461264c5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160301b0267ffff00000000000019909216919091179055565b6000546001600160a01b0316331461269b5760405162461bcd60e51b815260040161111890614257565b8051601254600160501b900461ffff168111156126cb57604051630a28274b60e11b815260040160405180910390fd5b60005b82518110156118af576126fd60038483815181106126ee576126ee614378565b602002602001015160016133cf565b6127068161438e565b90506126ce565b336001600160a01b038316036127365760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006127b16001546000190190565b905090565b6000546001600160a01b031633146127e05760405162461bcd60e51b815260040161111890614257565b612710816001600160401b0316111561280c57604051630582b8e160e31b815260040160405180910390fd5b600c80546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6000546001600160a01b031633146128635760405162461bcd60e51b815260040161111890614257565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146128af5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160501b0261ffff60501b19909216919091179055565b6128dc848484611699565b6001600160a01b0383163b15612915576128f884848484613678565b612915576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600180601254600160b01b900460ff16600281111561293c5761293c613ea1565b1461295a57604051637d89aa0d60e11b815260040160405180910390fd5b6040516001600160601b03193360601b16602082015260348101869052605481018590526000906074016040516020818303038152906040528051906020012090506129aa8484601854846130d8565b6129c7576040516309bde33960e01b815260040160405180910390fd5b3360009081526017602052604090205460ff16156129f8576040516357ecdf3b60e01b815260040160405180910390fd5b336000908152601760205260409020805460ff191660011790558515612a2457612a24600133886133cf565b841561184157611841600233876133cf565b60148054611519906142bb565b6000546001600160a01b03163314612a6d5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216620100000263ffff000019909216919091179055565b60138054611519906142bb565b600280601254600160b01b900460ff166002811115612abb57612abb613ea1565b14612ad957604051637d89aa0d60e11b815260040160405180910390fd5b60125463ffffffff861690600160501b900461ffff16811115612b0f57604051630a28274b60e11b815260040160405180910390fd5b60125463ffffffff87169061ffff1681612b2c6001546000190190565b612b36919061433e565b1115612b55576040516374d9e0b960e01b815260040160405180910390fd5b6040516001600160601b03193360601b16602082015260348101879052600090605401604051602081830303815290604052805190602001209050612b9e8686601a54846130d8565b612bbb576040516309bde33960e01b815260040160405180910390fd5b336000908152601760205260409020548790612be5908a90600160481b900463ffffffff16614293565b63ffffffff161115612c0a576040516357ecdf3b60e01b815260040160405180910390fd5b3360009081526017602052604090208054899190600990612c39908490600160481b900463ffffffff16614293565b92506101000a81548163ffffffff021916908363ffffffff160217905550612c67338963ffffffff16613432565b5050505050505050565b6000546001600160a01b03163314612c9b5760405162461bcd60e51b815260040161111890614257565b6012805461ffff909216600160401b0269ffff000000000000000019909216919091179055565b6060612ccd82613300565b612cea5760405163c1ab6dc160e01b815260040160405180910390fd5b601254600160a01b900460ff1615612d5f57601254600160901b900461ffff168211612d42576015612d1b83613760565b604051602001612d2c9291906143c3565b6040516020818303038152906040529050919050565b601254600160a81b900460ff1615612d5f576016612d1b83613760565b60148054612d6c906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054612d98906142bb565b8015612de55780601f10612dba57610100808354040283529160200191612de5565b820191906000526020600020905b815481529060010190602001808311612dc857829003601f168201915b50505050509050919050565b601c8181548110612e0157600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314612e455760405162461bcd60e51b815260040161111890614257565b80516111839060139060208401906138db565b6000546001600160a01b03163314612e825760405162461bcd60e51b815260040161111890614257565b601055565b6000546001600160a01b03163314612eb15760405162461bcd60e51b815260040161111890614257565b8051825114612ebf57600080fd5b60005b82518110156118af57612f096000848381518110612ee257612ee2614378565b6020026020010151848481518110612efc57612efc614378565b60200260200101516133cf565b612f128161438e565b9050612ec2565b6000546001600160a01b03163314612f435760405162461bcd60e51b815260040161111890614257565b601955565b606060138054611359906142bb565b6000805b601c54811015613022576000601c8281548110612f7a57612f7a614378565b60009182526020909120015460405163c455279160e01b81526001600160a01b038781166004830152918216925090851690829063c455279190602401602060405180830381865afa158015612fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ff89190614469565b6001600160a01b03160361301157600192505050611140565b5061301b8161438e565b9050612f5b565b506001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b60006301ffc9a760e01b6001600160e01b03198316148061308557506380ac58cd60e01b6001600160e01b03198316145b806111405750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061114057506001600160e01b031982166301ffc9a760e01b1492915050565b6000826130e6868685613860565b1490505b949350505050565b8061ffff16600d5461310491906142f5565b34036131985760125461ffff62010000820481169161312c91600160601b9091041683614486565b61ffff16111561314f576040516374d9e0b960e01b815260040160405180910390fd5b806012600c8282829054906101000a900461ffff1661316e9190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836000838361ffff166133cf565b8061ffff16600e546131aa91906142f5565b34036132405760125461ffff64010000000082048116916131d491600160701b9091041683614486565b61ffff1611156131f7576040516374d9e0b960e01b815260040160405180910390fd5b806012600e8282829054906101000a900461ffff166132169190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836001838361ffff166133cf565b8061ffff16600f5461325291906142f5565b34036132e75760125461ffff600160301b820481169161327b91600160801b9091041683614486565b61ffff16111561329e576040516374d9e0b960e01b815260040160405180910390fd5b80601260108282829054906101000a900461ffff166132bd9190614486565b92506101000a81548161ffff021916908361ffff1602179055506111836002838361ffff166133cf565b6040516394b5970f60e01b815260040160405180910390fd5b600081600111158015613314575060015482105b8015611140575050600090815260056020526040902054600160e01b161590565b6000818060011161338b5760015481101561338b5760008181526005602052604081205490600160e01b82169003613389575b8060000361304d575060001901600081815260056020526040902054613368565b505b604051636f96cda160e11b815260040160405180910390fd5b601254600160c01b900460ff16156129155760405163ab35696f60e01b815260040160405180910390fd5b816001600160a01b03168360038111156133eb576133eb613ea1565b7f9c9b2e5aa40f83c2745c7d46c1daa9a0ff22183c2191468ad2ca6c7b82f7455861341560015490565b60408051918252602082018690520160405180910390a36118af82825b6001546001600160a01b03831661345b57604051622e076360e81b815260040160405180910390fd5b8160000361347c5760405163b562e8dd60e01b815260040160405180910390fd5b61348960008483856133a4565b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106134d35760015550505050565b600061352a83613335565b90508060008061354886600090815260076020526040902080549091565b9150915084156135885761355d8184336116ee565b6135885761356b8333612f57565b61358857604051632ce44b5f60e11b815260040160405180910390fd5b6135968360008860016133a4565b80156135a157600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b8516900361362f5760018601600081815260056020526040812054900361362d57600154811461362d5760008181526005602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060028054600101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906136ad9033908990889088906004016144a3565b6020604051808303816000875af19250505080156136e8575060408051601f3d908101601f191682019092526136e5918101906144e0565b60015b613746573d808015613716576040519150601f19603f3d011682016040523d82523d6000602084013e61371b565b606091505b50805160000361373e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130ea565b6060816000036137875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137b1578061379b8161438e565b91506137aa9050600a8361432a565b915061378b565b6000816001600160401b038111156137cb576137cb613a15565b6040519080825280601f01601f1916602001820160405280156137f5576020820181803683370190505b5090505b84156130ea5761380a6001836144fd565b9150613817600a86614514565b61382290603061433e565b60f81b81838151811061383757613837614378565b60200101906001600160f81b031916908160001a905350613859600a8661432a565b94506137f9565b600081815b848110156138a35761388f8287878481811061388357613883614378565b905060200201356138ac565b91508061389b8161438e565b915050613865565b50949350505050565b60008183106138c857600082815260208490526040902061304d565b600083815260208390526040902061304d565b8280546138e7906142bb565b90600052602060002090601f016020900481019282613909576000855561394f565b82601f1061392257805160ff191683800117855561394f565b8280016001018555821561394f579182015b8281111561394f578251825591602001919060010190613934565b5061395b9291506139b4565b5090565b82805482825590600052602060002090810192821561394f579160200282015b8281111561394f57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061397f565b5b8082111561395b57600081556001016139b5565b6000602082840312156139db57600080fd5b5035919050565b6001600160e01b031981168114611e5b57600080fd5b600060208284031215613a0a57600080fd5b813561304d816139e2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a5357613a53613a15565b604052919050565b60006001600160401b03831115613a7457613a74613a15565b613a87601f8401601f1916602001613a2b565b9050828152838383011115613a9b57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ac357600080fd5b61304d83833560208501613a5b565b600060208284031215613ae457600080fd5b81356001600160401b03811115613afa57600080fd5b6130ea84828501613ab2565b60008083601f840112613b1857600080fd5b5081356001600160401b03811115613b2f57600080fd5b6020830191508360208260051b850101111561192357600080fd5b60008060208385031215613b5d57600080fd5b82356001600160401b03811115613b7357600080fd5b613b7f85828601613b06565b90969095509350505050565b60005b83811015613ba6578181015183820152602001613b8e565b838111156129155750506000910152565b60008151808452613bcf816020860160208601613b8b565b601f01601f19169290920160200192915050565b60208152600061304d6020830184613bb7565b6001600160a01b0381168114611e5b57600080fd5b60008060408385031215613c1e57600080fd5b8235613c2981613bf6565b946020939093013593505050565b600060208284031215613c4957600080fd5b813561304d81613bf6565b803561ffff81168114613c6657600080fd5b919050565b600060208284031215613c7d57600080fd5b61304d82613c54565b80358015158114613c6657600080fd5b600060208284031215613ca857600080fd5b61304d82613c86565b600080600060608486031215613cc657600080fd5b8335613cd181613bf6565b92506020840135613ce181613bf6565b929592945050506040919091013590565b60008060408385031215613d0557600080fd5b50508035926020909101359150565b60006001600160401b03821115613d2d57613d2d613a15565b5060051b60200190565b600082601f830112613d4857600080fd5b81356020613d5d613d5883613d14565b613a2b565b82815260059290921b84018101918181019086841115613d7c57600080fd5b8286015b84811015613da0578035613d9381613bf6565b8352918301918301613d80565b509695505050505050565b600060208284031215613dbd57600080fd5b81356001600160401b03811115613dd357600080fd5b6130ea84828501613d37565b803563ffffffff81168114613c6657600080fd5b60008060408385031215613e0657600080fd5b8235613e1181613bf6565b9150613e1f60208401613ddf565b90509250929050565b60008060408385031215613e3b57600080fd5b8235613e4681613bf6565b9150613e1f60208401613c54565b60008060408385031215613e6757600080fd5b613e7083613c86565b915060208301356001600160401b03811115613e8b57600080fd5b613e9785828601613ab2565b9150509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160028310613ecb57613ecb613ea1565b91905290565b80356001600160401b0381168114613c6657600080fd5b60008060408385031215613efb57600080fd5b613f0483613ed1565b9150613e1f60208401613ed1565b600080600060408486031215613f2757600080fd5b613f3084613ddf565b925060208401356001600160401b03811115613f4b57600080fd5b613f5786828701613b06565b9497909650939450505050565b600080600060608486031215613f7957600080fd5b613f8284613c86565b925060208401356001600160401b03811115613f9d57600080fd5b613fa986828701613ab2565b925050613fb860408501613c54565b90509250925092565b60008060408385031215613fd457600080fd5b823560038110613fe357600080fd5b9150602083013560028110613ff757600080fd5b809150509250929050565b6000806040838503121561401557600080fd5b823561402081613bf6565b9150613e1f60208401613c86565b60006020828403121561404057600080fd5b61304d82613ed1565b6020810160038310613ecb57613ecb613ea1565b6000806000806080858703121561407357600080fd5b843561407e81613bf6565b9350602085013561408e81613bf6565b92506040850135915060608501356001600160401b038111156140b057600080fd5b8501601f810187136140c157600080fd5b6140d087823560208401613a5b565b91505092959194509250565b600080600080606085870312156140f257600080fd5b843593506020850135925060408501356001600160401b0381111561411657600080fd5b61412287828801613b06565b95989497509550505050565b6000806000806060858703121561414457600080fd5b61414d85613ddf565b93506020850135925060408501356001600160401b0381111561411657600080fd5b6000806040838503121561418257600080fd5b82356001600160401b038082111561419957600080fd5b6141a586838701613d37565b93506020915081850135818111156141bc57600080fd5b85019050601f810186136141cf57600080fd5b80356141dd613d5882613d14565b81815260059190911b820183019083810190888311156141fc57600080fd5b928401925b8284101561421a57833582529284019290840190614201565b80955050505050509250929050565b6000806040838503121561423c57600080fd5b823561424781613bf6565b91506020830135613ff781613bf6565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156142b2576142b261427d565b01949350505050565b600181811c908216806142cf57607f821691505b6020821081036142ef57634e487b7160e01b600052602260045260246000fd5b50919050565b600081600019048311821515161561430f5761430f61427d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261433957614339614314565b500490565b600082198211156143515761435161427d565b500190565b60006001600160401b038083168185168083038211156142b2576142b261427d565b634e487b7160e01b600052603260045260246000fd5b6000600182016143a0576143a061427d565b5060010190565b600081516143b9818560208601613b8b565b9290920192915050565b600080845481600182811c9150808316806143df57607f831692505b602080841082036143fe57634e487b7160e01b86526022600452602486fd5b818015614412576001811461442357614450565b60ff19861689528489019650614450565b60008b81526020902060005b868110156144485781548b82015290850190830161442f565b505084890196505b50505050505061446081856143a7565b95945050505050565b60006020828403121561447b57600080fd5b815161304d81613bf6565b600061ffff8083168185168083038211156142b2576142b261427d565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144d690830184613bb7565b9695505050505050565b6000602082840312156144f257600080fd5b815161304d816139e2565b60008282101561450f5761450f61427d565b500390565b60008261452357614523614314565b50069056fea26469706673582212200a4d09616c946c131f7622b90bae78f3c99db4c9b97ae3aabe77a31b711e2c8364736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000db0000000000000000000000007f082d121ff1eececf553f5326855147c97f2383000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad93000000000000000000000000000000000000000000000000000000000000006b00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad9300000000000000000000000000000000000000000000000000000000000021340000000000000000000000007f082d121ff1eececf553f5326855147c97f238300000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad9300000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000004f00000000000000000000000094fefdcc640a2ddca67ebca189ba37a84272598b000000000000000000000000650e52425732bf5a74401a8c3111e183deb900ce000000000000000000000000f01e8304e8822c37db65b4ff95ff30f43d35382c00000000000000000000000040f988d30e5c7b6f6478d96e1d239f386fa75013000000000000000000000000cd87b9397091bb4078af53fbbb325be647951ae5000000000000000000000000c72e07aecd4ba815f7dcf5775ad21488368c0f3f0000000000000000000000009f7b1e10665200010d62a26d04de9007ff5d87320000000000000000000000002d18203e0a7f10e6145673bf1c33d7b86c7bbcc2000000000000000000000000e9bcafae35e64ad13df4e13e806a905ac464c7dd000000000000000000000000067031a14657c85204fa8fc9ddf2182670916a55000000000000000000000000363efcb031a8e89d207a5ce5e8d03409fc1158280000000000000000000000003543be4c6bfea708795552ffcbcdb44fceba41d80000000000000000000000001f0936b82c6cbb72c9176b9668418ea6e837530c000000000000000000000000c6a2bc1bd7dce6d724e3b0894c86fc6741d33b01000000000000000000000000c8447169f7a2ddd976cb98b1eff1170575bd922e00000000000000000000000004cb4a0f7533e765a8490cdfef761f6d552202f9000000000000000000000000445eae63c7962cee12c36a0cd8ba1bfa623b4c7c000000000000000000000000224fab37e4874075e8d4acf03d354c525f3aae47000000000000000000000000e21a406603140217a79ebb0aace4b6612f7094d900000000000000000000000014aada8b6308dfa66a0d0bbb2eae79c0fc91f2b30000000000000000000000007f375bce43290e81d3633292f906ddda08ee02f0000000000000000000000000609674147b322af0f9be9b9fac06f961e38b974d00000000000000000000000000167777e0daf9dc2d3a76195ab56e857ec67ab2000000000000000000000000bbc11a93ed4b07b97df36361dc0ca4ff38b8f70f0000000000000000000000007512001c7b8f88ad642f4d0d9c04caff61c49a3c00000000000000000000000017e969ed4401d4fe04f669e4782344557627a89c000000000000000000000000aada0268b315739f26b154df96a58f2c95a871ad000000000000000000000000155d0c8a0d12681bcef020e198d0094fa0cb90ff00000000000000000000000013723aab47173cf96a4d550f257f08f40a830a44000000000000000000000000a15c4dd07182622de0bde4cd3f76e84901e3a06e000000000000000000000000c3a22337ff96562c76831d517e5ffd2959270905000000000000000000000000709e711282177bac53a997963b9519f48bb9fa2c000000000000000000000000ad3c0354bf95dab7844cfd53a8b1ab1c6bcda4e10000000000000000000000000d143fa642edb57ba8d0e683d5eb08abeb94b5a6000000000000000000000000e7d659d9d1bb232a9505fd7e02221e91e193d2b80000000000000000000000002cea8dddf9b5b06ac4f9a6005df484237bdaaf3a00000000000000000000000060b96c818031e8f730665c4ec237653f1ea506b2000000000000000000000000bbd5f61166a5de72b6d38cc82c61403446a650d4000000000000000000000000a176434c04c780baced713aca12a153458cd570f000000000000000000000000cee4c6c3883563b6358c6ea3dcd9a609f4cc9e9c000000000000000000000000611b4e7a48df1c53aeab9f4fe6038b4f6f5d2cf7000000000000000000000000ee0f4bcb6efadc8767e3feb20bb144c4b5795627000000000000000000000000f8ab9ce58d0b8397d324b92257627a0aed48bc730000000000000000000000006e334f5fb722881f8846083dac5f38e473ab730a0000000000000000000000008378309df3489921e5b1538a17ffcd6d495c4b1d0000000000000000000000001ea02ba70a6bce8553acb5cdfbcdf5ab6d719b2d000000000000000000000000c502335254f27d1c08f3467be05961c47c41110300000000000000000000000025cbf60a55c648e803f58100ac774c0d9f2bd8320000000000000000000000002c3c69c87d20f9a013f3fb8839159e1bd1a0f843000000000000000000000000dbb4cc5e068c45525252ccbbf8a718aa0227eae0000000000000000000000000bf5d634c666c16d4283916280b5c3abb92c7392e00000000000000000000000089d06090361f52d22291f57ce3cd50469f7f43b200000000000000000000000085017ff1c5b2e5949ce69ead07f94962cd730cbd000000000000000000000000f95777d7c533cbb1c1f075eef6c05f7313b046410000000000000000000000003e2ead7dcdb698be8f15ad1b735ba7cd2ec1e5dd0000000000000000000000005ecfd16fd53331dd114f67461ca3bab96fc8f2fa000000000000000000000000720480ca4bda85be916de755b92f1f4629ced7270000000000000000000000008f4abe7cf4d3f0a608c0c4204d99b253bc4755b5000000000000000000000000384dcb2a611f840c9baf90fd565ba76134f33308000000000000000000000000ec8d1a614a5ea5e0c85a948ced1f76e7221f7beb0000000000000000000000009284c692f0bff823f3f48471fab18a994ad04700000000000000000000000000105f6ac08e0a9f7949c97429ecd0f3b65c9c69070000000000000000000000003a6af7657de9732155c752453f818e880c28bbd8000000000000000000000000fa496edcfddeadfb1842e4901d5b6ecc25029d4900000000000000000000000088190c9cbaa1ecb698f928162358a50edd0ab3b4000000000000000000000000096316628fa61d3e4615c085a5ff527b1813ea8f0000000000000000000000005c2332abffba8ca8a72404835b13979a7cc40945000000000000000000000000ac775af0915fae64dd8986880409a4306ee88574000000000000000000000000741ac1b07aafd6956b9bb3c017f9734e0fb143510000000000000000000000001a641536722c39354fbddf79ee119b706ffed0fe0000000000000000000000005ae5375ee0f4cff5904b8670d284d518a4fedb030000000000000000000000004313703216f388e7b35e8e7dc4f2dbc3e75ea3a0000000000000000000000000bdc4c76bc0fc869f6d929cf3681d306910b282e2000000000000000000000000106c20050f239f07023c2a2b8def54e1520c73870000000000000000000000008d9b29ba52c10de72d95479d007403c676afc4fa000000000000000000000000ebbe66c4bb07fc188b2fda67528f514012067f720000000000000000000000005ddb3b4a903c873a6fd18448c991786e92f0b65e000000000000000000000000bbb85d042d87da6ad51379903ff72892c98dbbf90000000000000000000000000df5f5560ce2dbf9c332482f4aa901f606076e2e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000004fee7b061c97c9c496b01dbce9cdb10c02f0a0be
-----Decoded View---------------
Arg [0] : supplyGM (uint16): 11
Arg [1] : supplyAGM (uint16): 46
Arg [2] : supplyFO (uint16): 219
Arg [3] : owner (address): 0x7f082D121Ff1EecEcf553f5326855147C97F2383
Arg [4] : vault (address): 0xB9E025603D44377102DcF9Ec78e7C87eB5efaD93
Arg [5] : vaultGoldsQuantity (uint256): 107
Arg [6] : airdropAccountsGold (address[]): 0x94fefDCC640A2DDcA67ebcA189bA37a84272598B,0x650E52425732bf5a74401a8c3111E183deb900cE,0xf01e8304E8822c37Db65b4Ff95fF30F43d35382c,0x40f988d30e5C7b6F6478D96E1D239F386Fa75013,0xcD87B9397091bb4078af53FbBB325be647951ae5,0xc72E07AecD4BA815F7Dcf5775ad21488368C0F3f,0x9F7b1e10665200010D62A26d04De9007ff5d8732,0x2d18203E0A7F10E6145673bF1c33d7b86c7Bbcc2,0xe9bCAfAe35e64aD13dF4E13e806a905ac464C7dd,0x067031a14657C85204fA8fc9DDF2182670916A55,0x363eFCb031a8E89D207A5cE5E8D03409fc115828,0x3543Be4C6bFEa708795552ffcbcDb44fcEba41D8,0x1f0936B82C6cBb72C9176b9668418Ea6e837530C,0xC6A2bC1BD7dce6D724e3b0894C86Fc6741D33B01,0xC8447169F7a2dDd976Cb98b1efF1170575bd922e,0x04cb4a0f7533E765a8490CdFeF761f6D552202F9,0x445EaE63C7962cee12c36a0cd8ba1BfA623b4C7C,0x224faB37E4874075e8D4aCF03D354C525F3aAE47,0xE21A406603140217a79EbB0aACe4B6612F7094D9,0x14aada8B6308DFa66A0D0BbB2EAE79c0fC91f2B3,0x7F375bCE43290e81D3633292F906dDDa08EE02f0,0x609674147b322af0F9be9b9fAc06f961e38B974D,0x00167777e0daF9dc2D3A76195ab56E857ec67aB2,0xBBc11a93eD4B07B97DF36361dC0cA4fF38B8f70F,0x7512001c7b8F88Ad642f4D0d9c04Caff61c49A3c,0x17E969eD4401d4FE04F669e4782344557627A89C,0xaada0268b315739f26b154dF96a58F2C95A871aD,0x155D0c8A0d12681bcEF020e198D0094fa0Cb90Ff,0x13723aaB47173cF96A4D550F257F08F40A830a44,0xA15c4DD07182622dE0bde4cD3f76e84901e3a06E,0xC3A22337ff96562c76831D517E5FFD2959270905,0x709E711282177Bac53a997963B9519f48bb9fa2C,0xAd3c0354bf95Dab7844CfD53A8b1Ab1C6BCdA4e1,0x0D143Fa642eDB57Ba8D0E683D5eb08AbeB94B5a6,0xE7d659D9D1Bb232A9505FD7e02221e91E193d2b8,0x2ceA8dDdf9B5B06ac4f9A6005dF484237BDaAF3a,0x60b96C818031E8f730665C4EC237653f1eA506B2,0xbBD5f61166a5dE72b6d38cC82c61403446A650D4,0xa176434C04C780Baced713ACA12a153458cD570f,0xcee4c6c3883563B6358c6Ea3dCD9a609f4Cc9e9c,0x611b4e7A48DF1c53AeAB9F4fE6038b4f6f5D2cF7,0xEe0F4bcB6EFADc8767E3feB20BB144c4b5795627,0xf8AB9ce58D0b8397d324b92257627A0Aed48Bc73,0x6E334f5fB722881F8846083daC5F38e473AB730A,0x8378309df3489921e5B1538a17ffCd6d495C4B1D,0x1EA02bA70a6BCe8553acb5cDfBcDf5AB6d719B2D,0xc502335254F27d1C08F3467bE05961C47c411103,0x25CBf60a55C648e803f58100Ac774c0D9f2BD832,0x2c3C69c87d20F9A013F3fB8839159e1Bd1A0f843,0xDBb4cC5E068c45525252cCBBf8a718aa0227EAe0,0xbF5d634c666c16d4283916280B5C3ABB92c7392e,0x89d06090361F52D22291f57CE3Cd50469F7f43b2,0x85017FF1C5b2e5949Ce69eAd07F94962CD730Cbd,0xF95777d7c533CbB1C1F075EEF6C05F7313b04641,0x3E2EaD7DCDB698be8F15aD1b735ba7Cd2ec1e5Dd,0x5ecfD16Fd53331dd114F67461Ca3baB96fC8F2fa,0x720480ca4BDA85Be916dE755b92F1F4629CEd727,0x8f4AbE7Cf4D3f0A608C0C4204d99b253bc4755b5,0x384DcB2a611f840C9BAF90fd565BA76134f33308,0xEC8d1A614A5ea5E0c85A948CED1f76E7221f7beb,0x9284c692F0bff823F3F48471FAB18A994ad04700,0x105F6AC08E0A9f7949C97429ecD0f3b65C9C6907,0x3A6Af7657dE9732155c752453f818e880c28bBD8,0xFa496EdCFDDeAdFB1842e4901D5B6eCC25029D49,0x88190C9cBaa1ECb698F928162358A50EDD0ab3b4,0x096316628FA61d3E4615C085a5ff527b1813EA8F,0x5c2332ABFFbA8CA8A72404835b13979A7cC40945,0xaC775Af0915FaE64Dd8986880409a4306Ee88574,0x741aC1b07AafD6956B9BB3c017F9734e0FB14351,0x1a641536722c39354FbdDF79Ee119b706fFED0Fe,0x5AE5375eE0f4cfF5904b8670d284d518A4feDB03,0x4313703216F388e7B35E8e7Dc4f2dBC3E75eA3a0,0xBDc4C76BC0fc869F6d929cF3681D306910B282e2,0x106c20050f239f07023C2a2b8Def54e1520c7387,0x8d9B29BA52c10dE72D95479d007403C676AFC4Fa,0xEBBe66C4Bb07fC188B2Fda67528f514012067F72,0x5ddb3b4a903c873A6FD18448c991786E92f0b65E,0xBBb85d042d87DA6AD51379903Ff72892C98dBBF9,0x0Df5f5560ce2dBF9c332482f4AA901F606076E2e
Arg [7] : proxies (address[]): 0xa5409ec958C83C3f309868babACA7c86DCB077c1,0x4feE7B061C97C9c496b01DbcE9CDb10c02f0a0Be
Arg [8] : teamPayee (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [9] : devPayee (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [10] : royalties (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
97 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000db
Arg [3] : 0000000000000000000000007f082d121ff1eececf553f5326855147c97f2383
Arg [4] : 000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad93
Arg [5] : 000000000000000000000000000000000000000000000000000000000000006b
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000bc0
Arg [8] : 000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad93
Arg [9] : 0000000000000000000000000000000000000000000000000000000000002134
Arg [10] : 0000000000000000000000007f082d121ff1eececf553f5326855147c97f2383
Arg [11] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [12] : 000000000000000000000000b9e025603d44377102dcf9ec78e7c87eb5efad93
Arg [13] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [14] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [15] : 00000000000000000000000094fefdcc640a2ddca67ebca189ba37a84272598b
Arg [16] : 000000000000000000000000650e52425732bf5a74401a8c3111e183deb900ce
Arg [17] : 000000000000000000000000f01e8304e8822c37db65b4ff95ff30f43d35382c
Arg [18] : 00000000000000000000000040f988d30e5c7b6f6478d96e1d239f386fa75013
Arg [19] : 000000000000000000000000cd87b9397091bb4078af53fbbb325be647951ae5
Arg [20] : 000000000000000000000000c72e07aecd4ba815f7dcf5775ad21488368c0f3f
Arg [21] : 0000000000000000000000009f7b1e10665200010d62a26d04de9007ff5d8732
Arg [22] : 0000000000000000000000002d18203e0a7f10e6145673bf1c33d7b86c7bbcc2
Arg [23] : 000000000000000000000000e9bcafae35e64ad13df4e13e806a905ac464c7dd
Arg [24] : 000000000000000000000000067031a14657c85204fa8fc9ddf2182670916a55
Arg [25] : 000000000000000000000000363efcb031a8e89d207a5ce5e8d03409fc115828
Arg [26] : 0000000000000000000000003543be4c6bfea708795552ffcbcdb44fceba41d8
Arg [27] : 0000000000000000000000001f0936b82c6cbb72c9176b9668418ea6e837530c
Arg [28] : 000000000000000000000000c6a2bc1bd7dce6d724e3b0894c86fc6741d33b01
Arg [29] : 000000000000000000000000c8447169f7a2ddd976cb98b1eff1170575bd922e
Arg [30] : 00000000000000000000000004cb4a0f7533e765a8490cdfef761f6d552202f9
Arg [31] : 000000000000000000000000445eae63c7962cee12c36a0cd8ba1bfa623b4c7c
Arg [32] : 000000000000000000000000224fab37e4874075e8d4acf03d354c525f3aae47
Arg [33] : 000000000000000000000000e21a406603140217a79ebb0aace4b6612f7094d9
Arg [34] : 00000000000000000000000014aada8b6308dfa66a0d0bbb2eae79c0fc91f2b3
Arg [35] : 0000000000000000000000007f375bce43290e81d3633292f906ddda08ee02f0
Arg [36] : 000000000000000000000000609674147b322af0f9be9b9fac06f961e38b974d
Arg [37] : 00000000000000000000000000167777e0daf9dc2d3a76195ab56e857ec67ab2
Arg [38] : 000000000000000000000000bbc11a93ed4b07b97df36361dc0ca4ff38b8f70f
Arg [39] : 0000000000000000000000007512001c7b8f88ad642f4d0d9c04caff61c49a3c
Arg [40] : 00000000000000000000000017e969ed4401d4fe04f669e4782344557627a89c
Arg [41] : 000000000000000000000000aada0268b315739f26b154df96a58f2c95a871ad
Arg [42] : 000000000000000000000000155d0c8a0d12681bcef020e198d0094fa0cb90ff
Arg [43] : 00000000000000000000000013723aab47173cf96a4d550f257f08f40a830a44
Arg [44] : 000000000000000000000000a15c4dd07182622de0bde4cd3f76e84901e3a06e
Arg [45] : 000000000000000000000000c3a22337ff96562c76831d517e5ffd2959270905
Arg [46] : 000000000000000000000000709e711282177bac53a997963b9519f48bb9fa2c
Arg [47] : 000000000000000000000000ad3c0354bf95dab7844cfd53a8b1ab1c6bcda4e1
Arg [48] : 0000000000000000000000000d143fa642edb57ba8d0e683d5eb08abeb94b5a6
Arg [49] : 000000000000000000000000e7d659d9d1bb232a9505fd7e02221e91e193d2b8
Arg [50] : 0000000000000000000000002cea8dddf9b5b06ac4f9a6005df484237bdaaf3a
Arg [51] : 00000000000000000000000060b96c818031e8f730665c4ec237653f1ea506b2
Arg [52] : 000000000000000000000000bbd5f61166a5de72b6d38cc82c61403446a650d4
Arg [53] : 000000000000000000000000a176434c04c780baced713aca12a153458cd570f
Arg [54] : 000000000000000000000000cee4c6c3883563b6358c6ea3dcd9a609f4cc9e9c
Arg [55] : 000000000000000000000000611b4e7a48df1c53aeab9f4fe6038b4f6f5d2cf7
Arg [56] : 000000000000000000000000ee0f4bcb6efadc8767e3feb20bb144c4b5795627
Arg [57] : 000000000000000000000000f8ab9ce58d0b8397d324b92257627a0aed48bc73
Arg [58] : 0000000000000000000000006e334f5fb722881f8846083dac5f38e473ab730a
Arg [59] : 0000000000000000000000008378309df3489921e5b1538a17ffcd6d495c4b1d
Arg [60] : 0000000000000000000000001ea02ba70a6bce8553acb5cdfbcdf5ab6d719b2d
Arg [61] : 000000000000000000000000c502335254f27d1c08f3467be05961c47c411103
Arg [62] : 00000000000000000000000025cbf60a55c648e803f58100ac774c0d9f2bd832
Arg [63] : 0000000000000000000000002c3c69c87d20f9a013f3fb8839159e1bd1a0f843
Arg [64] : 000000000000000000000000dbb4cc5e068c45525252ccbbf8a718aa0227eae0
Arg [65] : 000000000000000000000000bf5d634c666c16d4283916280b5c3abb92c7392e
Arg [66] : 00000000000000000000000089d06090361f52d22291f57ce3cd50469f7f43b2
Arg [67] : 00000000000000000000000085017ff1c5b2e5949ce69ead07f94962cd730cbd
Arg [68] : 000000000000000000000000f95777d7c533cbb1c1f075eef6c05f7313b04641
Arg [69] : 0000000000000000000000003e2ead7dcdb698be8f15ad1b735ba7cd2ec1e5dd
Arg [70] : 0000000000000000000000005ecfd16fd53331dd114f67461ca3bab96fc8f2fa
Arg [71] : 000000000000000000000000720480ca4bda85be916de755b92f1f4629ced727
Arg [72] : 0000000000000000000000008f4abe7cf4d3f0a608c0c4204d99b253bc4755b5
Arg [73] : 000000000000000000000000384dcb2a611f840c9baf90fd565ba76134f33308
Arg [74] : 000000000000000000000000ec8d1a614a5ea5e0c85a948ced1f76e7221f7beb
Arg [75] : 0000000000000000000000009284c692f0bff823f3f48471fab18a994ad04700
Arg [76] : 000000000000000000000000105f6ac08e0a9f7949c97429ecd0f3b65c9c6907
Arg [77] : 0000000000000000000000003a6af7657de9732155c752453f818e880c28bbd8
Arg [78] : 000000000000000000000000fa496edcfddeadfb1842e4901d5b6ecc25029d49
Arg [79] : 00000000000000000000000088190c9cbaa1ecb698f928162358a50edd0ab3b4
Arg [80] : 000000000000000000000000096316628fa61d3e4615c085a5ff527b1813ea8f
Arg [81] : 0000000000000000000000005c2332abffba8ca8a72404835b13979a7cc40945
Arg [82] : 000000000000000000000000ac775af0915fae64dd8986880409a4306ee88574
Arg [83] : 000000000000000000000000741ac1b07aafd6956b9bb3c017f9734e0fb14351
Arg [84] : 0000000000000000000000001a641536722c39354fbddf79ee119b706ffed0fe
Arg [85] : 0000000000000000000000005ae5375ee0f4cff5904b8670d284d518a4fedb03
Arg [86] : 0000000000000000000000004313703216f388e7b35e8e7dc4f2dbc3e75ea3a0
Arg [87] : 000000000000000000000000bdc4c76bc0fc869f6d929cf3681d306910b282e2
Arg [88] : 000000000000000000000000106c20050f239f07023c2a2b8def54e1520c7387
Arg [89] : 0000000000000000000000008d9b29ba52c10de72d95479d007403c676afc4fa
Arg [90] : 000000000000000000000000ebbe66c4bb07fc188b2fda67528f514012067f72
Arg [91] : 0000000000000000000000005ddb3b4a903c873a6fd18448c991786e92f0b65e
Arg [92] : 000000000000000000000000bbb85d042d87da6ad51379903ff72892c98dbbf9
Arg [93] : 0000000000000000000000000df5f5560ce2dbf9c332482f4aa901f606076e2e
Arg [94] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [95] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [96] : 0000000000000000000000004fee7b061c97c9c496b01dbce9cdb10c02f0a0be
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.