Overview
ETH Balance
0.16 ETH
Eth Value
$381.33 (@ $2,383.29/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy NOKO | 18713520 | 281 days ago | IN | 0.08 ETH | 0.00599398 | ||||
Buy NOKO | 18713493 | 281 days ago | IN | 0.08 ETH | 0.00513359 | ||||
NOKO_toggle Sale | 18471354 | 315 days ago | IN | 0 ETH | 0.0014836 | ||||
Set Base URI | 18135578 | 362 days ago | IN | 0 ETH | 0.00118439 | ||||
Set Base URI | 18135442 | 362 days ago | IN | 0 ETH | 0.00080487 | ||||
Set Base URI | 17986218 | 383 days ago | IN | 0 ETH | 0.00478222 | ||||
0x60806040 | 17438138 | 459 days ago | IN | 0 ETH | 0.10416347 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Mashabas
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * Mashabas | 2023 * Author: Josh Stow (jstow.com) */ import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Mashabas is ERC721A, Ownable { using Address for address payable; uint256 public constant MASH_PREMINT = 450; uint256 public constant MASH_PRIVATE = 2000; uint256 public constant MASH_PUBLIC = 7550; uint256 public constant MASH_MAX = MASH_PREMINT + MASH_PRIVATE + MASH_PUBLIC; // 10,000 uint256 public constant MASH_PER_WALLET = 20; uint256 public constant MASH_PRICE = 0.08 ether; mapping(address => uint256) public NOKO_addressToMinted; mapping(address => uint256) public DON_addressToMinted; uint256 public NOKO_privateMinted; uint256 public DON_privateMinted; string private _baseTokenURI; string private _contractURI; bool public NOKO_saleLive; bool public NOKO_presaleLive; bool public DON_saleLive; bool public DON_presaleLive; bool public DON_preminted; bytes32 public root; bool public locked; constructor( string memory newBaseTokenURI, string memory newContractURI, bytes32 _root ) ERC721A("Mashabas", "MASH") { _baseTokenURI = newBaseTokenURI; _contractURI = newContractURI; root = _root; _mint(owner(), MASH_PREMINT); } modifier whenNotLocked { require(!locked, "Contract metadata is locked"); _; } /** * @dev Mints number of tokens specified to wallet. * @param quantity uint256 Number of tokens to be minted */ function buyNOKO(uint256 quantity) external payable { require(NOKO_saleLive, "Sale is not currently live"); require(totalSupply() + quantity <= MASH_MAX, "Quantity exceeds remaining tokens"); require(quantity <= MASH_PER_WALLET - NOKO_addressToMinted[msg.sender], "Wallet cannot mint any new tokens"); require(msg.value >= quantity * MASH_PRICE, "Insufficient funds"); NOKO_addressToMinted[msg.sender] += quantity; _mint(msg.sender, quantity); } /** * @dev Mints number of tokens specified to wallet during presale. * @param quantity uint256 Number of tokens to be minted */ function presaleBuyNOKO(uint256 quantity, bytes32[] calldata proof) external payable { require(NOKO_presaleLive && !NOKO_saleLive, "Presale not currently live"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, root, leaf), "Caller is not eligible for presale"); require(totalSupply() + quantity <= MASH_MAX && NOKO_privateMinted + quantity <= MASH_PRIVATE, "Quantity exceeds remaining tokens"); require(quantity <= MASH_PER_WALLET - NOKO_addressToMinted[msg.sender], "Wallet cannot mint any new tokens"); require(msg.value >= quantity * MASH_PRICE, "Insufficient funds"); NOKO_addressToMinted[msg.sender] += quantity; NOKO_privateMinted += quantity; _mint(msg.sender, quantity); } /** * @dev Mints number of tokens specified to wallet. * @param quantity uint256 Number of tokens to be minted */ function buyDON(uint256 quantity) external payable { require(DON_saleLive, "Sale is not currently live"); require(totalSupply() + quantity <= MASH_MAX, "Quantity exceeds remaining tokens"); require(quantity <= MASH_PER_WALLET - DON_addressToMinted[msg.sender], "Wallet cannot mint any new tokens"); require(msg.value >= quantity * MASH_PRICE, "Insufficient funds"); DON_addressToMinted[msg.sender] += quantity; _mint(msg.sender, quantity); } /** * @dev Mints number of tokens specified to wallet during presale. * @param quantity uint256 Number of tokens to be minted */ function presaleBuyDON(uint256 quantity, bytes32[] calldata proof) external payable { require(DON_presaleLive && !DON_saleLive, "Presale not currently live"); require(totalSupply() >= MASH_MAX, "Secondary sale is not currently live"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, root, leaf), "Caller is not eligible for presale"); require((totalSupply() - MASH_MAX) + quantity <= MASH_MAX && DON_privateMinted + quantity <= MASH_PRIVATE, "Quantity exceeds remaining tokens"); require(quantity <= MASH_PER_WALLET - DON_addressToMinted[msg.sender], "Wallet cannot mint any new tokens"); require(msg.value >= quantity * MASH_PRICE, "Insufficient funds"); DON_addressToMinted[msg.sender] += quantity; DON_privateMinted += quantity; _mint(msg.sender, quantity); } /** * @dev Premint tokens for secondary collection. */ function premintDON() external onlyOwner { require(!DON_preminted, "Secondary collection has already been preminted"); require(totalSupply() >= MASH_MAX, "Primary collection is not yet fully minted"); _mint(owner(), MASH_PREMINT); DON_preminted = true; } /** * @dev Checks if wallet address is whitelisted. * @param wallet address Ethereum wallet to be checked * @param proof bytes32[] Merkle proof of wallet address * @return bool Presale eligibility of address */ function isWhitelisted(address wallet, bytes32[] calldata proof) external view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(wallet)); return MerkleProof.verify(proof, root, leaf); } /** * @dev Sets Merkle tree root. * @param _root bytes32 New root */ function setRoot(bytes32 _root) external onlyOwner { root = _root; } /** * @dev Set base token URI. * @param newBaseURI string New URI to set */ function setBaseURI(string calldata newBaseURI) external onlyOwner whenNotLocked { _baseTokenURI = newBaseURI; } /** * @dev Set contract URI. * @param newContractURI string New URI to set */ function setContractURI(string calldata newContractURI) external onlyOwner whenNotLocked { _contractURI = newContractURI; } /** * @dev Toggles status of token public sale. Only callable by owner. */ function NOKO_toggleSale() external onlyOwner { NOKO_saleLive = !NOKO_saleLive; } /** * @dev Toggles status of token private sale. Only callable by owner. */ function NOKO_togglePresale() external onlyOwner { NOKO_presaleLive = !NOKO_presaleLive; } /** * @dev Toggles status of token public sale. Only callable by owner. */ function DON_toggleSale() external onlyOwner { DON_saleLive = !DON_saleLive; } /** * @dev Toggles status of token private sale. Only callable by owner. */ function DON_togglePresale() external onlyOwner { DON_presaleLive = !DON_presaleLive; } /** * @dev Locks contract metadata. Only callable by owner. */ function lockMetadata() external onlyOwner { locked = true; } /** * @dev Returns contract URI. * @return string Contract URI */ function contractURI() public view returns (string memory) { return _contractURI; } /** * @dev Withdraw funds from contract. Only callable by owner. */ function withdraw() public onlyOwner { payable(msg.sender).sendValue(address(this).balance); } /** * @dev Returns base token URI. * @return string Base token URI */ function _baseURI() internal view override(ERC721A) returns (string memory) { return _baseTokenURI; } /** * @dev Returns starting tokenId. * @return uint256 Starting token Id */ function _startTokenId() internal pure override(ERC721A) returns (uint256) { return 1; } }
// 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 (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"newBaseTokenURI","type":"string"},{"internalType":"string","name":"newContractURI","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"address","name":"","type":"address"}],"name":"DON_addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DON_preminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DON_presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DON_privateMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DON_saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DON_togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"DON_toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"MASH_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASH_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASH_PREMINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASH_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASH_PRIVATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASH_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"NOKO_addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOKO_presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOKO_privateMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOKO_saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOKO_togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"NOKO_toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"buyDON","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"buyNOKO","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premintDON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleBuyDON","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleBuyNOKO","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004e6838038062004e6883398181016040528101906200003791906200068c565b6040518060400160405280600881526020017f4d617368616261730000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4d415348000000000000000000000000000000000000000000000000000000008152508160029081620000b4919062000971565b508060039081620000c6919062000971565b50620000d76200015660201b60201c565b6000819055505050620000ff620000f36200015f60201b60201c565b6200016760201b60201c565b82600d908162000110919062000971565b5081600e908162000122919062000971565b50806010819055506200014d6200013e6200022d60201b60201c565b6101c26200025760201b60201c565b50505062000a58565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000805490506000820362000298576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620002ad60008483856200043e60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200033c836200031e60008660006200044460201b60201c565b6200032f856200047460201b60201c565b176200048460201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620003df57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620003a2565b50600082036200041b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620004396000848385620004af60201b60201c565b505050565b50505050565b60008060e883901c905060e862000463868684620004b560201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200052782620004dc565b810181811067ffffffffffffffff82111715620005495762000548620004ed565b5b80604052505050565b60006200055e620004be565b90506200056c82826200051c565b919050565b600067ffffffffffffffff8211156200058f576200058e620004ed565b5b6200059a82620004dc565b9050602081019050919050565b60005b83811015620005c7578082015181840152602081019050620005aa565b60008484015250505050565b6000620005ea620005e48462000571565b62000552565b905082815260208101848484011115620006095762000608620004d7565b5b62000616848285620005a7565b509392505050565b600082601f830112620006365762000635620004d2565b5b815162000648848260208601620005d3565b91505092915050565b6000819050919050565b620006668162000651565b81146200067257600080fd5b50565b60008151905062000686816200065b565b92915050565b600080600060608486031215620006a857620006a7620004c8565b5b600084015167ffffffffffffffff811115620006c957620006c8620004cd565b5b620006d7868287016200061e565b935050602084015167ffffffffffffffff811115620006fb57620006fa620004cd565b5b62000709868287016200061e565b92505060406200071c8682870162000675565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200077957607f821691505b6020821081036200078f576200078e62000731565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007f97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007ba565b620008058683620007ba565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008526200084c62000846846200081d565b62000827565b6200081d565b9050919050565b6000819050919050565b6200086e8362000831565b620008866200087d8262000859565b848454620007c7565b825550505050565b600090565b6200089d6200088e565b620008aa81848462000863565b505050565b5b81811015620008d257620008c660008262000893565b600181019050620008b0565b5050565b601f8211156200092157620008eb8162000795565b620008f684620007aa565b8101602085101562000906578190505b6200091e6200091585620007aa565b830182620008af565b50505b505050565b600082821c905092915050565b6000620009466000198460080262000926565b1980831691505092915050565b600062000961838362000933565b9150826002028217905092915050565b6200097c8262000726565b67ffffffffffffffff811115620009985762000997620004ed565b5b620009a4825462000760565b620009b1828285620008d6565b600060209050601f831160018114620009e95760008415620009d4578287015190505b620009e0858262000953565b86555062000a50565b601f198416620009f98662000795565b60005b8281101562000a2357848901518255600182019150602085019450602081019050620009fc565b8683101562000a43578489015162000a3f601f89168262000933565b8355505b6001600288020188555050505b505050505050565b6144008062000a686000396000f3fe6080604052600436106102c85760003560e01c806380644fec11610175578063c0d81985116100dc578063dab5f34011610095578063e985e9c51161006f578063e985e9c5146109f7578063ebf0c71714610a34578063eefd57be14610a5f578063f2fde38b14610a8a576102c8565b8063dab5f34014610978578063e539f4d5146109a1578063e8a3d485146109cc576102c8565b8063c0d8198514610873578063c101f4ae1461089e578063c87b56dd146108c9578063cf30901214610906578063d23888ef14610931578063d4dc25b21461094d576102c8565b8063a0af139b1161012e578063a0af139b1461077f578063a22cb4651461079b578063b0f5dbc4146107c4578063b88d4fde146107ef578063ba91c48c1461080b578063c09c2e9914610848576102c8565b806380644fec146106935780638da5cb5b146106be5780638e34eadd146106e9578063938e3d7b1461071457806395d89b411461073d578063989bdbb614610768576102c8565b80632b0074ae1161023457806355f804b3116101ed5780636352211e116101c75780636352211e146105d75780636ab6fdd91461061457806370a082311461063f578063715018a61461067c576102c8565b806355f804b31461055a5780635a23dd9914610583578063631ad59d146105c0576102c8565b80632b0074ae146104c15780633a0f1d95146104d85780633ccfd60b146104f457806342842e0e1461050b5780634384454e14610527578063544b10a01461053e576102c8565b806311c9228d1161028657806311c9228d146103d057806311e7f3b0146103fb57806315c93ac41461041257806318160ddd1461044f5780631b725ad31461047a57806323b872dd146104a5576102c8565b80623505bc146102cd57806301ffc9a7146102f857806305289c1e1461033557806306fdde031461034c578063081812fc14610377578063095ea7b3146103b4575b600080fd5b3480156102d957600080fd5b506102e2610ab3565b6040516102ef9190612ea0565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190612f27565b610ac6565b60405161032c9190612ea0565b60405180910390f35b34801561034157600080fd5b5061034a610b58565b005b34801561035857600080fd5b50610361610b8c565b60405161036e9190612fe4565b60405180910390f35b34801561038357600080fd5b5061039e6004803603810190610399919061303c565b610c1e565b6040516103ab91906130aa565b60405180910390f35b6103ce60048036038101906103c991906130f1565b610c9d565b005b3480156103dc57600080fd5b506103e5610de1565b6040516103f29190613140565b60405180910390f35b34801561040757600080fd5b50610410610de6565b005b34801561041e57600080fd5b506104396004803603810190610434919061315b565b610e1a565b6040516104469190613140565b60405180910390f35b34801561045b57600080fd5b50610464610e32565b6040516104719190613140565b60405180910390f35b34801561048657600080fd5b5061048f610e49565b60405161049c9190613140565b60405180910390f35b6104bf60048036038101906104ba9190613188565b610e4f565b005b3480156104cd57600080fd5b506104d6611171565b005b6104f260048036038101906104ed919061303c565b6111a5565b005b34801561050057600080fd5b506105096113ac565b005b61052560048036038101906105209190613188565b6113df565b005b34801561053357600080fd5b5061053c6113ff565b005b61055860048036038101906105539190613240565b6114ed565b005b34801561056657600080fd5b50610581600480360381019061057c91906132f6565b6117fc565b005b34801561058f57600080fd5b506105aa60048036038101906105a59190613343565b61186a565b6040516105b79190612ea0565b60405180910390f35b3480156105cc57600080fd5b506105d56118ee565b005b3480156105e357600080fd5b506105fe60048036038101906105f9919061303c565b611922565b60405161060b91906130aa565b60405180910390f35b34801561062057600080fd5b50610629611934565b6040516106369190613140565b60405180910390f35b34801561064b57600080fd5b506106666004803603810190610661919061315b565b61193a565b6040516106739190613140565b60405180910390f35b34801561068857600080fd5b506106916119f2565b005b34801561069f57600080fd5b506106a8611a06565b6040516106b59190613140565b60405180910390f35b3480156106ca57600080fd5b506106d3611a26565b6040516106e091906130aa565b60405180910390f35b3480156106f557600080fd5b506106fe611a50565b60405161070b9190612ea0565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906132f6565b611a63565b005b34801561074957600080fd5b50610752611ad1565b60405161075f9190612fe4565b60405180910390f35b34801561077457600080fd5b5061077d611b63565b005b61079960048036038101906107949190613240565b611b88565b005b3480156107a757600080fd5b506107c260048036038101906107bd91906133cf565b611f24565b005b3480156107d057600080fd5b506107d961202f565b6040516107e69190613140565b60405180910390f35b6108096004803603810190610804919061353f565b612035565b005b34801561081757600080fd5b50610832600480360381019061082d919061315b565b6120a8565b60405161083f9190613140565b60405180910390f35b34801561085457600080fd5b5061085d6120c0565b60405161086a9190612ea0565b60405180910390f35b34801561087f57600080fd5b506108886120d3565b6040516108959190613140565b60405180910390f35b3480156108aa57600080fd5b506108b36120d9565b6040516108c09190613140565b60405180910390f35b3480156108d557600080fd5b506108f060048036038101906108eb919061303c565b6120e5565b6040516108fd9190612fe4565b60405180910390f35b34801561091257600080fd5b5061091b612183565b6040516109289190612ea0565b60405180910390f35b61094b6004803603810190610946919061303c565b612196565b005b34801561095957600080fd5b5061096261239d565b60405161096f9190613140565b60405180910390f35b34801561098457600080fd5b5061099f600480360381019061099a91906135f8565b6123a3565b005b3480156109ad57600080fd5b506109b66123b5565b6040516109c39190612ea0565b60405180910390f35b3480156109d857600080fd5b506109e16123c8565b6040516109ee9190612fe4565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a199190613625565b61245a565b604051610a2b9190612ea0565b60405180910390f35b348015610a4057600080fd5b50610a496124ee565b604051610a569190613674565b60405180910390f35b348015610a6b57600080fd5b50610a746124f4565b604051610a819190612ea0565b60405180910390f35b348015610a9657600080fd5b50610ab16004803603810190610aac919061315b565b612507565b005b600f60029054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b2157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b515750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b6061258a565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b606060028054610b9b906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc7906136be565b8015610c145780601f10610be957610100808354040283529160200191610c14565b820191906000526020600020905b815481529060010190602001808311610bf757829003601f168201915b5050505050905090565b6000610c2982612608565b610c5f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca882611922565b90508073ffffffffffffffffffffffffffffffffffffffff16610cc9612667565b73ffffffffffffffffffffffffffffffffffffffff1614610d2c57610cf581610cf0612667565b61245a565b610d2b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601481565b610dee61258a565b600f60029054906101000a900460ff1615600f60026101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915090505481565b6000610e3c61266f565b6001546000540303905090565b600b5481565b6000610e5a82612678565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ecd84612744565b91509150610ee38187610ede612667565b61276b565b610f2f57610ef886610ef3612667565b61245a565b610f2e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f95576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fa286868660016127af565b8015610fad57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061107b856110578888876127b5565b7c0200000000000000000000000000000000000000000000000000000000176127dd565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361110157600060018501905060006004600083815260200190815260200160002054036110ff5760005481146110fe578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111698686866001612808565b505050505050565b61117961258a565b600f60019054906101000a900460ff1615600f60016101000a81548160ff021916908315150217905550565b600f60009054906101000a900460ff166111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111eb9061373b565b60405180910390fd5b611d7e6107d06101c2611207919061378a565b611211919061378a565b8161121a610e32565b611224919061378a565b1115611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c90613830565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146112b19190613850565b8111156112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea906138f6565b60405180910390fd5b67011c37937e080000816113079190613916565b341015611349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611340906139a4565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611398919061378a565b925050819055506113a9338261280e565b50565b6113b461258a565b6113dd473373ffffffffffffffffffffffffffffffffffffffff166129c990919063ffffffff16565b565b6113fa83838360405180602001604052806000815250612035565b505050565b61140761258a565b600f60049054906101000a900460ff1615611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90613a36565b60405180910390fd5b611d7e6107d06101c261146a919061378a565b611474919061378a565b61147c610e32565b10156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490613ac8565b60405180910390fd5b6114d06114c8611a26565b6101c261280e565b6001600f60046101000a81548160ff021916908315150217905550565b600f60019054906101000a900460ff1680156115165750600f60009054906101000a900460ff16155b611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90613b34565b60405180910390fd5b6000336040516020016115689190613b9c565b6040516020818303038152906040528051906020012090506115ce838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b61160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490613c29565b60405180910390fd5b611d7e6107d06101c2611620919061378a565b61162a919061378a565b84611633610e32565b61163d919061378a565b1115801561165a57506107d084600b54611657919061378a565b11155b611699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169090613830565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146116e59190613850565b841115611727576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171e906138f6565b60405180910390fd5b67011c37937e0800008461173b9190613916565b34101561177d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611774906139a4565b60405180910390fd5b83600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117cc919061378a565b9250508190555083600b60008282546117e5919061378a565b925050819055506117f6338561280e565b50505050565b61180461258a565b601160009054906101000a900460ff1615611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613c95565b60405180910390fd5b8181600d9182611865929190613e6c565b505050565b6000808460405160200161187e9190613b9c565b6040516020818303038152906040528051906020012090506118e4848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b9150509392505050565b6118f661258a565b600f60039054906101000a900460ff1615600f60036101000a81548160ff021916908315150217905550565b600061192d82612678565b9050919050565b6101c281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119a1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6119fa61258a565b611a046000612ad4565b565b611d7e6107d06101c2611a19919061378a565b611a23919061378a565b81565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60009054906101000a900460ff1681565b611a6b61258a565b601160009054906101000a900460ff1615611abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab290613c95565b60405180910390fd5b8181600e9182611acc929190613e6c565b505050565b606060038054611ae0906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0c906136be565b8015611b595780601f10611b2e57610100808354040283529160200191611b59565b820191906000526020600020905b815481529060010190602001808311611b3c57829003601f168201915b5050505050905090565b611b6b61258a565b6001601160006101000a81548160ff021916908315150217905550565b600f60039054906101000a900460ff168015611bb15750600f60029054906101000a900460ff16155b611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be790613b34565b60405180910390fd5b611d7e6107d06101c2611c03919061378a565b611c0d919061378a565b611c15610e32565b1015611c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4d90613fae565b60405180910390fd5b600033604051602001611c699190613b9c565b604051602081830303815290604052805190602001209050611ccf838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613c29565b60405180910390fd5b611d7e6107d06101c2611d21919061378a565b611d2b919061378a565b84611d7e6107d06101c2611d3f919061378a565b611d49919061378a565b611d51610e32565b611d5b9190613850565b611d65919061378a565b11158015611d8257506107d084600c54611d7f919061378a565b11155b611dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db890613830565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546014611e0d9190613850565b841115611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e46906138f6565b60405180910390fd5b67011c37937e08000084611e639190613916565b341015611ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c906139a4565b60405180910390fd5b83600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ef4919061378a565b9250508190555083600c6000828254611f0d919061378a565b92505081905550611f1e338561280e565b50505050565b8060076000611f31612667565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fde612667565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120239190612ea0565b60405180910390a35050565b600c5481565b612040848484610e4f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146120a25761206b84848484612b9a565b6120a1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60096020528060005260406000206000915090505481565b600f60039054906101000a900460ff1681565b611d7e81565b67011c37937e08000081565b60606120f082612608565b612126576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612130612cea565b90506000815103612150576040518060200160405280600081525061217b565b8061215a84612d7c565b60405160200161216b92919061400a565b6040516020818303038152906040525b915050919050565b601160009054906101000a900460ff1681565b600f60029054906101000a900460ff166121e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121dc9061373b565b60405180910390fd5b611d7e6107d06101c26121f8919061378a565b612202919061378a565b8161220b610e32565b612215919061378a565b1115612256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224d90613830565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146122a29190613850565b8111156122e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122db906138f6565b60405180910390fd5b67011c37937e080000816122f89190613916565b34101561233a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612331906139a4565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612389919061378a565b9250508190555061239a338261280e565b50565b6107d081565b6123ab61258a565b8060108190555050565b600f60049054906101000a900460ff1681565b6060600e80546123d7906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054612403906136be565b80156124505780601f1061242557610100808354040283529160200191612450565b820191906000526020600020905b81548152906001019060200180831161243357829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b600f60019054906101000a900460ff1681565b61250f61258a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361257e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612575906140a0565b60405180910390fd5b61258781612ad4565b50565b612592612dcc565b73ffffffffffffffffffffffffffffffffffffffff166125b0611a26565b73ffffffffffffffffffffffffffffffffffffffff1614612606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fd9061410c565b60405180910390fd5b565b60008161261361266f565b11158015612622575060005482105b8015612660575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061268761266f565b1161270d5760005481101561270c5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361270a575b600081036127005760046000836001900393508381526020019081526020016000205490506126d6565b809250505061273f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86127cc868684612dd4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000805490506000820361284e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61285b60008483856127af565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506128d2836128c360008660006127b5565b6128cc85612ddd565b176127dd565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461297357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612938565b50600082036129ae576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506129c46000848385612808565b505050565b80471015612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0390614178565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612a32906141c9565b60006040518083038185875af1925050503d8060008114612a6f576040519150601f19603f3d011682016040523d82523d6000602084013e612a74565b606091505b5050905080612ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aaf90614250565b60405180910390fd5b505050565b600082612aca8584612ded565b1490509392505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bc0612667565b8786866040518563ffffffff1660e01b8152600401612be294939291906142c5565b6020604051808303816000875af1925050508015612c1e57506040513d601f19601f82011682018060405250810190612c1b9190614326565b60015b612c97573d8060008114612c4e576040519150601f19603f3d011682016040523d82523d6000602084013e612c53565b606091505b506000815103612c8f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054612cf9906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054612d25906136be565b8015612d725780601f10612d4757610100808354040283529160200191612d72565b820191906000526020600020905b815481529060010190602001808311612d5557829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612db757600184039350600a81066030018453600a8104905080612d95575b50828103602084039350808452505050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b8451811015612e3857612e2382868381518110612e1657612e15614353565b5b6020026020010151612e43565b91508080612e3090614382565b915050612df6565b508091505092915050565b6000818310612e5b57612e568284612e6e565b612e66565b612e658383612e6e565b5b905092915050565b600082600052816020526040600020905092915050565b60008115159050919050565b612e9a81612e85565b82525050565b6000602082019050612eb56000830184612e91565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f0481612ecf565b8114612f0f57600080fd5b50565b600081359050612f2181612efb565b92915050565b600060208284031215612f3d57612f3c612ec5565b5b6000612f4b84828501612f12565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f8e578082015181840152602081019050612f73565b60008484015250505050565b6000601f19601f8301169050919050565b6000612fb682612f54565b612fc08185612f5f565b9350612fd0818560208601612f70565b612fd981612f9a565b840191505092915050565b60006020820190508181036000830152612ffe8184612fab565b905092915050565b6000819050919050565b61301981613006565b811461302457600080fd5b50565b60008135905061303681613010565b92915050565b60006020828403121561305257613051612ec5565b5b600061306084828501613027565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061309482613069565b9050919050565b6130a481613089565b82525050565b60006020820190506130bf600083018461309b565b92915050565b6130ce81613089565b81146130d957600080fd5b50565b6000813590506130eb816130c5565b92915050565b6000806040838503121561310857613107612ec5565b5b6000613116858286016130dc565b925050602061312785828601613027565b9150509250929050565b61313a81613006565b82525050565b60006020820190506131556000830184613131565b92915050565b60006020828403121561317157613170612ec5565b5b600061317f848285016130dc565b91505092915050565b6000806000606084860312156131a1576131a0612ec5565b5b60006131af868287016130dc565b93505060206131c0868287016130dc565b92505060406131d186828701613027565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613200576131ff6131db565b5b8235905067ffffffffffffffff81111561321d5761321c6131e0565b5b602083019150836020820283011115613239576132386131e5565b5b9250929050565b60008060006040848603121561325957613258612ec5565b5b600061326786828701613027565b935050602084013567ffffffffffffffff81111561328857613287612eca565b5b613294868287016131ea565b92509250509250925092565b60008083601f8401126132b6576132b56131db565b5b8235905067ffffffffffffffff8111156132d3576132d26131e0565b5b6020830191508360018202830111156132ef576132ee6131e5565b5b9250929050565b6000806020838503121561330d5761330c612ec5565b5b600083013567ffffffffffffffff81111561332b5761332a612eca565b5b613337858286016132a0565b92509250509250929050565b60008060006040848603121561335c5761335b612ec5565b5b600061336a868287016130dc565b935050602084013567ffffffffffffffff81111561338b5761338a612eca565b5b613397868287016131ea565b92509250509250925092565b6133ac81612e85565b81146133b757600080fd5b50565b6000813590506133c9816133a3565b92915050565b600080604083850312156133e6576133e5612ec5565b5b60006133f4858286016130dc565b9250506020613405858286016133ba565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61344c82612f9a565b810181811067ffffffffffffffff8211171561346b5761346a613414565b5b80604052505050565b600061347e612ebb565b905061348a8282613443565b919050565b600067ffffffffffffffff8211156134aa576134a9613414565b5b6134b382612f9a565b9050602081019050919050565b82818337600083830152505050565b60006134e26134dd8461348f565b613474565b9050828152602081018484840111156134fe576134fd61340f565b5b6135098482856134c0565b509392505050565b600082601f830112613526576135256131db565b5b81356135368482602086016134cf565b91505092915050565b6000806000806080858703121561355957613558612ec5565b5b6000613567878288016130dc565b9450506020613578878288016130dc565b935050604061358987828801613027565b925050606085013567ffffffffffffffff8111156135aa576135a9612eca565b5b6135b687828801613511565b91505092959194509250565b6000819050919050565b6135d5816135c2565b81146135e057600080fd5b50565b6000813590506135f2816135cc565b92915050565b60006020828403121561360e5761360d612ec5565b5b600061361c848285016135e3565b91505092915050565b6000806040838503121561363c5761363b612ec5565b5b600061364a858286016130dc565b925050602061365b858286016130dc565b9150509250929050565b61366e816135c2565b82525050565b60006020820190506136896000830184613665565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136d657607f821691505b6020821081036136e9576136e861368f565b5b50919050565b7f53616c65206973206e6f742063757272656e746c79206c697665000000000000600082015250565b6000613725601a83612f5f565b9150613730826136ef565b602082019050919050565b6000602082019050818103600083015261375481613718565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061379582613006565b91506137a083613006565b92508282019050808211156137b8576137b761375b565b5b92915050565b7f5175616e7469747920657863656564732072656d61696e696e6720746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061381a602183612f5f565b9150613825826137be565b604082019050919050565b600060208201905081810360008301526138498161380d565b9050919050565b600061385b82613006565b915061386683613006565b925082820390508181111561387e5761387d61375b565b5b92915050565b7f57616c6c65742063616e6e6f74206d696e7420616e79206e657720746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006138e0602183612f5f565b91506138eb82613884565b604082019050919050565b6000602082019050818103600083015261390f816138d3565b9050919050565b600061392182613006565b915061392c83613006565b925082820261393a81613006565b915082820484148315176139515761395061375b565b5b5092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b600061398e601283612f5f565b915061399982613958565b602082019050919050565b600060208201905081810360008301526139bd81613981565b9050919050565b7f5365636f6e6461727920636f6c6c656374696f6e2068617320616c726561647960008201527f206265656e207072656d696e7465640000000000000000000000000000000000602082015250565b6000613a20602f83612f5f565b9150613a2b826139c4565b604082019050919050565b60006020820190508181036000830152613a4f81613a13565b9050919050565b7f5072696d61727920636f6c6c656374696f6e206973206e6f742079657420667560008201527f6c6c79206d696e74656400000000000000000000000000000000000000000000602082015250565b6000613ab2602a83612f5f565b9150613abd82613a56565b604082019050919050565b60006020820190508181036000830152613ae181613aa5565b9050919050565b7f50726573616c65206e6f742063757272656e746c79206c697665000000000000600082015250565b6000613b1e601a83612f5f565b9150613b2982613ae8565b602082019050919050565b60006020820190508181036000830152613b4d81613b11565b9050919050565b60008160601b9050919050565b6000613b6c82613b54565b9050919050565b6000613b7e82613b61565b9050919050565b613b96613b9182613089565b613b73565b82525050565b6000613ba88284613b85565b60148201915081905092915050565b7f43616c6c6572206973206e6f7420656c696769626c6520666f7220707265736160008201527f6c65000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c13602283612f5f565b9150613c1e82613bb7565b604082019050919050565b60006020820190508181036000830152613c4281613c06565b9050919050565b7f436f6e7472616374206d65746164617461206973206c6f636b65640000000000600082015250565b6000613c7f601b83612f5f565b9150613c8a82613c49565b602082019050919050565b60006020820190508181036000830152613cae81613c72565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613d227fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ce5565b613d2c8683613ce5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613d69613d64613d5f84613006565b613d44565b613006565b9050919050565b6000819050919050565b613d8383613d4e565b613d97613d8f82613d70565b848454613cf2565b825550505050565b600090565b613dac613d9f565b613db7818484613d7a565b505050565b5b81811015613ddb57613dd0600082613da4565b600181019050613dbd565b5050565b601f821115613e2057613df181613cc0565b613dfa84613cd5565b81016020851015613e09578190505b613e1d613e1585613cd5565b830182613dbc565b50505b505050565b600082821c905092915050565b6000613e4360001984600802613e25565b1980831691505092915050565b6000613e5c8383613e32565b9150826002028217905092915050565b613e768383613cb5565b67ffffffffffffffff811115613e8f57613e8e613414565b5b613e9982546136be565b613ea4828285613ddf565b6000601f831160018114613ed35760008415613ec1578287013590505b613ecb8582613e50565b865550613f33565b601f198416613ee186613cc0565b60005b82811015613f0957848901358255600182019150602085019450602081019050613ee4565b86831015613f265784890135613f22601f891682613e32565b8355505b6001600288020188555050505b50505050505050565b7f5365636f6e646172792073616c65206973206e6f742063757272656e746c792060008201527f6c69766500000000000000000000000000000000000000000000000000000000602082015250565b6000613f98602483612f5f565b9150613fa382613f3c565b604082019050919050565b60006020820190508181036000830152613fc781613f8b565b9050919050565b600081905092915050565b6000613fe482612f54565b613fee8185613fce565b9350613ffe818560208601612f70565b80840191505092915050565b60006140168285613fd9565b91506140228284613fd9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061408a602683612f5f565b91506140958261402e565b604082019050919050565b600060208201905081810360008301526140b98161407d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140f6602083612f5f565b9150614101826140c0565b602082019050919050565b60006020820190508181036000830152614125816140e9565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614162601d83612f5f565b915061416d8261412c565b602082019050919050565b6000602082019050818103600083015261419181614155565b9050919050565b600081905092915050565b50565b60006141b3600083614198565b91506141be826141a3565b600082019050919050565b60006141d4826141a6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061423a603a83612f5f565b9150614245826141de565b604082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061429782614270565b6142a1818561427b565b93506142b1818560208601612f70565b6142ba81612f9a565b840191505092915050565b60006080820190506142da600083018761309b565b6142e7602083018661309b565b6142f46040830185613131565b8181036060830152614306818461428c565b905095945050505050565b60008151905061432081612efb565b92915050565b60006020828403121561433c5761433b612ec5565b5b600061434a84828501614311565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061438d82613006565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036143bf576143be61375b565b5b60018201905091905056fea264697066735822122035e48c1638c593981f9116594bde556c3517578056176278535bf569c36e8ab364736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c85760003560e01c806380644fec11610175578063c0d81985116100dc578063dab5f34011610095578063e985e9c51161006f578063e985e9c5146109f7578063ebf0c71714610a34578063eefd57be14610a5f578063f2fde38b14610a8a576102c8565b8063dab5f34014610978578063e539f4d5146109a1578063e8a3d485146109cc576102c8565b8063c0d8198514610873578063c101f4ae1461089e578063c87b56dd146108c9578063cf30901214610906578063d23888ef14610931578063d4dc25b21461094d576102c8565b8063a0af139b1161012e578063a0af139b1461077f578063a22cb4651461079b578063b0f5dbc4146107c4578063b88d4fde146107ef578063ba91c48c1461080b578063c09c2e9914610848576102c8565b806380644fec146106935780638da5cb5b146106be5780638e34eadd146106e9578063938e3d7b1461071457806395d89b411461073d578063989bdbb614610768576102c8565b80632b0074ae1161023457806355f804b3116101ed5780636352211e116101c75780636352211e146105d75780636ab6fdd91461061457806370a082311461063f578063715018a61461067c576102c8565b806355f804b31461055a5780635a23dd9914610583578063631ad59d146105c0576102c8565b80632b0074ae146104c15780633a0f1d95146104d85780633ccfd60b146104f457806342842e0e1461050b5780634384454e14610527578063544b10a01461053e576102c8565b806311c9228d1161028657806311c9228d146103d057806311e7f3b0146103fb57806315c93ac41461041257806318160ddd1461044f5780631b725ad31461047a57806323b872dd146104a5576102c8565b80623505bc146102cd57806301ffc9a7146102f857806305289c1e1461033557806306fdde031461034c578063081812fc14610377578063095ea7b3146103b4575b600080fd5b3480156102d957600080fd5b506102e2610ab3565b6040516102ef9190612ea0565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190612f27565b610ac6565b60405161032c9190612ea0565b60405180910390f35b34801561034157600080fd5b5061034a610b58565b005b34801561035857600080fd5b50610361610b8c565b60405161036e9190612fe4565b60405180910390f35b34801561038357600080fd5b5061039e6004803603810190610399919061303c565b610c1e565b6040516103ab91906130aa565b60405180910390f35b6103ce60048036038101906103c991906130f1565b610c9d565b005b3480156103dc57600080fd5b506103e5610de1565b6040516103f29190613140565b60405180910390f35b34801561040757600080fd5b50610410610de6565b005b34801561041e57600080fd5b506104396004803603810190610434919061315b565b610e1a565b6040516104469190613140565b60405180910390f35b34801561045b57600080fd5b50610464610e32565b6040516104719190613140565b60405180910390f35b34801561048657600080fd5b5061048f610e49565b60405161049c9190613140565b60405180910390f35b6104bf60048036038101906104ba9190613188565b610e4f565b005b3480156104cd57600080fd5b506104d6611171565b005b6104f260048036038101906104ed919061303c565b6111a5565b005b34801561050057600080fd5b506105096113ac565b005b61052560048036038101906105209190613188565b6113df565b005b34801561053357600080fd5b5061053c6113ff565b005b61055860048036038101906105539190613240565b6114ed565b005b34801561056657600080fd5b50610581600480360381019061057c91906132f6565b6117fc565b005b34801561058f57600080fd5b506105aa60048036038101906105a59190613343565b61186a565b6040516105b79190612ea0565b60405180910390f35b3480156105cc57600080fd5b506105d56118ee565b005b3480156105e357600080fd5b506105fe60048036038101906105f9919061303c565b611922565b60405161060b91906130aa565b60405180910390f35b34801561062057600080fd5b50610629611934565b6040516106369190613140565b60405180910390f35b34801561064b57600080fd5b506106666004803603810190610661919061315b565b61193a565b6040516106739190613140565b60405180910390f35b34801561068857600080fd5b506106916119f2565b005b34801561069f57600080fd5b506106a8611a06565b6040516106b59190613140565b60405180910390f35b3480156106ca57600080fd5b506106d3611a26565b6040516106e091906130aa565b60405180910390f35b3480156106f557600080fd5b506106fe611a50565b60405161070b9190612ea0565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906132f6565b611a63565b005b34801561074957600080fd5b50610752611ad1565b60405161075f9190612fe4565b60405180910390f35b34801561077457600080fd5b5061077d611b63565b005b61079960048036038101906107949190613240565b611b88565b005b3480156107a757600080fd5b506107c260048036038101906107bd91906133cf565b611f24565b005b3480156107d057600080fd5b506107d961202f565b6040516107e69190613140565b60405180910390f35b6108096004803603810190610804919061353f565b612035565b005b34801561081757600080fd5b50610832600480360381019061082d919061315b565b6120a8565b60405161083f9190613140565b60405180910390f35b34801561085457600080fd5b5061085d6120c0565b60405161086a9190612ea0565b60405180910390f35b34801561087f57600080fd5b506108886120d3565b6040516108959190613140565b60405180910390f35b3480156108aa57600080fd5b506108b36120d9565b6040516108c09190613140565b60405180910390f35b3480156108d557600080fd5b506108f060048036038101906108eb919061303c565b6120e5565b6040516108fd9190612fe4565b60405180910390f35b34801561091257600080fd5b5061091b612183565b6040516109289190612ea0565b60405180910390f35b61094b6004803603810190610946919061303c565b612196565b005b34801561095957600080fd5b5061096261239d565b60405161096f9190613140565b60405180910390f35b34801561098457600080fd5b5061099f600480360381019061099a91906135f8565b6123a3565b005b3480156109ad57600080fd5b506109b66123b5565b6040516109c39190612ea0565b60405180910390f35b3480156109d857600080fd5b506109e16123c8565b6040516109ee9190612fe4565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a199190613625565b61245a565b604051610a2b9190612ea0565b60405180910390f35b348015610a4057600080fd5b50610a496124ee565b604051610a569190613674565b60405180910390f35b348015610a6b57600080fd5b50610a746124f4565b604051610a819190612ea0565b60405180910390f35b348015610a9657600080fd5b50610ab16004803603810190610aac919061315b565b612507565b005b600f60029054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b2157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b515750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b6061258a565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b606060028054610b9b906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc7906136be565b8015610c145780601f10610be957610100808354040283529160200191610c14565b820191906000526020600020905b815481529060010190602001808311610bf757829003601f168201915b5050505050905090565b6000610c2982612608565b610c5f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca882611922565b90508073ffffffffffffffffffffffffffffffffffffffff16610cc9612667565b73ffffffffffffffffffffffffffffffffffffffff1614610d2c57610cf581610cf0612667565b61245a565b610d2b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601481565b610dee61258a565b600f60029054906101000a900460ff1615600f60026101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915090505481565b6000610e3c61266f565b6001546000540303905090565b600b5481565b6000610e5a82612678565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ecd84612744565b91509150610ee38187610ede612667565b61276b565b610f2f57610ef886610ef3612667565b61245a565b610f2e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f95576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fa286868660016127af565b8015610fad57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061107b856110578888876127b5565b7c0200000000000000000000000000000000000000000000000000000000176127dd565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361110157600060018501905060006004600083815260200190815260200160002054036110ff5760005481146110fe578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111698686866001612808565b505050505050565b61117961258a565b600f60019054906101000a900460ff1615600f60016101000a81548160ff021916908315150217905550565b600f60009054906101000a900460ff166111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111eb9061373b565b60405180910390fd5b611d7e6107d06101c2611207919061378a565b611211919061378a565b8161121a610e32565b611224919061378a565b1115611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c90613830565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146112b19190613850565b8111156112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea906138f6565b60405180910390fd5b67011c37937e080000816113079190613916565b341015611349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611340906139a4565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611398919061378a565b925050819055506113a9338261280e565b50565b6113b461258a565b6113dd473373ffffffffffffffffffffffffffffffffffffffff166129c990919063ffffffff16565b565b6113fa83838360405180602001604052806000815250612035565b505050565b61140761258a565b600f60049054906101000a900460ff1615611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90613a36565b60405180910390fd5b611d7e6107d06101c261146a919061378a565b611474919061378a565b61147c610e32565b10156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490613ac8565b60405180910390fd5b6114d06114c8611a26565b6101c261280e565b6001600f60046101000a81548160ff021916908315150217905550565b600f60019054906101000a900460ff1680156115165750600f60009054906101000a900460ff16155b611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90613b34565b60405180910390fd5b6000336040516020016115689190613b9c565b6040516020818303038152906040528051906020012090506115ce838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b61160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490613c29565b60405180910390fd5b611d7e6107d06101c2611620919061378a565b61162a919061378a565b84611633610e32565b61163d919061378a565b1115801561165a57506107d084600b54611657919061378a565b11155b611699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169090613830565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146116e59190613850565b841115611727576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171e906138f6565b60405180910390fd5b67011c37937e0800008461173b9190613916565b34101561177d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611774906139a4565b60405180910390fd5b83600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117cc919061378a565b9250508190555083600b60008282546117e5919061378a565b925050819055506117f6338561280e565b50505050565b61180461258a565b601160009054906101000a900460ff1615611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613c95565b60405180910390fd5b8181600d9182611865929190613e6c565b505050565b6000808460405160200161187e9190613b9c565b6040516020818303038152906040528051906020012090506118e4848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b9150509392505050565b6118f661258a565b600f60039054906101000a900460ff1615600f60036101000a81548160ff021916908315150217905550565b600061192d82612678565b9050919050565b6101c281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119a1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6119fa61258a565b611a046000612ad4565b565b611d7e6107d06101c2611a19919061378a565b611a23919061378a565b81565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60009054906101000a900460ff1681565b611a6b61258a565b601160009054906101000a900460ff1615611abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab290613c95565b60405180910390fd5b8181600e9182611acc929190613e6c565b505050565b606060038054611ae0906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0c906136be565b8015611b595780601f10611b2e57610100808354040283529160200191611b59565b820191906000526020600020905b815481529060010190602001808311611b3c57829003601f168201915b5050505050905090565b611b6b61258a565b6001601160006101000a81548160ff021916908315150217905550565b600f60039054906101000a900460ff168015611bb15750600f60029054906101000a900460ff16155b611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be790613b34565b60405180910390fd5b611d7e6107d06101c2611c03919061378a565b611c0d919061378a565b611c15610e32565b1015611c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4d90613fae565b60405180910390fd5b600033604051602001611c699190613b9c565b604051602081830303815290604052805190602001209050611ccf838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612abd565b611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613c29565b60405180910390fd5b611d7e6107d06101c2611d21919061378a565b611d2b919061378a565b84611d7e6107d06101c2611d3f919061378a565b611d49919061378a565b611d51610e32565b611d5b9190613850565b611d65919061378a565b11158015611d8257506107d084600c54611d7f919061378a565b11155b611dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db890613830565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546014611e0d9190613850565b841115611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e46906138f6565b60405180910390fd5b67011c37937e08000084611e639190613916565b341015611ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c906139a4565b60405180910390fd5b83600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ef4919061378a565b9250508190555083600c6000828254611f0d919061378a565b92505081905550611f1e338561280e565b50505050565b8060076000611f31612667565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fde612667565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120239190612ea0565b60405180910390a35050565b600c5481565b612040848484610e4f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146120a25761206b84848484612b9a565b6120a1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60096020528060005260406000206000915090505481565b600f60039054906101000a900460ff1681565b611d7e81565b67011c37937e08000081565b60606120f082612608565b612126576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612130612cea565b90506000815103612150576040518060200160405280600081525061217b565b8061215a84612d7c565b60405160200161216b92919061400a565b6040516020818303038152906040525b915050919050565b601160009054906101000a900460ff1681565b600f60029054906101000a900460ff166121e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121dc9061373b565b60405180910390fd5b611d7e6107d06101c26121f8919061378a565b612202919061378a565b8161220b610e32565b612215919061378a565b1115612256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224d90613830565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460146122a29190613850565b8111156122e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122db906138f6565b60405180910390fd5b67011c37937e080000816122f89190613916565b34101561233a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612331906139a4565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612389919061378a565b9250508190555061239a338261280e565b50565b6107d081565b6123ab61258a565b8060108190555050565b600f60049054906101000a900460ff1681565b6060600e80546123d7906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054612403906136be565b80156124505780601f1061242557610100808354040283529160200191612450565b820191906000526020600020905b81548152906001019060200180831161243357829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b600f60019054906101000a900460ff1681565b61250f61258a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361257e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612575906140a0565b60405180910390fd5b61258781612ad4565b50565b612592612dcc565b73ffffffffffffffffffffffffffffffffffffffff166125b0611a26565b73ffffffffffffffffffffffffffffffffffffffff1614612606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fd9061410c565b60405180910390fd5b565b60008161261361266f565b11158015612622575060005482105b8015612660575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061268761266f565b1161270d5760005481101561270c5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361270a575b600081036127005760046000836001900393508381526020019081526020016000205490506126d6565b809250505061273f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86127cc868684612dd4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000805490506000820361284e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61285b60008483856127af565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506128d2836128c360008660006127b5565b6128cc85612ddd565b176127dd565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461297357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612938565b50600082036129ae576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506129c46000848385612808565b505050565b80471015612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0390614178565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612a32906141c9565b60006040518083038185875af1925050503d8060008114612a6f576040519150601f19603f3d011682016040523d82523d6000602084013e612a74565b606091505b5050905080612ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aaf90614250565b60405180910390fd5b505050565b600082612aca8584612ded565b1490509392505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bc0612667565b8786866040518563ffffffff1660e01b8152600401612be294939291906142c5565b6020604051808303816000875af1925050508015612c1e57506040513d601f19601f82011682018060405250810190612c1b9190614326565b60015b612c97573d8060008114612c4e576040519150601f19603f3d011682016040523d82523d6000602084013e612c53565b606091505b506000815103612c8f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054612cf9906136be565b80601f0160208091040260200160405190810160405280929190818152602001828054612d25906136be565b8015612d725780601f10612d4757610100808354040283529160200191612d72565b820191906000526020600020905b815481529060010190602001808311612d5557829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612db757600184039350600a81066030018453600a8104905080612d95575b50828103602084039350808452505050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b8451811015612e3857612e2382868381518110612e1657612e15614353565b5b6020026020010151612e43565b91508080612e3090614382565b915050612df6565b508091505092915050565b6000818310612e5b57612e568284612e6e565b612e66565b612e658383612e6e565b5b905092915050565b600082600052816020526040600020905092915050565b60008115159050919050565b612e9a81612e85565b82525050565b6000602082019050612eb56000830184612e91565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f0481612ecf565b8114612f0f57600080fd5b50565b600081359050612f2181612efb565b92915050565b600060208284031215612f3d57612f3c612ec5565b5b6000612f4b84828501612f12565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f8e578082015181840152602081019050612f73565b60008484015250505050565b6000601f19601f8301169050919050565b6000612fb682612f54565b612fc08185612f5f565b9350612fd0818560208601612f70565b612fd981612f9a565b840191505092915050565b60006020820190508181036000830152612ffe8184612fab565b905092915050565b6000819050919050565b61301981613006565b811461302457600080fd5b50565b60008135905061303681613010565b92915050565b60006020828403121561305257613051612ec5565b5b600061306084828501613027565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061309482613069565b9050919050565b6130a481613089565b82525050565b60006020820190506130bf600083018461309b565b92915050565b6130ce81613089565b81146130d957600080fd5b50565b6000813590506130eb816130c5565b92915050565b6000806040838503121561310857613107612ec5565b5b6000613116858286016130dc565b925050602061312785828601613027565b9150509250929050565b61313a81613006565b82525050565b60006020820190506131556000830184613131565b92915050565b60006020828403121561317157613170612ec5565b5b600061317f848285016130dc565b91505092915050565b6000806000606084860312156131a1576131a0612ec5565b5b60006131af868287016130dc565b93505060206131c0868287016130dc565b92505060406131d186828701613027565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613200576131ff6131db565b5b8235905067ffffffffffffffff81111561321d5761321c6131e0565b5b602083019150836020820283011115613239576132386131e5565b5b9250929050565b60008060006040848603121561325957613258612ec5565b5b600061326786828701613027565b935050602084013567ffffffffffffffff81111561328857613287612eca565b5b613294868287016131ea565b92509250509250925092565b60008083601f8401126132b6576132b56131db565b5b8235905067ffffffffffffffff8111156132d3576132d26131e0565b5b6020830191508360018202830111156132ef576132ee6131e5565b5b9250929050565b6000806020838503121561330d5761330c612ec5565b5b600083013567ffffffffffffffff81111561332b5761332a612eca565b5b613337858286016132a0565b92509250509250929050565b60008060006040848603121561335c5761335b612ec5565b5b600061336a868287016130dc565b935050602084013567ffffffffffffffff81111561338b5761338a612eca565b5b613397868287016131ea565b92509250509250925092565b6133ac81612e85565b81146133b757600080fd5b50565b6000813590506133c9816133a3565b92915050565b600080604083850312156133e6576133e5612ec5565b5b60006133f4858286016130dc565b9250506020613405858286016133ba565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61344c82612f9a565b810181811067ffffffffffffffff8211171561346b5761346a613414565b5b80604052505050565b600061347e612ebb565b905061348a8282613443565b919050565b600067ffffffffffffffff8211156134aa576134a9613414565b5b6134b382612f9a565b9050602081019050919050565b82818337600083830152505050565b60006134e26134dd8461348f565b613474565b9050828152602081018484840111156134fe576134fd61340f565b5b6135098482856134c0565b509392505050565b600082601f830112613526576135256131db565b5b81356135368482602086016134cf565b91505092915050565b6000806000806080858703121561355957613558612ec5565b5b6000613567878288016130dc565b9450506020613578878288016130dc565b935050604061358987828801613027565b925050606085013567ffffffffffffffff8111156135aa576135a9612eca565b5b6135b687828801613511565b91505092959194509250565b6000819050919050565b6135d5816135c2565b81146135e057600080fd5b50565b6000813590506135f2816135cc565b92915050565b60006020828403121561360e5761360d612ec5565b5b600061361c848285016135e3565b91505092915050565b6000806040838503121561363c5761363b612ec5565b5b600061364a858286016130dc565b925050602061365b858286016130dc565b9150509250929050565b61366e816135c2565b82525050565b60006020820190506136896000830184613665565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136d657607f821691505b6020821081036136e9576136e861368f565b5b50919050565b7f53616c65206973206e6f742063757272656e746c79206c697665000000000000600082015250565b6000613725601a83612f5f565b9150613730826136ef565b602082019050919050565b6000602082019050818103600083015261375481613718565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061379582613006565b91506137a083613006565b92508282019050808211156137b8576137b761375b565b5b92915050565b7f5175616e7469747920657863656564732072656d61696e696e6720746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061381a602183612f5f565b9150613825826137be565b604082019050919050565b600060208201905081810360008301526138498161380d565b9050919050565b600061385b82613006565b915061386683613006565b925082820390508181111561387e5761387d61375b565b5b92915050565b7f57616c6c65742063616e6e6f74206d696e7420616e79206e657720746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006138e0602183612f5f565b91506138eb82613884565b604082019050919050565b6000602082019050818103600083015261390f816138d3565b9050919050565b600061392182613006565b915061392c83613006565b925082820261393a81613006565b915082820484148315176139515761395061375b565b5b5092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b600061398e601283612f5f565b915061399982613958565b602082019050919050565b600060208201905081810360008301526139bd81613981565b9050919050565b7f5365636f6e6461727920636f6c6c656374696f6e2068617320616c726561647960008201527f206265656e207072656d696e7465640000000000000000000000000000000000602082015250565b6000613a20602f83612f5f565b9150613a2b826139c4565b604082019050919050565b60006020820190508181036000830152613a4f81613a13565b9050919050565b7f5072696d61727920636f6c6c656374696f6e206973206e6f742079657420667560008201527f6c6c79206d696e74656400000000000000000000000000000000000000000000602082015250565b6000613ab2602a83612f5f565b9150613abd82613a56565b604082019050919050565b60006020820190508181036000830152613ae181613aa5565b9050919050565b7f50726573616c65206e6f742063757272656e746c79206c697665000000000000600082015250565b6000613b1e601a83612f5f565b9150613b2982613ae8565b602082019050919050565b60006020820190508181036000830152613b4d81613b11565b9050919050565b60008160601b9050919050565b6000613b6c82613b54565b9050919050565b6000613b7e82613b61565b9050919050565b613b96613b9182613089565b613b73565b82525050565b6000613ba88284613b85565b60148201915081905092915050565b7f43616c6c6572206973206e6f7420656c696769626c6520666f7220707265736160008201527f6c65000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c13602283612f5f565b9150613c1e82613bb7565b604082019050919050565b60006020820190508181036000830152613c4281613c06565b9050919050565b7f436f6e7472616374206d65746164617461206973206c6f636b65640000000000600082015250565b6000613c7f601b83612f5f565b9150613c8a82613c49565b602082019050919050565b60006020820190508181036000830152613cae81613c72565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613d227fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ce5565b613d2c8683613ce5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613d69613d64613d5f84613006565b613d44565b613006565b9050919050565b6000819050919050565b613d8383613d4e565b613d97613d8f82613d70565b848454613cf2565b825550505050565b600090565b613dac613d9f565b613db7818484613d7a565b505050565b5b81811015613ddb57613dd0600082613da4565b600181019050613dbd565b5050565b601f821115613e2057613df181613cc0565b613dfa84613cd5565b81016020851015613e09578190505b613e1d613e1585613cd5565b830182613dbc565b50505b505050565b600082821c905092915050565b6000613e4360001984600802613e25565b1980831691505092915050565b6000613e5c8383613e32565b9150826002028217905092915050565b613e768383613cb5565b67ffffffffffffffff811115613e8f57613e8e613414565b5b613e9982546136be565b613ea4828285613ddf565b6000601f831160018114613ed35760008415613ec1578287013590505b613ecb8582613e50565b865550613f33565b601f198416613ee186613cc0565b60005b82811015613f0957848901358255600182019150602085019450602081019050613ee4565b86831015613f265784890135613f22601f891682613e32565b8355505b6001600288020188555050505b50505050505050565b7f5365636f6e646172792073616c65206973206e6f742063757272656e746c792060008201527f6c69766500000000000000000000000000000000000000000000000000000000602082015250565b6000613f98602483612f5f565b9150613fa382613f3c565b604082019050919050565b60006020820190508181036000830152613fc781613f8b565b9050919050565b600081905092915050565b6000613fe482612f54565b613fee8185613fce565b9350613ffe818560208601612f70565b80840191505092915050565b60006140168285613fd9565b91506140228284613fd9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061408a602683612f5f565b91506140958261402e565b604082019050919050565b600060208201905081810360008301526140b98161407d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140f6602083612f5f565b9150614101826140c0565b602082019050919050565b60006020820190508181036000830152614125816140e9565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614162601d83612f5f565b915061416d8261412c565b602082019050919050565b6000602082019050818103600083015261419181614155565b9050919050565b600081905092915050565b50565b60006141b3600083614198565b91506141be826141a3565b600082019050919050565b60006141d4826141a6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061423a603a83612f5f565b9150614245826141de565b604082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061429782614270565b6142a1818561427b565b93506142b1818560208601612f70565b6142ba81612f9a565b840191505092915050565b60006080820190506142da600083018761309b565b6142e7602083018661309b565b6142f46040830185613131565b8181036060830152614306818461428c565b905095945050505050565b60008151905061432081612efb565b92915050565b60006020828403121561433c5761433b612ec5565b5b600061434a84828501614311565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061438d82613006565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036143bf576143be61375b565b5b60018201905091905056fea264697066735822122035e48c1638c593981f9116594bde556c3517578056176278535bf569c36e8ab364736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : newBaseTokenURI (string):
Arg [1] : newContractURI (string):
Arg [2] : _root (bytes32): 0x0000000000000000000000000000000000000000000000000000000000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,383.54 | 0.16 | $381.37 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.