Overview
ETH Balance
1.936 ETH
Eth Value
$6,011.73 (@ $3,105.23/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 5,495 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Refund | 19459891 | 61 days ago | IN | 0 ETH | 0.00171668 | ||||
Refund | 19459790 | 61 days ago | IN | 0 ETH | 0.0016675 | ||||
Refund | 19459243 | 61 days ago | IN | 0 ETH | 0.00171634 | ||||
Refund | 19445237 | 63 days ago | IN | 0 ETH | 0.00210954 | ||||
Refund | 19445193 | 63 days ago | IN | 0 ETH | 0.00230106 | ||||
Refund | 19445165 | 63 days ago | IN | 0 ETH | 0.00224277 | ||||
Refund | 19445136 | 63 days ago | IN | 0 ETH | 0.00217845 | ||||
Refund | 19445128 | 63 days ago | IN | 0 ETH | 0.00220433 | ||||
Refund | 19442936 | 63 days ago | IN | 0 ETH | 0.0027477 | ||||
Refund | 19442932 | 63 days ago | IN | 0 ETH | 0.00255402 | ||||
Refund | 19442921 | 63 days ago | IN | 0 ETH | 0.00245434 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270609 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270609 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270651 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.0027056 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270651 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270574 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270567 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00267641 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270532 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.0027049 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00267641 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270567 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.0027049 | ||||
Refund | 19438301 | 64 days ago | IN | 0 ETH | 0.00270679 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19459891 | 61 days ago | 0.088 ETH | ||||
19459790 | 61 days ago | 0.088 ETH | ||||
19459243 | 61 days ago | 0.088 ETH | ||||
19445237 | 63 days ago | 0.088 ETH | ||||
19445193 | 63 days ago | 0.088 ETH | ||||
19445165 | 63 days ago | 0.088 ETH | ||||
19445136 | 63 days ago | 0.088 ETH | ||||
19445128 | 63 days ago | 0.088 ETH | ||||
19442936 | 63 days ago | 0.088 ETH | ||||
19442932 | 63 days ago | 0.088 ETH | ||||
19442921 | 63 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH | ||||
19438301 | 64 days ago | 0.088 ETH |
Loading...
Loading
Contract Name:
MittariaPresale
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; // non-reentrant import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; // :::: :::: ::::::::::: ::::::::::: ::::::::::: ::: ::::::::: ::::::::::: ::: // +:+:+: :+:+:+ :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: // +:+ +:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ // +#+ +:+ +#+ +#+ +#+ +#+ +#++:++#++: +#++:++#: +#+ +#++:++#++: // +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ // #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# // ### ### ########### ### ### ### ### ### ### ########### ### ### // ADVENTURE, EXPLORE & DISCOVER // Mittaria & Pellar contract MittariaPresale is Ownable, ReentrancyGuard { using ECDSA for bytes32; // struct struct Configs { bytes32 merkleRoot; uint32 quantity; uint32 maxPerTxn; uint32 startTime; uint32 endTime; uint128 price; } struct Phase { Configs configs; uint16 version; uint32 totalMinted; mapping(address => uint32) minted; } // vars address public verifier = 0x9f6B54d48AD2175e56a1BA9bFc74cd077213B68D; uint32 public totalSupply; Phase[] public phases; mapping(address => bool) public executors; event PhaseModified(uint32 indexed phaseId, Configs configs); event Purchased(address indexed account, uint32 phaseId, uint32 amount); modifier onlyAllowedExecutor() { require(executors[_msgSender()] || owner() == _msgSender(), "Not allowed operator"); _; } constructor() { phases.push(); // ignore phase 0 executors[msg.sender] = true; } receive() external payable {} /* View */ // verifed function getPhaseInfo(uint32 _phaseId) external view returns (Configs memory configs, uint16 version, uint32 totalMinted) { require(_phaseId < phases.length, "Invalid phase id"); Phase storage phase = phases[_phaseId]; return (phase.configs, phase.version, phase.totalMinted); } // verifed function getTokenMintedByAccount(uint32 _phaseId, address _account) external view returns (uint32) { require(_phaseId < phases.length, "Invalid phase id"); return phases[_phaseId].minted[_account]; } /* User */ // verifed function purchase(uint32 _phaseId, uint32 _amount, uint32 _maxAmount, bytes calldata _signature) external payable { address account = msg.sender; require(tx.origin == account, "Not allowed"); Phase storage phase = phases[_phaseId]; require(_amount > 0, "Invalid amount"); require(phase.totalMinted + _amount <= phase.configs.quantity, "Exceed quantity"); require(phase.configs.startTime <= block.timestamp, "Not started"); require(block.timestamp <= phase.configs.endTime, "Ended"); require(_amount <= phase.configs.maxPerTxn, "Exceed max per txn"); require(phase.minted[account] + _amount <= _maxAmount, "Exceed max per wallet"); require(phase.configs.price * _amount == msg.value, "Invalid price"); _verifySignature(_phaseId, account, _maxAmount, _signature); phase.totalMinted += _amount; phase.minted[account] += _amount; _purchase(_phaseId, account, _amount); } // verifed function _purchase(uint32 _phaseId, address _account, uint32 _amount) internal { totalSupply += _amount; emit Purchased(_account, _phaseId, _amount); } // merkle proof function refund(uint32 _phaseId, uint32 _amount, bytes32[] calldata _merkleProofs) external nonReentrant { address account = msg.sender; // force max amount = 1 uint32 _maxAmount = 1; Phase storage phase = phases[_phaseId]; require(_amount > 0, "Invalid amount"); require(phase.totalMinted + _amount <= phase.configs.quantity, "Exceed quantity"); require(phase.configs.startTime <= block.timestamp, "Not started"); require(block.timestamp <= phase.configs.endTime, "Ended"); require(_amount <= phase.configs.maxPerTxn, "Exceed max per txn"); require(phase.minted[account] + _amount <= _maxAmount, "Exceed max per wallet"); require(_verifyMerkleProof(_phaseId, account, _maxAmount, _merkleProofs), "Invalid proof"); phase.totalMinted += _amount; phase.minted[account] += _amount; (bool success, ) = account.call{ value: phase.configs.price * _amount }(""); require(success, "Transfer failed."); } // verifed function _verifySignature(uint32 _phaseId, address _account, uint32 _maxAmount, bytes calldata _signature) internal view { bytes32 messageHash = keccak256( abi.encodePacked( block.chainid, // keccak256( abi.encode( address(this), // _phaseId, phases[_phaseId].version, _account, _maxAmount ) ) ) ); address signer = messageHash.toEthSignedMessageHash().recover(_signature); require(verifier == signer, "Invalid proof"); } function _verifyMerkleProof(uint32 _phaseId, address _account, uint32 _maxAmount, bytes32[] calldata _merkleProofs) internal view returns (bool) { bytes32 node = keccak256( abi.encodePacked( block.chainid, // keccak256(abi.encode(_account, _maxAmount)) ) ); return MerkleProof.verify(_merkleProofs, phases[_phaseId].configs.merkleRoot, node); } /* Admin */ // verifed function _validateMintingPhase(Configs calldata _configs) internal view { require(_configs.price == 0.088 ether, "Invalid price"); require(_configs.maxPerTxn > 0, "Invalid max per txn"); require(_configs.quantity > _configs.maxPerTxn, "Invalid quantity"); require(_configs.startTime >= block.timestamp, "Invalid start time"); require(_configs.endTime > _configs.startTime, "Invalid end time"); } // verifed function createMintingPhase(Configs calldata _configs) external onlyAllowedExecutor { _validateMintingPhase(_configs); uint32 phaseId = uint32(phases.length); phases.push(); phases[phaseId].configs = _configs; emit PhaseModified(phaseId, _configs); } // verifed function updateMintingPhase(uint32 _phaseId, Configs calldata _configs) external onlyAllowedExecutor { require(_phaseId < phases.length, "Invalid phase id"); _validateMintingPhase(_configs); phases[_phaseId].configs = _configs; phases[_phaseId].version++; emit PhaseModified(_phaseId, _configs); } // verifed function setExecutor(address[] memory _executors, bool _status) external onlyOwner { for (uint256 i = 0; i < _executors.length; i++) { executors[_executors[i]] = _status; } } // verifed function setVerifier(address _verifier) external onlyAllowedExecutor { require(_verifier != address(0), "Invalid verifier"); verifier = _verifier; } function withdraw() public onlyAllowedExecutor { uint256 balance = address(this).balance; (bool success, ) = 0x961E3f37Ce55799E27C1E8CeE24305fccFE7591C.call{ value: balance }(""); require(success, "Transfer failed."); } }
// 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) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: 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 // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": true, "runs": 9999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint32","name":"phaseId","type":"uint32"},{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint32","name":"maxPerTxn","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"}],"indexed":false,"internalType":"struct MittariaPresale.Configs","name":"configs","type":"tuple"}],"name":"PhaseModified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint32","name":"phaseId","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"amount","type":"uint32"}],"name":"Purchased","type":"event"},{"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint32","name":"maxPerTxn","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"}],"internalType":"struct MittariaPresale.Configs","name":"_configs","type":"tuple"}],"name":"createMintingPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"executors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_phaseId","type":"uint32"}],"name":"getPhaseInfo","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint32","name":"maxPerTxn","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"}],"internalType":"struct MittariaPresale.Configs","name":"configs","type":"tuple"},{"internalType":"uint16","name":"version","type":"uint16"},{"internalType":"uint32","name":"totalMinted","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_phaseId","type":"uint32"},{"internalType":"address","name":"_account","type":"address"}],"name":"getTokenMintedByAccount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phases","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint32","name":"maxPerTxn","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"}],"internalType":"struct MittariaPresale.Configs","name":"configs","type":"tuple"},{"internalType":"uint16","name":"version","type":"uint16"},{"internalType":"uint32","name":"totalMinted","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_phaseId","type":"uint32"},{"internalType":"uint32","name":"_amount","type":"uint32"},{"internalType":"uint32","name":"_maxAmount","type":"uint32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_phaseId","type":"uint32"},{"internalType":"uint32","name":"_amount","type":"uint32"},{"internalType":"bytes32[]","name":"_merkleProofs","type":"bytes32[]"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_executors","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"}],"name":"setVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_phaseId","type":"uint32"},{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"uint32","name":"maxPerTxn","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"}],"internalType":"struct MittariaPresale.Configs","name":"_configs","type":"tuple"}],"name":"updateMintingPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600280546001600160a01b031916739f6b54d48ad2175e56a1ba9bfc74cd077213b68d17905534801561003657600080fd5b506100403361006c565b60018080556003805482019055336000908152600460205260409020805460ff191690911790556100bc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61273c806100cb6000396000f3fe6080604052600436106100f75760003560e01c806378aad3311161008a578063de84deef11610059578063de84deef14610369578063e9bd993a14610389578063f2fde38b146103a9578063f5836922146103c957600080fd5b806378aad331146102cb5780638da5cb5b146102eb5780639ac2a01114610316578063a53fa5a61461035657600080fd5b80633ccfd60b116100c65780633ccfd60b146102615780635437988d146102765780636fe98af414610296578063715018a6146102b657600080fd5b806318160ddd14610103578063227446ca146101525780632b7ac3f3146101745780632e37eef6146101c657600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b506002546101389074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b34801561015e57600080fd5b5061017261016d3660046120b5565b6103e9565b005b34801561018057600080fd5b506002546101a19073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610149565b3480156101d257600080fd5b506101e66101e13660046120eb565b61059e565b604080518451815260208086015163ffffffff908116918301919091528583015181169282019290925260608086015183169082015260808086015183169082015260a0948501516fffffffffffffffffffffffffffffffff169481019490945261ffff90921660c08401521660e082015261010001610149565b34801561026d57600080fd5b50610172610663565b34801561028257600080fd5b5061017261029136600461212d565b610796565b3480156102a257600080fd5b506101386102b1366004612148565b6108c1565b3480156102c257600080fd5b50610172610978565b3480156102d757600080fd5b506101726102e6366004612174565b61098c565b3480156102f757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101a1565b34801561032257600080fd5b5061034661033136600461212d565b60046020526000908152604090205460ff1681565b6040519015158152602001610149565b610172610364366004612190565b610a93565b34801561037557600080fd5b506101e6610384366004612238565b610efa565b34801561039557600080fd5b506101726103a4366004612294565b61105e565b3480156103b557600080fd5b506101726103c436600461212d565b6110fd565b3480156103d557600080fd5b506101726103e4366004612389565b61119a565b3360009081526004602052604090205460ff168061041e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61046f5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f7200000000000000000000000060448201526064015b60405180910390fd5b60035463ffffffff8316106104c65760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b6104cf81611665565b8060038363ffffffff16815481106104e9576104e961241e565b60009182526020909120600490910201610503828261246b565b90505060038263ffffffff168154811061051f5761051f61241e565b600091825260208220600260049092020101805461ffff169161054183612576565b91906101000a81548161ffff021916908361ffff160217905550508163ffffffff167f2a2192594b4f619c3a5e155eb7a63a4063cfb52b3dbbf531a244164ff7077dd8826040516105929190612597565b60405180910390a25050565b600381815481106105ae57600080fd5b60009182526020918290206040805160c08101825260049390930290910180548352600181015463ffffffff808216958501959095526401000000008104851692840192909252680100000000000000008204841660608401526c010000000000000000000000008204841660808401527001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff1660a08301526002015490925061ffff811691620100009091041683565b3360009081526004602052604090205460ff1680610698575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6106e45760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b604051479060009073961e3f37ce55799e27c1e8cee24305fccfe7591c9083908381818185875af1925050503d806000811461073c576040519150601f19603f3d011682016040523d82523d6000602084013e610741565b606091505b50509050806107925760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610466565b5050565b3360009081526004602052604090205460ff16806107cb575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6108175760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff811661087a5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207665726966696572000000000000000000000000000000006044820152606401610466565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035460009063ffffffff84161061091b5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b60038363ffffffff16815481106109345761093461241e565b6000918252602080832073ffffffffffffffffffffffffffffffffffffffff861684526003600490930201919091019052604090205463ffffffff16905092915050565b610980611899565b61098a6000611900565b565b3360009081526004602052604090205460ff16806109c1575060005473ffffffffffffffffffffffffffffffffffffffff1633145b610a0d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b610a1681611665565b600380546001810180835560008390529091839163ffffffff8416908110610a4057610a4061241e565b60009182526020909120600490910201610a5a828261246b565b9050508063ffffffff167f2a2192594b4f619c3a5e155eb7a63a4063cfb52b3dbbf531a244164ff7077dd8836040516105929190612597565b33328114610ae35760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420616c6c6f7765640000000000000000000000000000000000000000006044820152606401610466565b600060038763ffffffff1681548110610afe57610afe61241e565b9060005260206000209060040201905060008663ffffffff1611610b645760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610466565b6001810154600282015463ffffffff91821691610b8a918991620100009091041661262a565b63ffffffff161115610bde5760405162461bcd60e51b815260206004820152600f60248201527f457863656564207175616e7469747900000000000000000000000000000000006044820152606401610466565b6001810154426801000000000000000090910463ffffffff161115610c455760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610466565b60018101546c01000000000000000000000000900463ffffffff16421115610caf5760405162461bcd60e51b815260206004820152600560248201527f456e6465640000000000000000000000000000000000000000000000000000006044820152606401610466565b600181015463ffffffff64010000000090910481169087161115610d155760405162461bcd60e51b815260206004820152601260248201527f457863656564206d6178207065722074786e00000000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260038201602052604090205463ffffffff80871691610d529189911661262a565b63ffffffff161115610da65760405162461bcd60e51b815260206004820152601560248201527f457863656564206d6178207065722077616c6c657400000000000000000000006044820152606401610466565b60018101543490610de49063ffffffff89169070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661264e565b6fffffffffffffffffffffffffffffffff1614610e435760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401610466565b610e508783878787611975565b60028181018054889290610e7190849062010000900463ffffffff1661262a565b82546101009290920a63ffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff84166000908152600384016020526040812080548a94509092610ec89185911661262a565b92506101000a81548163ffffffff021916908363ffffffff160217905550610ef1878388611af5565b50505050505050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152600354600090819063ffffffff851610610f885760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b600060038563ffffffff1681548110610fa357610fa361241e565b60009182526020918290206004919091020160028101546040805160c0810182528354815260019093015463ffffffff808216958501959095526401000000008104851691840191909152680100000000000000008104841660608401526c0100000000000000000000000081048416608084015270010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1660a0830152909761ffff8216975062010000909104909116945092505050565b611066611899565b60005b82518110156110f85781600460008584815181106110895761108961241e565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806110f081612682565b915050611069565b505050565b611105611899565b73ffffffffffffffffffffffffffffffffffffffff811661118e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610466565b61119781611900565b50565b6111a2611b9b565b6003805433916001916000919063ffffffff89169081106111c5576111c561241e565b9060005260206000209060040201905060008663ffffffff161161122b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610466565b6001810154600282015463ffffffff91821691611251918991620100009091041661262a565b63ffffffff1611156112a55760405162461bcd60e51b815260206004820152600f60248201527f457863656564207175616e7469747900000000000000000000000000000000006044820152606401610466565b6001810154426801000000000000000090910463ffffffff16111561130c5760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610466565b60018101546c01000000000000000000000000900463ffffffff164211156113765760405162461bcd60e51b815260206004820152600560248201527f456e6465640000000000000000000000000000000000000000000000000000006044820152606401610466565b600181015463ffffffff640100000000909104811690871611156113dc5760405162461bcd60e51b815260206004820152601260248201527f457863656564206d6178207065722074786e00000000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260038201602052604090205463ffffffff808416916114199189911661262a565b63ffffffff16111561146d5760405162461bcd60e51b815260206004820152601560248201527f457863656564206d6178207065722077616c6c657400000000000000000000006044820152606401610466565b61147a8784848888611bf4565b6114c65760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610466565b600281810180548892906114e790849062010000900463ffffffff1661262a565b82546101009290920a63ffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff85166000908152600384016020526040812080548a9450909261153e9185911661262a565b92506101000a81548163ffffffff021916908363ffffffff16021790555060008373ffffffffffffffffffffffffffffffffffffffff168763ffffffff168360000160010160109054906101000a90046fffffffffffffffffffffffffffffffff166115aa919061264e565b6fffffffffffffffffffffffffffffffff1660405160006040518083038185875af1925050503d80600081146115fc576040519150601f19603f3d011682016040523d82523d6000602084013e611601565b606091505b50509050806116525760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610466565b5050505061165f60018055565b50505050565b61167560c0820160a083016126ba565b6fffffffffffffffffffffffffffffffff16670138a388a43c0000146116dd5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401610466565b60006116ef6060830160408401612238565b63ffffffff16116117425760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964206d6178207065722074786e000000000000000000000000006044820152606401610466565b6117526060820160408301612238565b63ffffffff166117686040830160208401612238565b63ffffffff16116117bb5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207175616e74697479000000000000000000000000000000006044820152606401610466565b426117cc6080830160608401612238565b63ffffffff1610156118205760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073746172742074696d6500000000000000000000000000006044820152606401610466565b6118306080820160608301612238565b63ffffffff1661184660a0830160808401612238565b63ffffffff16116111975760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420656e642074696d65000000000000000000000000000000006044820152606401610466565b60005473ffffffffffffffffffffffffffffffffffffffff16331461098a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610466565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600046308760038963ffffffff16815481106119935761199361241e565b600091825260209182902060049190910201600201546040805173ffffffffffffffffffffffffffffffffffffffff9586169381019390935263ffffffff9384169083015261ffff1660608201529188166080830152861660a082015260c00160405160208183030381529060405280519060200120604051602001611a23929190918252602082015260400190565b6040516020818303038152906040528051906020012090506000611a8884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a829250869150611cee9050565b90611d41565b60025490915073ffffffffffffffffffffffffffffffffffffffff808316911614610ef15760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610466565b80600260148282829054906101000a900463ffffffff16611b16919061262a565b92506101000a81548163ffffffff021916908363ffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f47163f482d798c6666843c5b59b189f6a7fb2c50e6cc6920474ff0ac464d634a8483604051611b8e92919063ffffffff92831681529116602082015260400190565b60405180910390a2505050565b600260015403611bed5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610466565b6002600155565b600080468686604051602001611c3292919073ffffffffffffffffffffffffffffffffffffffff92909216825263ffffffff16602082015260400190565b60405160208183030381529060405280519060200120604051602001611c62929190918252602082015260400190565b604051602081830303815290604052805190602001209050611ce3848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506003805490925063ffffffff8c1691508110611ccc57611ccc61241e565b600091825260209091206004909102015483611d65565b979650505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000611d508585611d7b565b91509150611d5d81611dc0565b509392505050565b600082611d728584611f25565b14949350505050565b6000808251604103611db15760208301516040840151606085015160001a611da587828585611f6a565b94509450505050611db9565b506000905060025b9250929050565b6000816004811115611dd457611dd46126d7565b03611ddc5750565b6001816004811115611df057611df06126d7565b03611e3d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610466565b6002816004811115611e5157611e516126d7565b03611e9e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610466565b6003816004811115611eb257611eb26126d7565b036111975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610466565b600081815b8451811015611d5d57611f5682868381518110611f4957611f4961241e565b6020026020010151612059565b915080611f6281612682565b915050611f2a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fa15750600090506003612050565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611ff5573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661204957600060019250925050612050565b9150600090505b94509492505050565b6000818310612075576000828152602084905260409020612084565b60008381526020839052604090205b9392505050565b63ffffffff8116811461119757600080fd5b600060c082840312156120af57600080fd5b50919050565b60008060e083850312156120c857600080fd5b82356120d38161208b565b91506120e2846020850161209d565b90509250929050565b6000602082840312156120fd57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461212857600080fd5b919050565b60006020828403121561213f57600080fd5b61208482612104565b6000806040838503121561215b57600080fd5b82356121668161208b565b91506120e260208401612104565b600060c0828403121561218657600080fd5b612084838361209d565b6000806000806000608086880312156121a857600080fd5b85356121b38161208b565b945060208601356121c38161208b565b935060408601356121d38161208b565b9250606086013567ffffffffffffffff808211156121f057600080fd5b818801915088601f83011261220457600080fd5b81358181111561221357600080fd5b89602082850101111561222557600080fd5b9699959850939650602001949392505050565b60006020828403121561224a57600080fd5b81356120848161208b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8035801515811461212857600080fd5b600080604083850312156122a757600080fd5b823567ffffffffffffffff808211156122bf57600080fd5b818501915085601f8301126122d357600080fd5b81356020828211156122e7576122e7612255565b8160051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110868211171561232a5761232a612255565b60405292835281830193508481018201928984111561234857600080fd5b948201945b8386101561236d5761235e86612104565b8552948201949382019361234d565b965061237c9050878201612284565b9450505050509250929050565b6000806000806060858703121561239f57600080fd5b84356123aa8161208b565b935060208501356123ba8161208b565b9250604085013567ffffffffffffffff808211156123d757600080fd5b818701915087601f8301126123eb57600080fd5b8135818111156123fa57600080fd5b8860208260051b850101111561240f57600080fd5b95989497505060200194505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6fffffffffffffffffffffffffffffffff8116811461119757600080fd5b813581556001810160208301356124818161208b565b815460408501356124918161208b565b606086013561249f8161208b565b60808701356124ad8161208b565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000060a08901356124dc8161244d565b818160801b166fffffffffffffffffffffffffffffffff63ffffffff89168489161767ffffffff000000008860201b1617166bffffffff00000000000000008660401b16176fffffffff0000000000000000000000008560601b161717885550505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061ffff80831681810361258d5761258d612547565b6001019392505050565b8135815260c0810160208301356125ad8161208b565b63ffffffff90811660208401526040840135906125c98261208b565b90811660408401526060840135906125e08261208b565b90811660608401526080840135906125f78261208b565b16608083015260a083013561260b8161244d565b6fffffffffffffffffffffffffffffffff811660a08401525092915050565b63ffffffff81811683821601908082111561264757612647612547565b5092915050565b6fffffffffffffffffffffffffffffffff81811683821602808216919082811461267a5761267a612547565b505092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036126b3576126b3612547565b5060010190565b6000602082840312156126cc57600080fd5b81356120848161244d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220616248f4bb518923b9dcdd09ca8a85d32c830f39184f6661dbb11c46ebbe8a6364736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100f75760003560e01c806378aad3311161008a578063de84deef11610059578063de84deef14610369578063e9bd993a14610389578063f2fde38b146103a9578063f5836922146103c957600080fd5b806378aad331146102cb5780638da5cb5b146102eb5780639ac2a01114610316578063a53fa5a61461035657600080fd5b80633ccfd60b116100c65780633ccfd60b146102615780635437988d146102765780636fe98af414610296578063715018a6146102b657600080fd5b806318160ddd14610103578063227446ca146101525780632b7ac3f3146101745780632e37eef6146101c657600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b506002546101389074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b34801561015e57600080fd5b5061017261016d3660046120b5565b6103e9565b005b34801561018057600080fd5b506002546101a19073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610149565b3480156101d257600080fd5b506101e66101e13660046120eb565b61059e565b604080518451815260208086015163ffffffff908116918301919091528583015181169282019290925260608086015183169082015260808086015183169082015260a0948501516fffffffffffffffffffffffffffffffff169481019490945261ffff90921660c08401521660e082015261010001610149565b34801561026d57600080fd5b50610172610663565b34801561028257600080fd5b5061017261029136600461212d565b610796565b3480156102a257600080fd5b506101386102b1366004612148565b6108c1565b3480156102c257600080fd5b50610172610978565b3480156102d757600080fd5b506101726102e6366004612174565b61098c565b3480156102f757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101a1565b34801561032257600080fd5b5061034661033136600461212d565b60046020526000908152604090205460ff1681565b6040519015158152602001610149565b610172610364366004612190565b610a93565b34801561037557600080fd5b506101e6610384366004612238565b610efa565b34801561039557600080fd5b506101726103a4366004612294565b61105e565b3480156103b557600080fd5b506101726103c436600461212d565b6110fd565b3480156103d557600080fd5b506101726103e4366004612389565b61119a565b3360009081526004602052604090205460ff168061041e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61046f5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f7200000000000000000000000060448201526064015b60405180910390fd5b60035463ffffffff8316106104c65760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b6104cf81611665565b8060038363ffffffff16815481106104e9576104e961241e565b60009182526020909120600490910201610503828261246b565b90505060038263ffffffff168154811061051f5761051f61241e565b600091825260208220600260049092020101805461ffff169161054183612576565b91906101000a81548161ffff021916908361ffff160217905550508163ffffffff167f2a2192594b4f619c3a5e155eb7a63a4063cfb52b3dbbf531a244164ff7077dd8826040516105929190612597565b60405180910390a25050565b600381815481106105ae57600080fd5b60009182526020918290206040805160c08101825260049390930290910180548352600181015463ffffffff808216958501959095526401000000008104851692840192909252680100000000000000008204841660608401526c010000000000000000000000008204841660808401527001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff1660a08301526002015490925061ffff811691620100009091041683565b3360009081526004602052604090205460ff1680610698575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6106e45760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b604051479060009073961e3f37ce55799e27c1e8cee24305fccfe7591c9083908381818185875af1925050503d806000811461073c576040519150601f19603f3d011682016040523d82523d6000602084013e610741565b606091505b50509050806107925760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610466565b5050565b3360009081526004602052604090205460ff16806107cb575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6108175760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff811661087a5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207665726966696572000000000000000000000000000000006044820152606401610466565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035460009063ffffffff84161061091b5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b60038363ffffffff16815481106109345761093461241e565b6000918252602080832073ffffffffffffffffffffffffffffffffffffffff861684526003600490930201919091019052604090205463ffffffff16905092915050565b610980611899565b61098a6000611900565b565b3360009081526004602052604090205460ff16806109c1575060005473ffffffffffffffffffffffffffffffffffffffff1633145b610a0d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420616c6c6f776564206f70657261746f720000000000000000000000006044820152606401610466565b610a1681611665565b600380546001810180835560008390529091839163ffffffff8416908110610a4057610a4061241e565b60009182526020909120600490910201610a5a828261246b565b9050508063ffffffff167f2a2192594b4f619c3a5e155eb7a63a4063cfb52b3dbbf531a244164ff7077dd8836040516105929190612597565b33328114610ae35760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420616c6c6f7765640000000000000000000000000000000000000000006044820152606401610466565b600060038763ffffffff1681548110610afe57610afe61241e565b9060005260206000209060040201905060008663ffffffff1611610b645760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610466565b6001810154600282015463ffffffff91821691610b8a918991620100009091041661262a565b63ffffffff161115610bde5760405162461bcd60e51b815260206004820152600f60248201527f457863656564207175616e7469747900000000000000000000000000000000006044820152606401610466565b6001810154426801000000000000000090910463ffffffff161115610c455760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610466565b60018101546c01000000000000000000000000900463ffffffff16421115610caf5760405162461bcd60e51b815260206004820152600560248201527f456e6465640000000000000000000000000000000000000000000000000000006044820152606401610466565b600181015463ffffffff64010000000090910481169087161115610d155760405162461bcd60e51b815260206004820152601260248201527f457863656564206d6178207065722074786e00000000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260038201602052604090205463ffffffff80871691610d529189911661262a565b63ffffffff161115610da65760405162461bcd60e51b815260206004820152601560248201527f457863656564206d6178207065722077616c6c657400000000000000000000006044820152606401610466565b60018101543490610de49063ffffffff89169070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661264e565b6fffffffffffffffffffffffffffffffff1614610e435760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401610466565b610e508783878787611975565b60028181018054889290610e7190849062010000900463ffffffff1661262a565b82546101009290920a63ffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff84166000908152600384016020526040812080548a94509092610ec89185911661262a565b92506101000a81548163ffffffff021916908363ffffffff160217905550610ef1878388611af5565b50505050505050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152600354600090819063ffffffff851610610f885760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207068617365206964000000000000000000000000000000006044820152606401610466565b600060038563ffffffff1681548110610fa357610fa361241e565b60009182526020918290206004919091020160028101546040805160c0810182528354815260019093015463ffffffff808216958501959095526401000000008104851691840191909152680100000000000000008104841660608401526c0100000000000000000000000081048416608084015270010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1660a0830152909761ffff8216975062010000909104909116945092505050565b611066611899565b60005b82518110156110f85781600460008584815181106110895761108961241e565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806110f081612682565b915050611069565b505050565b611105611899565b73ffffffffffffffffffffffffffffffffffffffff811661118e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610466565b61119781611900565b50565b6111a2611b9b565b6003805433916001916000919063ffffffff89169081106111c5576111c561241e565b9060005260206000209060040201905060008663ffffffff161161122b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610466565b6001810154600282015463ffffffff91821691611251918991620100009091041661262a565b63ffffffff1611156112a55760405162461bcd60e51b815260206004820152600f60248201527f457863656564207175616e7469747900000000000000000000000000000000006044820152606401610466565b6001810154426801000000000000000090910463ffffffff16111561130c5760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610466565b60018101546c01000000000000000000000000900463ffffffff164211156113765760405162461bcd60e51b815260206004820152600560248201527f456e6465640000000000000000000000000000000000000000000000000000006044820152606401610466565b600181015463ffffffff640100000000909104811690871611156113dc5760405162461bcd60e51b815260206004820152601260248201527f457863656564206d6178207065722074786e00000000000000000000000000006044820152606401610466565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260038201602052604090205463ffffffff808416916114199189911661262a565b63ffffffff16111561146d5760405162461bcd60e51b815260206004820152601560248201527f457863656564206d6178207065722077616c6c657400000000000000000000006044820152606401610466565b61147a8784848888611bf4565b6114c65760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610466565b600281810180548892906114e790849062010000900463ffffffff1661262a565b82546101009290920a63ffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff85166000908152600384016020526040812080548a9450909261153e9185911661262a565b92506101000a81548163ffffffff021916908363ffffffff16021790555060008373ffffffffffffffffffffffffffffffffffffffff168763ffffffff168360000160010160109054906101000a90046fffffffffffffffffffffffffffffffff166115aa919061264e565b6fffffffffffffffffffffffffffffffff1660405160006040518083038185875af1925050503d80600081146115fc576040519150601f19603f3d011682016040523d82523d6000602084013e611601565b606091505b50509050806116525760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610466565b5050505061165f60018055565b50505050565b61167560c0820160a083016126ba565b6fffffffffffffffffffffffffffffffff16670138a388a43c0000146116dd5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401610466565b60006116ef6060830160408401612238565b63ffffffff16116117425760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964206d6178207065722074786e000000000000000000000000006044820152606401610466565b6117526060820160408301612238565b63ffffffff166117686040830160208401612238565b63ffffffff16116117bb5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964207175616e74697479000000000000000000000000000000006044820152606401610466565b426117cc6080830160608401612238565b63ffffffff1610156118205760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073746172742074696d6500000000000000000000000000006044820152606401610466565b6118306080820160608301612238565b63ffffffff1661184660a0830160808401612238565b63ffffffff16116111975760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420656e642074696d65000000000000000000000000000000006044820152606401610466565b60005473ffffffffffffffffffffffffffffffffffffffff16331461098a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610466565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600046308760038963ffffffff16815481106119935761199361241e565b600091825260209182902060049190910201600201546040805173ffffffffffffffffffffffffffffffffffffffff9586169381019390935263ffffffff9384169083015261ffff1660608201529188166080830152861660a082015260c00160405160208183030381529060405280519060200120604051602001611a23929190918252602082015260400190565b6040516020818303038152906040528051906020012090506000611a8884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a829250869150611cee9050565b90611d41565b60025490915073ffffffffffffffffffffffffffffffffffffffff808316911614610ef15760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610466565b80600260148282829054906101000a900463ffffffff16611b16919061262a565b92506101000a81548163ffffffff021916908363ffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f47163f482d798c6666843c5b59b189f6a7fb2c50e6cc6920474ff0ac464d634a8483604051611b8e92919063ffffffff92831681529116602082015260400190565b60405180910390a2505050565b600260015403611bed5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610466565b6002600155565b600080468686604051602001611c3292919073ffffffffffffffffffffffffffffffffffffffff92909216825263ffffffff16602082015260400190565b60405160208183030381529060405280519060200120604051602001611c62929190918252602082015260400190565b604051602081830303815290604052805190602001209050611ce3848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506003805490925063ffffffff8c1691508110611ccc57611ccc61241e565b600091825260209091206004909102015483611d65565b979650505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000611d508585611d7b565b91509150611d5d81611dc0565b509392505050565b600082611d728584611f25565b14949350505050565b6000808251604103611db15760208301516040840151606085015160001a611da587828585611f6a565b94509450505050611db9565b506000905060025b9250929050565b6000816004811115611dd457611dd46126d7565b03611ddc5750565b6001816004811115611df057611df06126d7565b03611e3d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610466565b6002816004811115611e5157611e516126d7565b03611e9e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610466565b6003816004811115611eb257611eb26126d7565b036111975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610466565b600081815b8451811015611d5d57611f5682868381518110611f4957611f4961241e565b6020026020010151612059565b915080611f6281612682565b915050611f2a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fa15750600090506003612050565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611ff5573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661204957600060019250925050612050565b9150600090505b94509492505050565b6000818310612075576000828152602084905260409020612084565b60008381526020839052604090205b9392505050565b63ffffffff8116811461119757600080fd5b600060c082840312156120af57600080fd5b50919050565b60008060e083850312156120c857600080fd5b82356120d38161208b565b91506120e2846020850161209d565b90509250929050565b6000602082840312156120fd57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461212857600080fd5b919050565b60006020828403121561213f57600080fd5b61208482612104565b6000806040838503121561215b57600080fd5b82356121668161208b565b91506120e260208401612104565b600060c0828403121561218657600080fd5b612084838361209d565b6000806000806000608086880312156121a857600080fd5b85356121b38161208b565b945060208601356121c38161208b565b935060408601356121d38161208b565b9250606086013567ffffffffffffffff808211156121f057600080fd5b818801915088601f83011261220457600080fd5b81358181111561221357600080fd5b89602082850101111561222557600080fd5b9699959850939650602001949392505050565b60006020828403121561224a57600080fd5b81356120848161208b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8035801515811461212857600080fd5b600080604083850312156122a757600080fd5b823567ffffffffffffffff808211156122bf57600080fd5b818501915085601f8301126122d357600080fd5b81356020828211156122e7576122e7612255565b8160051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110868211171561232a5761232a612255565b60405292835281830193508481018201928984111561234857600080fd5b948201945b8386101561236d5761235e86612104565b8552948201949382019361234d565b965061237c9050878201612284565b9450505050509250929050565b6000806000806060858703121561239f57600080fd5b84356123aa8161208b565b935060208501356123ba8161208b565b9250604085013567ffffffffffffffff808211156123d757600080fd5b818701915087601f8301126123eb57600080fd5b8135818111156123fa57600080fd5b8860208260051b850101111561240f57600080fd5b95989497505060200194505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6fffffffffffffffffffffffffffffffff8116811461119757600080fd5b813581556001810160208301356124818161208b565b815460408501356124918161208b565b606086013561249f8161208b565b60808701356124ad8161208b565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000060a08901356124dc8161244d565b818160801b166fffffffffffffffffffffffffffffffff63ffffffff89168489161767ffffffff000000008860201b1617166bffffffff00000000000000008660401b16176fffffffff0000000000000000000000008560601b161717885550505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061ffff80831681810361258d5761258d612547565b6001019392505050565b8135815260c0810160208301356125ad8161208b565b63ffffffff90811660208401526040840135906125c98261208b565b90811660408401526060840135906125e08261208b565b90811660608401526080840135906125f78261208b565b16608083015260a083013561260b8161244d565b6fffffffffffffffffffffffffffffffff811660a08401525092915050565b63ffffffff81811683821601908082111561264757612647612547565b5092915050565b6fffffffffffffffffffffffffffffffff81811683821602808216919082811461267a5761267a612547565b505092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036126b3576126b3612547565b5060010190565b6000602082840312156126cc57600080fd5b81356120848161244d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220616248f4bb518923b9dcdd09ca8a85d32c830f39184f6661dbb11c46ebbe8a6364736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 25 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,105.25 | 1.936 | $6,011.76 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.