Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
799 STREETHERS
Holders
369
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 STREETHERSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DropspaceSale
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; import "./IDropspaceSale.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "erc721a/contracts/ERC721A.sol"; contract DropspaceSale is IDropspaceSale, ERC721A, Ownable { using SafeMath for uint256; using Strings for uint256; uint256 MAX = 2**256 - 1; uint256 public override mintLimit; uint256 public override mintPrice; uint256 public override supplyLimit; string public override baseURI; bool public override smartContractAllowance = false; bool public override saleActive; bool public override presaleActive; bool public override whitelistSaleActive; bool public override stageSaleActive; address payable public override withdrawalWallet; address payable public override devWallet; address public override ticketAddress; bool public override whitelistBuyOnce; uint256 devSaleShare; uint256 ownerSaleShare; mapping(uint256 => bool) public override usedTickets; bytes32 public override whitelistRoot; mapping(address => bool) public override whitelistClaimed; mapping(uint256 => bytes32) public override stageWhitelistRoot; mapping(uint256 => uint256) public override stagePrice; mapping(uint256 => uint256) public override stageLimit; constructor( uint256 _supplyLimit, uint256 _mintLimit, uint256 _mintPrice, uint256 _devSaleShare, address payable _withdrawalWallet, address payable _devWallet, address _ticketAddress, string memory _name, string memory _ticker, string memory _baseURI ) ERC721A(_name, _ticker) { supplyLimit = _supplyLimit; mintLimit = _mintLimit; mintPrice = _mintPrice; withdrawalWallet = _withdrawalWallet; devWallet = _devWallet; ticketAddress = _ticketAddress; baseURI = _baseURI; devSaleShare = _devSaleShare; ownerSaleShare = uint256(10000).sub(devSaleShare); } modifier onlyWithdrawalWallet() { require(address(withdrawalWallet) == _msgSender(), "DropspaceSale: caller is not the withdrawal wallet"); _; } function setWhitelistBuyOnce(bool _whitelistBuyOnce) external onlyOwner override { whitelistBuyOnce = _whitelistBuyOnce; emit WhitelistBuyOnceChanged(whitelistBuyOnce); } function changeSupplyLimit(uint256 _supplyLimit) external onlyOwner override { require(supplyLimit >= totalSupply(), "DropspaceSale::changeSupplyLimit: Supply Limit can't be reduced below total supply"); require(supplyLimit <= 8000, "DropspaceSale::changeSupplyLimit: Supply Limit can't be greater than 8000."); supplyLimit = _supplyLimit; emit SupplyLimitChanged(_supplyLimit); } function setMintPrice(uint256 _mintPrice) external onlyOwner override { mintPrice = _mintPrice; emit MintPriceChanged(_mintPrice); } function setWhitelistClaimStatus(address _user, bool _status) public onlyOwner override { _setWhitelistClaimStatus(_user, _status); } function _setWhitelistClaimStatus(address _user, bool _status) internal { whitelistClaimed[_user] = _status; emit WhitelistClaimStatusChanged(_user, _status); } // For the Stage 1-5 whitelists function setStageWhitelistRoot(uint256 _stage, bytes32 _whitelistRoot) external onlyOwner override { stageWhitelistRoot[_stage] = _whitelistRoot; emit StageWhitelistRootChanged(_stage, _whitelistRoot); } // For the Stage 1-5 price function setStagePrice(uint256 _stage, uint256 _price) external onlyOwner override { stagePrice[_stage] = _price; emit StagePriceChanged(_stage, _price); } // For the Stage 1-5 limit function setStageLimit(uint256 _stage, uint256 _limit) external onlyOwner override { stageLimit[_stage] = _limit; emit StageLimitChanged(_stage, _limit); } // For usual whitelist function setWhitelistRoot(bytes32 _whitelistRoot) external onlyOwner override { whitelistRoot = _whitelistRoot; emit WhitelistRootChanged(_whitelistRoot); } function toggleSaleActive() external onlyOwner override { saleActive = !saleActive; if (saleActive) { mintPrice = 0.2 ether; emit MintPriceChanged(mintPrice); mintLimit = 10; emit MintLimitChanged(mintLimit); } emit ToggleSaleState(saleActive); } function toggleStageSaleActive() external onlyOwner override { stageSaleActive = !stageSaleActive; emit ToggleStageSaleState(stageSaleActive); } function toggleWhitelistSaleActive() external onlyOwner override { whitelistSaleActive = !whitelistSaleActive; emit ToggleWhitelistSaleState(whitelistSaleActive); } function setBaseURI(string memory _baseURI) external onlyOwner override { baseURI = _baseURI; emit BaseURIChanged(baseURI); } function setSmartContractAllowance(bool _smartContractAllowance) external onlyOwner override { smartContractAllowance = _smartContractAllowance; emit SmartContractAllowanceChanged(smartContractAllowance); } function setWithdrawalWallet(address payable _withdrawalWallet) external onlyOwner override { withdrawalWallet = _withdrawalWallet; emit WithdrawalWalletChanged(withdrawalWallet); } function setMintLimit(uint256 _mintLimit) external onlyOwner override { mintLimit = _mintLimit; emit MintLimitChanged(mintLimit); } function withdraw() external onlyOwner override { uint256 contractBalance = address(this).balance; devWallet.transfer(contractBalance.mul(devSaleShare).div(10000)); withdrawalWallet.transfer(contractBalance.mul(ownerSaleShare).div(10000)); } function reserve(uint256 _amount) external onlyOwner override { _mint(_amount); emit Reserve(_amount); } function buy(uint256 _amount) external override payable { require(saleActive, "Dropspace::buy: Sale is not active."); require(_amount <= mintLimit, "Dropspace::buy: Too many tokens for one transaction."); require(msg.value >= mintPrice.mul(_amount), "Dropspace::buy: Insufficient payment."); if (!smartContractAllowance) { require(tx.origin == _msgSender(), "Dropspace::buy: Smart contracts are not allowed to buy."); } _mint(_amount); emit Buy(_msgSender(), _amount); } function _mint(uint256 _amount) internal { require(totalSupply().add(_amount) <= supplyLimit, "Not enough tokens left."); _safeMint(_msgSender(), _amount); } function tokenURI(uint256 _tokenId) public view override returns(string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : ""; } function togglePresaleActive() external onlyOwner override { presaleActive = !presaleActive; emit TogglePresaleState(presaleActive); } function setTicketAddress(address _ticketAddress) external onlyOwner override { require(_ticketAddress != address(0), "DropSpaceSale::setTicketAddress: Invalid address."); ticketAddress = _ticketAddress; emit TicketAddressChanged(_ticketAddress); } function presaleBuy(uint256 _ticketId, uint _amount) external payable override { require(presaleActive, "Dropspace::presaleBuy: Presale is not Active."); require(IERC721(ticketAddress).ownerOf(_ticketId) == _msgSender(), "Dropspace::presaleBuy: invalid ticket."); require(!usedTickets[_ticketId], "Dropspace::presaleBuy: Ticket already used."); require(_amount <= mintLimit, "Dropspace::presaleBuy: Too many tokens for one transaction."); require(msg.value >= mintPrice.mul(_amount), "Dropspace::presaleBuy: Insufficient payment."); usedTickets[_ticketId] = true; _mint(_amount); emit PresaleBuy(_msgSender(), _ticketId, _amount); } function _verifyWhitelist(address _user, bytes32[] calldata _merkleProof) internal view returns(bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, whitelistRoot, leaf); } function _verifyWhitelistStage(address _user, bytes32[] calldata _merkleProof, uint256 _stage) internal view returns(bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, stageWhitelistRoot[_stage], leaf); } function stageBuy(uint256 _amount, bytes32[] calldata _merkleProof, uint256 _stage) external payable override { require(stageSaleActive, "DropSpaceSale::stageBuy: Stage Buy is not Active."); require(msg.value == stagePrice[_stage].mul(_amount), "Dropspace::stageBuy: Insufficient payment."); require(_verifyWhitelistStage(_msgSender(), _merkleProof, _stage), "Dropspace::stageBuy: User is not whitelisted"); require(_amount <= stageLimit[_stage], "Dropspace::stageBuy: Too many tokens for one transaction."); if (whitelistBuyOnce) { require(!whitelistClaimed[_msgSender()], "Dropspace::stageBuy: Already claimed"); _setWhitelistClaimStatus(_msgSender(), true); } _mint(_amount); emit StageBuy(_msgSender(), _amount, _stage); } function whitelistBuy(uint256 _amount, bytes32[] calldata _merkleProof) external payable override { require(whitelistSaleActive, "DropSpaceSale::whitelistBuy: Whitelist Buy is not Active."); require(_amount <= mintLimit, "Dropspace::whitelistBuy: Too many tokens for one transaction."); require(msg.value >= mintPrice.mul(_amount), "Dropspace::whitelistBuy: Insufficient payment."); require(_verifyWhitelist(_msgSender(), _merkleProof), "Dropspace::whitelistBuy: User is not whitelisted"); if (whitelistBuyOnce) { require(!whitelistClaimed[_msgSender()], "Dropspace::whitelistBuy: Already claimed"); _setWhitelistClaimStatus(_msgSender(), true); } _mint(_amount); emit WhitelistBuy(_msgSender(), _amount); } function clearTicket(uint256 _ticketId) external override onlyOwner{ require(usedTickets[_ticketId], "Dropspace::clearTicket: Ticket is not used"); usedTickets[_ticketId] = false; emit TicketCleared(_ticketId); } receive() external override payable {} }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; interface IDropspaceSale { // OWNER ONLY function togglePresaleActive() external; function toggleWhitelistSaleActive() external; function toggleSaleActive() external; function toggleStageSaleActive() external; function setBaseURI(string memory _baseURI) external; function setWithdrawalWallet(address payable _withdrawalWallet) external; function setMintLimit(uint256 _mintLimit) external; function setSmartContractAllowance(bool _smartContractAllowance) external; function setTicketAddress(address _ticketAddress) external; function setWhitelistClaimStatus(address _user, bool _status) external; function changeSupplyLimit(uint256 _supplyLimit) external; function setMintPrice(uint256 _mintPrice) external; function setWhitelistBuyOnce(bool _whitelistBuyOnce) external; function setWhitelistRoot(bytes32 _whitelistRoot) external; function setStageWhitelistRoot(uint256 _stage, bytes32 _whitelistRoot) external; function setStagePrice(uint256 _stage, uint256 _price) external; function setStageLimit(uint256 _stage, uint256 _limit) external; function reserve(uint256 _amount) external; function withdraw() external; function clearTicket(uint256 _ticketId) external; // EXTERNAL function buy(uint256 _amount) external payable; function presaleBuy(uint256 _ticketId, uint256 _amount) external payable; function whitelistBuy(uint256 _amount, bytes32[] calldata _merkleProof) external payable; function stageBuy(uint256 _amount, bytes32[] calldata _merkleProof, uint256 _stage) external payable; // VIEW function supplyLimit() view external returns(uint256); function mintPrice() view external returns(uint256); function mintLimit() view external returns(uint256); function baseURI() view external returns(string memory); function saleActive() view external returns(bool); function presaleActive() view external returns(bool); function whitelistSaleActive() view external returns(bool); function stageSaleActive() view external returns(bool); function smartContractAllowance() view external returns(bool); function devWallet() view external returns(address payable); function withdrawalWallet() view external returns(address payable); function ticketAddress() view external returns(address); function usedTickets(uint256 _ticketId) view external returns(bool); function whitelistClaimed(address _user) view external returns(bool); function whitelistBuyOnce() view external returns(bool); function whitelistRoot() view external returns(bytes32); function stagePrice(uint256 _stage) view external returns(uint256); function stageLimit(uint256 _stage) view external returns(uint256); function stageWhitelistRoot(uint256 _stage) view external returns(bytes32); // EVENTS event Reserve(uint256 _amount); event Mint(address indexed _user, uint256 indexed _tokenId, string _tokenURI); event ToggleSaleState(bool _state); event BaseURIChanged(string _baseURI); event WithdrawalWalletChanged(address payable _newWithdrawalWallet); event DevWalletChanged(address payable _newDevWallet); event DevShareSaleChanged(uint256 _devSaleShare); event MintLimitChanged(uint256 _newMintLimit); event MintPriceChanged(uint256 _mintPrice); event SmartContractAllowanceChanged(bool _newSmartContractAllowance); event TogglePresaleState(bool _preSaleState); event TicketAddressChanged(address _ticketAddress); event PresaleBuy(address _user, uint256 _ticketId, uint256 _amount); event WhitelistBuy(address _user, uint256 _amount); event StageBuy(address _user, uint256 _amount, uint256 _stage); event Buy(address _user, uint256 _amount); event WhitelistClaimStatusChanged(address _user, bool _status); event ToggleWhitelistSaleState(bool _whitelistSaleActive); event ToggleStageSaleState(bool _stageSaleActive); event SupplyLimitChanged(uint256 _supplyLimit); event TicketCleared(uint256 _ticketId); event StageWhitelistRootChanged(uint256 _stage, bytes32 _whitelistRoot); event WhitelistRootChanged(bytes32 _whitelistRoot); event WhitelistBuyOnceChanged(bool _whitelistBuyOnce); event StagePriceChanged(uint256 _stage, uint256 _price); event StageLimitChanged(uint256 _stage, uint256 _limit); receive() external payable; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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"; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees 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. */ 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 Returns the rebuilt hash obtained by traversing a Merklee 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 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**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(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 tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_supplyLimit","type":"uint256"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_devSaleShare","type":"uint256"},{"internalType":"address payable","name":"_withdrawalWallet","type":"address"},{"internalType":"address payable","name":"_devWallet","type":"address"},{"internalType":"address","name":"_ticketAddress","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_ticker","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_baseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_devSaleShare","type":"uint256"}],"name":"DevShareSaleChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable","name":"_newDevWallet","type":"address"}],"name":"DevWalletChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_tokenURI","type":"string"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_newMintLimit","type":"uint256"}],"name":"MintLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"MintPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ticketId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PresaleBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Reserve","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_newSmartContractAllowance","type":"bool"}],"name":"SmartContractAllowanceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stage","type":"uint256"}],"name":"StageBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_stage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"StageLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_stage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"StagePriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_stage","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"StageWhitelistRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_supplyLimit","type":"uint256"}],"name":"SupplyLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ticketAddress","type":"address"}],"name":"TicketAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_ticketId","type":"uint256"}],"name":"TicketCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_preSaleState","type":"bool"}],"name":"TogglePresaleState","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_state","type":"bool"}],"name":"ToggleSaleState","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_stageSaleActive","type":"bool"}],"name":"ToggleStageSaleState","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_whitelistSaleActive","type":"bool"}],"name":"ToggleWhitelistSaleState","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WhitelistBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_whitelistBuyOnce","type":"bool"}],"name":"WhitelistBuyOnceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"WhitelistClaimStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"WhitelistRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable","name":"_newWithdrawalWallet","type":"address"}],"name":"WithdrawalWalletChanged","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supplyLimit","type":"uint256"}],"name":"changeSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticketId","type":"uint256"}],"name":"clearTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticketId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"presaleBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_smartContractAllowance","type":"bool"}],"name":"setSmartContractAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stage","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setStageLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stage","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setStagePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stage","type":"uint256"},{"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"setStageWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ticketAddress","type":"address"}],"name":"setTicketAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistBuyOnce","type":"bool"}],"name":"setWhitelistBuyOnce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelistClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_withdrawalWallet","type":"address"}],"name":"setWithdrawalWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smartContractAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_stage","type":"uint256"}],"name":"stageBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stageLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stagePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stageSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stageWhitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ticketAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleStageSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedTickets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistBuyOnce","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600019600855600d805460ff191690553480156200002157600080fd5b5060405162003fd738038062003fd783398101604081905262000044916200031e565b8251839083906200005d906001906020850190620001a8565b50805162000073906002906020840190620001a8565b505050620000906200008a6200013d60201b60201c565b62000141565b600b8a90556009899055600a889055600d80546001600160a01b038089166501000000000002600160281b600160c81b031990921691909117909155600e80548783166001600160a01b031991821617909155600f80549287169290911691909117905580516200010990600c906020840190620001a8565b506010879055620001296127108862000193602090811b620028f917901c565b601155506200048498505050505050505050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620001a182846200040d565b9392505050565b828054620001b69062000431565b90600052602060002090601f016020900481019282620001da576000855562000225565b82601f10620001f557805160ff191683800117855562000225565b8280016001018555821562000225579182015b828111156200022557825182559160200191906001019062000208565b506200023392915062000237565b5090565b5b8082111562000233576000815560010162000238565b80516001600160a01b03811681146200026657600080fd5b919050565b600082601f8301126200027c578081fd5b81516001600160401b03808211156200029957620002996200046e565b604051601f8301601f19908116603f01168101908282118183101715620002c457620002c46200046e565b81604052838152602092508683858801011115620002e0578485fd5b8491505b83821015620003035785820183015181830184015290820190620002e4565b838211156200031457848385830101525b9695505050505050565b6000806000806000806000806000806101408b8d0312156200033e578586fd5b8a51995060208b0151985060408b0151975060608b015196506200036560808c016200024e565b95506200037560a08c016200024e565b94506200038560c08c016200024e565b60e08c01519094506001600160401b0380821115620003a2578485fd5b620003b08e838f016200026b565b94506101008d0151915080821115620003c7578384fd5b620003d58e838f016200026b565b93506101208d0151915080821115620003ec578283fd5b50620003fb8d828e016200026b565b9150509295989b9194979a5092959850565b6000828210156200042c57634e487b7160e01b81526011600452602481fd5b500390565b600181811c908216806200044657607f821691505b602082108114156200046857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613b4380620004946000396000f3fe6080604052600436106103b15760003560e01c806370a08231116101e7578063c43b79341161010d578063e985e9c5116100a0578063f4a0a5281161006f578063f4a0a52814610afe578063f5aa406d14610b1e578063f7a3084014610b3e578063fb63f29c14610b5e57600080fd5b8063e985e9c514610a48578063ec5c096314610a91578063ed9a5bbb14610abe578063f2fde38b14610ade57600080fd5b8063d7e2875c116100dc578063d7e2875c146109b7578063d96a094a146109d8578063db4bec44146109eb578063e1db42ea14610a1b57600080fd5b8063c43b793414610935578063c87b56dd14610962578063caad2a8f14610982578063d44e35731461099757600080fd5b80638ea5220f11610185578063a22cb46511610154578063a22cb465146108c0578063ab26320e146108e0578063b88d4fde14610900578063b89fe9991461092057600080fd5b80638ea5220f1461085557806395d89b4114610875578063996517cf1461088a5780639e6a1d7d146108a057600080fd5b806375796f76116101c157806375796f76146107e2578063819b25ba1461080257806389b0649b146108225780638da5cb5b1461083757600080fd5b806370a082311461077d578063715018a61461079d57806371efdc21146107b257600080fd5b8063386bfc98116102d757806357a8e3fe1161026a57806368124a6a1161023957806368124a6a146107205780636817c76c1461073357806368428a1b146107495780636c0360eb1461076857600080fd5b806357a8e3fe146106a6578063591e194b146106c65780636352211e146106e6578063646d7a7f1461070657600080fd5b80634a7d80b3116102a65780634a7d80b31461061d5780634f6ccce71461064657806353135ca01461066657806355f804b31461068657600080fd5b8063386bfc98146105b15780633ad7f56c146105c75780633ccfd60b146105e857806342842e0e146105fd57600080fd5b80630af012dd1161034f578063267c942e1161031e578063267c942e1461053a5780632f745c591461055c5780633100a5351461057c57806333bb532c1461059157600080fd5b80630af012dd146104c157806318160ddd146104e157806319d1997a1461050457806323b872dd1461051a57600080fd5b806308e992871161038b57806308e992871461044c57806309499f531461046e578063095ea7b31461048e5780630983061c146104ae57600080fd5b806301ffc9a7146103bd57806306fdde03146103f2578063081812fc1461041457600080fd5b366103b857005b600080fd5b3480156103c957600080fd5b506103dd6103d83660046136c9565b610b71565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50610407610bde565b6040516103e991906138df565b34801561042057600080fd5b5061043461042f3660046136b1565b610c70565b6040516001600160a01b0390911681526020016103e9565b34801561045857600080fd5b5061046c610467366004613697565b610cb4565b005b34801561047a57600080fd5b5061046c610489366004613638565b610d35565b34801561049a57600080fd5b5061046c6104a936600461366c565b610d6d565b61046c6104bc3660046137df565b610dfb565b3480156104cd57600080fd5b5061046c6104dc3660046137df565b611113565b3480156104ed57600080fd5b506104f6611185565b6040519081526020016103e9565b34801561051057600080fd5b506104f6600b5481565b34801561052657600080fd5b5061046c61053536600461357c565b6111a4565b34801561054657600080fd5b50600d546103dd90640100000000900460ff1681565b34801561056857600080fd5b506104f661057736600461366c565b6111af565b34801561058857600080fd5b5061046c6112ab565b34801561059d57600080fd5b5061046c6105ac3660046137df565b6113bc565b3480156105bd57600080fd5b506104f660135481565b3480156105d357600080fd5b50600d546103dd906301000000900460ff1681565b3480156105f457600080fd5b5061046c61142e565b34801561060957600080fd5b5061046c61061836600461357c565b611515565b34801561062957600080fd5b50600d54610434906501000000000090046001600160a01b031681565b34801561065257600080fd5b506104f66106613660046136b1565b611530565b34801561067257600080fd5b50600d546103dd9062010000900460ff1681565b34801561069257600080fd5b5061046c6106a1366004613701565b6115da565b3480156106b257600080fd5b50600f54610434906001600160a01b031681565b3480156106d257600080fd5b5061046c6106e1366004613697565b611648565b3480156106f257600080fd5b506104346107013660046136b1565b6116c7565b34801561071257600080fd5b50600d546103dd9060ff1681565b61046c61072e366004613746565b6116d9565b34801561073f57600080fd5b506104f6600a5481565b34801561075557600080fd5b50600d546103dd90610100900460ff1681565b34801561077457600080fd5b50610407611993565b34801561078957600080fd5b506104f661079836600461350c565b611a21565b3480156107a957600080fd5b5061046c611a6f565b3480156107be57600080fd5b506103dd6107cd3660046136b1565b60126020526000908152604090205460ff1681565b3480156107ee57600080fd5b5061046c6107fd36600461350c565b611aa5565b34801561080e57600080fd5b5061046c61081d3660046136b1565b611b30565b34801561082e57600080fd5b5061046c611b93565b34801561084357600080fd5b506007546001600160a01b0316610434565b34801561086157600080fd5b50600e54610434906001600160a01b031681565b34801561088157600080fd5b50610407611c17565b34801561089657600080fd5b506104f660095481565b3480156108ac57600080fd5b5061046c6108bb3660046136b1565b611c26565b3480156108cc57600080fd5b5061046c6108db366004613638565b611c85565b3480156108ec57600080fd5b5061046c6108fb3660046136b1565b611d1b565b34801561090c57600080fd5b5061046c61091b3660046135bc565b611dfe565b34801561092c57600080fd5b5061046c611e38565b34801561094157600080fd5b506104f66109503660046136b1565b60166020526000908152604090205481565b34801561096e57600080fd5b5061040761097d3660046136b1565b611ebe565b34801561098e57600080fd5b5061046c611f89565b3480156109a357600080fd5b5061046c6109b23660046136b1565b612011565b3480156109c357600080fd5b50600f546103dd90600160a01b900460ff1681565b61046c6109e63660046136b1565b612197565b3480156109f757600080fd5b506103dd610a0636600461350c565b60146020526000908152604090205460ff1681565b348015610a2757600080fd5b506104f6610a363660046136b1565b60156020526000908152604090205481565b348015610a5457600080fd5b506103dd610a63366004613544565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a9d57600080fd5b506104f6610aac3660046136b1565b60176020526000908152604090205481565b348015610aca57600080fd5b5061046c610ad936600461350c565b612391565b348015610aea57600080fd5b5061046c610af936600461350c565b612479565b348015610b0a57600080fd5b5061046c610b193660046136b1565b612514565b348015610b2a57600080fd5b5061046c610b393660046136b1565b612573565b348015610b4a57600080fd5b5061046c610b593660046137df565b6125d2565b61046c610b6c36600461378f565b612644565b60006001600160e01b031982166380ac58cd60e01b1480610ba257506001600160e01b03198216635b5e139f60e01b145b80610bbd57506001600160e01b0319821663780e9d6360e01b145b80610bd857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610bed90613a36565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1990613a36565b8015610c665780601f10610c3b57610100808354040283529160200191610c66565b820191906000526020600020905b815481529060010190602001808311610c4957829003601f168201915b5050505050905090565b6000610c7b8261290c565b610c98576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6007546001600160a01b03163314610ce75760405162461bcd60e51b8152600401610cde90613973565b60405180910390fd5b600d805460ff191682151590811790915560405160ff909116151581527f2a5bfbb68782e57b3242e612145304c845af3404e2d328a12dd2e7c078cd0117906020015b60405180910390a150565b6007546001600160a01b03163314610d5f5760405162461bcd60e51b8152600401610cde90613973565b610d698282612940565b5050565b6000610d78826116c7565b9050806001600160a01b0316836001600160a01b03161415610dad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610dcd5750610dcb8133610a63565b155b15610deb576040516367d9dca160e11b815260040160405180910390fd5b610df683838361299c565b505050565b600d5462010000900460ff16610e695760405162461bcd60e51b815260206004820152602d60248201527f44726f7073706163653a3a70726573616c654275793a2050726573616c65206960448201526c39903737ba1020b1ba34bb329760991b6064820152608401610cde565b33600f546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610eb257600080fd5b505afa158015610ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eea9190613528565b6001600160a01b031614610f4f5760405162461bcd60e51b815260206004820152602660248201527f44726f7073706163653a3a70726573616c654275793a20696e76616c6964207460448201526534b1b5b2ba1760d11b6064820152608401610cde565b60008281526012602052604090205460ff1615610fc25760405162461bcd60e51b815260206004820152602b60248201527f44726f7073706163653a3a70726573616c654275793a205469636b657420616c60448201526a3932b0b23c903ab9b2b21760a91b6064820152608401610cde565b60095481111561103a5760405162461bcd60e51b815260206004820152603b60248201527f44726f7073706163653a3a70726573616c654275793a20546f6f206d616e792060448201527f746f6b656e7320666f72206f6e65207472616e73616374696f6e2e00000000006064820152608401610cde565b600a5461104790826129f8565b3410156110ab5760405162461bcd60e51b815260206004820152602c60248201527f44726f7073706163653a3a70726573616c654275793a20496e7375666669636960448201526b32b73a103830bcb6b2b73a1760a11b6064820152608401610cde565b6000828152601260205260409020805460ff191660011790556110cd81612a04565b60408051338152602081018490529081018290527fb77d41b776d1d5cc75b500402614335da616afa8aa95b49325e22db7f1ca86cc906060015b60405180910390a15050565b6007546001600160a01b0316331461113d5760405162461bcd60e51b8152600401610cde90613973565b60008281526017602090815260409182902083905581518481529081018390527fd2bf0b462786683f53b07ea16a1887663c35bbd70fe7c79825b8c79441be31e09101611107565b6000546001600160801b03600160801b82048116918116919091031690565b610df6838383612a71565b60006111ba83611a21565b82106111d9576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b838110156112a557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290611251575061129d565b80516001600160a01b03161561126657805192505b876001600160a01b0316836001600160a01b0316141561129b578684141561129457509350610bd892505050565b6001909301925b505b6001016111ea565b50600080fd5b6007546001600160a01b031633146112d55760405162461bcd60e51b8152600401610cde90613973565b600d805460ff610100808304821615810261ff0019909316929092179283905591041615611379576702c68af0bb140000600a8190556040519081527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f9060200160405180910390a1600a60098190556040519081527f9ae30a041b5f2244849dc754c675b09aef4ad230b48995476fd6e6415d1fe8ab9060200160405180910390a15b600d5460405161010090910460ff16151581527f5a454f976028c400c4159ac85c61452441fcf06b9888c7c780c5980e3c3123dd906020015b60405180910390a1565b6007546001600160a01b031633146113e65760405162461bcd60e51b8152600401610cde90613973565b60008281526016602090815260409182902083905581518481529081018390527f2e9951542fbd73f391722df2086d5ce48b8dc78e845cab548361bbabfe21e1fb9101611107565b6007546001600160a01b031633146114585760405162461bcd60e51b8152600401610cde90613973565b600e5460105447916001600160a01b0316906108fc9061148790612710906114819086906129f8565b90612c8e565b6040518115909202916000818181858888f193505050501580156114af573d6000803e3d6000fd5b50600d60059054906101000a90046001600160a01b03166001600160a01b03166108fc6114ed612710611481601154866129f890919063ffffffff16565b6040518115909202916000818181858888f19350505050158015610d69573d6000803e3d6000fd5b610df683838360405180602001604052806000815250611dfe565b600080546001600160801b031681805b828110156115c057600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906115b757858314156115b05750949350505050565b6001909201915b50600101611540565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b031633146116045760405162461bcd60e51b8152600401610cde90613973565b805161161790600c9060208401906133a0565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6600c604051610d2a91906138f2565b6007546001600160a01b031633146116725760405162461bcd60e51b8152600401610cde90613973565b600f805460ff60a01b1916600160a01b8315158102919091179182905560405160ff9190920416151581527fc6e0fb794d60d245727554ed563b17ec5cd901c15ee395b10535ce370b1bdccd90602001610d2a565b60006116d282612c9a565b5192915050565b600d546301000000900460ff166117585760405162461bcd60e51b815260206004820152603960248201527f44726f70537061636553616c653a3a77686974656c6973744275793a2057686960448201527f74656c69737420427579206973206e6f74204163746976652e000000000000006064820152608401610cde565b6009548311156117d05760405162461bcd60e51b815260206004820152603d60248201527f44726f7073706163653a3a77686974656c6973744275793a20546f6f206d616e60448201527f7920746f6b656e7320666f72206f6e65207472616e73616374696f6e2e0000006064820152608401610cde565b600a546117dd90846129f8565b3410156118435760405162461bcd60e51b815260206004820152602e60248201527f44726f7073706163653a3a77686974656c6973744275793a20496e737566666960448201526d31b4b2b73a103830bcb6b2b73a1760911b6064820152608401610cde565b61184e338383612dbc565b6118b35760405162461bcd60e51b815260206004820152603060248201527f44726f7073706163653a3a77686974656c6973744275793a205573657220697360448201526f081b9bdd081dda1a5d195b1a5cdd195960821b6064820152608401610cde565b600f54600160a01b900460ff1615611942573360009081526014602052604090205460ff16156119365760405162461bcd60e51b815260206004820152602860248201527f44726f7073706163653a3a77686974656c6973744275793a20416c72656164796044820152670818db185a5b595960c21b6064820152608401610cde565b611942335b6001612940565b61194b83612a04565b7f8714612a507e7fcd9f26d997e561a61611f4bad945c787b8865dc23823ef037b33604080516001600160a01b039092168252602082018690520160405180910390a1505050565b600c80546119a090613a36565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90613a36565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505081565b60006001600160a01b038216611a4a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b03163314611a995760405162461bcd60e51b8152600401610cde90613973565b611aa36000612e42565b565b6007546001600160a01b03163314611acf5760405162461bcd60e51b8152600401610cde90613973565b600d805465010000000000600160c81b031916650100000000006001600160a01b038481168202929092179283905560405192041681527fb470355146314037ce5186813b4b7c65bff2b87f98d44ff063570d0e22d65ba390602001610d2a565b6007546001600160a01b03163314611b5a5760405162461bcd60e51b8152600401610cde90613973565b611b6381612a04565b6040518181527fdb7b64a879507c32bda4d0cf22dee29ed875c7157ecbbc10fe11bf14fab06d1290602001610d2a565b6007546001600160a01b03163314611bbd5760405162461bcd60e51b8152600401610cde90613973565b600d805460ff62010000808304821615810262ff00001990931692909217928390556040517f38822fae85453c65b78e1b7d02e45cae5eb0d7961e34226fb29c49dab9d3a357936113b29390049091161515815260200190565b606060028054610bed90613a36565b6007546001600160a01b03163314611c505760405162461bcd60e51b8152600401610cde90613973565b60098190556040518181527f9ae30a041b5f2244849dc754c675b09aef4ad230b48995476fd6e6415d1fe8ab90602001610d2a565b6001600160a01b038216331415611caf5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314611d455760405162461bcd60e51b8152600401610cde90613973565b60008181526012602052604090205460ff16611db65760405162461bcd60e51b815260206004820152602a60248201527f44726f7073706163653a3a636c6561725469636b65743a205469636b657420696044820152691cc81b9bdd081d5cd95960b21b6064820152608401610cde565b60008181526012602052604090819020805460ff19169055517f256e63760868166c3f047c49d3e1614c1ca6c620d715c552c54ddb4ba428719c90610d2a9083815260200190565b611e09848484612a71565b611e1584848484612e94565b611e32576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6007546001600160a01b03163314611e625760405162461bcd60e51b8152600401610cde90613973565b600d805460ff6301000000808304821615810263ff0000001990931692909217928390556040517ffabb6e4b24bd8ac3a08555e569d13590c5006dc61e4aae65e74296d3df6759ed936113b29390049091161515815260200190565b6060611ec98261290c565b611f2d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cde565b6000600c8054611f3c90613a36565b905011611f585760405180602001604052806000815250610bd8565b600c611f6383612fa3565b604051602001611f7492919061382c565b60405160208183030381529060405292915050565b6007546001600160a01b03163314611fb35760405162461bcd60e51b8152600401610cde90613973565b600d805460ff640100000000808304821615810264ff000000001990931692909217928390556040517f1c7a4c17a04ca23eb8ca2d6bca0e3214efc94f707336847da0135d6e2d509b14936113b29390049091161515815260200190565b6007546001600160a01b0316331461203b5760405162461bcd60e51b8152600401610cde90613973565b612043611185565b600b5410156120d55760405162461bcd60e51b815260206004820152605260248201527f44726f70737061636553616c653a3a6368616e6765537570706c794c696d697460448201527f3a20537570706c79204c696d69742063616e277420626520726564756365642060648201527162656c6f7720746f74616c20737570706c7960701b608482015260a401610cde565b611f40600b5411156121625760405162461bcd60e51b815260206004820152604a60248201527f44726f70737061636553616c653a3a6368616e6765537570706c794c696d697460448201527f3a20537570706c79204c696d69742063616e27742062652067726561746572206064820152693a3430b7101c1818181760b11b608482015260a401610cde565b600b8190556040518181527f178f2d92de18f124251b08e25bacba56eda0716625c1e799fc6c8ed1ee7d1d0790602001610d2a565b600d54610100900460ff166121fa5760405162461bcd60e51b815260206004820152602360248201527f44726f7073706163653a3a6275793a2053616c65206973206e6f7420616374696044820152623b329760e91b6064820152608401610cde565b6009548111156122695760405162461bcd60e51b815260206004820152603460248201527f44726f7073706163653a3a6275793a20546f6f206d616e7920746f6b656e73206044820152733337b91037b732903a3930b739b0b1ba34b7b71760611b6064820152608401610cde565b600a5461227690826129f8565b3410156122d35760405162461bcd60e51b815260206004820152602560248201527f44726f7073706163653a3a6275793a20496e73756666696369656e742070617960448201526436b2b73a1760d91b6064820152608401610cde565b600d5460ff16612352573233146123525760405162461bcd60e51b815260206004820152603760248201527f44726f7073706163653a3a6275793a20536d61727420636f6e7472616374732060448201527f617265206e6f7420616c6c6f77656420746f206275792e0000000000000000006064820152608401610cde565b61235b81612a04565b60408051338152602081018390527fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e9101610d2a565b6007546001600160a01b031633146123bb5760405162461bcd60e51b8152600401610cde90613973565b6001600160a01b03811661242b5760405162461bcd60e51b815260206004820152603160248201527f44726f70537061636553616c653a3a7365745469636b6574416464726573733a6044820152701024b73b30b634b21030b2323932b9b99760791b6064820152608401610cde565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527f4846b8d14a603fbd3567c63384f41a947d787c004e59ce39ee755d0485ae5ed890602001610d2a565b6007546001600160a01b031633146124a35760405162461bcd60e51b8152600401610cde90613973565b6001600160a01b0381166125085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cde565b61251181612e42565b50565b6007546001600160a01b0316331461253e5760405162461bcd60e51b8152600401610cde90613973565b600a8190556040518181527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f90602001610d2a565b6007546001600160a01b0316331461259d5760405162461bcd60e51b8152600401610cde90613973565b60138190556040518181527f6be426d58d2fb0cea1f78182904380aac426a50029637dc9e9d2e40bc44ac05090602001610d2a565b6007546001600160a01b031633146125fc5760405162461bcd60e51b8152600401610cde90613973565b60008281526015602090815260409182902083905581518481529081018390527f0a0583f4d2f1098898324303e402dea967960519401c0359d5cde5d17c7d36c79101611107565b600d54640100000000900460ff166126b85760405162461bcd60e51b815260206004820152603160248201527f44726f70537061636553616c653a3a73746167654275793a20537461676520426044820152703abc9034b9903737ba1020b1ba34bb329760791b6064820152608401610cde565b6000818152601660205260409020546126d190856129f8565b34146127325760405162461bcd60e51b815260206004820152602a60248201527f44726f7073706163653a3a73746167654275793a20496e73756666696369656e6044820152693a103830bcb6b2b73a1760b11b6064820152608401610cde565b61273e338484846130bc565b61279f5760405162461bcd60e51b815260206004820152602c60248201527f44726f7073706163653a3a73746167654275793a2055736572206973206e6f7460448201526b081dda1a5d195b1a5cdd195960a21b6064820152608401610cde565b6000818152601760205260409020548411156128235760405162461bcd60e51b815260206004820152603960248201527f44726f7073706163653a3a73746167654275793a20546f6f206d616e7920746f60448201527f6b656e7320666f72206f6e65207472616e73616374696f6e2e000000000000006064820152608401610cde565b600f54600160a01b900460ff16156128aa573360009081526014602052604090205460ff16156128a15760405162461bcd60e51b8152602060048201526024808201527f44726f7073706163653a3a73746167654275793a20416c726561647920636c616044820152631a5b595960e21b6064820152608401610cde565b6128aa3361193b565b6128b384612a04565b604080513381526020810186905280820183905290517f681e8945c1c80247adf901f15f41414fbde1dbd14475af0b3f9fc31b2c9163f69181900360600190a150505050565b600061290582846139f3565b9392505050565b600080546001600160801b031682108015610bd8575050600090815260036020526040902054600160e01b900460ff161590565b6001600160a01b038216600081815260146020908152604091829020805460ff19168515159081179091558251938452908301527f9df634e89ddfd6892a56594ccd1a1971304a02d24cb197afdd540194c0b653a29101611107565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061290582846139d4565b600b54612a1982612a13611185565b9061314d565b1115612a675760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820746f6b656e73206c6566742e0000000000000000006044820152606401610cde565b6125113382613159565b6000612a7c82612c9a565b80519091506000906001600160a01b0316336001600160a01b03161480612aaa57508151612aaa9033610a63565b80612ac5575033612aba84610c70565b6001600160a01b0316145b905080612ae557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612b1a5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416612b4157604051633a954ecd60e21b815260040160405180910390fd5b612b51600084846000015161299c565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612c44576000546001600160801b0316811015612c4457825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061290582846139c0565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015612da357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612da15780516001600160a01b031615612d38579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612d9c579392505050565b612d38565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612e39848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013549150849050613173565b95945050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612f9757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ed89033908990889088906004016138ac565b602060405180830381600087803b158015612ef257600080fd5b505af1925050508015612f22575060408051601f3d908101601f19168201909252612f1f918101906136e5565b60015b612f7d573d808015612f50576040519150601f19603f3d011682016040523d82523d6000602084013e612f55565b606091505b508051612f75576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f9b565b5060015b949350505050565b606081612fc75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ff15780612fdb81613a71565b9150612fea9050600a836139c0565b9150612fcb565b6000816001600160401b0381111561301957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613043576020820181803683370190505b5090505b8415612f9b576130586001836139f3565b9150613065600a86613a8c565b6130709060306139a8565b60f81b81838151811061309357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506130b5600a866139c0565b9450613047565b6040516bffffffffffffffffffffffff19606086901b166020820152600090819060340160405160208183030381529060405280519060200120905061314385858080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508881526015602052604090205492508591506131739050565b9695505050505050565b600061290582846139a8565b610d69828260405180602001604052806000815250613189565b6000826131808584613196565b14949350505050565b610df68383836001613218565b600081815b84518110156132105760008582815181106131c657634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131ec57600083815260208290526040902092506131fd565b600081815260208490526040902092505b508061320881613a71565b91505061319b565b509392505050565b6000546001600160801b03166001600160a01b03851661324a57604051622e076360e81b815260040160405180910390fd5b836132685760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561337a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015613350575061334e6000888488612e94565b155b1561336e576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016132f9565b50600080546001600160801b0319166001600160801b0392909216919091179055612c87565b8280546133ac90613a36565b90600052602060002090601f0160209004810192826133ce5760008555613414565b82601f106133e757805160ff1916838001178555613414565b82800160010185558215613414579182015b828111156134145782518255916020019190600101906133f9565b50613420929150613424565b5090565b5b808211156134205760008155600101613425565b60006001600160401b038084111561345357613453613acc565b604051601f8501601f19908116603f0116810190828211818310171561347b5761347b613acc565b8160405280935085815286868601111561349457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126134bf578182fd5b5081356001600160401b038111156134d5578182fd5b6020830191508360208260051b85010111156134f057600080fd5b9250929050565b8035801515811461350757600080fd5b919050565b60006020828403121561351d578081fd5b813561290581613ae2565b600060208284031215613539578081fd5b815161290581613ae2565b60008060408385031215613556578081fd5b823561356181613ae2565b9150602083013561357181613ae2565b809150509250929050565b600080600060608486031215613590578081fd5b833561359b81613ae2565b925060208401356135ab81613ae2565b929592945050506040919091013590565b600080600080608085870312156135d1578081fd5b84356135dc81613ae2565b935060208501356135ec81613ae2565b92506040850135915060608501356001600160401b0381111561360d578182fd5b8501601f8101871361361d578182fd5b61362c87823560208401613439565b91505092959194509250565b6000806040838503121561364a578182fd5b823561365581613ae2565b9150613663602084016134f7565b90509250929050565b6000806040838503121561367e578182fd5b823561368981613ae2565b946020939093013593505050565b6000602082840312156136a8578081fd5b612905826134f7565b6000602082840312156136c2578081fd5b5035919050565b6000602082840312156136da578081fd5b813561290581613af7565b6000602082840312156136f6578081fd5b815161290581613af7565b600060208284031215613712578081fd5b81356001600160401b03811115613727578182fd5b8201601f81018413613737578182fd5b612f9b84823560208401613439565b60008060006040848603121561375a578081fd5b8335925060208401356001600160401b03811115613776578182fd5b613782868287016134ae565b9497909650939450505050565b600080600080606085870312156137a4578182fd5b8435935060208501356001600160401b038111156137c0578283fd5b6137cc878288016134ae565b9598909750949560400135949350505050565b600080604083850312156137f1578182fd5b50508035926020909101359150565b60008151808452613818816020860160208601613a0a565b601f01601f19169290920160200192915050565b600080845461383a81613a36565b6001828116801561385257600181146138635761388f565b60ff1984168752828701945061388f565b8886526020808720875b858110156138865781548a82015290840190820161386d565b50505082870194505b5050505083516138a3818360208801613a0a565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314390830184613800565b6020815260006129056020830184613800565b6000602080835281845461390581613a36565b80848701526040600180841660008114613926576001811461393a57613965565b60ff19851689840152606089019550613965565b898852868820885b8581101561395d5781548b8201860152908301908801613942565b8a0184019650505b509398975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156139bb576139bb613aa0565b500190565b6000826139cf576139cf613ab6565b500490565b60008160001904831182151516156139ee576139ee613aa0565b500290565b600082821015613a0557613a05613aa0565b500390565b60005b83811015613a25578181015183820152602001613a0d565b83811115611e325750506000910152565b600181811c90821680613a4a57607f821691505b60208210811415613a6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a8557613a85613aa0565b5060010190565b600082613a9b57613a9b613ab6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461251157600080fd5b6001600160e01b03198116811461251157600080fdfea26469706673582212205174daff3c23e6cefe945236077ce36c51f46759727990d4fc6140caec9c168e64736f6c634300080400330000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000025bf6196bd1000000000000000000000000000000000000000000000000000000000000000001900000000000000000000000005cd0a4043cfa2776bfed01e5de11ca8f86bb8153000000000000000000000000856701083ed11a0d35bac3b769b4c8efe3330d170000000000000000000000007ba0a79ec30259e2792a43989edd97c6e40bb3360000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a5354524545544845525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5354524545544845525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f626166796265696169363276626b757436747a6b32626b71613477696b37646b677378777a613636726e677074647a78706b37706a6133747670752f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103b15760003560e01c806370a08231116101e7578063c43b79341161010d578063e985e9c5116100a0578063f4a0a5281161006f578063f4a0a52814610afe578063f5aa406d14610b1e578063f7a3084014610b3e578063fb63f29c14610b5e57600080fd5b8063e985e9c514610a48578063ec5c096314610a91578063ed9a5bbb14610abe578063f2fde38b14610ade57600080fd5b8063d7e2875c116100dc578063d7e2875c146109b7578063d96a094a146109d8578063db4bec44146109eb578063e1db42ea14610a1b57600080fd5b8063c43b793414610935578063c87b56dd14610962578063caad2a8f14610982578063d44e35731461099757600080fd5b80638ea5220f11610185578063a22cb46511610154578063a22cb465146108c0578063ab26320e146108e0578063b88d4fde14610900578063b89fe9991461092057600080fd5b80638ea5220f1461085557806395d89b4114610875578063996517cf1461088a5780639e6a1d7d146108a057600080fd5b806375796f76116101c157806375796f76146107e2578063819b25ba1461080257806389b0649b146108225780638da5cb5b1461083757600080fd5b806370a082311461077d578063715018a61461079d57806371efdc21146107b257600080fd5b8063386bfc98116102d757806357a8e3fe1161026a57806368124a6a1161023957806368124a6a146107205780636817c76c1461073357806368428a1b146107495780636c0360eb1461076857600080fd5b806357a8e3fe146106a6578063591e194b146106c65780636352211e146106e6578063646d7a7f1461070657600080fd5b80634a7d80b3116102a65780634a7d80b31461061d5780634f6ccce71461064657806353135ca01461066657806355f804b31461068657600080fd5b8063386bfc98146105b15780633ad7f56c146105c75780633ccfd60b146105e857806342842e0e146105fd57600080fd5b80630af012dd1161034f578063267c942e1161031e578063267c942e1461053a5780632f745c591461055c5780633100a5351461057c57806333bb532c1461059157600080fd5b80630af012dd146104c157806318160ddd146104e157806319d1997a1461050457806323b872dd1461051a57600080fd5b806308e992871161038b57806308e992871461044c57806309499f531461046e578063095ea7b31461048e5780630983061c146104ae57600080fd5b806301ffc9a7146103bd57806306fdde03146103f2578063081812fc1461041457600080fd5b366103b857005b600080fd5b3480156103c957600080fd5b506103dd6103d83660046136c9565b610b71565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50610407610bde565b6040516103e991906138df565b34801561042057600080fd5b5061043461042f3660046136b1565b610c70565b6040516001600160a01b0390911681526020016103e9565b34801561045857600080fd5b5061046c610467366004613697565b610cb4565b005b34801561047a57600080fd5b5061046c610489366004613638565b610d35565b34801561049a57600080fd5b5061046c6104a936600461366c565b610d6d565b61046c6104bc3660046137df565b610dfb565b3480156104cd57600080fd5b5061046c6104dc3660046137df565b611113565b3480156104ed57600080fd5b506104f6611185565b6040519081526020016103e9565b34801561051057600080fd5b506104f6600b5481565b34801561052657600080fd5b5061046c61053536600461357c565b6111a4565b34801561054657600080fd5b50600d546103dd90640100000000900460ff1681565b34801561056857600080fd5b506104f661057736600461366c565b6111af565b34801561058857600080fd5b5061046c6112ab565b34801561059d57600080fd5b5061046c6105ac3660046137df565b6113bc565b3480156105bd57600080fd5b506104f660135481565b3480156105d357600080fd5b50600d546103dd906301000000900460ff1681565b3480156105f457600080fd5b5061046c61142e565b34801561060957600080fd5b5061046c61061836600461357c565b611515565b34801561062957600080fd5b50600d54610434906501000000000090046001600160a01b031681565b34801561065257600080fd5b506104f66106613660046136b1565b611530565b34801561067257600080fd5b50600d546103dd9062010000900460ff1681565b34801561069257600080fd5b5061046c6106a1366004613701565b6115da565b3480156106b257600080fd5b50600f54610434906001600160a01b031681565b3480156106d257600080fd5b5061046c6106e1366004613697565b611648565b3480156106f257600080fd5b506104346107013660046136b1565b6116c7565b34801561071257600080fd5b50600d546103dd9060ff1681565b61046c61072e366004613746565b6116d9565b34801561073f57600080fd5b506104f6600a5481565b34801561075557600080fd5b50600d546103dd90610100900460ff1681565b34801561077457600080fd5b50610407611993565b34801561078957600080fd5b506104f661079836600461350c565b611a21565b3480156107a957600080fd5b5061046c611a6f565b3480156107be57600080fd5b506103dd6107cd3660046136b1565b60126020526000908152604090205460ff1681565b3480156107ee57600080fd5b5061046c6107fd36600461350c565b611aa5565b34801561080e57600080fd5b5061046c61081d3660046136b1565b611b30565b34801561082e57600080fd5b5061046c611b93565b34801561084357600080fd5b506007546001600160a01b0316610434565b34801561086157600080fd5b50600e54610434906001600160a01b031681565b34801561088157600080fd5b50610407611c17565b34801561089657600080fd5b506104f660095481565b3480156108ac57600080fd5b5061046c6108bb3660046136b1565b611c26565b3480156108cc57600080fd5b5061046c6108db366004613638565b611c85565b3480156108ec57600080fd5b5061046c6108fb3660046136b1565b611d1b565b34801561090c57600080fd5b5061046c61091b3660046135bc565b611dfe565b34801561092c57600080fd5b5061046c611e38565b34801561094157600080fd5b506104f66109503660046136b1565b60166020526000908152604090205481565b34801561096e57600080fd5b5061040761097d3660046136b1565b611ebe565b34801561098e57600080fd5b5061046c611f89565b3480156109a357600080fd5b5061046c6109b23660046136b1565b612011565b3480156109c357600080fd5b50600f546103dd90600160a01b900460ff1681565b61046c6109e63660046136b1565b612197565b3480156109f757600080fd5b506103dd610a0636600461350c565b60146020526000908152604090205460ff1681565b348015610a2757600080fd5b506104f6610a363660046136b1565b60156020526000908152604090205481565b348015610a5457600080fd5b506103dd610a63366004613544565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a9d57600080fd5b506104f6610aac3660046136b1565b60176020526000908152604090205481565b348015610aca57600080fd5b5061046c610ad936600461350c565b612391565b348015610aea57600080fd5b5061046c610af936600461350c565b612479565b348015610b0a57600080fd5b5061046c610b193660046136b1565b612514565b348015610b2a57600080fd5b5061046c610b393660046136b1565b612573565b348015610b4a57600080fd5b5061046c610b593660046137df565b6125d2565b61046c610b6c36600461378f565b612644565b60006001600160e01b031982166380ac58cd60e01b1480610ba257506001600160e01b03198216635b5e139f60e01b145b80610bbd57506001600160e01b0319821663780e9d6360e01b145b80610bd857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610bed90613a36565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1990613a36565b8015610c665780601f10610c3b57610100808354040283529160200191610c66565b820191906000526020600020905b815481529060010190602001808311610c4957829003601f168201915b5050505050905090565b6000610c7b8261290c565b610c98576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6007546001600160a01b03163314610ce75760405162461bcd60e51b8152600401610cde90613973565b60405180910390fd5b600d805460ff191682151590811790915560405160ff909116151581527f2a5bfbb68782e57b3242e612145304c845af3404e2d328a12dd2e7c078cd0117906020015b60405180910390a150565b6007546001600160a01b03163314610d5f5760405162461bcd60e51b8152600401610cde90613973565b610d698282612940565b5050565b6000610d78826116c7565b9050806001600160a01b0316836001600160a01b03161415610dad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610dcd5750610dcb8133610a63565b155b15610deb576040516367d9dca160e11b815260040160405180910390fd5b610df683838361299c565b505050565b600d5462010000900460ff16610e695760405162461bcd60e51b815260206004820152602d60248201527f44726f7073706163653a3a70726573616c654275793a2050726573616c65206960448201526c39903737ba1020b1ba34bb329760991b6064820152608401610cde565b33600f546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610eb257600080fd5b505afa158015610ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eea9190613528565b6001600160a01b031614610f4f5760405162461bcd60e51b815260206004820152602660248201527f44726f7073706163653a3a70726573616c654275793a20696e76616c6964207460448201526534b1b5b2ba1760d11b6064820152608401610cde565b60008281526012602052604090205460ff1615610fc25760405162461bcd60e51b815260206004820152602b60248201527f44726f7073706163653a3a70726573616c654275793a205469636b657420616c60448201526a3932b0b23c903ab9b2b21760a91b6064820152608401610cde565b60095481111561103a5760405162461bcd60e51b815260206004820152603b60248201527f44726f7073706163653a3a70726573616c654275793a20546f6f206d616e792060448201527f746f6b656e7320666f72206f6e65207472616e73616374696f6e2e00000000006064820152608401610cde565b600a5461104790826129f8565b3410156110ab5760405162461bcd60e51b815260206004820152602c60248201527f44726f7073706163653a3a70726573616c654275793a20496e7375666669636960448201526b32b73a103830bcb6b2b73a1760a11b6064820152608401610cde565b6000828152601260205260409020805460ff191660011790556110cd81612a04565b60408051338152602081018490529081018290527fb77d41b776d1d5cc75b500402614335da616afa8aa95b49325e22db7f1ca86cc906060015b60405180910390a15050565b6007546001600160a01b0316331461113d5760405162461bcd60e51b8152600401610cde90613973565b60008281526017602090815260409182902083905581518481529081018390527fd2bf0b462786683f53b07ea16a1887663c35bbd70fe7c79825b8c79441be31e09101611107565b6000546001600160801b03600160801b82048116918116919091031690565b610df6838383612a71565b60006111ba83611a21565b82106111d9576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b838110156112a557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290611251575061129d565b80516001600160a01b03161561126657805192505b876001600160a01b0316836001600160a01b0316141561129b578684141561129457509350610bd892505050565b6001909301925b505b6001016111ea565b50600080fd5b6007546001600160a01b031633146112d55760405162461bcd60e51b8152600401610cde90613973565b600d805460ff610100808304821615810261ff0019909316929092179283905591041615611379576702c68af0bb140000600a8190556040519081527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f9060200160405180910390a1600a60098190556040519081527f9ae30a041b5f2244849dc754c675b09aef4ad230b48995476fd6e6415d1fe8ab9060200160405180910390a15b600d5460405161010090910460ff16151581527f5a454f976028c400c4159ac85c61452441fcf06b9888c7c780c5980e3c3123dd906020015b60405180910390a1565b6007546001600160a01b031633146113e65760405162461bcd60e51b8152600401610cde90613973565b60008281526016602090815260409182902083905581518481529081018390527f2e9951542fbd73f391722df2086d5ce48b8dc78e845cab548361bbabfe21e1fb9101611107565b6007546001600160a01b031633146114585760405162461bcd60e51b8152600401610cde90613973565b600e5460105447916001600160a01b0316906108fc9061148790612710906114819086906129f8565b90612c8e565b6040518115909202916000818181858888f193505050501580156114af573d6000803e3d6000fd5b50600d60059054906101000a90046001600160a01b03166001600160a01b03166108fc6114ed612710611481601154866129f890919063ffffffff16565b6040518115909202916000818181858888f19350505050158015610d69573d6000803e3d6000fd5b610df683838360405180602001604052806000815250611dfe565b600080546001600160801b031681805b828110156115c057600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906115b757858314156115b05750949350505050565b6001909201915b50600101611540565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b031633146116045760405162461bcd60e51b8152600401610cde90613973565b805161161790600c9060208401906133a0565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6600c604051610d2a91906138f2565b6007546001600160a01b031633146116725760405162461bcd60e51b8152600401610cde90613973565b600f805460ff60a01b1916600160a01b8315158102919091179182905560405160ff9190920416151581527fc6e0fb794d60d245727554ed563b17ec5cd901c15ee395b10535ce370b1bdccd90602001610d2a565b60006116d282612c9a565b5192915050565b600d546301000000900460ff166117585760405162461bcd60e51b815260206004820152603960248201527f44726f70537061636553616c653a3a77686974656c6973744275793a2057686960448201527f74656c69737420427579206973206e6f74204163746976652e000000000000006064820152608401610cde565b6009548311156117d05760405162461bcd60e51b815260206004820152603d60248201527f44726f7073706163653a3a77686974656c6973744275793a20546f6f206d616e60448201527f7920746f6b656e7320666f72206f6e65207472616e73616374696f6e2e0000006064820152608401610cde565b600a546117dd90846129f8565b3410156118435760405162461bcd60e51b815260206004820152602e60248201527f44726f7073706163653a3a77686974656c6973744275793a20496e737566666960448201526d31b4b2b73a103830bcb6b2b73a1760911b6064820152608401610cde565b61184e338383612dbc565b6118b35760405162461bcd60e51b815260206004820152603060248201527f44726f7073706163653a3a77686974656c6973744275793a205573657220697360448201526f081b9bdd081dda1a5d195b1a5cdd195960821b6064820152608401610cde565b600f54600160a01b900460ff1615611942573360009081526014602052604090205460ff16156119365760405162461bcd60e51b815260206004820152602860248201527f44726f7073706163653a3a77686974656c6973744275793a20416c72656164796044820152670818db185a5b595960c21b6064820152608401610cde565b611942335b6001612940565b61194b83612a04565b7f8714612a507e7fcd9f26d997e561a61611f4bad945c787b8865dc23823ef037b33604080516001600160a01b039092168252602082018690520160405180910390a1505050565b600c80546119a090613a36565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90613a36565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505081565b60006001600160a01b038216611a4a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b03163314611a995760405162461bcd60e51b8152600401610cde90613973565b611aa36000612e42565b565b6007546001600160a01b03163314611acf5760405162461bcd60e51b8152600401610cde90613973565b600d805465010000000000600160c81b031916650100000000006001600160a01b038481168202929092179283905560405192041681527fb470355146314037ce5186813b4b7c65bff2b87f98d44ff063570d0e22d65ba390602001610d2a565b6007546001600160a01b03163314611b5a5760405162461bcd60e51b8152600401610cde90613973565b611b6381612a04565b6040518181527fdb7b64a879507c32bda4d0cf22dee29ed875c7157ecbbc10fe11bf14fab06d1290602001610d2a565b6007546001600160a01b03163314611bbd5760405162461bcd60e51b8152600401610cde90613973565b600d805460ff62010000808304821615810262ff00001990931692909217928390556040517f38822fae85453c65b78e1b7d02e45cae5eb0d7961e34226fb29c49dab9d3a357936113b29390049091161515815260200190565b606060028054610bed90613a36565b6007546001600160a01b03163314611c505760405162461bcd60e51b8152600401610cde90613973565b60098190556040518181527f9ae30a041b5f2244849dc754c675b09aef4ad230b48995476fd6e6415d1fe8ab90602001610d2a565b6001600160a01b038216331415611caf5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314611d455760405162461bcd60e51b8152600401610cde90613973565b60008181526012602052604090205460ff16611db65760405162461bcd60e51b815260206004820152602a60248201527f44726f7073706163653a3a636c6561725469636b65743a205469636b657420696044820152691cc81b9bdd081d5cd95960b21b6064820152608401610cde565b60008181526012602052604090819020805460ff19169055517f256e63760868166c3f047c49d3e1614c1ca6c620d715c552c54ddb4ba428719c90610d2a9083815260200190565b611e09848484612a71565b611e1584848484612e94565b611e32576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6007546001600160a01b03163314611e625760405162461bcd60e51b8152600401610cde90613973565b600d805460ff6301000000808304821615810263ff0000001990931692909217928390556040517ffabb6e4b24bd8ac3a08555e569d13590c5006dc61e4aae65e74296d3df6759ed936113b29390049091161515815260200190565b6060611ec98261290c565b611f2d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cde565b6000600c8054611f3c90613a36565b905011611f585760405180602001604052806000815250610bd8565b600c611f6383612fa3565b604051602001611f7492919061382c565b60405160208183030381529060405292915050565b6007546001600160a01b03163314611fb35760405162461bcd60e51b8152600401610cde90613973565b600d805460ff640100000000808304821615810264ff000000001990931692909217928390556040517f1c7a4c17a04ca23eb8ca2d6bca0e3214efc94f707336847da0135d6e2d509b14936113b29390049091161515815260200190565b6007546001600160a01b0316331461203b5760405162461bcd60e51b8152600401610cde90613973565b612043611185565b600b5410156120d55760405162461bcd60e51b815260206004820152605260248201527f44726f70737061636553616c653a3a6368616e6765537570706c794c696d697460448201527f3a20537570706c79204c696d69742063616e277420626520726564756365642060648201527162656c6f7720746f74616c20737570706c7960701b608482015260a401610cde565b611f40600b5411156121625760405162461bcd60e51b815260206004820152604a60248201527f44726f70737061636553616c653a3a6368616e6765537570706c794c696d697460448201527f3a20537570706c79204c696d69742063616e27742062652067726561746572206064820152693a3430b7101c1818181760b11b608482015260a401610cde565b600b8190556040518181527f178f2d92de18f124251b08e25bacba56eda0716625c1e799fc6c8ed1ee7d1d0790602001610d2a565b600d54610100900460ff166121fa5760405162461bcd60e51b815260206004820152602360248201527f44726f7073706163653a3a6275793a2053616c65206973206e6f7420616374696044820152623b329760e91b6064820152608401610cde565b6009548111156122695760405162461bcd60e51b815260206004820152603460248201527f44726f7073706163653a3a6275793a20546f6f206d616e7920746f6b656e73206044820152733337b91037b732903a3930b739b0b1ba34b7b71760611b6064820152608401610cde565b600a5461227690826129f8565b3410156122d35760405162461bcd60e51b815260206004820152602560248201527f44726f7073706163653a3a6275793a20496e73756666696369656e742070617960448201526436b2b73a1760d91b6064820152608401610cde565b600d5460ff16612352573233146123525760405162461bcd60e51b815260206004820152603760248201527f44726f7073706163653a3a6275793a20536d61727420636f6e7472616374732060448201527f617265206e6f7420616c6c6f77656420746f206275792e0000000000000000006064820152608401610cde565b61235b81612a04565b60408051338152602081018390527fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e9101610d2a565b6007546001600160a01b031633146123bb5760405162461bcd60e51b8152600401610cde90613973565b6001600160a01b03811661242b5760405162461bcd60e51b815260206004820152603160248201527f44726f70537061636553616c653a3a7365745469636b6574416464726573733a6044820152701024b73b30b634b21030b2323932b9b99760791b6064820152608401610cde565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527f4846b8d14a603fbd3567c63384f41a947d787c004e59ce39ee755d0485ae5ed890602001610d2a565b6007546001600160a01b031633146124a35760405162461bcd60e51b8152600401610cde90613973565b6001600160a01b0381166125085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cde565b61251181612e42565b50565b6007546001600160a01b0316331461253e5760405162461bcd60e51b8152600401610cde90613973565b600a8190556040518181527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f90602001610d2a565b6007546001600160a01b0316331461259d5760405162461bcd60e51b8152600401610cde90613973565b60138190556040518181527f6be426d58d2fb0cea1f78182904380aac426a50029637dc9e9d2e40bc44ac05090602001610d2a565b6007546001600160a01b031633146125fc5760405162461bcd60e51b8152600401610cde90613973565b60008281526015602090815260409182902083905581518481529081018390527f0a0583f4d2f1098898324303e402dea967960519401c0359d5cde5d17c7d36c79101611107565b600d54640100000000900460ff166126b85760405162461bcd60e51b815260206004820152603160248201527f44726f70537061636553616c653a3a73746167654275793a20537461676520426044820152703abc9034b9903737ba1020b1ba34bb329760791b6064820152608401610cde565b6000818152601660205260409020546126d190856129f8565b34146127325760405162461bcd60e51b815260206004820152602a60248201527f44726f7073706163653a3a73746167654275793a20496e73756666696369656e6044820152693a103830bcb6b2b73a1760b11b6064820152608401610cde565b61273e338484846130bc565b61279f5760405162461bcd60e51b815260206004820152602c60248201527f44726f7073706163653a3a73746167654275793a2055736572206973206e6f7460448201526b081dda1a5d195b1a5cdd195960a21b6064820152608401610cde565b6000818152601760205260409020548411156128235760405162461bcd60e51b815260206004820152603960248201527f44726f7073706163653a3a73746167654275793a20546f6f206d616e7920746f60448201527f6b656e7320666f72206f6e65207472616e73616374696f6e2e000000000000006064820152608401610cde565b600f54600160a01b900460ff16156128aa573360009081526014602052604090205460ff16156128a15760405162461bcd60e51b8152602060048201526024808201527f44726f7073706163653a3a73746167654275793a20416c726561647920636c616044820152631a5b595960e21b6064820152608401610cde565b6128aa3361193b565b6128b384612a04565b604080513381526020810186905280820183905290517f681e8945c1c80247adf901f15f41414fbde1dbd14475af0b3f9fc31b2c9163f69181900360600190a150505050565b600061290582846139f3565b9392505050565b600080546001600160801b031682108015610bd8575050600090815260036020526040902054600160e01b900460ff161590565b6001600160a01b038216600081815260146020908152604091829020805460ff19168515159081179091558251938452908301527f9df634e89ddfd6892a56594ccd1a1971304a02d24cb197afdd540194c0b653a29101611107565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061290582846139d4565b600b54612a1982612a13611185565b9061314d565b1115612a675760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820746f6b656e73206c6566742e0000000000000000006044820152606401610cde565b6125113382613159565b6000612a7c82612c9a565b80519091506000906001600160a01b0316336001600160a01b03161480612aaa57508151612aaa9033610a63565b80612ac5575033612aba84610c70565b6001600160a01b0316145b905080612ae557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612b1a5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416612b4157604051633a954ecd60e21b815260040160405180910390fd5b612b51600084846000015161299c565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612c44576000546001600160801b0316811015612c4457825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061290582846139c0565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015612da357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612da15780516001600160a01b031615612d38579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612d9c579392505050565b612d38565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612e39848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013549150849050613173565b95945050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612f9757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ed89033908990889088906004016138ac565b602060405180830381600087803b158015612ef257600080fd5b505af1925050508015612f22575060408051601f3d908101601f19168201909252612f1f918101906136e5565b60015b612f7d573d808015612f50576040519150601f19603f3d011682016040523d82523d6000602084013e612f55565b606091505b508051612f75576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f9b565b5060015b949350505050565b606081612fc75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ff15780612fdb81613a71565b9150612fea9050600a836139c0565b9150612fcb565b6000816001600160401b0381111561301957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613043576020820181803683370190505b5090505b8415612f9b576130586001836139f3565b9150613065600a86613a8c565b6130709060306139a8565b60f81b81838151811061309357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506130b5600a866139c0565b9450613047565b6040516bffffffffffffffffffffffff19606086901b166020820152600090819060340160405160208183030381529060405280519060200120905061314385858080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508881526015602052604090205492508591506131739050565b9695505050505050565b600061290582846139a8565b610d69828260405180602001604052806000815250613189565b6000826131808584613196565b14949350505050565b610df68383836001613218565b600081815b84518110156132105760008582815181106131c657634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131ec57600083815260208290526040902092506131fd565b600081815260208490526040902092505b508061320881613a71565b91505061319b565b509392505050565b6000546001600160801b03166001600160a01b03851661324a57604051622e076360e81b815260040160405180910390fd5b836132685760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561337a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015613350575061334e6000888488612e94565b155b1561336e576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016132f9565b50600080546001600160801b0319166001600160801b0392909216919091179055612c87565b8280546133ac90613a36565b90600052602060002090601f0160209004810192826133ce5760008555613414565b82601f106133e757805160ff1916838001178555613414565b82800160010185558215613414579182015b828111156134145782518255916020019190600101906133f9565b50613420929150613424565b5090565b5b808211156134205760008155600101613425565b60006001600160401b038084111561345357613453613acc565b604051601f8501601f19908116603f0116810190828211818310171561347b5761347b613acc565b8160405280935085815286868601111561349457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126134bf578182fd5b5081356001600160401b038111156134d5578182fd5b6020830191508360208260051b85010111156134f057600080fd5b9250929050565b8035801515811461350757600080fd5b919050565b60006020828403121561351d578081fd5b813561290581613ae2565b600060208284031215613539578081fd5b815161290581613ae2565b60008060408385031215613556578081fd5b823561356181613ae2565b9150602083013561357181613ae2565b809150509250929050565b600080600060608486031215613590578081fd5b833561359b81613ae2565b925060208401356135ab81613ae2565b929592945050506040919091013590565b600080600080608085870312156135d1578081fd5b84356135dc81613ae2565b935060208501356135ec81613ae2565b92506040850135915060608501356001600160401b0381111561360d578182fd5b8501601f8101871361361d578182fd5b61362c87823560208401613439565b91505092959194509250565b6000806040838503121561364a578182fd5b823561365581613ae2565b9150613663602084016134f7565b90509250929050565b6000806040838503121561367e578182fd5b823561368981613ae2565b946020939093013593505050565b6000602082840312156136a8578081fd5b612905826134f7565b6000602082840312156136c2578081fd5b5035919050565b6000602082840312156136da578081fd5b813561290581613af7565b6000602082840312156136f6578081fd5b815161290581613af7565b600060208284031215613712578081fd5b81356001600160401b03811115613727578182fd5b8201601f81018413613737578182fd5b612f9b84823560208401613439565b60008060006040848603121561375a578081fd5b8335925060208401356001600160401b03811115613776578182fd5b613782868287016134ae565b9497909650939450505050565b600080600080606085870312156137a4578182fd5b8435935060208501356001600160401b038111156137c0578283fd5b6137cc878288016134ae565b9598909750949560400135949350505050565b600080604083850312156137f1578182fd5b50508035926020909101359150565b60008151808452613818816020860160208601613a0a565b601f01601f19169290920160200192915050565b600080845461383a81613a36565b6001828116801561385257600181146138635761388f565b60ff1984168752828701945061388f565b8886526020808720875b858110156138865781548a82015290840190820161386d565b50505082870194505b5050505083516138a3818360208801613a0a565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314390830184613800565b6020815260006129056020830184613800565b6000602080835281845461390581613a36565b80848701526040600180841660008114613926576001811461393a57613965565b60ff19851689840152606089019550613965565b898852868820885b8581101561395d5781548b8201860152908301908801613942565b8a0184019650505b509398975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156139bb576139bb613aa0565b500190565b6000826139cf576139cf613ab6565b500490565b60008160001904831182151516156139ee576139ee613aa0565b500290565b600082821015613a0557613a05613aa0565b500390565b60005b83811015613a25578181015183820152602001613a0d565b83811115611e325750506000910152565b600181811c90821680613a4a57607f821691505b60208210811415613a6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a8557613a85613aa0565b5060010190565b600082613a9b57613a9b613ab6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461251157600080fd5b6001600160e01b03198116811461251157600080fdfea26469706673582212205174daff3c23e6cefe945236077ce36c51f46759727990d4fc6140caec9c168e64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000025bf6196bd1000000000000000000000000000000000000000000000000000000000000000001900000000000000000000000005cd0a4043cfa2776bfed01e5de11ca8f86bb8153000000000000000000000000856701083ed11a0d35bac3b769b4c8efe3330d170000000000000000000000007ba0a79ec30259e2792a43989edd97c6e40bb3360000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a5354524545544845525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5354524545544845525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f626166796265696169363276626b757436747a6b32626b71613477696b37646b677378777a613636726e677074647a78706b37706a6133747670752f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _supplyLimit (uint256): 8000
Arg [1] : _mintLimit (uint256): 5
Arg [2] : _mintPrice (uint256): 170000000000000000
Arg [3] : _devSaleShare (uint256): 400
Arg [4] : _withdrawalWallet (address): 0x5cd0a4043cFa2776bFeD01E5DE11cA8f86bb8153
Arg [5] : _devWallet (address): 0x856701083eD11A0D35bAc3B769B4c8efE3330d17
Arg [6] : _ticketAddress (address): 0x7ba0A79eC30259E2792A43989EdD97c6E40Bb336
Arg [7] : _name (string): STREETHERS
Arg [8] : _ticker (string): STREETHERS
Arg [9] : _baseURI (string): https://ipfs.io/ipfs/bafybeiai62vbkut6tzk2bkqa4wik7dkgsxwza66rngptdzxpk7pja3tvpu/
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001f40
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [2] : 000000000000000000000000000000000000000000000000025bf6196bd10000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [4] : 0000000000000000000000005cd0a4043cfa2776bfed01e5de11ca8f86bb8153
Arg [5] : 000000000000000000000000856701083ed11a0d35bac3b769b4c8efe3330d17
Arg [6] : 0000000000000000000000007ba0a79ec30259e2792a43989edd97c6e40bb336
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 5354524545544845525300000000000000000000000000000000000000000000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [13] : 5354524545544845525300000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [15] : 68747470733a2f2f697066732e696f2f697066732f6261667962656961693632
Arg [16] : 76626b757436747a6b32626b71613477696b37646b677378777a613636726e67
Arg [17] : 7074647a78706b37706a6133747670752f000000000000000000000000000000
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.