Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,752 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Minting Cont... | 15742483 | 812 days ago | IN | 0 ETH | 0.00036092 | ||||
Set Sale Start | 15742479 | 812 days ago | IN | 0 ETH | 0.00049262 | ||||
Parent | 15742447 | 812 days ago | IN | 0 ETH | 0.00302405 | ||||
Parent | 15734803 | 814 days ago | IN | 0 ETH | 0.00260675 | ||||
Parent | 15734777 | 814 days ago | IN | 0 ETH | 0.00307383 | ||||
Parent | 15734549 | 814 days ago | IN | 0 ETH | 0.00258844 | ||||
Parent | 15733807 | 814 days ago | IN | 0 ETH | 0.00098354 | ||||
Parent | 15733015 | 814 days ago | IN | 0 ETH | 0.0026828 | ||||
Parent | 15732975 | 814 days ago | IN | 0 ETH | 0.00267879 | ||||
Parent | 15731273 | 814 days ago | IN | 0 ETH | 0.00270662 | ||||
Parent | 15731270 | 814 days ago | IN | 0 ETH | 0.00286495 | ||||
Parent | 15731255 | 814 days ago | IN | 0 ETH | 0.00238111 | ||||
Parent | 15731247 | 814 days ago | IN | 0 ETH | 0.00262834 | ||||
Preorder Mint | 15728441 | 814 days ago | IN | 0 ETH | 0.00073741 | ||||
Parent | 15728438 | 814 days ago | IN | 0 ETH | 0.00441051 | ||||
Preorder Mint | 15728392 | 814 days ago | IN | 0 ETH | 0.00250048 | ||||
Parent | 15727239 | 815 days ago | IN | 0 ETH | 0.00463274 | ||||
Parent | 15725418 | 815 days ago | IN | 0 ETH | 0.00433334 | ||||
Parent | 15724954 | 815 days ago | IN | 0 ETH | 0.00358398 | ||||
Parent | 15721646 | 815 days ago | IN | 0 ETH | 0.00547692 | ||||
Preorder Mint | 15721105 | 815 days ago | IN | 0 ETH | 0.00146122 | ||||
Parent | 15721033 | 815 days ago | IN | 0 ETH | 0.00532388 | ||||
Parent | 15721009 | 815 days ago | IN | 0 ETH | 0.00683572 | ||||
Parent | 15718925 | 816 days ago | IN | 0 ETH | 0.00579369 | ||||
Parent | 15713991 | 816 days ago | IN | 0 ETH | 0.00458791 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15698777 | 819 days ago | 9 ETH |
Loading...
Loading
Contract Name:
QUOKKA_KIDS_STOREFRONT
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "solidity-bytes-utils/contracts/BytesLib.sol"; interface IERC1155Burnable { function burn( address from, uint256 id, uint256 amount) external; } interface IERC721 { function mint(address to, uint amount) external; function totalSupply() external view returns (uint256); function ownerOf(uint256 tokenId) external returns (address); } interface IER721ParentTracker is IERC721 { function genesisParents(uint256 index) external returns (bool); function legendParents(uint256 index) external returns (bool); function parentMint(address to, uint amount) external; function setGenesisParentUsed(uint256 index, bool used) external; function setLegendParentUsed(uint256 index, bool used) external; } contract QUOKKA_KIDS_STOREFRONT is Ownable { uint256 public constant DOUBLE_TICKET = 2; uint256 public constant TRIPLE_TICKET = 3; using Address for address; using BytesLib for bytes; using ECDSA for bytes32; using Strings for uint256; address public preorderContract; address public mintingContract; address public genesisContract; address public legendsContract; uint public preSaleStart = 1663646400; uint public publicSaleStart = 1663970400; uint256 public tokenPrice = 300000000000000000; uint256 public doubleDiscount = 200000000000000000; uint256 public tripleDiscount = 300000000000000000; address payable public payout = payable(0x6A4813082c2F6598b01698B222c5b1414Fe77eF6); address public whitelistSigner = 0x3dF6f92097B349f30d31315a7453821f14998f3E; uint256 public nextId = 1; //Declare an Event event ParentMint(uint256 id, bool parentsfur); event ManyMint(uint256 id, uint256 count); event Mint(uint256 id, bool parentsfur); function setNextId(uint256 nextId_) public onlyOwner { nextId = nextId_; } function setMintingContract(address mintingContract_) public onlyOwner{ mintingContract = mintingContract_; } // exchange preorder tokens function setPreorderContract(address preorderContract_) public onlyOwner { preorderContract = preorderContract_; } function setGenesisLegendsContract(address genesis_, address legends_) public onlyOwner { genesisContract = genesis_; legendsContract = legends_; } function setSignerAddress(address signer) public onlyOwner { whitelistSigner = signer; } function setPrice(uint tokenPrice_) public onlyOwner { tokenPrice = tokenPrice_; } function setPayout(address addr) public onlyOwner { payout = payable(addr); } function release(uint amount) public { uint ourBalance = address(this).balance; require(ourBalance >= amount, "Must have enough balance to send"); payout.transfer(amount); } function setSaleStart(uint preSaleStartTime, uint publicSaleStartTime) public onlyOwner { preSaleStart = preSaleStartTime; publicSaleStart = publicSaleStartTime; } function publicSale(uint totalMint) payable public { require(block.timestamp >= publicSaleStart, "Sale has not begun"); require( msg.value >= totalMint * tokenPrice, "Not enough ETH sent"); IERC721(mintingContract).mint(msg.sender, uint256(totalMint)); for (uint i = 0; i < totalMint; i++) { //Emit an event emit Mint(nextId, false); nextId += 1; } } function preorderMint(uint doublePreorders, uint triplePreorders) payable public { require(block.timestamp >= preSaleStart, "Presale has not begun"); uint totalMint = doublePreorders + triplePreorders; IERC1155 POContract = IERC1155(preorderContract); IERC1155Burnable POBurn = IERC1155Burnable(preorderContract); uint priceRequired = tokenPrice * totalMint - (doubleDiscount * doublePreorders) -(tripleDiscount * triplePreorders); require(msg.value >= priceRequired, "Not enough ETH sent"); // burn double preorders equal to # // check holdingsdoublePreorders); if (doublePreorders > 0) { require(POContract.balanceOf(_msgSender(), DOUBLE_TICKET) >= doublePreorders, "Need as many preorder tickets as being requested to mint"); POBurn.burn(_msgSender(), DOUBLE_TICKET, doublePreorders); } if (triplePreorders > 0) { require(POContract.balanceOf(_msgSender(), TRIPLE_TICKET) >= triplePreorders, "Need as many preorder tickets as being requested to mint"); POBurn.burn(_msgSender(), TRIPLE_TICKET, triplePreorders); } for (uint i = 0; i < totalMint; i++) { //Emit an event emit Mint(nextId, false); nextId += 1; } IERC721(mintingContract).mint(_msgSender(), totalMint); } // function parentOne() function parent(bool[] memory tokentypes, uint256[] memory parents, address[] memory owners, bool[] memory parentsfur, bytes memory signature) public { // require(mintAllowed, "Minting period has ended"); bytes memory encoded = abi.encodePacked(msg.sender, tokentypes, owners, parents); bytes32 digestreal = keccak256(encoded); address claimSigner = digestreal.toEthSignedMessageHash().recover(signature); require(claimSigner == whitelistSigner, "Invalid Message Signer."); require(block.timestamp >= preSaleStart, "Presale has not begun"); require(parents.length == tokentypes.length, "Length of parents and tokentypes must be the same"); require(parents.length == owners.length, "Length of parents and owners must be the same"); uint pairs = parents.length / 2; require(parentsfur.length == pairs, "Must have a fur choice for each pair"); // first, verify tokens and mark them as used for (uint i = 0; i < parents.length; i++) { if (tokentypes[i]) { require(IERC721(genesisContract).ownerOf(parents[i]) == owners[i], "Must own genesis token"); require(IER721ParentTracker(mintingContract).genesisParents(parents[i]) == false, "Token must not already be a parent"); IER721ParentTracker(mintingContract).setGenesisParentUsed(parents[i], true); } else { // require(IERC721(legendsContract)); require(IERC721(legendsContract).ownerOf(parents[i]) == owners[i], "Must own legend token"); require(IER721ParentTracker(mintingContract).legendParents(parents[i]) == false, "Token must not already be a parent"); IER721ParentTracker(mintingContract).setLegendParentUsed(parents[i], true); } } // let's mint! for (uint i = 0; i < pairs; i++) { //Emit an event emit Mint(nextId, parentsfur[i]); nextId += 1; } IER721ParentTracker(mintingContract).parentMint(msg.sender, pairs); } }
// 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.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: Unlicense /* * @title Solidity Bytes Arrays Utils * @author Gonçalo Sá <[email protected]> * * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity. * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage. */ pragma solidity >=0.8.0 <0.9.0; library BytesLib { function concat( bytes memory _preBytes, bytes memory _postBytes ) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore(0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. )) } return tempBytes; } function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes.slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes.slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore( sc, add( and( fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00 ), and(mload(mc), mask) ) ) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice( bytes memory _bytes, uint256 _start, uint256 _length ) internal pure returns (bytes memory) { require(_length + 31 >= _length, "slice_overflow"); require(_bytes.length >= _start + _length, "slice_outOfBounds"); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod))) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) //zero out the 32 bytes slice we are about to return //we need to do it because Solidity does not garbage collect mstore(tempBytes, 0) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) { require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) { require(_bytes.length >= _start + 1 , "toUint8_outOfBounds"); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) { require(_bytes.length >= _start + 2, "toUint16_outOfBounds"); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) { require(_bytes.length >= _start + 4, "toUint32_outOfBounds"); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) { require(_bytes.length >= _start + 8, "toUint64_outOfBounds"); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) { require(_bytes.length >= _start + 12, "toUint96_outOfBounds"); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) { require(_bytes.length >= _start + 16, "toUint128_outOfBounds"); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) { require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint256 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) { require(_bytes.length >= _start + 32, "toBytes32_outOfBounds"); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage( bytes storage _preBytes, bytes memory _postBytes ) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes.slot) // Decode the length of the stored array like in concatStorage(). let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) for {} eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"ManyMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"parentsfur","type":"bool"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"parentsfur","type":"bool"}],"name":"ParentMint","type":"event"},{"inputs":[],"name":"DOUBLE_TICKET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRIPLE_TICKET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doubleDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendsContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool[]","name":"tokentypes","type":"bool[]"},{"internalType":"uint256[]","name":"parents","type":"uint256[]"},{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"bool[]","name":"parentsfur","type":"bool[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"parent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"payout","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preorderContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"doublePreorders","type":"uint256"},{"internalType":"uint256","name":"triplePreorders","type":"uint256"}],"name":"preorderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalMint","type":"uint256"}],"name":"publicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"genesis_","type":"address"},{"internalType":"address","name":"legends_","type":"address"}],"name":"setGenesisLegendsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintingContract_","type":"address"}],"name":"setMintingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nextId_","type":"uint256"}],"name":"setNextId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setPayout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"preorderContract_","type":"address"}],"name":"setPreorderContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTime","type":"uint256"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tripleDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526363293ac060055563632e2c60600655670429d069189e000060078190556702c68af0bb140000600855600955600a80546001600160a01b0319908116736a4813082c2f6598b01698b222c5b1414fe77ef617909155600b8054909116733df6f92097b349f30d31315a7453821f14998f3e1790556001600c5534801561008a57600080fd5b5061009433610099565b6100e9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611fa9806100f86000396000f3fe6080604052600436106101c25760003560e01c80637ff9b596116100f7578063c8a0dde611610095578063ef81b4d411610064578063ef81b4d4146104a5578063f2fde38b146104c5578063f5b8cde3146104e5578063f9843dd0146104fb57600080fd5b8063c8a0dde614610425578063d2f6f67d14610445578063d559f1e814610465578063d8e99f921461048557600080fd5b806391b7f5ed116100d157806391b7f5ed146103b2578063a3ff39b2146103d2578063b287c8ed146103f2578063c56e13751461040557600080fd5b80637ff9b596146103695780638da5cb5b1461037f57806390f871771461039d57600080fd5b806337bdc99b1161016457806361b8ce8c1161013e57806361b8ce8c1461030957806363bd1d4a1461031f5780636aaba4801461033f578063715018a61461035457600080fd5b806337bdc99b146102915780634822f928146102b15780634e4da0a7146102e957600080fd5b80631b36a7fc116101a05780631b36a7fc1461023257806329d0d51f146102455780632c46b5811461025b5780633360caa01461027b57600080fd5b8063019e9251146101c7578063046dc166146101e95780630d5624b314610209575b600080fd5b3480156101d357600080fd5b506101e76101e2366004611c64565b61051b565b005b3480156101f557600080fd5b506101e7610204366004611afb565b610528565b34801561021557600080fd5b5061021f60055481565b6040519081526020015b60405180910390f35b6101e7610240366004611c96565b610552565b34801561025157600080fd5b5061021f60085481565b34801561026757600080fd5b506101e7610276366004611afb565b610989565b34801561028757600080fd5b5061021f60065481565b34801561029d57600080fd5b506101e76102ac366004611c64565b6109b3565b3480156102bd57600080fd5b506001546102d1906001600160a01b031681565b6040516001600160a01b039091168152602001610229565b3480156102f557600080fd5b506101e7610304366004611b75565b610a43565b34801561031557600080fd5b5061021f600c5481565b34801561032b57600080fd5b50600a546102d1906001600160a01b031681565b34801561034b57600080fd5b5061021f600281565b34801561036057600080fd5b506101e76112e1565b34801561037557600080fd5b5061021f60075481565b34801561038b57600080fd5b506000546001600160a01b03166102d1565b3480156103a957600080fd5b5061021f600381565b3480156103be57600080fd5b506101e76103cd366004611c64565b6112f5565b3480156103de57600080fd5b506101e76103ed366004611afb565b611302565b6101e7610400366004611c64565b61132c565b34801561041157600080fd5b506101e7610420366004611afb565b61149f565b34801561043157600080fd5b506101e7610440366004611c96565b6114c9565b34801561045157600080fd5b506002546102d1906001600160a01b031681565b34801561047157600080fd5b506004546102d1906001600160a01b031681565b34801561049157600080fd5b506003546102d1906001600160a01b031681565b3480156104b157600080fd5b50600b546102d1906001600160a01b031681565b3480156104d157600080fd5b506101e76104e0366004611afb565b6114dc565b3480156104f157600080fd5b5061021f60095481565b34801561050757600080fd5b506101e7610516366004611b3c565b611555565b61052361158b565b600c55565b61053061158b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005544210156105a15760405162461bcd60e51b8152602060048201526015602482015274283932b9b0b632903430b9903737ba103132b3bab760591b60448201526064015b60405180910390fd5b60006105ad8284611e6d565b6001546009549192506001600160a01b03169081906000906105d0908690611ea7565b866008546105de9190611ea7565b856007546105ec9190611ea7565b6105f69190611ec6565b6106009190611ec6565b9050803410156106485760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610598565b851561077257856001600160a01b03841662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526002602482015260440160206040518083038186803b1580156106a457600080fd5b505afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc9190611c7d565b10156106fa5760405162461bcd60e51b815260040161059890611dbb565b6001600160a01b03821663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526002602482015260448101899052606401600060405180830381600087803b15801561075957600080fd5b505af115801561076d573d6000803e3d6000fd5b505050505b841561089c57846001600160a01b03841662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526003602482015260440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611c7d565b10156108245760405162461bcd60e51b815260040161059890611dbb565b6001600160a01b03821663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526003602482015260448101889052606401600060405180830381600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050505b60005b8481101561090e57600c5460408051918252600060208301527fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41910160405180910390a16001600c60008282546108f69190611e6d565b9091555081905061090681611edd565b91505061089f565b506002546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b15801561096957600080fd5b505af115801561097d573d6000803e3d6000fd5b50505050505050505050565b61099161158b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b4781811015610a045760405162461bcd60e51b815260206004820181905260248201527f4d757374206861766520656e6f7567682062616c616e636520746f2073656e646044820152606401610598565b600a546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015610a3e573d6000803e3d6000fd5b505050565b600033868587604051602001610a5c9493929190611ceb565b60408051601f19818403018152919052805160208201209091506000610ad984610ad3846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115e5565b600b549091506001600160a01b03808316911614610b395760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964204d657373616765205369676e65722e0000000000000000006044820152606401610598565b600554421015610b835760405162461bcd60e51b8152602060048201526015602482015274283932b9b0b632903430b9903737ba103132b3bab760591b6044820152606401610598565b8751875114610bee5760405162461bcd60e51b815260206004820152603160248201527f4c656e677468206f6620706172656e747320616e6420746f6b656e7479706573604482015270206d757374206265207468652073616d6560781b6064820152608401610598565b8551875114610c555760405162461bcd60e51b815260206004820152602d60248201527f4c656e677468206f6620706172656e747320616e64206f776e657273206d757360448201526c74206265207468652073616d6560981b6064820152608401610598565b600060028851610c659190611e85565b905080865114610cc35760405162461bcd60e51b8152602060048201526024808201527f4d75737420686176652061206675722063686f69636520666f722065616368206044820152633830b4b960e11b6064820152608401610598565b60005b88518110156111db57898181518110610ce157610ce1611f24565b602002602001015115610f5e57878181518110610d0057610d00611f24565b60200260200101516001600160a01b0316600360009054906101000a90046001600160a01b03166001600160a01b0316636352211e8b8481518110610d4757610d47611f24565b60200260200101516040518263ffffffff1660e01b8152600401610d6d91815260200190565b602060405180830381600087803b158015610d8757600080fd5b505af1158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190611b1f565b6001600160a01b031614610e0e5760405162461bcd60e51b815260206004820152601660248201527526bab9ba1037bbb71033b2b732b9b4b9903a37b5b2b760511b6044820152606401610598565b60025489516001600160a01b03909116906382478756908b9084908110610e3757610e37611f24565b60200260200101516040518263ffffffff1660e01b8152600401610e5d91815260200190565b602060405180830381600087803b158015610e7757600080fd5b505af1158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf9190611c47565b15610ecc5760405162461bcd60e51b815260040161059890611d79565b60025489516001600160a01b03909116906318cdf15e908b9084908110610ef557610ef5611f24565b602002602001015160016040518363ffffffff1660e01b8152600401610f279291909182521515602082015260400190565b600060405180830381600087803b158015610f4157600080fd5b505af1158015610f55573d6000803e3d6000fd5b505050506111c9565b878181518110610f7057610f70611f24565b60200260200101516001600160a01b0316600460009054906101000a90046001600160a01b03166001600160a01b0316636352211e8b8481518110610fb757610fb7611f24565b60200260200101516040518263ffffffff1660e01b8152600401610fdd91815260200190565b602060405180830381600087803b158015610ff757600080fd5b505af115801561100b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102f9190611b1f565b6001600160a01b03161461107d5760405162461bcd60e51b815260206004820152601560248201527426bab9ba1037bbb7103632b3b2b732103a37b5b2b760591b6044820152606401610598565b60025489516001600160a01b03909116906372524806908b90849081106110a6576110a6611f24565b60200260200101516040518263ffffffff1660e01b81526004016110cc91815260200190565b602060405180830381600087803b1580156110e657600080fd5b505af11580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111e9190611c47565b1561113b5760405162461bcd60e51b815260040161059890611d79565b60025489516001600160a01b0390911690636f18f966908b908490811061116457611164611f24565b602002602001015160016040518363ffffffff1660e01b81526004016111969291909182521515602082015260400190565b600060405180830381600087803b1580156111b057600080fd5b505af11580156111c4573d6000803e3d6000fd5b505050505b806111d381611edd565b915050610cc6565b5060005b81811015611271577fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41600c5488838151811061121d5761121d611f24565b602002602001015160405161123e9291909182521515602082015260400190565b60405180910390a16001600c60008282546112599190611e6d565b9091555081905061126981611edd565b9150506111df565b5060025460405163389e67ab60e01b8152336004820152602481018390526001600160a01b039091169063389e67ab90604401600060405180830381600087803b1580156112be57600080fd5b505af11580156112d2573d6000803e3d6000fd5b50505050505050505050505050565b6112e961158b565b6112f36000611609565b565b6112fd61158b565b600755565b61130a61158b565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006544210156113735760405162461bcd60e51b815260206004820152601260248201527129b0b632903430b9903737ba103132b3bab760711b6044820152606401610598565b6007546113809082611ea7565b3410156113c55760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610598565b6002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561141157600080fd5b505af1158015611425573d6000803e3d6000fd5b5050505060005b8181101561149b57600c5460408051918252600060208301527fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41910160405180910390a16001600c60008282546114839190611e6d565b9091555081905061149381611edd565b91505061142c565b5050565b6114a761158b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6114d161158b565b600591909155600655565b6114e461158b565b6001600160a01b0381166115495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610598565b61155281611609565b50565b61155d61158b565b600380546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000546001600160a01b031633146112f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610598565b60008060006115f48585611659565b915091506116018161169f565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604114156116905760208301516040840151606085015160001a6116848782858561185a565b94509450505050611698565b506000905060025b9250929050565b60008160048111156116b3576116b3611f0e565b14156116bc5750565b60018160048111156116d0576116d0611f0e565b141561171e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610598565b600281600481111561173257611732611f0e565b14156117805760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610598565b600381600481111561179457611794611f0e565b14156117ed5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610598565b600481600481111561180157611801611f0e565b14156115525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610598565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611891575060009050600361193e565b8460ff16601b141580156118a957508460ff16601c14155b156118ba575060009050600461193e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561190e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119375760006001925092505061193e565b9150600090505b94509492505050565b600082601f83011261195857600080fd5b8135602061196d61196883611e49565b611e18565b80838252828201915082860187848660051b890101111561198d57600080fd5b60005b858110156119b55781356119a381611f50565b84529284019290840190600101611990565b5090979650505050505050565b600082601f8301126119d357600080fd5b813560206119e361196883611e49565b80838252828201915082860187848660051b8901011115611a0357600080fd5b60005b858110156119b5578135611a1981611f65565b84529284019290840190600101611a06565b600082601f830112611a3c57600080fd5b81356020611a4c61196883611e49565b80838252828201915082860187848660051b8901011115611a6c57600080fd5b60005b858110156119b557813584529284019290840190600101611a6f565b600082601f830112611a9c57600080fd5b813567ffffffffffffffff811115611ab657611ab6611f3a565b611ac9601f8201601f1916602001611e18565b818152846020838601011115611ade57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215611b0d57600080fd5b8135611b1881611f50565b9392505050565b600060208284031215611b3157600080fd5b8151611b1881611f50565b60008060408385031215611b4f57600080fd5b8235611b5a81611f50565b91506020830135611b6a81611f50565b809150509250929050565b600080600080600060a08688031215611b8d57600080fd5b853567ffffffffffffffff80821115611ba557600080fd5b611bb189838a016119c2565b96506020880135915080821115611bc757600080fd5b611bd389838a01611a2b565b95506040880135915080821115611be957600080fd5b611bf589838a01611947565b94506060880135915080821115611c0b57600080fd5b611c1789838a016119c2565b93506080880135915080821115611c2d57600080fd5b50611c3a88828901611a8b565b9150509295509295909350565b600060208284031215611c5957600080fd5b8151611b1881611f65565b600060208284031215611c7657600080fd5b5035919050565b600060208284031215611c8f57600080fd5b5051919050565b60008060408385031215611ca957600080fd5b50508035926020909101359150565b60008151602080840160005b83811015611ce057815187529582019590820190600101611cc4565b509495945050505050565b6bffffffffffffffffffffffff198560601b1681526000601482018551602080880160005b83811015611d2e578151151585529382019390820190600101611d10565b5050865181880193925060005b81811015611d605784516001600160a01b031684529382019392820192600101611d3b565b505050611d6d8186611cb8565b98975050505050505050565b60208082526022908201527f546f6b656e206d757374206e6f7420616c7265616479206265206120706172656040820152611b9d60f21b606082015260800190565b60208082526038908201527f4e656564206173206d616e79207072656f72646572207469636b65747320617360408201527f206265696e672072657175657374656420746f206d696e740000000000000000606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e4157611e41611f3a565b604052919050565b600067ffffffffffffffff821115611e6357611e63611f3a565b5060051b60200190565b60008219821115611e8057611e80611ef8565b500190565b600082611ea257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611ec157611ec1611ef8565b500290565b600082821015611ed857611ed8611ef8565b500390565b6000600019821415611ef157611ef1611ef8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461155257600080fd5b801515811461155257600080fdfea2646970667358221220c06a6234b88ae46a2de636ac700ea142fa53e6eaf7b4aef7107db89f15812aa464736f6c63430008060033
Deployed Bytecode
0x6080604052600436106101c25760003560e01c80637ff9b596116100f7578063c8a0dde611610095578063ef81b4d411610064578063ef81b4d4146104a5578063f2fde38b146104c5578063f5b8cde3146104e5578063f9843dd0146104fb57600080fd5b8063c8a0dde614610425578063d2f6f67d14610445578063d559f1e814610465578063d8e99f921461048557600080fd5b806391b7f5ed116100d157806391b7f5ed146103b2578063a3ff39b2146103d2578063b287c8ed146103f2578063c56e13751461040557600080fd5b80637ff9b596146103695780638da5cb5b1461037f57806390f871771461039d57600080fd5b806337bdc99b1161016457806361b8ce8c1161013e57806361b8ce8c1461030957806363bd1d4a1461031f5780636aaba4801461033f578063715018a61461035457600080fd5b806337bdc99b146102915780634822f928146102b15780634e4da0a7146102e957600080fd5b80631b36a7fc116101a05780631b36a7fc1461023257806329d0d51f146102455780632c46b5811461025b5780633360caa01461027b57600080fd5b8063019e9251146101c7578063046dc166146101e95780630d5624b314610209575b600080fd5b3480156101d357600080fd5b506101e76101e2366004611c64565b61051b565b005b3480156101f557600080fd5b506101e7610204366004611afb565b610528565b34801561021557600080fd5b5061021f60055481565b6040519081526020015b60405180910390f35b6101e7610240366004611c96565b610552565b34801561025157600080fd5b5061021f60085481565b34801561026757600080fd5b506101e7610276366004611afb565b610989565b34801561028757600080fd5b5061021f60065481565b34801561029d57600080fd5b506101e76102ac366004611c64565b6109b3565b3480156102bd57600080fd5b506001546102d1906001600160a01b031681565b6040516001600160a01b039091168152602001610229565b3480156102f557600080fd5b506101e7610304366004611b75565b610a43565b34801561031557600080fd5b5061021f600c5481565b34801561032b57600080fd5b50600a546102d1906001600160a01b031681565b34801561034b57600080fd5b5061021f600281565b34801561036057600080fd5b506101e76112e1565b34801561037557600080fd5b5061021f60075481565b34801561038b57600080fd5b506000546001600160a01b03166102d1565b3480156103a957600080fd5b5061021f600381565b3480156103be57600080fd5b506101e76103cd366004611c64565b6112f5565b3480156103de57600080fd5b506101e76103ed366004611afb565b611302565b6101e7610400366004611c64565b61132c565b34801561041157600080fd5b506101e7610420366004611afb565b61149f565b34801561043157600080fd5b506101e7610440366004611c96565b6114c9565b34801561045157600080fd5b506002546102d1906001600160a01b031681565b34801561047157600080fd5b506004546102d1906001600160a01b031681565b34801561049157600080fd5b506003546102d1906001600160a01b031681565b3480156104b157600080fd5b50600b546102d1906001600160a01b031681565b3480156104d157600080fd5b506101e76104e0366004611afb565b6114dc565b3480156104f157600080fd5b5061021f60095481565b34801561050757600080fd5b506101e7610516366004611b3c565b611555565b61052361158b565b600c55565b61053061158b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005544210156105a15760405162461bcd60e51b8152602060048201526015602482015274283932b9b0b632903430b9903737ba103132b3bab760591b60448201526064015b60405180910390fd5b60006105ad8284611e6d565b6001546009549192506001600160a01b03169081906000906105d0908690611ea7565b866008546105de9190611ea7565b856007546105ec9190611ea7565b6105f69190611ec6565b6106009190611ec6565b9050803410156106485760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610598565b851561077257856001600160a01b03841662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526002602482015260440160206040518083038186803b1580156106a457600080fd5b505afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc9190611c7d565b10156106fa5760405162461bcd60e51b815260040161059890611dbb565b6001600160a01b03821663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526002602482015260448101899052606401600060405180830381600087803b15801561075957600080fd5b505af115801561076d573d6000803e3d6000fd5b505050505b841561089c57846001600160a01b03841662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526003602482015260440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611c7d565b10156108245760405162461bcd60e51b815260040161059890611dbb565b6001600160a01b03821663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526003602482015260448101889052606401600060405180830381600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050505b60005b8481101561090e57600c5460408051918252600060208301527fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41910160405180910390a16001600c60008282546108f69190611e6d565b9091555081905061090681611edd565b91505061089f565b506002546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b15801561096957600080fd5b505af115801561097d573d6000803e3d6000fd5b50505050505050505050565b61099161158b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b4781811015610a045760405162461bcd60e51b815260206004820181905260248201527f4d757374206861766520656e6f7567682062616c616e636520746f2073656e646044820152606401610598565b600a546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015610a3e573d6000803e3d6000fd5b505050565b600033868587604051602001610a5c9493929190611ceb565b60408051601f19818403018152919052805160208201209091506000610ad984610ad3846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115e5565b600b549091506001600160a01b03808316911614610b395760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964204d657373616765205369676e65722e0000000000000000006044820152606401610598565b600554421015610b835760405162461bcd60e51b8152602060048201526015602482015274283932b9b0b632903430b9903737ba103132b3bab760591b6044820152606401610598565b8751875114610bee5760405162461bcd60e51b815260206004820152603160248201527f4c656e677468206f6620706172656e747320616e6420746f6b656e7479706573604482015270206d757374206265207468652073616d6560781b6064820152608401610598565b8551875114610c555760405162461bcd60e51b815260206004820152602d60248201527f4c656e677468206f6620706172656e747320616e64206f776e657273206d757360448201526c74206265207468652073616d6560981b6064820152608401610598565b600060028851610c659190611e85565b905080865114610cc35760405162461bcd60e51b8152602060048201526024808201527f4d75737420686176652061206675722063686f69636520666f722065616368206044820152633830b4b960e11b6064820152608401610598565b60005b88518110156111db57898181518110610ce157610ce1611f24565b602002602001015115610f5e57878181518110610d0057610d00611f24565b60200260200101516001600160a01b0316600360009054906101000a90046001600160a01b03166001600160a01b0316636352211e8b8481518110610d4757610d47611f24565b60200260200101516040518263ffffffff1660e01b8152600401610d6d91815260200190565b602060405180830381600087803b158015610d8757600080fd5b505af1158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190611b1f565b6001600160a01b031614610e0e5760405162461bcd60e51b815260206004820152601660248201527526bab9ba1037bbb71033b2b732b9b4b9903a37b5b2b760511b6044820152606401610598565b60025489516001600160a01b03909116906382478756908b9084908110610e3757610e37611f24565b60200260200101516040518263ffffffff1660e01b8152600401610e5d91815260200190565b602060405180830381600087803b158015610e7757600080fd5b505af1158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf9190611c47565b15610ecc5760405162461bcd60e51b815260040161059890611d79565b60025489516001600160a01b03909116906318cdf15e908b9084908110610ef557610ef5611f24565b602002602001015160016040518363ffffffff1660e01b8152600401610f279291909182521515602082015260400190565b600060405180830381600087803b158015610f4157600080fd5b505af1158015610f55573d6000803e3d6000fd5b505050506111c9565b878181518110610f7057610f70611f24565b60200260200101516001600160a01b0316600460009054906101000a90046001600160a01b03166001600160a01b0316636352211e8b8481518110610fb757610fb7611f24565b60200260200101516040518263ffffffff1660e01b8152600401610fdd91815260200190565b602060405180830381600087803b158015610ff757600080fd5b505af115801561100b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102f9190611b1f565b6001600160a01b03161461107d5760405162461bcd60e51b815260206004820152601560248201527426bab9ba1037bbb7103632b3b2b732103a37b5b2b760591b6044820152606401610598565b60025489516001600160a01b03909116906372524806908b90849081106110a6576110a6611f24565b60200260200101516040518263ffffffff1660e01b81526004016110cc91815260200190565b602060405180830381600087803b1580156110e657600080fd5b505af11580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111e9190611c47565b1561113b5760405162461bcd60e51b815260040161059890611d79565b60025489516001600160a01b0390911690636f18f966908b908490811061116457611164611f24565b602002602001015160016040518363ffffffff1660e01b81526004016111969291909182521515602082015260400190565b600060405180830381600087803b1580156111b057600080fd5b505af11580156111c4573d6000803e3d6000fd5b505050505b806111d381611edd565b915050610cc6565b5060005b81811015611271577fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41600c5488838151811061121d5761121d611f24565b602002602001015160405161123e9291909182521515602082015260400190565b60405180910390a16001600c60008282546112599190611e6d565b9091555081905061126981611edd565b9150506111df565b5060025460405163389e67ab60e01b8152336004820152602481018390526001600160a01b039091169063389e67ab90604401600060405180830381600087803b1580156112be57600080fd5b505af11580156112d2573d6000803e3d6000fd5b50505050505050505050505050565b6112e961158b565b6112f36000611609565b565b6112fd61158b565b600755565b61130a61158b565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006544210156113735760405162461bcd60e51b815260206004820152601260248201527129b0b632903430b9903737ba103132b3bab760711b6044820152606401610598565b6007546113809082611ea7565b3410156113c55760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610598565b6002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561141157600080fd5b505af1158015611425573d6000803e3d6000fd5b5050505060005b8181101561149b57600c5460408051918252600060208301527fdca3b34e6c9d5f86272dbca88ab5572823f1c041d4deba565154c22e1b812a41910160405180910390a16001600c60008282546114839190611e6d565b9091555081905061149381611edd565b91505061142c565b5050565b6114a761158b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6114d161158b565b600591909155600655565b6114e461158b565b6001600160a01b0381166115495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610598565b61155281611609565b50565b61155d61158b565b600380546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000546001600160a01b031633146112f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610598565b60008060006115f48585611659565b915091506116018161169f565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604114156116905760208301516040840151606085015160001a6116848782858561185a565b94509450505050611698565b506000905060025b9250929050565b60008160048111156116b3576116b3611f0e565b14156116bc5750565b60018160048111156116d0576116d0611f0e565b141561171e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610598565b600281600481111561173257611732611f0e565b14156117805760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610598565b600381600481111561179457611794611f0e565b14156117ed5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610598565b600481600481111561180157611801611f0e565b14156115525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610598565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611891575060009050600361193e565b8460ff16601b141580156118a957508460ff16601c14155b156118ba575060009050600461193e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561190e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119375760006001925092505061193e565b9150600090505b94509492505050565b600082601f83011261195857600080fd5b8135602061196d61196883611e49565b611e18565b80838252828201915082860187848660051b890101111561198d57600080fd5b60005b858110156119b55781356119a381611f50565b84529284019290840190600101611990565b5090979650505050505050565b600082601f8301126119d357600080fd5b813560206119e361196883611e49565b80838252828201915082860187848660051b8901011115611a0357600080fd5b60005b858110156119b5578135611a1981611f65565b84529284019290840190600101611a06565b600082601f830112611a3c57600080fd5b81356020611a4c61196883611e49565b80838252828201915082860187848660051b8901011115611a6c57600080fd5b60005b858110156119b557813584529284019290840190600101611a6f565b600082601f830112611a9c57600080fd5b813567ffffffffffffffff811115611ab657611ab6611f3a565b611ac9601f8201601f1916602001611e18565b818152846020838601011115611ade57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215611b0d57600080fd5b8135611b1881611f50565b9392505050565b600060208284031215611b3157600080fd5b8151611b1881611f50565b60008060408385031215611b4f57600080fd5b8235611b5a81611f50565b91506020830135611b6a81611f50565b809150509250929050565b600080600080600060a08688031215611b8d57600080fd5b853567ffffffffffffffff80821115611ba557600080fd5b611bb189838a016119c2565b96506020880135915080821115611bc757600080fd5b611bd389838a01611a2b565b95506040880135915080821115611be957600080fd5b611bf589838a01611947565b94506060880135915080821115611c0b57600080fd5b611c1789838a016119c2565b93506080880135915080821115611c2d57600080fd5b50611c3a88828901611a8b565b9150509295509295909350565b600060208284031215611c5957600080fd5b8151611b1881611f65565b600060208284031215611c7657600080fd5b5035919050565b600060208284031215611c8f57600080fd5b5051919050565b60008060408385031215611ca957600080fd5b50508035926020909101359150565b60008151602080840160005b83811015611ce057815187529582019590820190600101611cc4565b509495945050505050565b6bffffffffffffffffffffffff198560601b1681526000601482018551602080880160005b83811015611d2e578151151585529382019390820190600101611d10565b5050865181880193925060005b81811015611d605784516001600160a01b031684529382019392820192600101611d3b565b505050611d6d8186611cb8565b98975050505050505050565b60208082526022908201527f546f6b656e206d757374206e6f7420616c7265616479206265206120706172656040820152611b9d60f21b606082015260800190565b60208082526038908201527f4e656564206173206d616e79207072656f72646572207469636b65747320617360408201527f206265696e672072657175657374656420746f206d696e740000000000000000606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e4157611e41611f3a565b604052919050565b600067ffffffffffffffff821115611e6357611e63611f3a565b5060051b60200190565b60008219821115611e8057611e80611ef8565b500190565b600082611ea257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611ec157611ec1611ef8565b500290565b600082821015611ed857611ed8611ef8565b500390565b6000600019821415611ef157611ef1611ef8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461155257600080fd5b801515811461155257600080fdfea2646970667358221220c06a6234b88ae46a2de636ac700ea142fa53e6eaf7b4aef7107db89f15812aa464736f6c63430008060033
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.