Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 127 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14652115 | 918 days ago | IN | 0 ETH | 0.00078725 | ||||
Mint Main | 14649782 | 919 days ago | IN | 0.004 ETH | 0.00105566 | ||||
Mint Extra | 14649782 | 919 days ago | IN | 0.016 ETH | 0.00321645 | ||||
Mint Extra | 14649782 | 919 days ago | IN | 0.04 ETH | 0.00354471 | ||||
Mint Extra | 14649782 | 919 days ago | IN | 0.024 ETH | 0.00332533 | ||||
Withdraw Initial... | 14649767 | 919 days ago | IN | 0 ETH | 0.00152199 | ||||
Set Approval For... | 14649762 | 919 days ago | IN | 0 ETH | 0.00157633 | ||||
Mint Extra | 14649756 | 919 days ago | IN | 0.04 ETH | 0.00430003 | ||||
Set State | 14649724 | 919 days ago | IN | 0 ETH | 0.00145319 | ||||
Refund Extra ETH | 14649682 | 919 days ago | IN | 0 ETH | 0.00092416 | ||||
Refund Extra ETH | 14649682 | 919 days ago | IN | 0 ETH | 0.00108868 | ||||
Mint Main | 14649681 | 919 days ago | IN | 0.004 ETH | 0.00298947 | ||||
Mint Main | 14649665 | 919 days ago | IN | 0.004 ETH | 0.00293146 | ||||
Mint Main | 14649665 | 919 days ago | IN | 0.004 ETH | 0.00293173 | ||||
Mint Main | 14649665 | 919 days ago | IN | 0.004 ETH | 0.00329591 | ||||
Flip DA State | 14649660 | 919 days ago | IN | 0 ETH | 0.00237265 | ||||
Mint DA | 14649656 | 919 days ago | IN | 0.01 ETH | 0.00086387 | ||||
Mint DA | 14649651 | 919 days ago | IN | 0.015 ETH | 0.00382173 | ||||
Mint DA | 14649651 | 919 days ago | IN | 0.05 ETH | 0.00945 | ||||
Mint DA | 14649651 | 919 days ago | IN | 0.05 ETH | 0.00945 | ||||
Mint DA | 14649651 | 919 days ago | IN | 0.05 ETH | 0.00804784 | ||||
Mint DA | 14649651 | 919 days ago | IN | 0.05 ETH | 0.00804784 | ||||
Mint DA | 14649650 | 919 days ago | IN | 0.05 ETH | 0.00521136 | ||||
Mint DA | 14649650 | 919 days ago | IN | 0.025 ETH | 0.00482306 | ||||
Mint DA | 14649647 | 919 days ago | IN | 0.025 ETH | 0.00635781 |
Loading...
Loading
Contract Name:
FullDigiHLA
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 400 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "./MerkleWhitelist.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract FullDigiHLA is Ownable, ERC721A, MerkleWhitelist, ReentrancyGuard { uint256 public DA_STARTING_PRICE = 0.01 ether; uint256 public DA_ENDING_PRICE = 0.005 ether; uint256 public DA_DECREMENT = 0.002 ether; uint256 public DA_DECREMENT_FREQUENCY = 40; uint256 public DA_FINAL_PRICE; uint256 public WL_PRICE = 0.008 ether; // uint256 public WL_AMOUNT = 20; // uint256 public DA_AMOUNT = 30; // uint256 public MAIN_AMOUNT = 20; // uint256 public EXTRA_AMOUNT = 70; // uint256 public ALL_AMOUNT = 77; // uint256 public DA_STARTING_PRICE = 30 ether; // uint256 public DA_ENDING_PRICE = 10 ether; // uint256 public DA_DECREMENT = 2 ether; // uint256 public DA_DECREMENT_FREQUENCY = 30; // uint256 public DA_FINAL_PRICE; // uint256 public WL_PRICE = 1 ether; uint256 public WL_AMOUNT = 40; uint256 public DA_AMOUNT = 500; uint256 public MAIN_AMOUNT = 10; uint256 public ALL_AMOUNT = 600; uint256 public WL_START_TIME = 1650832800; uint256 public WL_END_TIME = 1650833100; uint256 public DA_START_TIME = 1650833220; uint256 public DA_END_TIME = 1650833520; uint256 public MAIN_END_TIME; //uint256 public MAIN_LAST_TIME = 10800; uint256 public MAIN_LAST_TIME = 600; uint256 public EXTRA_START_TIME = 1650833640; //How many have been minted uint16 public WL_MINTED; uint16 public DA_MINTED; uint16 public MAIN_MINTED; uint16 public EXTRA_MINTED; uint16 public TEAM_MINTED; //Limit quantity per wallet uint16 public WL_LIMIT=3; uint16 public DA_LIMIT=5; uint16 public MAIN_LIMIT=1; uint16 public EXTRA_LIMIT=10; uint16 public TEAM_LIMIT=1; mapping(address => uint256) public WL_WALLET_CAP; mapping(address => uint256) public DA_WALLET_CAP; mapping(address => uint256) public MAIN_WALLET_CAP; mapping(address => uint256) public EXTRA_WALLET_CAP; mapping(address => uint256) public TEAM_WALLET_CAP; bool _isWLActive = true; bool _isDAActive = true; bool _isMainActive = true; bool _isExtraActive = true; bool _isTeamActive = false; bool public INITIAL_FUNDS_WITHDRAWN; struct DABatchPrice { uint128 pricePaid; uint8 quantityMinted; } mapping(address => DABatchPrice[]) public userToDABatchPrice; uint256 public STATE = 1; bool public REVEALED = false; string public UNREVEALED_URI = "https://data.torizero.com/torizero/box.json"; string public BASE_URI; string public CONTRACT_URI ="https://data.torizero.com/api/contracturl.json"; constructor() ERC721A("fulldigithla", "FDA") {} function currentPrice() public view returns (uint256) { if(block.timestamp < DA_START_TIME)return DA_STARTING_PRICE; if (DA_FINAL_PRICE > 0) return DA_FINAL_PRICE; uint256 timeSinceStart = block.timestamp - DA_START_TIME; uint256 decrementsSinceStart = timeSinceStart / DA_DECREMENT_FREQUENCY; uint256 totalDecrement = decrementsSinceStart * DA_DECREMENT; if (totalDecrement >= DA_STARTING_PRICE - DA_ENDING_PRICE) { return DA_ENDING_PRICE; } return DA_STARTING_PRICE - totalDecrement; } function extraAmount() public view returns (uint256) { return WL_AMOUNT + DA_AMOUNT + MAIN_AMOUNT - WL_MINTED - DA_MINTED - MAIN_MINTED; } function wlInfo(address user) public view returns (uint256,uint256,uint256,uint256,uint256,uint256) { return (WL_AMOUNT,WL_MINTED,WL_PRICE,WL_START_TIME,WL_END_TIME,WL_WALLET_CAP[user]); } function daInfo(address user) public view returns (uint256,uint256,uint256,uint256,uint256,uint256) { return (DA_AMOUNT,DA_MINTED,currentPrice(),DA_START_TIME,DA_END_TIME,DA_WALLET_CAP[user]); } function mainInfo(address user) public view returns (uint256,uint256,uint256,uint256,uint256,uint256) { return (MAIN_AMOUNT,MAIN_MINTED,mainPrice(),extraAmount(),MAIN_END_TIME,MAIN_WALLET_CAP[user]); } function extraInfo(address user) public view returns (uint256,uint256,uint256,uint256,uint256,uint256) { return (extraAmount(),EXTRA_MINTED,extraPrice(),EXTRA_START_TIME,0,EXTRA_WALLET_CAP[user]); } function mainPrice() public view returns (uint256) { return ((DA_FINAL_PRICE / 100) * 80); } function extraPrice() public view returns (uint256) { return ((DA_FINAL_PRICE / 100) * 80); } function mintDA(uint8 quantity) public payable { require(quantity > 0, "Must mint at least 1 token."); require(_isDAActive, "DA must be active to mint tokens"); require(block.timestamp >= DA_START_TIME,"DA has not started!"); require(block.timestamp < DA_END_TIME, "DA is over"); require(DA_WALLET_CAP[msg.sender] + quantity <= DA_LIMIT, "Purchase would exceed max number of metacards per wallet."); uint256 _currentPrice = currentPrice(); require(msg.value >= quantity * _currentPrice,"Did not send enough eth."); require(DA_MINTED + quantity <= DA_AMOUNT,"Max supply for DA reached!"); require(totalSupply() + quantity <= ALL_AMOUNT,"reached max supply"); //This is the final price if (DA_MINTED + quantity == DA_AMOUNT){ _isDAActive = false; DA_FINAL_PRICE = _currentPrice; MAIN_END_TIME = block.timestamp + MAIN_LAST_TIME; STATE = 3; } userToDABatchPrice[msg.sender].push( DABatchPrice(uint128(msg.value), quantity) ); DA_MINTED = DA_MINTED+quantity; DA_WALLET_CAP[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function mintWL(uint8 quantity,bytes32[] memory proof) public payable onlyWlWhitelist(proof) { require(quantity > 0, "Must mint at least 1 token."); require(_isWLActive, "WL must be active to mint tokens"); require(block.timestamp >= WL_START_TIME,"WL has not started yet!"); require(block.timestamp < WL_END_TIME, "WL is over"); require(WL_WALLET_CAP[msg.sender] + quantity <= WL_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(msg.value >= quantity * WL_PRICE,"Did not send enough eth."); require(WL_MINTED + quantity <= WL_AMOUNT,"Max supply for WL reached!"); require(totalSupply() + quantity <= ALL_AMOUNT,"reached max supply"); WL_MINTED = WL_MINTED + quantity; WL_WALLET_CAP[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function mintMain(uint8 quantity,bytes32[] memory proof) public payable onlyMainWhitelist(proof) { require(quantity > 0, "Must mint at least 1 token."); require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); require(_isMainActive, "Main must be active to mint tokens"); require(block.timestamp < MAIN_END_TIME, "Main is over"); require(MAIN_WALLET_CAP[msg.sender] + quantity <= MAIN_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(msg.value >= mainPrice() * quantity,"Must send enough eth for MAIN Mint"); require(MAIN_MINTED + quantity <= MAIN_AMOUNT,"Max supply for MAIN reached!"); require(totalSupply() + quantity <= ALL_AMOUNT,"reached max supply"); MAIN_MINTED = MAIN_MINTED + quantity; MAIN_WALLET_CAP[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function mintExtra(uint8 quantity,bytes32[] memory proof) public payable onlyExtraWhitelist(proof) { require(quantity > 0, "Must mint at least 1 token."); require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); require(_isExtraActive, "Extra must be active to mint tokens"); require(block.timestamp >= EXTRA_START_TIME,"Extra has not started yet!"); require(EXTRA_WALLET_CAP[msg.sender] + quantity <= EXTRA_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(msg.value >= extraPrice()* quantity,"Must send enough eth for MAIN Mint"); require(EXTRA_MINTED + quantity <= extraAmount(),"Max supply for EXTRA reached!"); require(totalSupply() + quantity <= ALL_AMOUNT,"reached max supply"); EXTRA_MINTED = EXTRA_MINTED + quantity; EXTRA_WALLET_CAP[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function teamMint(bytes32[] memory proof) public onlyTeamWhitelist(proof) { require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); require(_isTeamActive, "team must be active to mint tokens"); require(TEAM_WALLET_CAP[msg.sender] + 1 <= TEAM_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(totalSupply() + 1 <= ALL_AMOUNT, "reached max supply"); TEAM_MINTED = TEAM_MINTED + 1; TEAM_WALLET_CAP[msg.sender] += 1; _safeMint(msg.sender, 1); } function userToTokenBatchLength(address user) public view returns (uint256) { return userToDABatchPrice[user].length; } function refundExtraETH() public { require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); uint256 totalRefund; for ( uint256 i = userToDABatchPrice[msg.sender].length; i > 0; i-- ) { //This is what they should have paid if they bought at lowest price tier. uint256 expectedPrice = userToDABatchPrice[msg.sender][i - 1] .quantityMinted * DA_FINAL_PRICE; //What they paid - what they should have paid = refund. uint256 refund = userToDABatchPrice[msg.sender][i - 1] .pricePaid - expectedPrice; //Remove this tokenBatch userToDABatchPrice[msg.sender].pop(); //Send them their extra monies. totalRefund += refund; } payable(msg.sender).transfer(totalRefund); } function getExtraETH(address user) public view returns (uint256){ uint256 totalRefund; for ( uint256 i = userToDABatchPrice[user].length; i > 0; i-- ) { //This is what they should have paid if they bought at lowest price tier. uint256 expectedPrice = userToDABatchPrice[user][i - 1] .quantityMinted * DA_FINAL_PRICE; //What they paid - what they should have paid = refund. uint256 refund = userToDABatchPrice[user][i - 1] .pricePaid - expectedPrice; //Send them their extra monies. totalRefund += refund; } return totalRefund; } function withdrawInitialFunds() public onlyOwner nonReentrant { require( !INITIAL_FUNDS_WITHDRAWN, "Initial funds have already been withdrawn." ); require(DA_FINAL_PRICE > 0, "DA has not finished!"); uint256 WLFunds = WL_MINTED * WL_PRICE; uint256 DAFunds = DA_MINTED * DA_FINAL_PRICE; uint256 MAINFunds = MAIN_MINTED * mainPrice(); uint256 EXTRAFunds = EXTRA_MINTED * extraPrice(); uint256 initialFunds = DAFunds + WLFunds + MAINFunds + EXTRAFunds; INITIAL_FUNDS_WITHDRAWN = true; (bool succ, ) = payable(owner()).call{ value: initialFunds }(""); require(succ, "transfer failed"); } function desirableInitialFunds() public view returns (uint256) { uint256 WLFunds = WL_MINTED * WL_PRICE; uint256 DAFunds = DA_MINTED * DA_FINAL_PRICE; uint256 MAINFunds = MAIN_MINTED * mainPrice(); uint256 EXTRAFunds = EXTRA_MINTED * extraPrice(); uint256 initialFunds = DAFunds + WLFunds + MAINFunds + EXTRAFunds; return initialFunds; } function withdraw() public onlyOwner nonReentrant { (bool succ, ) = payable(owner()).call{value: address(this).balance}(''); require(succ, "transfer failed"); } function setRevealData(bool _revealed,string memory _baseURI) public onlyOwner { REVEALED = _revealed; BASE_URI = _baseURI; } function setBaseURI(string memory _baseURI) public onlyOwner { BASE_URI = _baseURI; } function setRevealedURI(string memory _unrevealedURI) public onlyOwner { UNREVEALED_URI = _unrevealedURI; } function contractURI() public view returns (string memory) { return CONTRACT_URI; } function setContractURI(string memory _contractURI) public onlyOwner { CONTRACT_URI = _contractURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { if (REVEALED) { return string(abi.encodePacked(BASE_URI, Strings.toString(_tokenId), ".json")); } else { return UNREVEALED_URI; } } function setAllStartTime(uint256 wlTime,uint256 wlEndTime,uint256 daTime,uint256 daEndTime,uint256 extraTime) external onlyOwner { WL_START_TIME = wlTime; WL_END_TIME = wlEndTime; DA_START_TIME = daTime; DA_END_TIME = daEndTime; EXTRA_START_TIME = extraTime; } function setWlStartTime(uint256 wlTime,uint256 wlEndTime) external onlyOwner { WL_START_TIME = wlTime; WL_END_TIME = wlEndTime; } function setDaStartTime(uint256 daTime,uint256 daEndTime) external onlyOwner { DA_START_TIME = daTime; DA_END_TIME = daEndTime; } function setExtraStartTime(uint256 extraTime) external onlyOwner { EXTRA_START_TIME = extraTime; } function flipAllState(bool isWLActive,bool isDAActive,bool isMainActive,bool isExtraActive,uint256 _st) external onlyOwner { _isWLActive = isWLActive; _isDAActive = isDAActive; _isMainActive = isMainActive; _isExtraActive = isExtraActive; STATE = _st; } function flipDAState() external onlyOwner { require(block.timestamp > DA_END_TIME, "DA has not finished!"); require(DA_FINAL_PRICE == 0, "Price has been set!"); _isDAActive = false; DA_FINAL_PRICE = DA_ENDING_PRICE; STATE = 3; MAIN_END_TIME = block.timestamp + MAIN_LAST_TIME; } function setState(uint256 _st) external onlyOwner { STATE = _st; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (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 // 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 pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract MerkleWhitelist is Ownable { bytes32 public wlWhitelistMerkleRoot = 0xf85e4584ed6da3738a4ebdbd6de0739017f7541bb542fd89001446b4dc4918f2; bytes32 public mainWhitelistMerkleRoot = 0xcb499407d1fa69180f307797805245af5297f81839192fa6b0778f4addea845e; bytes32 public extraWhitelistMerkleRoot = 0xa717fa7d8c6aa469bca7d8497aaaadecabb7cce80978283d69f258791e9269c7; bytes32 public teamWhitelistMerkleRoot = 0xcdb8b74c1803bc2846fb114c807ec110f853d1e256cefa9bae4292ddbde722c8; function _verifyWlSender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), wlWhitelistMerkleRoot); } function _verifyMainSender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), mainWhitelistMerkleRoot); } function _verifyExtraSender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), extraWhitelistMerkleRoot); } function _verifyTeamSender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), teamWhitelistMerkleRoot); } function _verify(bytes32[] memory proof, bytes32 addressHash, bytes32 whitelistMerkleRoot) internal pure returns (bool) { return MerkleProof.verify(proof, whitelistMerkleRoot, addressHash); } function _hash(address _address) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_address)); } function setWlWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { wlWhitelistMerkleRoot = merkleRoot; } function setMainWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { mainWhitelistMerkleRoot = merkleRoot; } function setExtraWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { extraWhitelistMerkleRoot = merkleRoot; } function setTeamWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { teamWhitelistMerkleRoot = merkleRoot; } /* MODIFIER */ modifier onlyWlWhitelist(bytes32[] memory proof) { require(_verifyWlSender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } modifier onlyMainWhitelist(bytes32[] memory proof) { require(_verifyMainSender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } modifier onlyExtraWhitelist(bytes32[] memory proof) { require(_verifyExtraSender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } modifier onlyTeamWhitelist(bytes32[] memory proof) { require(_verifyTeamSender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } }
// 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/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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 (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": 400 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ALL_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT_FREQUENCY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_ENDING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_FINAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"DA_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXTRA_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXTRA_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXTRA_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"EXTRA_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_FUNDS_WITHDRAWN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_LAST_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"MAIN_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"TEAM_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNREVEALED_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WL_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"daInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"desirableInitialFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"extraInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isWLActive","type":"bool"},{"internalType":"bool","name":"isDAActive","type":"bool"},{"internalType":"bool","name":"isMainActive","type":"bool"},{"internalType":"bool","name":"isExtraActive","type":"bool"},{"internalType":"uint256","name":"_st","type":"uint256"}],"name":"flipAllState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipDAState","outputs":[],"stateMutability":"nonpayable","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":"user","type":"address"}],"name":"getExtraETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"user","type":"address"}],"name":"mainInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mintDA","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintExtra","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintMain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWL","outputs":[],"stateMutability":"payable","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":"refundExtraETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wlTime","type":"uint256"},{"internalType":"uint256","name":"wlEndTime","type":"uint256"},{"internalType":"uint256","name":"daTime","type":"uint256"},{"internalType":"uint256","name":"daEndTime","type":"uint256"},{"internalType":"uint256","name":"extraTime","type":"uint256"}],"name":"setAllStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"daTime","type":"uint256"},{"internalType":"uint256","name":"daEndTime","type":"uint256"}],"name":"setDaStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"extraTime","type":"uint256"}],"name":"setExtraStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setExtraWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMainWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setRevealData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_st","type":"uint256"}],"name":"setState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setTeamWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wlTime","type":"uint256"},{"internalType":"uint256","name":"wlEndTime","type":"uint256"}],"name":"setWlStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWlWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userToDABatchPrice","outputs":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint8","name":"quantityMinted","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userToTokenBatchLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawInitialFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"wlInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
7ff85e4584ed6da3738a4ebdbd6de0739017f7541bb542fd89001446b4dc4918f26009557fcb499407d1fa69180f307797805245af5297f81839192fa6b0778f4addea845e600a9081557fa717fa7d8c6aa469bca7d8497aaaadecabb7cce80978283d69f258791e9269c7600b557fcdb8b74c1803bc2846fb114c807ec110f853d1e256cefa9bae4292ddbde722c8600c55662386f26fc10000600e556611c37937e08000600f5566071afd498d000060105560286011819055661c6bf52634000060135560148190556101f46015556016919091556102586017819055636265b5a0601855636265b6cc601955636265b744601a55636265b870601b55601d55636265b8e8601e55601f80547201000a00010005000300000000000000000000600160501b600160a01b03199091161790556025805464ffffffffff191663010101011790556001602755805460ff1916905560e0604052602b60808181529062004d7360a03980516200017d91602991602090910190620002aa565b506040518060600160405280602e815260200162004d45602e91398051620001ae91602b91602090910190620002aa565b50348015620001bc57600080fd5b506040518060400160405280600c81526020016b66756c6c6469676974686c6160a01b8152506040518060400160405280600381526020016246444160e81b81525062000218620002126200025660201b60201c565b6200025a565b81516200022d906003906020850190620002aa565b50805162000243906004906020840190620002aa565b505060006001908155600d55506200038d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002b89062000350565b90600052602060002090601f016020900481019282620002dc576000855562000327565b82601f10620002f757805160ff191683800117855562000327565b8280016001018555821562000327579182015b82811115620003275782518255916020019190600101906200030a565b506200033592915062000339565b5090565b5b808211156200033557600081556001016200033a565b600181811c908216806200036557607f821691505b602082108114156200038757634e487b7160e01b600052602260045260246000fd5b50919050565b6149a8806200039d6000396000f3fe6080604052600436106106085760003560e01c80638351764a11610322578063c062aa89116101a5578063d7b23268116100ec578063ec5904ef11610095578063f89d2e4d1161006f578063f89d2e4d14611134578063f9af76ab1461114a578063ff7f45451461115f57600080fd5b8063ec5904ef146110de578063f2fde38b146110fe578063f5998ed81461111e57600080fd5b8063e8a3d485116100c6578063e8a3d48514611060578063e985e9c514611075578063ec2d005b146110be57600080fd5b8063d7b2326814611015578063d81bd63514611035578063dbddb26a1461104b57600080fd5b8063cb30bc2e1161014e578063d287f14111610128578063d287f14114610fc8578063d627349f14610fea578063d6c0b1b614610fff57600080fd5b8063cb30bc2e14610f82578063cda2f27514610fa2578063cfe560e014610fb557600080fd5b8063c486456c1161017f578063c486456c14610f2c578063c87b56dd14610f42578063cadffd5914610f6257600080fd5b8063c062aa8914610ec0578063c0666e8d14610ed5578063c2e1179914610f0b57600080fd5b8063a9e966b711610269578063b812937111610212578063b9765a1f116101ec578063b9765a1f14610e80578063bb79188314610e95578063bd882e9714610eaa57600080fd5b8063b812937114610e1d578063b88d4fde14610e33578063b8b91cf914610e5357600080fd5b8063acad341811610243578063acad341814610da4578063afd10ab014610dc6578063b70b1cd714610ddc57600080fd5b8063a9e966b714610d4e578063a9fe9d7414610d6e578063aa22649814610d8e57600080fd5b8063996e52b5116102cb578063a22cb465116102a5578063a22cb46514610cf4578063a76a958714610d14578063a92bc58a14610d2e57600080fd5b8063996e52b514610ca75780639d1b464a14610cbd578063a1fbe8b614610cd257600080fd5b80639557ac02116102fc5780639557ac0214610c5c57806395d89b4114610c7c57806397f65c0814610c9157600080fd5b80638351764a14610bf15780638da5cb5b14610c1e578063938e3d7b14610c3c57600080fd5b8063368bf74e116104aa5780636352211e116103f157806370c93f1a1161039a5780637529910a116103745780637529910a14610b8d57806378b004a214610bad5780638175ca5614610bcf57600080fd5b806370c93f1a146108d3578063715018a614610b4b5780637295f79814610b6057600080fd5b806366431fcd116103cb57806366431fcd14610ae85780636f470b6c14610b1557806370a0823114610b2b57600080fd5b80636352211e14610a8f5780636361659b14610aaf578063651464c014610ad257600080fd5b8063467d0bfa1161045357806355f804b31161042d57806355f804b314610a0857806356b4f67314610a2857806358394ebb14610a3d57600080fd5b8063467d0bfa146109bd57806349c28417146109d3578063507862d1146109f357600080fd5b80633f296d49116104845780633f296d4914610935578063418633c11461095057806342842e0e1461099d57600080fd5b8063368bf74e146108e857806339d94adc1461090a5780633ccfd60b1461092057600080fd5b80631e5d23fd1161056e5780632eae474111610517578063326d4388116104f1578063326d43881461089357806333e5bf2b146108b357806335cb5101146108d357600080fd5b80632eae474114610847578063301b43001461085d57806331c3c7a01461087d57600080fd5b80632432abe5116105485780632432abe51461080b57806326bb2feb1461082157806326d7c34d1461083457600080fd5b80631e5d23fd146107b2578063204e656b146107c857806323b872dd146107eb57600080fd5b8063095ea7b3116105d057806314fa59da116105aa57806314fa59da1461074e57806318160ddd146107645780631de40d701461077d57600080fd5b8063095ea7b3146106de5780630dea2807146106fe578063102d3e9b1461073857600080fd5b806301ffc9a71461060d57806304b4de781461064257806306fdde0314610664578063081812fc146106865780630906ad25146106be575b600080fd5b34801561061957600080fd5b5061062d610628366004614484565b611175565b60405190151581526020015b60405180910390f35b34801561064e57600080fd5b5061066261065d36600461446c565b6111c7565b005b34801561067057600080fd5b50610679611219565b60405161063991906146da565b34801561069257600080fd5b506106a66106a136600461446c565b6112ab565b6040516001600160a01b039091168152602001610639565b3480156106ca57600080fd5b506106626106d93660046143c5565b6112ef565b3480156106ea57600080fd5b506106626106f9366004614369565b61138b565b34801561070a57600080fd5b5061072a610719366004614240565b602080526000908152604090205481565b604051908152602001610639565b34801561074457600080fd5b5061072a601a5481565b34801561075a57600080fd5b5061072a60175481565b34801561077057600080fd5b506002546001540361072a565b34801561078957600080fd5b50601f5461079f90600160301b900461ffff1681565b60405161ffff9091168152602001610639565b3480156107be57600080fd5b5061072a60155481565b3480156107d457600080fd5b5060255461062d9065010000000000900460ff1681565b3480156107f757600080fd5b5061066261080636600461428c565b611419565b34801561081757600080fd5b5061072a600b5481565b61066261082f366004614564565b611424565b61066261084236600461454a565b611796565b34801561085357600080fd5b5061072a601b5481565b34801561086957600080fd5b5061066261087836600461446c565b611b89565b34801561088957600080fd5b5061072a60135481565b34801561089f57600080fd5b506106626108ae3660046144bc565b611bd6565b3480156108bf57600080fd5b506106626108ce36600461446c565b611c31565b3480156108df57600080fd5b5061072a611c7e565b3480156108f457600080fd5b50601f5461079f90600160901b900461ffff1681565b34801561091657600080fd5b5061072a60145481565b34801561092c57600080fd5b50610662611c9f565b34801561094157600080fd5b50601f5461079f9061ffff1681565b34801561095c57600080fd5b5061097061096b366004614240565b611ddc565b604080519687526020870195909552938501929092526060840152608083015260a082015260c001610639565b3480156109a957600080fd5b506106626109b836600461428c565b611e3b565b3480156109c957600080fd5b5061072a60165481565b3480156109df57600080fd5b506106626109ee366004614510565b611e56565b3480156109ff57600080fd5b50610679611eb5565b348015610a1457600080fd5b50610662610a233660046144bc565b611f43565b348015610a3457600080fd5b50610679611f9e565b348015610a4957600080fd5b50610970610a58366004614240565b601454601f546013546018546019546001600160a01b038616600090815260208052604090205461ffff9094169391939550919395565b348015610a9b57600080fd5b506106a6610aaa36600461446c565b611fab565b348015610abb57600080fd5b50601f5461079f90640100000000900461ffff1681565b348015610ade57600080fd5b5061072a60185481565b348015610af457600080fd5b5061072a610b03366004614240565b60246020526000908152604090205481565b348015610b2157600080fd5b5061072a601e5481565b348015610b3757600080fd5b5061072a610b46366004614240565b611fbd565b348015610b5757600080fd5b5061066261200c565b348015610b6c57600080fd5b5061072a610b7b366004614240565b60236020526000908152604090205481565b348015610b9957600080fd5b50610662610ba836600461446c565b612060565b348015610bb957600080fd5b50601f5461079f90600160501b900461ffff1681565b348015610bdb57600080fd5b50601f5461079f90600160601b900461ffff1681565b348015610bfd57600080fd5b5061072a610c0c366004614240565b60226020526000908152604090205481565b348015610c2a57600080fd5b506000546001600160a01b03166106a6565b348015610c4857600080fd5b50610662610c573660046144bc565b6120ad565b348015610c6857600080fd5b50610970610c77366004614240565b612108565b348015610c8857600080fd5b5061067961216c565b348015610c9d57600080fd5b5061072a600f5481565b348015610cb357600080fd5b5061072a60115481565b348015610cc957600080fd5b5061072a61217b565b348015610cde57600080fd5b50601f5461079f90600160401b900461ffff1681565b348015610d0057600080fd5b50610662610d0f366004614340565b61220a565b348015610d2057600080fd5b5060285461062d9060ff1681565b348015610d3a57600080fd5b5061072a610d49366004614240565b6122a0565b348015610d5a57600080fd5b50610662610d6936600461446c565b6123b9565b348015610d7a57600080fd5b50610662610d893660046144ef565b612406565b348015610d9a57600080fd5b5061072a60095481565b348015610db057600080fd5b50601f5461079f90600160801b900461ffff1681565b348015610dd257600080fd5b5061072a601c5481565b348015610de857600080fd5b50610dfc610df7366004614369565b612459565b604080516001600160801b03909316835260ff909116602083015201610639565b348015610e2957600080fd5b5061072a60105481565b348015610e3f57600080fd5b50610662610e4e3660046142c7565b61249c565b348015610e5f57600080fd5b5061072a610e6e366004614240565b60216020526000908152604090205481565b348015610e8c57600080fd5b506106626124ed565b348015610ea157600080fd5b5061072a6126bc565b348015610eb657600080fd5b5061072a60195481565b348015610ecc57600080fd5b5061066261276c565b348015610ee157600080fd5b5061072a610ef0366004614240565b6001600160a01b031660009081526026602052604090205490565b348015610f1757600080fd5b50601f5461079f9062010000900461ffff1681565b348015610f3857600080fd5b5061072a60275481565b348015610f4e57600080fd5b50610679610f5d36600461446c565b612874565b348015610f6e57600080fd5b50610662610f7d3660046144ef565b61294b565b348015610f8e57600080fd5b50610662610f9d366004614392565b61299e565b610662610fb0366004614564565b612b8c565b610662610fc3366004614564565b612f03565b348015610fd457600080fd5b50601f5461079f90600160701b900461ffff1681565b348015610ff657600080fd5b5061066261321f565b34801561100b57600080fd5b5061072a600c5481565b34801561102157600080fd5b50610662611030366004614420565b6134e6565b34801561104157600080fd5b5061072a600a5481565b34801561105757600080fd5b5061067961354f565b34801561106c57600080fd5b5061067961355c565b34801561108157600080fd5b5061062d61109036600461425a565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156110ca57600080fd5b506109706110d9366004614240565b61356b565b3480156110ea57600080fd5b506106626110f936600461446c565b6135ca565b34801561110a57600080fd5b50610662611119366004614240565b613617565b34801561112a57600080fd5b5061072a60125481565b34801561114057600080fd5b5061072a600e5481565b34801561115657600080fd5b5061072a6136d0565b34801561116b57600080fd5b5061072a601d5481565b60006001600160e01b031982166380ac58cd60e01b14806111a657506001600160e01b03198216635b5e139f60e01b145b806111c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146112145760405162461bcd60e51b8152602060048201819052602482015260008051602061495383398151915260448201526064015b60405180910390fd5b601e55565b60606003805461122890614890565b80601f016020809104026020016040519081016040528092919081815260200182805461125490614890565b80156112a15780601f10611276576101008083540402835291602001916112a1565b820191906000526020600020905b81548152906001019060200180831161128457829003601f168201915b5050505050905090565b60006112b68261372d565b6112d3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000546001600160a01b031633146113375760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6025805492151563010000000263ff0000001994151562010000029490941663ffff0000199515156101000261ff00199715159790971661ffff199094169390931795909517939093161717909155602755565b600061139682611fab565b9050806001600160a01b0316836001600160a01b031614156113cb5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906113eb57506113e98133611090565b155b15611409576040516367d9dca160e11b815260040160405180910390fd5b611414838383613759565b505050565b6114148383836137b5565b8061142e816139a5565b61144a5760405162461bcd60e51b815260040161120b9061474a565b60008360ff161161149d5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b6000601254116114ef5760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b60255462010000900460ff166115525760405162461bcd60e51b815260206004820152602260248201527f4d61696e206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b606482015260840161120b565b601c5442106115925760405162461bcd60e51b815260206004820152600c60248201526b26b0b4b71034b99037bb32b960a11b604482015260640161120b565b601f5433600090815260226020526040902054600160701b90910461ffff16906115c09060ff8616906147eb565b11156115de5760405162461bcd60e51b815260040161120b906146ed565b8260ff166115ea611c7e565b6115f49190614817565b34101561164e5760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72204d41494e204d696044820152611b9d60f21b606482015260840161120b565b601654601f5461166e9060ff861690640100000000900461ffff166147c5565b61ffff1611156116c05760405162461bcd60e51b815260206004820152601c60248201527f4d617820737570706c7920666f72204d41494e20726561636865642100000000604482015260640161120b565b6017548360ff166116d46002546001540390565b6116de91906147eb565b11156117215760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f5461173e9060ff851690640100000000900461ffff166147c5565b601f805461ffff929092166401000000000265ffff0000000019909216919091179055336000908152602260205260408120805460ff861692906117839084906147eb565b9091555061141490503360ff85166139bc565b60008160ff16116117e95760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b602554610100900460ff166118405760405162461bcd60e51b815260206004820181905260248201527f4441206d7573742062652061637469766520746f206d696e7420746f6b656e73604482015260640161120b565b601a544210156118925760405162461bcd60e51b815260206004820152601360248201527f444120686173206e6f7420737461727465642100000000000000000000000000604482015260640161120b565b601b5442106118d05760405162461bcd60e51b815260206004820152600a60248201526922209034b99037bb32b960b11b604482015260640161120b565b601f5433600090815260216020526040902054600160601b90910461ffff16906118fe9060ff8416906147eb565b111561191c5760405162461bcd60e51b815260040161120b906146ed565b600061192661217b565b90506119358160ff8416614817565b3410156119845760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e0000000000000000604482015260640161120b565b601554601f546119a29060ff85169062010000900461ffff166147c5565b61ffff1611156119f45760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f72204441207265616368656421000000000000604482015260640161120b565b6017548260ff16611a086002546001540390565b611a1291906147eb565b1115611a555760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601554601f54611a739060ff85169062010000900461ffff166147c5565b61ffff161415611aa3576025805461ff00191690556012819055601d54611a9a90426147eb565b601c5560036027555b33600090815260266020908152604080832081518083019092526001600160801b03348116835260ff80881684860181815284546001810186559488529590962093519390920180549451909216600160801b0270ffffffffffffffffffffffffffffffffff19909416921691909117919091179055601f54611b31919061ffff62010000909104166147c5565b601f805461ffff92909216620100000263ffff000019909216919091179055336000908152602160205260408120805460ff85169290611b729084906147eb565b90915550611b8590503360ff84166139bc565b5050565b6000546001600160a01b03163314611bd15760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600a55565b6000546001600160a01b03163314611c1e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602990602084019061406e565b6000546001600160a01b03163314611c795760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600c55565b60006064601254611c8f9190614803565b611c9a906050614817565b905090565b6000546001600160a01b03163314611ce75760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6002600d541415611d3a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161120b565b6002600d55600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611d8c576040519150601f19603f3d011682016040523d82523d6000602084013e611d91565b606091505b5050905080611dd45760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015260640161120b565b506001600d55565b600080600080600080611ded6136d0565b601f54600160301b900461ffff16611e03611c7e565b601e546001600160a01b039a909a16600090815260236020526040812054939b61ffff939093169a9199509097509550909350915050565b6114148383836040518060200160405280600081525061249c565b6000546001600160a01b03163314611e9e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601894909455601992909255601a55601b55601e55565b60298054611ec290614890565b80601f0160208091040260200160405190810160405280929190818152602001828054611eee90614890565b8015611f3b5780601f10611f1057610100808354040283529160200191611f3b565b820191906000526020600020905b815481529060010190602001808311611f1e57829003601f168201915b505050505081565b6000546001600160a01b03163314611f8b5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602a90602084019061406e565b602b8054611ec290614890565b6000611fb6826139d6565b5192915050565b60006001600160a01b038216611fe6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146120545760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b61205e6000613af2565b565b6000546001600160a01b031633146120a85760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600b55565b6000546001600160a01b031633146120f55760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602b90602084019061406e565b600080600080600080601654601f60049054906101000a900461ffff1661212d611c7e565b6121356136d0565b601c546001600160a01b039b909b16600090815260226020526040902054939b61ffff939093169a91995097509550909350915050565b60606004805461122890614890565b6000601a5442101561218e5750600e5490565b6012541561219d575060125490565b6000601a54426121ad9190614836565b90506000601154826121bf9190614803565b90506000601054826121d19190614817565b9050600f54600e546121e39190614836565b81106121f457600f54935050505090565b80600e546122029190614836565b935050505090565b6001600160a01b0382163314156122345760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b03811660009081526026602052604081205481905b80156123b2576012546001600160a01b03851660009081526026602052604081209091906122eb600185614836565b8154811061230957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546123299190600160801b900460ff16614817565b6001600160a01b0386166000908152602660205260408120919250908290612352600186614836565b8154811061237057634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461238f91906001600160801b0316614836565b905061239b81856147eb565b9350505080806123aa90614879565b9150506122bc565b5092915050565b6000546001600160a01b031633146124015760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b602755565b6000546001600160a01b0316331461244e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601891909155601955565b6026602052816000526040600020818154811061247557600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6124a78484846137b5565b6001600160a01b0383163b151580156124c957506124c784848484613b42565b155b156124e7576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60006012541161253f5760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b336000908152602660205260408120545b801561268e57601254336000908152602660205260408120909190612576600185614836565b8154811061259457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546125b49190600160801b900460ff16614817565b3360009081526026602052604081209192509082906125d4600186614836565b815481106125f257634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461261191906001600160801b0316614836565b3360009081526026602052604090208054919250908061264157634e487b7160e01b600052603160045260246000fd5b6000828152602090208101600019908101805470ffffffffffffffffffffffffffffffffff1916905501905561267781856147eb565b93505050808061268690614879565b915050612550565b50604051339082156108fc029083906000818181858888f19350505050158015611b85573d6000803e3d6000fd5b601354601f5460009182916126d5919061ffff16614817565b601254601f549192506000916126f5919062010000900461ffff16614817565b90506000612701611c7e565b601f5461271a9190640100000000900461ffff16614817565b90506000612726611c7e565b601f5461273e9190600160301b900461ffff16614817565b90506000818361274e87876147eb565b61275891906147eb565b61276291906147eb565b9695505050505050565b6000546001600160a01b031633146127b45760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601b5442116127fc5760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b604482015260640161120b565b6012541561284c5760405162461bcd60e51b815260206004820152601360248201527f507269636520686173206265656e207365742100000000000000000000000000604482015260640161120b565b6025805461ff0019169055600f546012556003602755601d5461286f90426147eb565b601c55565b60285460609060ff16156128b457602a61288d83613c3a565b60405160200161289e9291906145ee565b6040516020818303038152906040529050919050565b602980546128c190614890565b80601f01602080910402602001604051908101604052809291908181526020018280546128ed90614890565b801561293a5780601f1061290f5761010080835404028352916020019161293a565b820191906000526020600020905b81548152906001019060200180831161291d57829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b031633146129935760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601a91909155601b55565b806129a881613d6c565b6129c45760405162461bcd60e51b815260040161120b9061474a565b600060125411612a165760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b602554640100000000900460ff16612a7b5760405162461bcd60e51b815260206004820152602260248201527f7465616d206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b606482015260840161120b565b601f5433600090815260246020526040902054600160901b90910461ffff1690612aa69060016147eb565b1115612ac45760405162461bcd60e51b815260040161120b906146ed565b60175460025460015403612ad99060016147eb565b1115612b1c5760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f54612b3590600160401b900461ffff1660016147c5565b601f805461ffff92909216600160401b0269ffff000000000000000019909216919091179055336000908152602460205260408120805460019290612b7b9084906147eb565b90915550611b8590503360016139bc565b80612b9681613d83565b612bb25760405162461bcd60e51b815260040161120b9061474a565b60008360ff1611612c055760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b600060125411612c575760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b6025546301000000900460ff16612cbc5760405162461bcd60e51b815260206004820152602360248201527f4578747261206d7573742062652061637469766520746f206d696e7420746f6b604482015262656e7360e81b606482015260840161120b565b601e54421015612d0e5760405162461bcd60e51b815260206004820152601a60248201527f457874726120686173206e6f7420737461727465642079657421000000000000604482015260640161120b565b601f5433600090815260236020526040902054600160801b90910461ffff1690612d3c9060ff8616906147eb565b1115612d5a5760405162461bcd60e51b815260040161120b906146ed565b8260ff16612d66611c7e565b612d709190614817565b341015612dca5760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72204d41494e204d696044820152611b9d60f21b606482015260840161120b565b612dd26136d0565b601f54612dee9060ff861690600160301b900461ffff166147c5565b61ffff161115612e405760405162461bcd60e51b815260206004820152601d60248201527f4d617820737570706c7920666f72204558545241207265616368656421000000604482015260640161120b565b6017548360ff16612e546002546001540390565b612e5e91906147eb565b1115612ea15760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f54612ebd9060ff851690600160301b900461ffff166147c5565b601f805461ffff92909216600160301b0267ffff00000000000019909216919091179055336000908152602360205260408120805460ff861692906117839084906147eb565b80612f0d81613d9a565b612f295760405162461bcd60e51b815260040161120b9061474a565b60008360ff1611612f7c5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b60255460ff16612fce5760405162461bcd60e51b815260206004820181905260248201527f574c206d7573742062652061637469766520746f206d696e7420746f6b656e73604482015260640161120b565b6018544210156130205760405162461bcd60e51b815260206004820152601760248201527f574c20686173206e6f7420737461727465642079657421000000000000000000604482015260640161120b565b601954421061305e5760405162461bcd60e51b815260206004820152600a6024820152692ba61034b99037bb32b960b11b604482015260640161120b565b601f54336000908152602080526040902054600160501b90910461ffff169061308b9060ff8616906147eb565b11156130a95760405162461bcd60e51b815260040161120b906146ed565b6013546130b99060ff8516614817565b3410156131085760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e0000000000000000604482015260640161120b565b601454601f546131209060ff86169061ffff166147c5565b61ffff1611156131725760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f7220574c207265616368656421000000000000604482015260640161120b565b6017548360ff166131866002546001540390565b61319091906147eb565b11156131d35760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f546131e89060ff85169061ffff166147c5565b601f805461ffff191661ffff929092169190911790553360009081526020805260408120805460ff861692906117839084906147eb565b6000546001600160a01b031633146132675760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6002600d5414156132ba5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161120b565b6002600d5560255465010000000000900460ff161561332e5760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b606482015260840161120b565b6000601254116133775760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b604482015260640161120b565b601354601f5460009161338d9161ffff16614817565b601254601f549192506000916133ad919062010000900461ffff16614817565b905060006133b9611c7e565b601f546133d29190640100000000900461ffff16614817565b905060006133de611c7e565b601f546133f69190600160301b900461ffff16614817565b90506000818361340687876147eb565b61341091906147eb565b61341a91906147eb565b6025805465ff0000000000191665010000000000179055905060006134476000546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114613491576040519150601f19603f3d011682016040523d82523d6000602084013e613496565b606091505b50509050806134d95760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015260640161120b565b50506001600d5550505050565b6000546001600160a01b0316331461352e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6028805460ff1916831515179055805161141490602a90602084019061406e565b602a8054611ec290614890565b6060602b805461122890614890565b600080600080600080601554601f60029054906101000a900461ffff1661359061217b565b601a54601b546001600160a01b039b909b16600090815260216020526040902054939b61ffff939093169a91995097509550909350915050565b6000546001600160a01b031633146136125760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600955565b6000546001600160a01b0316331461365f5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6001600160a01b0381166136c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161120b565b6136cd81613af2565b50565b601f5460165460155460145460009361ffff6401000000008204811694620100008304821694919092169261370591906147eb565b61370f91906147eb565b6137199190614836565b6137239190614836565b611c9a9190614836565b6000600154821080156111c1575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006137c0826139d6565b9050836001600160a01b031681600001516001600160a01b0316146137f75760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061381557506138158533611090565b80613830575033613825846112ab565b6001600160a01b0316145b90508061385057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661387757604051633a954ecd60e21b815260040160405180910390fd5b61388360008487613759565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613959576001548214613959578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60006111c1826139b433613db1565b600a54613df0565b611b85828260405180602001604052806000815250613dfd565b604080516060810182526000808252602082018190529181019190915281600154811015613ad957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290613ad75780516001600160a01b031615613a6d579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613ad2579392505050565b613a6d565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613b779033908990889088906004016146a8565b602060405180830381600087803b158015613b9157600080fd5b505af1925050508015613bc1575060408051601f3d908101601f19168201909252613bbe918101906144a0565b60015b613c1c573d808015613bef576040519150601f19603f3d011682016040523d82523d6000602084013e613bf4565b606091505b508051613c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081613c5e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613c885780613c72816148cb565b9150613c819050600a83614803565b9150613c62565b60008167ffffffffffffffff811115613cb157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613cdb576020820181803683370190505b5090505b8415613c3257613cf0600183614836565b9150613cfd600a866148e6565b613d089060306147eb565b60f81b818381518110613d2b57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d65600a86614803565b9450613cdf565b60006111c182613d7b33613db1565b600c54613df0565b60006111c182613d9233613db1565b600b54613df0565b60006111c182613da933613db1565b600954613df0565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b6000613c32848385613e0a565b6114148383836001613e20565b600082613e178584613fec565b14949350505050565b6001546001600160a01b038516613e4957604051622e076360e81b815260040160405180910390fd5b83613e675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015613f1457506001600160a01b0387163b15155b15613f9d575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613f656000888480600101955088613b42565b613f82576040516368d2bf6b60e11b815260040160405180910390fd5b80821415613f1a578260015414613f9857600080fd5b613fe3565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613f9e575b5060015561399e565b600081815b845181101561406657600085828151811061401c57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116140425760008381526020829052604090209250614053565b600081815260208490526040902092505b508061405e816148cb565b915050613ff1565b509392505050565b82805461407a90614890565b90600052602060002090601f01602090048101928261409c57600085556140e2565b82601f106140b557805160ff19168380011785556140e2565b828001600101855582156140e2579182015b828111156140e25782518255916020019190600101906140c7565b506140ee9291506140f2565b5090565b5b808211156140ee57600081556001016140f3565b600067ffffffffffffffff83111561412157614121614926565b614134601f8401601f1916602001614794565b905082815283838301111561414857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461294657600080fd5b600082601f830112614186578081fd5b8135602067ffffffffffffffff8211156141a2576141a2614926565b8160051b6141b1828201614794565b8381528281019086840183880185018910156141cb578687fd5b8693505b858410156141ed5780358352600193909301929184019184016141cf565b50979650505050505050565b8035801515811461294657600080fd5b600082601f830112614219578081fd5b61422883833560208501614107565b9392505050565b803560ff8116811461294657600080fd5b600060208284031215614251578081fd5b6142288261415f565b6000806040838503121561426c578081fd5b6142758361415f565b91506142836020840161415f565b90509250929050565b6000806000606084860312156142a0578081fd5b6142a98461415f565b92506142b76020850161415f565b9150604084013590509250925092565b600080600080608085870312156142dc578081fd5b6142e58561415f565b93506142f36020860161415f565b925060408501359150606085013567ffffffffffffffff811115614315578182fd5b8501601f81018713614325578182fd5b61433487823560208401614107565b91505092959194509250565b60008060408385031215614352578182fd5b61435b8361415f565b9150614283602084016141f9565b6000806040838503121561437b578182fd5b6143848361415f565b946020939093013593505050565b6000602082840312156143a3578081fd5b813567ffffffffffffffff8111156143b9578182fd5b613c3284828501614176565b600080600080600060a086880312156143dc578081fd5b6143e5866141f9565b94506143f3602087016141f9565b9350614401604087016141f9565b925061440f606087016141f9565b949793965091946080013592915050565b60008060408385031215614432578182fd5b61443b836141f9565b9150602083013567ffffffffffffffff811115614456578182fd5b61446285828601614209565b9150509250929050565b60006020828403121561447d578081fd5b5035919050565b600060208284031215614495578081fd5b81356142288161493c565b6000602082840312156144b1578081fd5b81516142288161493c565b6000602082840312156144cd578081fd5b813567ffffffffffffffff8111156144e3578182fd5b613c3284828501614209565b60008060408385031215614501578182fd5b50508035926020909101359150565b600080600080600060a08688031215614527578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b60006020828403121561455b578081fd5b6142288261422f565b60008060408385031215614576578182fd5b61457f8361422f565b9150602083013567ffffffffffffffff81111561459a578182fd5b61446285828601614176565b600081518084526145be81602086016020860161484d565b601f01601f19169290920160200192915050565b600081516145e481856020860161484d565b9290920192915050565b600080845482600182811c91508083168061460a57607f831692505b602080841082141561462a57634e487b7160e01b87526022600452602487fd5b81801561463e576001811461464f5761467b565b60ff1986168952848901965061467b565b60008b815260209020885b868110156146735781548b82015290850190830161465a565b505084890196505b50505050505061469f61468e82866145d2565b64173539b7b760d91b815260050190565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261276260808301846145a6565b60208152600061422860208301846145a6565b60208082526039908201527f507572636861736520776f756c6420657863656564206d6178206e756d62657260408201527f206f66206d6574616361726473207065722077616c6c65742e00000000000000606082015260800190565b6020808252602a908201527f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f7420776040820152691a1a5d195b1a5cdd195960b21b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156147bd576147bd614926565b604052919050565b600061ffff8083168185168083038211156147e2576147e26148fa565b01949350505050565b600082198211156147fe576147fe6148fa565b500190565b60008261481257614812614910565b500490565b6000816000190483118215151615614831576148316148fa565b500290565b600082821015614848576148486148fa565b500390565b60005b83811015614868578181015183820152602001614850565b838111156124e75750506000910152565b600081614888576148886148fa565b506000190190565b600181811c908216806148a457607f821691505b602082108114156148c557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148df576148df6148fa565b5060010190565b6000826148f5576148f5614910565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146136cd57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201729a287c5f28161198d26305851653fdbc3ff363e709a4792a3ef08ea7a458a64736f6c6343000804003368747470733a2f2f646174612e746f72697a65726f2e636f6d2f6170692f636f6e747261637475726c2e6a736f6e68747470733a2f2f646174612e746f72697a65726f2e636f6d2f746f72697a65726f2f626f782e6a736f6e
Deployed Bytecode
0x6080604052600436106106085760003560e01c80638351764a11610322578063c062aa89116101a5578063d7b23268116100ec578063ec5904ef11610095578063f89d2e4d1161006f578063f89d2e4d14611134578063f9af76ab1461114a578063ff7f45451461115f57600080fd5b8063ec5904ef146110de578063f2fde38b146110fe578063f5998ed81461111e57600080fd5b8063e8a3d485116100c6578063e8a3d48514611060578063e985e9c514611075578063ec2d005b146110be57600080fd5b8063d7b2326814611015578063d81bd63514611035578063dbddb26a1461104b57600080fd5b8063cb30bc2e1161014e578063d287f14111610128578063d287f14114610fc8578063d627349f14610fea578063d6c0b1b614610fff57600080fd5b8063cb30bc2e14610f82578063cda2f27514610fa2578063cfe560e014610fb557600080fd5b8063c486456c1161017f578063c486456c14610f2c578063c87b56dd14610f42578063cadffd5914610f6257600080fd5b8063c062aa8914610ec0578063c0666e8d14610ed5578063c2e1179914610f0b57600080fd5b8063a9e966b711610269578063b812937111610212578063b9765a1f116101ec578063b9765a1f14610e80578063bb79188314610e95578063bd882e9714610eaa57600080fd5b8063b812937114610e1d578063b88d4fde14610e33578063b8b91cf914610e5357600080fd5b8063acad341811610243578063acad341814610da4578063afd10ab014610dc6578063b70b1cd714610ddc57600080fd5b8063a9e966b714610d4e578063a9fe9d7414610d6e578063aa22649814610d8e57600080fd5b8063996e52b5116102cb578063a22cb465116102a5578063a22cb46514610cf4578063a76a958714610d14578063a92bc58a14610d2e57600080fd5b8063996e52b514610ca75780639d1b464a14610cbd578063a1fbe8b614610cd257600080fd5b80639557ac02116102fc5780639557ac0214610c5c57806395d89b4114610c7c57806397f65c0814610c9157600080fd5b80638351764a14610bf15780638da5cb5b14610c1e578063938e3d7b14610c3c57600080fd5b8063368bf74e116104aa5780636352211e116103f157806370c93f1a1161039a5780637529910a116103745780637529910a14610b8d57806378b004a214610bad5780638175ca5614610bcf57600080fd5b806370c93f1a146108d3578063715018a614610b4b5780637295f79814610b6057600080fd5b806366431fcd116103cb57806366431fcd14610ae85780636f470b6c14610b1557806370a0823114610b2b57600080fd5b80636352211e14610a8f5780636361659b14610aaf578063651464c014610ad257600080fd5b8063467d0bfa1161045357806355f804b31161042d57806355f804b314610a0857806356b4f67314610a2857806358394ebb14610a3d57600080fd5b8063467d0bfa146109bd57806349c28417146109d3578063507862d1146109f357600080fd5b80633f296d49116104845780633f296d4914610935578063418633c11461095057806342842e0e1461099d57600080fd5b8063368bf74e146108e857806339d94adc1461090a5780633ccfd60b1461092057600080fd5b80631e5d23fd1161056e5780632eae474111610517578063326d4388116104f1578063326d43881461089357806333e5bf2b146108b357806335cb5101146108d357600080fd5b80632eae474114610847578063301b43001461085d57806331c3c7a01461087d57600080fd5b80632432abe5116105485780632432abe51461080b57806326bb2feb1461082157806326d7c34d1461083457600080fd5b80631e5d23fd146107b2578063204e656b146107c857806323b872dd146107eb57600080fd5b8063095ea7b3116105d057806314fa59da116105aa57806314fa59da1461074e57806318160ddd146107645780631de40d701461077d57600080fd5b8063095ea7b3146106de5780630dea2807146106fe578063102d3e9b1461073857600080fd5b806301ffc9a71461060d57806304b4de781461064257806306fdde0314610664578063081812fc146106865780630906ad25146106be575b600080fd5b34801561061957600080fd5b5061062d610628366004614484565b611175565b60405190151581526020015b60405180910390f35b34801561064e57600080fd5b5061066261065d36600461446c565b6111c7565b005b34801561067057600080fd5b50610679611219565b60405161063991906146da565b34801561069257600080fd5b506106a66106a136600461446c565b6112ab565b6040516001600160a01b039091168152602001610639565b3480156106ca57600080fd5b506106626106d93660046143c5565b6112ef565b3480156106ea57600080fd5b506106626106f9366004614369565b61138b565b34801561070a57600080fd5b5061072a610719366004614240565b602080526000908152604090205481565b604051908152602001610639565b34801561074457600080fd5b5061072a601a5481565b34801561075a57600080fd5b5061072a60175481565b34801561077057600080fd5b506002546001540361072a565b34801561078957600080fd5b50601f5461079f90600160301b900461ffff1681565b60405161ffff9091168152602001610639565b3480156107be57600080fd5b5061072a60155481565b3480156107d457600080fd5b5060255461062d9065010000000000900460ff1681565b3480156107f757600080fd5b5061066261080636600461428c565b611419565b34801561081757600080fd5b5061072a600b5481565b61066261082f366004614564565b611424565b61066261084236600461454a565b611796565b34801561085357600080fd5b5061072a601b5481565b34801561086957600080fd5b5061066261087836600461446c565b611b89565b34801561088957600080fd5b5061072a60135481565b34801561089f57600080fd5b506106626108ae3660046144bc565b611bd6565b3480156108bf57600080fd5b506106626108ce36600461446c565b611c31565b3480156108df57600080fd5b5061072a611c7e565b3480156108f457600080fd5b50601f5461079f90600160901b900461ffff1681565b34801561091657600080fd5b5061072a60145481565b34801561092c57600080fd5b50610662611c9f565b34801561094157600080fd5b50601f5461079f9061ffff1681565b34801561095c57600080fd5b5061097061096b366004614240565b611ddc565b604080519687526020870195909552938501929092526060840152608083015260a082015260c001610639565b3480156109a957600080fd5b506106626109b836600461428c565b611e3b565b3480156109c957600080fd5b5061072a60165481565b3480156109df57600080fd5b506106626109ee366004614510565b611e56565b3480156109ff57600080fd5b50610679611eb5565b348015610a1457600080fd5b50610662610a233660046144bc565b611f43565b348015610a3457600080fd5b50610679611f9e565b348015610a4957600080fd5b50610970610a58366004614240565b601454601f546013546018546019546001600160a01b038616600090815260208052604090205461ffff9094169391939550919395565b348015610a9b57600080fd5b506106a6610aaa36600461446c565b611fab565b348015610abb57600080fd5b50601f5461079f90640100000000900461ffff1681565b348015610ade57600080fd5b5061072a60185481565b348015610af457600080fd5b5061072a610b03366004614240565b60246020526000908152604090205481565b348015610b2157600080fd5b5061072a601e5481565b348015610b3757600080fd5b5061072a610b46366004614240565b611fbd565b348015610b5757600080fd5b5061066261200c565b348015610b6c57600080fd5b5061072a610b7b366004614240565b60236020526000908152604090205481565b348015610b9957600080fd5b50610662610ba836600461446c565b612060565b348015610bb957600080fd5b50601f5461079f90600160501b900461ffff1681565b348015610bdb57600080fd5b50601f5461079f90600160601b900461ffff1681565b348015610bfd57600080fd5b5061072a610c0c366004614240565b60226020526000908152604090205481565b348015610c2a57600080fd5b506000546001600160a01b03166106a6565b348015610c4857600080fd5b50610662610c573660046144bc565b6120ad565b348015610c6857600080fd5b50610970610c77366004614240565b612108565b348015610c8857600080fd5b5061067961216c565b348015610c9d57600080fd5b5061072a600f5481565b348015610cb357600080fd5b5061072a60115481565b348015610cc957600080fd5b5061072a61217b565b348015610cde57600080fd5b50601f5461079f90600160401b900461ffff1681565b348015610d0057600080fd5b50610662610d0f366004614340565b61220a565b348015610d2057600080fd5b5060285461062d9060ff1681565b348015610d3a57600080fd5b5061072a610d49366004614240565b6122a0565b348015610d5a57600080fd5b50610662610d6936600461446c565b6123b9565b348015610d7a57600080fd5b50610662610d893660046144ef565b612406565b348015610d9a57600080fd5b5061072a60095481565b348015610db057600080fd5b50601f5461079f90600160801b900461ffff1681565b348015610dd257600080fd5b5061072a601c5481565b348015610de857600080fd5b50610dfc610df7366004614369565b612459565b604080516001600160801b03909316835260ff909116602083015201610639565b348015610e2957600080fd5b5061072a60105481565b348015610e3f57600080fd5b50610662610e4e3660046142c7565b61249c565b348015610e5f57600080fd5b5061072a610e6e366004614240565b60216020526000908152604090205481565b348015610e8c57600080fd5b506106626124ed565b348015610ea157600080fd5b5061072a6126bc565b348015610eb657600080fd5b5061072a60195481565b348015610ecc57600080fd5b5061066261276c565b348015610ee157600080fd5b5061072a610ef0366004614240565b6001600160a01b031660009081526026602052604090205490565b348015610f1757600080fd5b50601f5461079f9062010000900461ffff1681565b348015610f3857600080fd5b5061072a60275481565b348015610f4e57600080fd5b50610679610f5d36600461446c565b612874565b348015610f6e57600080fd5b50610662610f7d3660046144ef565b61294b565b348015610f8e57600080fd5b50610662610f9d366004614392565b61299e565b610662610fb0366004614564565b612b8c565b610662610fc3366004614564565b612f03565b348015610fd457600080fd5b50601f5461079f90600160701b900461ffff1681565b348015610ff657600080fd5b5061066261321f565b34801561100b57600080fd5b5061072a600c5481565b34801561102157600080fd5b50610662611030366004614420565b6134e6565b34801561104157600080fd5b5061072a600a5481565b34801561105757600080fd5b5061067961354f565b34801561106c57600080fd5b5061067961355c565b34801561108157600080fd5b5061062d61109036600461425a565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156110ca57600080fd5b506109706110d9366004614240565b61356b565b3480156110ea57600080fd5b506106626110f936600461446c565b6135ca565b34801561110a57600080fd5b50610662611119366004614240565b613617565b34801561112a57600080fd5b5061072a60125481565b34801561114057600080fd5b5061072a600e5481565b34801561115657600080fd5b5061072a6136d0565b34801561116b57600080fd5b5061072a601d5481565b60006001600160e01b031982166380ac58cd60e01b14806111a657506001600160e01b03198216635b5e139f60e01b145b806111c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146112145760405162461bcd60e51b8152602060048201819052602482015260008051602061495383398151915260448201526064015b60405180910390fd5b601e55565b60606003805461122890614890565b80601f016020809104026020016040519081016040528092919081815260200182805461125490614890565b80156112a15780601f10611276576101008083540402835291602001916112a1565b820191906000526020600020905b81548152906001019060200180831161128457829003601f168201915b5050505050905090565b60006112b68261372d565b6112d3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000546001600160a01b031633146113375760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6025805492151563010000000263ff0000001994151562010000029490941663ffff0000199515156101000261ff00199715159790971661ffff199094169390931795909517939093161717909155602755565b600061139682611fab565b9050806001600160a01b0316836001600160a01b031614156113cb5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906113eb57506113e98133611090565b155b15611409576040516367d9dca160e11b815260040160405180910390fd5b611414838383613759565b505050565b6114148383836137b5565b8061142e816139a5565b61144a5760405162461bcd60e51b815260040161120b9061474a565b60008360ff161161149d5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b6000601254116114ef5760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b60255462010000900460ff166115525760405162461bcd60e51b815260206004820152602260248201527f4d61696e206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b606482015260840161120b565b601c5442106115925760405162461bcd60e51b815260206004820152600c60248201526b26b0b4b71034b99037bb32b960a11b604482015260640161120b565b601f5433600090815260226020526040902054600160701b90910461ffff16906115c09060ff8616906147eb565b11156115de5760405162461bcd60e51b815260040161120b906146ed565b8260ff166115ea611c7e565b6115f49190614817565b34101561164e5760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72204d41494e204d696044820152611b9d60f21b606482015260840161120b565b601654601f5461166e9060ff861690640100000000900461ffff166147c5565b61ffff1611156116c05760405162461bcd60e51b815260206004820152601c60248201527f4d617820737570706c7920666f72204d41494e20726561636865642100000000604482015260640161120b565b6017548360ff166116d46002546001540390565b6116de91906147eb565b11156117215760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f5461173e9060ff851690640100000000900461ffff166147c5565b601f805461ffff929092166401000000000265ffff0000000019909216919091179055336000908152602260205260408120805460ff861692906117839084906147eb565b9091555061141490503360ff85166139bc565b60008160ff16116117e95760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b602554610100900460ff166118405760405162461bcd60e51b815260206004820181905260248201527f4441206d7573742062652061637469766520746f206d696e7420746f6b656e73604482015260640161120b565b601a544210156118925760405162461bcd60e51b815260206004820152601360248201527f444120686173206e6f7420737461727465642100000000000000000000000000604482015260640161120b565b601b5442106118d05760405162461bcd60e51b815260206004820152600a60248201526922209034b99037bb32b960b11b604482015260640161120b565b601f5433600090815260216020526040902054600160601b90910461ffff16906118fe9060ff8416906147eb565b111561191c5760405162461bcd60e51b815260040161120b906146ed565b600061192661217b565b90506119358160ff8416614817565b3410156119845760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e0000000000000000604482015260640161120b565b601554601f546119a29060ff85169062010000900461ffff166147c5565b61ffff1611156119f45760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f72204441207265616368656421000000000000604482015260640161120b565b6017548260ff16611a086002546001540390565b611a1291906147eb565b1115611a555760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601554601f54611a739060ff85169062010000900461ffff166147c5565b61ffff161415611aa3576025805461ff00191690556012819055601d54611a9a90426147eb565b601c5560036027555b33600090815260266020908152604080832081518083019092526001600160801b03348116835260ff80881684860181815284546001810186559488529590962093519390920180549451909216600160801b0270ffffffffffffffffffffffffffffffffff19909416921691909117919091179055601f54611b31919061ffff62010000909104166147c5565b601f805461ffff92909216620100000263ffff000019909216919091179055336000908152602160205260408120805460ff85169290611b729084906147eb565b90915550611b8590503360ff84166139bc565b5050565b6000546001600160a01b03163314611bd15760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600a55565b6000546001600160a01b03163314611c1e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602990602084019061406e565b6000546001600160a01b03163314611c795760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600c55565b60006064601254611c8f9190614803565b611c9a906050614817565b905090565b6000546001600160a01b03163314611ce75760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6002600d541415611d3a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161120b565b6002600d55600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611d8c576040519150601f19603f3d011682016040523d82523d6000602084013e611d91565b606091505b5050905080611dd45760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015260640161120b565b506001600d55565b600080600080600080611ded6136d0565b601f54600160301b900461ffff16611e03611c7e565b601e546001600160a01b039a909a16600090815260236020526040812054939b61ffff939093169a9199509097509550909350915050565b6114148383836040518060200160405280600081525061249c565b6000546001600160a01b03163314611e9e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601894909455601992909255601a55601b55601e55565b60298054611ec290614890565b80601f0160208091040260200160405190810160405280929190818152602001828054611eee90614890565b8015611f3b5780601f10611f1057610100808354040283529160200191611f3b565b820191906000526020600020905b815481529060010190602001808311611f1e57829003601f168201915b505050505081565b6000546001600160a01b03163314611f8b5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602a90602084019061406e565b602b8054611ec290614890565b6000611fb6826139d6565b5192915050565b60006001600160a01b038216611fe6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146120545760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b61205e6000613af2565b565b6000546001600160a01b031633146120a85760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600b55565b6000546001600160a01b031633146120f55760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b8051611b8590602b90602084019061406e565b600080600080600080601654601f60049054906101000a900461ffff1661212d611c7e565b6121356136d0565b601c546001600160a01b039b909b16600090815260226020526040902054939b61ffff939093169a91995097509550909350915050565b60606004805461122890614890565b6000601a5442101561218e5750600e5490565b6012541561219d575060125490565b6000601a54426121ad9190614836565b90506000601154826121bf9190614803565b90506000601054826121d19190614817565b9050600f54600e546121e39190614836565b81106121f457600f54935050505090565b80600e546122029190614836565b935050505090565b6001600160a01b0382163314156122345760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b03811660009081526026602052604081205481905b80156123b2576012546001600160a01b03851660009081526026602052604081209091906122eb600185614836565b8154811061230957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546123299190600160801b900460ff16614817565b6001600160a01b0386166000908152602660205260408120919250908290612352600186614836565b8154811061237057634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461238f91906001600160801b0316614836565b905061239b81856147eb565b9350505080806123aa90614879565b9150506122bc565b5092915050565b6000546001600160a01b031633146124015760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b602755565b6000546001600160a01b0316331461244e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601891909155601955565b6026602052816000526040600020818154811061247557600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6124a78484846137b5565b6001600160a01b0383163b151580156124c957506124c784848484613b42565b155b156124e7576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60006012541161253f5760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b336000908152602660205260408120545b801561268e57601254336000908152602660205260408120909190612576600185614836565b8154811061259457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546125b49190600160801b900460ff16614817565b3360009081526026602052604081209192509082906125d4600186614836565b815481106125f257634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461261191906001600160801b0316614836565b3360009081526026602052604090208054919250908061264157634e487b7160e01b600052603160045260246000fd5b6000828152602090208101600019908101805470ffffffffffffffffffffffffffffffffff1916905501905561267781856147eb565b93505050808061268690614879565b915050612550565b50604051339082156108fc029083906000818181858888f19350505050158015611b85573d6000803e3d6000fd5b601354601f5460009182916126d5919061ffff16614817565b601254601f549192506000916126f5919062010000900461ffff16614817565b90506000612701611c7e565b601f5461271a9190640100000000900461ffff16614817565b90506000612726611c7e565b601f5461273e9190600160301b900461ffff16614817565b90506000818361274e87876147eb565b61275891906147eb565b61276291906147eb565b9695505050505050565b6000546001600160a01b031633146127b45760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601b5442116127fc5760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b604482015260640161120b565b6012541561284c5760405162461bcd60e51b815260206004820152601360248201527f507269636520686173206265656e207365742100000000000000000000000000604482015260640161120b565b6025805461ff0019169055600f546012556003602755601d5461286f90426147eb565b601c55565b60285460609060ff16156128b457602a61288d83613c3a565b60405160200161289e9291906145ee565b6040516020818303038152906040529050919050565b602980546128c190614890565b80601f01602080910402602001604051908101604052809291908181526020018280546128ed90614890565b801561293a5780601f1061290f5761010080835404028352916020019161293a565b820191906000526020600020905b81548152906001019060200180831161291d57829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b031633146129935760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b601a91909155601b55565b806129a881613d6c565b6129c45760405162461bcd60e51b815260040161120b9061474a565b600060125411612a165760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b602554640100000000900460ff16612a7b5760405162461bcd60e51b815260206004820152602260248201527f7465616d206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b606482015260840161120b565b601f5433600090815260246020526040902054600160901b90910461ffff1690612aa69060016147eb565b1115612ac45760405162461bcd60e51b815260040161120b906146ed565b60175460025460015403612ad99060016147eb565b1115612b1c5760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f54612b3590600160401b900461ffff1660016147c5565b601f805461ffff92909216600160401b0269ffff000000000000000019909216919091179055336000908152602460205260408120805460019290612b7b9084906147eb565b90915550611b8590503360016139bc565b80612b9681613d83565b612bb25760405162461bcd60e51b815260040161120b9061474a565b60008360ff1611612c055760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b600060125411612c575760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f76657221000000000000604482015260640161120b565b6025546301000000900460ff16612cbc5760405162461bcd60e51b815260206004820152602360248201527f4578747261206d7573742062652061637469766520746f206d696e7420746f6b604482015262656e7360e81b606482015260840161120b565b601e54421015612d0e5760405162461bcd60e51b815260206004820152601a60248201527f457874726120686173206e6f7420737461727465642079657421000000000000604482015260640161120b565b601f5433600090815260236020526040902054600160801b90910461ffff1690612d3c9060ff8616906147eb565b1115612d5a5760405162461bcd60e51b815260040161120b906146ed565b8260ff16612d66611c7e565b612d709190614817565b341015612dca5760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72204d41494e204d696044820152611b9d60f21b606482015260840161120b565b612dd26136d0565b601f54612dee9060ff861690600160301b900461ffff166147c5565b61ffff161115612e405760405162461bcd60e51b815260206004820152601d60248201527f4d617820737570706c7920666f72204558545241207265616368656421000000604482015260640161120b565b6017548360ff16612e546002546001540390565b612e5e91906147eb565b1115612ea15760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f54612ebd9060ff851690600160301b900461ffff166147c5565b601f805461ffff92909216600160301b0267ffff00000000000019909216919091179055336000908152602360205260408120805460ff861692906117839084906147eb565b80612f0d81613d9a565b612f295760405162461bcd60e51b815260040161120b9061474a565b60008360ff1611612f7c5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000604482015260640161120b565b60255460ff16612fce5760405162461bcd60e51b815260206004820181905260248201527f574c206d7573742062652061637469766520746f206d696e7420746f6b656e73604482015260640161120b565b6018544210156130205760405162461bcd60e51b815260206004820152601760248201527f574c20686173206e6f7420737461727465642079657421000000000000000000604482015260640161120b565b601954421061305e5760405162461bcd60e51b815260206004820152600a6024820152692ba61034b99037bb32b960b11b604482015260640161120b565b601f54336000908152602080526040902054600160501b90910461ffff169061308b9060ff8616906147eb565b11156130a95760405162461bcd60e51b815260040161120b906146ed565b6013546130b99060ff8516614817565b3410156131085760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e0000000000000000604482015260640161120b565b601454601f546131209060ff86169061ffff166147c5565b61ffff1611156131725760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f7220574c207265616368656421000000000000604482015260640161120b565b6017548360ff166131866002546001540390565b61319091906147eb565b11156131d35760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b604482015260640161120b565b601f546131e89060ff85169061ffff166147c5565b601f805461ffff191661ffff929092169190911790553360009081526020805260408120805460ff861692906117839084906147eb565b6000546001600160a01b031633146132675760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6002600d5414156132ba5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161120b565b6002600d5560255465010000000000900460ff161561332e5760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b606482015260840161120b565b6000601254116133775760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b604482015260640161120b565b601354601f5460009161338d9161ffff16614817565b601254601f549192506000916133ad919062010000900461ffff16614817565b905060006133b9611c7e565b601f546133d29190640100000000900461ffff16614817565b905060006133de611c7e565b601f546133f69190600160301b900461ffff16614817565b90506000818361340687876147eb565b61341091906147eb565b61341a91906147eb565b6025805465ff0000000000191665010000000000179055905060006134476000546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114613491576040519150601f19603f3d011682016040523d82523d6000602084013e613496565b606091505b50509050806134d95760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015260640161120b565b50506001600d5550505050565b6000546001600160a01b0316331461352e5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6028805460ff1916831515179055805161141490602a90602084019061406e565b602a8054611ec290614890565b6060602b805461122890614890565b600080600080600080601554601f60029054906101000a900461ffff1661359061217b565b601a54601b546001600160a01b039b909b16600090815260216020526040902054939b61ffff939093169a91995097509550909350915050565b6000546001600160a01b031633146136125760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b600955565b6000546001600160a01b0316331461365f5760405162461bcd60e51b81526020600482018190526024820152600080516020614953833981519152604482015260640161120b565b6001600160a01b0381166136c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161120b565b6136cd81613af2565b50565b601f5460165460155460145460009361ffff6401000000008204811694620100008304821694919092169261370591906147eb565b61370f91906147eb565b6137199190614836565b6137239190614836565b611c9a9190614836565b6000600154821080156111c1575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006137c0826139d6565b9050836001600160a01b031681600001516001600160a01b0316146137f75760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061381557506138158533611090565b80613830575033613825846112ab565b6001600160a01b0316145b90508061385057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661387757604051633a954ecd60e21b815260040160405180910390fd5b61388360008487613759565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613959576001548214613959578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60006111c1826139b433613db1565b600a54613df0565b611b85828260405180602001604052806000815250613dfd565b604080516060810182526000808252602082018190529181019190915281600154811015613ad957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290613ad75780516001600160a01b031615613a6d579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613ad2579392505050565b613a6d565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613b779033908990889088906004016146a8565b602060405180830381600087803b158015613b9157600080fd5b505af1925050508015613bc1575060408051601f3d908101601f19168201909252613bbe918101906144a0565b60015b613c1c573d808015613bef576040519150601f19603f3d011682016040523d82523d6000602084013e613bf4565b606091505b508051613c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081613c5e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613c885780613c72816148cb565b9150613c819050600a83614803565b9150613c62565b60008167ffffffffffffffff811115613cb157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613cdb576020820181803683370190505b5090505b8415613c3257613cf0600183614836565b9150613cfd600a866148e6565b613d089060306147eb565b60f81b818381518110613d2b57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d65600a86614803565b9450613cdf565b60006111c182613d7b33613db1565b600c54613df0565b60006111c182613d9233613db1565b600b54613df0565b60006111c182613da933613db1565b600954613df0565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b6000613c32848385613e0a565b6114148383836001613e20565b600082613e178584613fec565b14949350505050565b6001546001600160a01b038516613e4957604051622e076360e81b815260040160405180910390fd5b83613e675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015613f1457506001600160a01b0387163b15155b15613f9d575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613f656000888480600101955088613b42565b613f82576040516368d2bf6b60e11b815260040160405180910390fd5b80821415613f1a578260015414613f9857600080fd5b613fe3565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613f9e575b5060015561399e565b600081815b845181101561406657600085828151811061401c57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116140425760008381526020829052604090209250614053565b600081815260208490526040902092505b508061405e816148cb565b915050613ff1565b509392505050565b82805461407a90614890565b90600052602060002090601f01602090048101928261409c57600085556140e2565b82601f106140b557805160ff19168380011785556140e2565b828001600101855582156140e2579182015b828111156140e25782518255916020019190600101906140c7565b506140ee9291506140f2565b5090565b5b808211156140ee57600081556001016140f3565b600067ffffffffffffffff83111561412157614121614926565b614134601f8401601f1916602001614794565b905082815283838301111561414857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461294657600080fd5b600082601f830112614186578081fd5b8135602067ffffffffffffffff8211156141a2576141a2614926565b8160051b6141b1828201614794565b8381528281019086840183880185018910156141cb578687fd5b8693505b858410156141ed5780358352600193909301929184019184016141cf565b50979650505050505050565b8035801515811461294657600080fd5b600082601f830112614219578081fd5b61422883833560208501614107565b9392505050565b803560ff8116811461294657600080fd5b600060208284031215614251578081fd5b6142288261415f565b6000806040838503121561426c578081fd5b6142758361415f565b91506142836020840161415f565b90509250929050565b6000806000606084860312156142a0578081fd5b6142a98461415f565b92506142b76020850161415f565b9150604084013590509250925092565b600080600080608085870312156142dc578081fd5b6142e58561415f565b93506142f36020860161415f565b925060408501359150606085013567ffffffffffffffff811115614315578182fd5b8501601f81018713614325578182fd5b61433487823560208401614107565b91505092959194509250565b60008060408385031215614352578182fd5b61435b8361415f565b9150614283602084016141f9565b6000806040838503121561437b578182fd5b6143848361415f565b946020939093013593505050565b6000602082840312156143a3578081fd5b813567ffffffffffffffff8111156143b9578182fd5b613c3284828501614176565b600080600080600060a086880312156143dc578081fd5b6143e5866141f9565b94506143f3602087016141f9565b9350614401604087016141f9565b925061440f606087016141f9565b949793965091946080013592915050565b60008060408385031215614432578182fd5b61443b836141f9565b9150602083013567ffffffffffffffff811115614456578182fd5b61446285828601614209565b9150509250929050565b60006020828403121561447d578081fd5b5035919050565b600060208284031215614495578081fd5b81356142288161493c565b6000602082840312156144b1578081fd5b81516142288161493c565b6000602082840312156144cd578081fd5b813567ffffffffffffffff8111156144e3578182fd5b613c3284828501614209565b60008060408385031215614501578182fd5b50508035926020909101359150565b600080600080600060a08688031215614527578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b60006020828403121561455b578081fd5b6142288261422f565b60008060408385031215614576578182fd5b61457f8361422f565b9150602083013567ffffffffffffffff81111561459a578182fd5b61446285828601614176565b600081518084526145be81602086016020860161484d565b601f01601f19169290920160200192915050565b600081516145e481856020860161484d565b9290920192915050565b600080845482600182811c91508083168061460a57607f831692505b602080841082141561462a57634e487b7160e01b87526022600452602487fd5b81801561463e576001811461464f5761467b565b60ff1986168952848901965061467b565b60008b815260209020885b868110156146735781548b82015290850190830161465a565b505084890196505b50505050505061469f61468e82866145d2565b64173539b7b760d91b815260050190565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261276260808301846145a6565b60208152600061422860208301846145a6565b60208082526039908201527f507572636861736520776f756c6420657863656564206d6178206e756d62657260408201527f206f66206d6574616361726473207065722077616c6c65742e00000000000000606082015260800190565b6020808252602a908201527f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f7420776040820152691a1a5d195b1a5cdd195960b21b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156147bd576147bd614926565b604052919050565b600061ffff8083168185168083038211156147e2576147e26148fa565b01949350505050565b600082198211156147fe576147fe6148fa565b500190565b60008261481257614812614910565b500490565b6000816000190483118215151615614831576148316148fa565b500290565b600082821015614848576148486148fa565b500390565b60005b83811015614868578181015183820152602001614850565b838111156124e75750506000910152565b600081614888576148886148fa565b506000190190565b600181811c908216806148a457607f821691505b602082108114156148c557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148df576148df6148fa565b5060010190565b6000826148f5576148f5614910565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146136cd57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201729a287c5f28161198d26305851653fdbc3ff363e709a4792a3ef08ea7a458a64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.