Polygon Sponsored slots available. Book your slot here!
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 234,575 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Asset | 70589036 | 34 hrs ago | IN | 0 POL | 0.00330102 | ||||
Claim Asset | 70582821 | 38 hrs ago | IN | 0 POL | 0.00359237 | ||||
Claim Asset | 70553959 | 2 days ago | IN | 0 POL | 0.00330042 | ||||
Claim Asset | 70553521 | 2 days ago | IN | 0 POL | 0.00330006 | ||||
Claim Asset | 70552402 | 2 days ago | IN | 0 POL | 0.00347061 | ||||
Claim Asset | 70515836 | 3 days ago | IN | 0 POL | 0.00344016 | ||||
Claim Asset | 70515711 | 3 days ago | IN | 0 POL | 0.00330042 | ||||
Claim Asset | 70509077 | 3 days ago | IN | 0 POL | 0.00329868 | ||||
Extract Claimabl... | 70498111 | 3 days ago | IN | 0 POL | 0.00191478 | ||||
Claim Asset | 70348862 | 7 days ago | IN | 0 POL | 0.0039152 | ||||
Claim Asset | 70348840 | 7 days ago | IN | 0 POL | 0.0034407 | ||||
Claim Asset | 70348734 | 7 days ago | IN | 0 POL | 0.00379072 | ||||
Claim Asset | 70348640 | 7 days ago | IN | 0 POL | 0.00434989 | ||||
Claim Asset | 70307973 | 8 days ago | IN | 0 POL | 0.003441 | ||||
Claim Asset | 70307948 | 8 days ago | IN | 0 POL | 0.00344016 | ||||
Claim Asset | 70307930 | 8 days ago | IN | 0 POL | 0.00347031 | ||||
Claim Asset | 70307912 | 8 days ago | IN | 0 POL | 0.00346971 | ||||
Claim Asset | 70307907 | 8 days ago | IN | 0 POL | 0.00346929 | ||||
Claim Asset | 70307902 | 8 days ago | IN | 0 POL | 0.00347007 | ||||
Claim Asset | 70307893 | 8 days ago | IN | 0 POL | 0.00369176 | ||||
Claim Asset | 70307854 | 8 days ago | IN | 0 POL | 0.00347001 | ||||
Claim Asset | 70307806 | 8 days ago | IN | 0 POL | 0.00347007 | ||||
Claim Asset | 70307796 | 8 days ago | IN | 0 POL | 0.00347007 | ||||
Claim Asset | 70307791 | 8 days ago | IN | 0 POL | 0.00346959 | ||||
Claim Asset | 70307769 | 8 days ago | IN | 0 POL | 0.00347007 |
Loading...
Loading
Contract Name:
ClaimableNftVault
Compiler Version
v0.8.19+commit.7dd6d404
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.19; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {ERC1155Holder} from "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import {IErrorsAndEvents} from "./IErrorsAndEvents.sol"; import {Claim} from "./Structs.sol"; /** * @title ClaimableNftVault * @custom:version 1.0 */ contract ClaimableNftVault is Pausable, ERC1155Holder, Ownable, ReentrancyGuard, IErrorsAndEvents { mapping(bytes => Claim) public claims; /// ===== ERC1155 Hooks ===== function onERC1155Received( address operator, address, uint256 tokenId, uint256 value, bytes memory data ) public override whenNotPaused returns (bytes4) { bytes memory claimKey = getClaimKey(operator, msg.sender, tokenId); Claim storage claim = claims[claimKey]; require(data.length == 32, "missing merkle root"); if (claim.admin == address(0x0)) { claim.admin = operator; claim.supply = value; } else { claim.supply += value; } claim.merkleRoot = bytes32(data); emit ClaimableVaultAssetDeposited(claim.admin, msg.sender, tokenId, claim.supply, claim.merkleRoot); return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public pure override returns (bytes4) { revert("batch transfer unsupported"); } /// ===== Core ===== function extractClaimableAsset(bytes calldata claimKey) external nonReentrant { Claim storage claim = claims[claimKey]; _validateClaimAdmin(claim.admin); (address _claimAdmin, address _tokenAddress, uint256 _tokenId) = unpackClaimKey(claimKey); uint256 supply = claim.supply; if (supply == 0) { revert InsufficientSupply(); } claim.supply = 0; IERC1155(_tokenAddress).safeTransferFrom(address(this), _claimAdmin, _tokenId, supply, ""); emit ClaimableVaultAssetDepleted(_claimAdmin, _tokenAddress, _tokenId); } function claimAsset( bytes calldata claimKey, uint256 amount, bytes32[] calldata proof ) external nonReentrant whenNotPaused { if (amount == 0) { revert InvalidClaimAmount(); } Claim storage claim = claims[claimKey]; if (claim.admin == address(0x0)) { revert InvalidClaimKey(); } if (claim.supply < amount) { revert InsufficientSupply(); } mapping(address => bool) storage claimers = claim.claimers; if (claimers[msg.sender]) { revert CallerHasAlreadyClaimed(); } (address _claimAdmin, address _tokenAddress, uint256 _tokenId) = unpackClaimKey(claimKey); _validateMerkleProof(_tokenAddress, amount, claim.merkleRoot, proof); claimers[msg.sender] = true; unchecked { claim.supply -= amount; } IERC1155(_tokenAddress).safeTransferFrom(address(this), msg.sender, _tokenId, amount, ""); emit ClaimableVaultAssetClaimed(_claimAdmin, _tokenAddress, _tokenId, msg.sender, amount); if (claim.supply == 0) { emit ClaimableVaultAssetDepleted(_claimAdmin, _tokenAddress, _tokenId); } } function setClaimRoot(bytes calldata claimKey, bytes32 root) external whenNotPaused { Claim storage claim = claims[claimKey]; _validateClaimAdmin(claim.admin); claim.merkleRoot = root; (address _claimAdmin, address _tokenAddress, uint256 _tokenId) = unpackClaimKey(claimKey); emit ClaimableVaultAssetMerkleRootUpdated(_claimAdmin, _tokenAddress, _tokenId, root); } /// ===== Read ===== function getClaimKey( address claimAdmin, address contractAddress, uint256 tokenId ) public pure returns (bytes memory) { return abi.encode(claimAdmin, contractAddress, tokenId); } function unpackClaimKey( bytes calldata claimKey ) public pure returns (address claimAdmin, address contractAddress, uint256 tokenId) { return abi.decode(claimKey, (address, address, uint256)); } /// ===== Owner ===== function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function renounceOwnership() public view override onlyOwner { revert("Ownership cannot be renounced"); } /// ===== Internal ===== function _validateClaimAdmin(address claimAdmin) internal view { if (msg.sender != claimAdmin) { revert InvalidClaimAdmin(); } } function _validateMerkleProof( address tokenAddress, uint256 amount, bytes32 root, bytes32[] calldata proof ) internal view { bool isValidProof = MerkleProof.verify( proof, root, keccak256(abi.encodePacked(tokenAddress, msg.sender, amount)) ); if (!isValidProof) { revert InvalidClaimProof(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (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 rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { 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 rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { 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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IErrorsAndEvents { /** * @dev Revert with an error when the claim key does not exist. */ error InvalidClaimKey(); /** * @dev Revert with an error when the claim proof is invalid. */ error InvalidClaimProof(); /** * @dev Revert with an error when the caller submits a zero claim amount. */ error InvalidClaimAmount(); /** * @dev Revert with an error when the caller is not the claim admin. */ error InvalidClaimAdmin(); /** * @dev Revert with an error when the caller attempts to claim more than once. */ error CallerHasAlreadyClaimed(); /** * @dev Revert with an error when there isn't enough remaining balance in the vault. */ error InsufficientSupply(); event ClaimableVaultAssetDeposited( address indexed claimAdmin, address tokenAddress, uint256 tokenId, uint256 tokenSupply, bytes32 merkleRoot ); event ClaimableVaultAssetDepleted(address indexed claimAdmin, address tokenAddress, uint256 tokenId); event ClaimableVaultAssetClaimed( address indexed claimAdmin, address tokenAddress, uint256 tokenId, address claimer, uint256 amount ); event ClaimableVaultAssetMerkleRootUpdated( address indexed claimAdmin, address tokenAddress, uint256 tokenId, bytes32 merkleRoot ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; struct Claim { address admin; uint256 supply; bytes32 merkleRoot; mapping(address => bool) claimers; }
{ "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
Contract ABI
API[{"inputs":[],"name":"CallerHasAlreadyClaimed","type":"error"},{"inputs":[],"name":"InsufficientSupply","type":"error"},{"inputs":[],"name":"InvalidClaimAdmin","type":"error"},{"inputs":[],"name":"InvalidClaimAmount","type":"error"},{"inputs":[],"name":"InvalidClaimKey","type":"error"},{"inputs":[],"name":"InvalidClaimProof","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimableVaultAssetClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ClaimableVaultAssetDepleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenSupply","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"ClaimableVaultAssetDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"ClaimableVaultAssetMerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"bytes","name":"claimKey","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"claims","outputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"claimKey","type":"bytes"}],"name":"extractClaimableAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"claimAdmin","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClaimKey","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"claimKey","type":"bytes"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setClaimRoot","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"claimKey","type":"bytes"}],"name":"unpackClaimKey","outputs":[{"internalType":"address","name":"claimAdmin","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060008060006101000a81548160ff02191690831515021790555061004761003c61005360201b60201c565b61005b60201b60201c565b60018081905550610120565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6123ff80620001306000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063b2e8665711610066578063b2e8665714610250578063bc197c811461026c578063f23a6e611461029c578063f2fde38b146102cc576100f5565b8063715018a6146101ee5780638456cb59146101f85780638da5cb5b1461020257806399dfd9e614610220576100f5565b80633f4ba83a116100d35780633f4ba83a14610162578063564187941461016c5780635b72a0551461019e5780635c975abb146101d0576100f5565b806301ffc9a7146100fa57806313409a811461012a5780631c5d0efd14610146575b600080fd5b610114600480360381019061010f91906112e8565b6102e8565b6040516101219190611330565b60405180910390f35b610144600480360381019061013f91906113e6565b610362565b005b610160600480360381019061015b91906114d2565b610434565b005b61016a6107ba565b005b610186600480360381019061018191906116a8565b6107cc565b60405161019593929190611750565b60405180910390f35b6101b860048036038101906101b39190611787565b61082c565b6040516101c7939291906117d4565b60405180910390f35b6101d861084d565b6040516101e59190611330565b60405180910390f35b6101f6610863565b005b6102006108a6565b005b61020a6108b8565b604051610217919061180b565b60405180910390f35b61023a60048036038101906102359190611852565b6108e1565b6040516102479190611924565b60405180910390f35b61026a60048036038101906102659190611787565b610910565b005b61028660048036038101906102819190611a09565b610a9d565b6040516102939190611ae7565b60405180910390f35b6102b660048036038101906102b19190611b02565b610ada565b6040516102c39190611ae7565b60405180910390f35b6102e660048036038101906102e19190611b99565b610cc5565b005b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061035b575061035a82610d48565b5b9050919050565b61036a610db2565b60006002848460405161037e929190611bf6565b908152602001604051809103902090506103bb8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610dfc565b81816002018190555060008060006103d3878761082c565b9250925092508273ffffffffffffffffffffffffffffffffffffffff167f75badb0d4edd2a1ca1861a3aa0e4f0be445facf61efb3af6d8442d8a7689a2ce83838860405161042393929190611750565b60405180910390a250505050505050565b61043c610e64565b610444610db2565b6000830361047e576040517f843ce46b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028686604051610492929190611bf6565b90815260200160405180910390209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361052c576040517f33cc058900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838160010154101561056a576040517f33aa101c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160030190508060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156105f5576040517f7f39a9b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060006106048a8a61082c565b92509250925061061b828987600201548a8a610eb3565b60018460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508785600101600082825403925050819055508173ffffffffffffffffffffffffffffffffffffffff1663f242432a3033848c6040518563ffffffff1660e01b81526004016106c39493929190611c35565b600060405180830381600087803b1580156106dd57600080fd5b505af11580156106f1573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f0e86cd298c59788640d8a5b8189452b9190ab3d29fe5fa5b39a602acdde3fa948383338c6040516107419493929190611c8d565b60405180910390a260008560010154036107a6578273ffffffffffffffffffffffffffffffffffffffff167fe61a5047ef4cb995731bb99929abac883a9ee67c03644fd90c3ae45d9a58f888838360405161079d929190611cd2565b60405180910390a25b50505050506107b3610f6c565b5050505050565b6107c2610f75565b6107ca610ff3565b565b6002818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600080600084848101906108409190611d39565b9250925092509250925092565b60008060009054906101000a900460ff16905090565b61086b610f75565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089d90611de9565b60405180910390fd5b6108ae610f75565b6108b6611055565b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608383836040516020016108f8939291906117d4565b60405160208183030381529060405290509392505050565b610918610e64565b60006002838360405161092c929190611bf6565b908152602001604051809103902090506109698160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610dfc565b6000806000610978868661082c565b925092509250600084600101549050600081036109c1576040517f33aa101c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085600101819055508273ffffffffffffffffffffffffffffffffffffffff1663f242432a308685856040518563ffffffff1660e01b8152600401610a0a9493929190611c35565b600060405180830381600087803b158015610a2457600080fd5b505af1158015610a38573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff167fe61a5047ef4cb995731bb99929abac883a9ee67c03644fd90c3ae45d9a58f8888484604051610a84929190611cd2565b60405180910390a25050505050610a99610f6c565b5050565b60006040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad190611e55565b60405180910390fd5b6000610ae4610db2565b6000610af18733876108e1565b90506000600282604051610b059190611ea6565b908152602001604051809103902090506020845114610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5090611f09565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610c0257878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550848160010181905550610c1e565b84816001016000828254610c169190611f58565b925050819055505b83610c2890611fbe565b81600201819055508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff6477d0bfccf4d753a3a1507d194b474bc9e9529537f3eeaa973e1f345a837e9338884600101548560020154604051610ca89493929190612025565b60405180910390a263f23a6e6160e01b9250505095945050505050565b610ccd610f75565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d33906120dc565b60405180910390fd5b610d45816110b7565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610dba61084d565b15610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190612148565b60405180910390fd5b565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e61576040517f7443b0f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b600260015403610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906121b4565b60405180910390fd5b6002600181905550565b6000610f2b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085883389604051602001610f109392919061223d565b6040516020818303038152906040528051906020012061117c565b905080610f64576040517f69ca16c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b60018081905550565b610f7d611193565b73ffffffffffffffffffffffffffffffffffffffff16610f9b6108b8565b73ffffffffffffffffffffffffffffffffffffffff1614610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe8906122c6565b60405180910390fd5b565b610ffb61119b565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61103e611193565b60405161104b919061180b565b60405180910390a1565b61105d610db2565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110a0611193565b6040516110ad919061180b565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008261118985846111e4565b1490509392505050565b600033905090565b6111a361084d565b6111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612332565b60405180910390fd5b565b60008082905060005b845181101561122f5761121a8286838151811061120d5761120c612352565b5b602002602001015161123a565b9150808061122790612381565b9150506111ed565b508091505092915050565b60008183106112525761124d8284611265565b61125d565b61125c8383611265565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6112c581611290565b81146112d057600080fd5b50565b6000813590506112e2816112bc565b92915050565b6000602082840312156112fe576112fd611286565b5b600061130c848285016112d3565b91505092915050565b60008115159050919050565b61132a81611315565b82525050565b60006020820190506113456000830184611321565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126113705761136f61134b565b5b8235905067ffffffffffffffff81111561138d5761138c611350565b5b6020830191508360018202830111156113a9576113a8611355565b5b9250929050565b6000819050919050565b6113c3816113b0565b81146113ce57600080fd5b50565b6000813590506113e0816113ba565b92915050565b6000806000604084860312156113ff576113fe611286565b5b600084013567ffffffffffffffff81111561141d5761141c61128b565b5b6114298682870161135a565b9350935050602061143c868287016113d1565b9150509250925092565b6000819050919050565b61145981611446565b811461146457600080fd5b50565b60008135905061147681611450565b92915050565b60008083601f8401126114925761149161134b565b5b8235905067ffffffffffffffff8111156114af576114ae611350565b5b6020830191508360208202830111156114cb576114ca611355565b5b9250929050565b6000806000806000606086880312156114ee576114ed611286565b5b600086013567ffffffffffffffff81111561150c5761150b61128b565b5b6115188882890161135a565b9550955050602061152b88828901611467565b935050604086013567ffffffffffffffff81111561154c5761154b61128b565b5b6115588882890161147c565b92509250509295509295909350565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115b58261156c565b810181811067ffffffffffffffff821117156115d4576115d361157d565b5b80604052505050565b60006115e761127c565b90506115f382826115ac565b919050565b600067ffffffffffffffff8211156116135761161261157d565b5b61161c8261156c565b9050602081019050919050565b82818337600083830152505050565b600061164b611646846115f8565b6115dd565b90508281526020810184848401111561166757611666611567565b5b611672848285611629565b509392505050565b600082601f83011261168f5761168e61134b565b5b813561169f848260208601611638565b91505092915050565b6000602082840312156116be576116bd611286565b5b600082013567ffffffffffffffff8111156116dc576116db61128b565b5b6116e88482850161167a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061171c826116f1565b9050919050565b61172c81611711565b82525050565b61173b81611446565b82525050565b61174a816113b0565b82525050565b60006060820190506117656000830186611723565b6117726020830185611732565b61177f6040830184611741565b949350505050565b6000806020838503121561179e5761179d611286565b5b600083013567ffffffffffffffff8111156117bc576117bb61128b565b5b6117c88582860161135a565b92509250509250929050565b60006060820190506117e96000830186611723565b6117f66020830185611723565b6118036040830184611732565b949350505050565b60006020820190506118206000830184611723565b92915050565b61182f81611711565b811461183a57600080fd5b50565b60008135905061184c81611826565b92915050565b60008060006060848603121561186b5761186a611286565b5b60006118798682870161183d565b935050602061188a8682870161183d565b925050604061189b86828701611467565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b838110156118df5780820151818401526020810190506118c4565b60008484015250505050565b60006118f6826118a5565b61190081856118b0565b93506119108185602086016118c1565b6119198161156c565b840191505092915050565b6000602082019050818103600083015261193e81846118eb565b905092915050565b600067ffffffffffffffff8211156119615761196061157d565b5b602082029050602081019050919050565b600061198561198084611946565b6115dd565b905080838252602082019050602084028301858111156119a8576119a7611355565b5b835b818110156119d157806119bd8882611467565b8452602084019350506020810190506119aa565b5050509392505050565b600082601f8301126119f0576119ef61134b565b5b8135611a00848260208601611972565b91505092915050565b600080600080600060a08688031215611a2557611a24611286565b5b6000611a338882890161183d565b9550506020611a448882890161183d565b945050604086013567ffffffffffffffff811115611a6557611a6461128b565b5b611a71888289016119db565b935050606086013567ffffffffffffffff811115611a9257611a9161128b565b5b611a9e888289016119db565b925050608086013567ffffffffffffffff811115611abf57611abe61128b565b5b611acb8882890161167a565b9150509295509295909350565b611ae181611290565b82525050565b6000602082019050611afc6000830184611ad8565b92915050565b600080600080600060a08688031215611b1e57611b1d611286565b5b6000611b2c8882890161183d565b9550506020611b3d8882890161183d565b9450506040611b4e88828901611467565b9350506060611b5f88828901611467565b925050608086013567ffffffffffffffff811115611b8057611b7f61128b565b5b611b8c8882890161167a565b9150509295509295909350565b600060208284031215611baf57611bae611286565b5b6000611bbd8482850161183d565b91505092915050565b600081905092915050565b6000611bdd8385611bc6565b9350611bea838584611629565b82840190509392505050565b6000611c03828486611bd1565b91508190509392505050565b50565b6000611c1f6000836118b0565b9150611c2a82611c0f565b600082019050919050565b600060a082019050611c4a6000830187611723565b611c576020830186611723565b611c646040830185611732565b611c716060830184611732565b8181036080830152611c8281611c12565b905095945050505050565b6000608082019050611ca26000830187611723565b611caf6020830186611732565b611cbc6040830185611723565b611cc96060830184611732565b95945050505050565b6000604082019050611ce76000830185611723565b611cf46020830184611732565b9392505050565b6000611d06826116f1565b9050919050565b611d1681611cfb565b8114611d2157600080fd5b50565b600081359050611d3381611d0d565b92915050565b600080600060608486031215611d5257611d51611286565b5b6000611d6086828701611d24565b9350506020611d7186828701611d24565b9250506040611d8286828701611467565b9150509250925092565b600082825260208201905092915050565b7f4f776e6572736869702063616e6e6f742062652072656e6f756e636564000000600082015250565b6000611dd3601d83611d8c565b9150611dde82611d9d565b602082019050919050565b60006020820190508181036000830152611e0281611dc6565b9050919050565b7f6261746368207472616e7366657220756e737570706f72746564000000000000600082015250565b6000611e3f601a83611d8c565b9150611e4a82611e09565b602082019050919050565b60006020820190508181036000830152611e6e81611e32565b9050919050565b6000611e80826118a5565b611e8a8185611bc6565b9350611e9a8185602086016118c1565b80840191505092915050565b6000611eb28284611e75565b915081905092915050565b7f6d697373696e67206d65726b6c6520726f6f7400000000000000000000000000600082015250565b6000611ef3601383611d8c565b9150611efe82611ebd565b602082019050919050565b60006020820190508181036000830152611f2281611ee6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f6382611446565b9150611f6e83611446565b9250828201905080821115611f8657611f85611f29565b5b92915050565b6000819050602082019050919050565b6000611fa882516113b0565b80915050919050565b600082821b905092915050565b6000611fc9826118a5565b82611fd384611f8c565b9050611fde81611f9c565b9250602082101561201e576120197fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802611fb1565b831692505b5050919050565b600060808201905061203a6000830187611723565b6120476020830186611732565b6120546040830185611732565b6120616060830184611741565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006120c6602683611d8c565b91506120d18261206a565b604082019050919050565b600060208201905081810360008301526120f5816120b9565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612132601083611d8c565b915061213d826120fc565b602082019050919050565b6000602082019050818103600083015261216181612125565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061219e601f83611d8c565b91506121a982612168565b602082019050919050565b600060208201905081810360008301526121cd81612191565b9050919050565b60008160601b9050919050565b60006121ec826121d4565b9050919050565b60006121fe826121e1565b9050919050565b61221661221182611711565b6121f3565b82525050565b6000819050919050565b61223761223282611446565b61221c565b82525050565b60006122498286612205565b6014820191506122598285612205565b6014820191506122698284612226565b602082019150819050949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122b0602083611d8c565b91506122bb8261227a565b602082019050919050565b600060208201905081810360008301526122df816122a3565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061231c601483611d8c565b9150612327826122e6565b602082019050919050565b6000602082019050818103600083015261234b8161230f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061238c82611446565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123be576123bd611f29565b5b60018201905091905056fea264697066735822122027586e1fe65d5aef3604ee0152892525ed544a11316d6580c2cbd0546a8f07ae64736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063b2e8665711610066578063b2e8665714610250578063bc197c811461026c578063f23a6e611461029c578063f2fde38b146102cc576100f5565b8063715018a6146101ee5780638456cb59146101f85780638da5cb5b1461020257806399dfd9e614610220576100f5565b80633f4ba83a116100d35780633f4ba83a14610162578063564187941461016c5780635b72a0551461019e5780635c975abb146101d0576100f5565b806301ffc9a7146100fa57806313409a811461012a5780631c5d0efd14610146575b600080fd5b610114600480360381019061010f91906112e8565b6102e8565b6040516101219190611330565b60405180910390f35b610144600480360381019061013f91906113e6565b610362565b005b610160600480360381019061015b91906114d2565b610434565b005b61016a6107ba565b005b610186600480360381019061018191906116a8565b6107cc565b60405161019593929190611750565b60405180910390f35b6101b860048036038101906101b39190611787565b61082c565b6040516101c7939291906117d4565b60405180910390f35b6101d861084d565b6040516101e59190611330565b60405180910390f35b6101f6610863565b005b6102006108a6565b005b61020a6108b8565b604051610217919061180b565b60405180910390f35b61023a60048036038101906102359190611852565b6108e1565b6040516102479190611924565b60405180910390f35b61026a60048036038101906102659190611787565b610910565b005b61028660048036038101906102819190611a09565b610a9d565b6040516102939190611ae7565b60405180910390f35b6102b660048036038101906102b19190611b02565b610ada565b6040516102c39190611ae7565b60405180910390f35b6102e660048036038101906102e19190611b99565b610cc5565b005b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061035b575061035a82610d48565b5b9050919050565b61036a610db2565b60006002848460405161037e929190611bf6565b908152602001604051809103902090506103bb8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610dfc565b81816002018190555060008060006103d3878761082c565b9250925092508273ffffffffffffffffffffffffffffffffffffffff167f75badb0d4edd2a1ca1861a3aa0e4f0be445facf61efb3af6d8442d8a7689a2ce83838860405161042393929190611750565b60405180910390a250505050505050565b61043c610e64565b610444610db2565b6000830361047e576040517f843ce46b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028686604051610492929190611bf6565b90815260200160405180910390209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361052c576040517f33cc058900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838160010154101561056a576040517f33aa101c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160030190508060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156105f5576040517f7f39a9b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060006106048a8a61082c565b92509250925061061b828987600201548a8a610eb3565b60018460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508785600101600082825403925050819055508173ffffffffffffffffffffffffffffffffffffffff1663f242432a3033848c6040518563ffffffff1660e01b81526004016106c39493929190611c35565b600060405180830381600087803b1580156106dd57600080fd5b505af11580156106f1573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f0e86cd298c59788640d8a5b8189452b9190ab3d29fe5fa5b39a602acdde3fa948383338c6040516107419493929190611c8d565b60405180910390a260008560010154036107a6578273ffffffffffffffffffffffffffffffffffffffff167fe61a5047ef4cb995731bb99929abac883a9ee67c03644fd90c3ae45d9a58f888838360405161079d929190611cd2565b60405180910390a25b50505050506107b3610f6c565b5050505050565b6107c2610f75565b6107ca610ff3565b565b6002818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600080600084848101906108409190611d39565b9250925092509250925092565b60008060009054906101000a900460ff16905090565b61086b610f75565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089d90611de9565b60405180910390fd5b6108ae610f75565b6108b6611055565b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608383836040516020016108f8939291906117d4565b60405160208183030381529060405290509392505050565b610918610e64565b60006002838360405161092c929190611bf6565b908152602001604051809103902090506109698160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610dfc565b6000806000610978868661082c565b925092509250600084600101549050600081036109c1576040517f33aa101c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085600101819055508273ffffffffffffffffffffffffffffffffffffffff1663f242432a308685856040518563ffffffff1660e01b8152600401610a0a9493929190611c35565b600060405180830381600087803b158015610a2457600080fd5b505af1158015610a38573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff167fe61a5047ef4cb995731bb99929abac883a9ee67c03644fd90c3ae45d9a58f8888484604051610a84929190611cd2565b60405180910390a25050505050610a99610f6c565b5050565b60006040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad190611e55565b60405180910390fd5b6000610ae4610db2565b6000610af18733876108e1565b90506000600282604051610b059190611ea6565b908152602001604051809103902090506020845114610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5090611f09565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610c0257878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550848160010181905550610c1e565b84816001016000828254610c169190611f58565b925050819055505b83610c2890611fbe565b81600201819055508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff6477d0bfccf4d753a3a1507d194b474bc9e9529537f3eeaa973e1f345a837e9338884600101548560020154604051610ca89493929190612025565b60405180910390a263f23a6e6160e01b9250505095945050505050565b610ccd610f75565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d33906120dc565b60405180910390fd5b610d45816110b7565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610dba61084d565b15610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190612148565b60405180910390fd5b565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e61576040517f7443b0f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b600260015403610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906121b4565b60405180910390fd5b6002600181905550565b6000610f2b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085883389604051602001610f109392919061223d565b6040516020818303038152906040528051906020012061117c565b905080610f64576040517f69ca16c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b60018081905550565b610f7d611193565b73ffffffffffffffffffffffffffffffffffffffff16610f9b6108b8565b73ffffffffffffffffffffffffffffffffffffffff1614610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe8906122c6565b60405180910390fd5b565b610ffb61119b565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61103e611193565b60405161104b919061180b565b60405180910390a1565b61105d610db2565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110a0611193565b6040516110ad919061180b565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008261118985846111e4565b1490509392505050565b600033905090565b6111a361084d565b6111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612332565b60405180910390fd5b565b60008082905060005b845181101561122f5761121a8286838151811061120d5761120c612352565b5b602002602001015161123a565b9150808061122790612381565b9150506111ed565b508091505092915050565b60008183106112525761124d8284611265565b61125d565b61125c8383611265565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6112c581611290565b81146112d057600080fd5b50565b6000813590506112e2816112bc565b92915050565b6000602082840312156112fe576112fd611286565b5b600061130c848285016112d3565b91505092915050565b60008115159050919050565b61132a81611315565b82525050565b60006020820190506113456000830184611321565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126113705761136f61134b565b5b8235905067ffffffffffffffff81111561138d5761138c611350565b5b6020830191508360018202830111156113a9576113a8611355565b5b9250929050565b6000819050919050565b6113c3816113b0565b81146113ce57600080fd5b50565b6000813590506113e0816113ba565b92915050565b6000806000604084860312156113ff576113fe611286565b5b600084013567ffffffffffffffff81111561141d5761141c61128b565b5b6114298682870161135a565b9350935050602061143c868287016113d1565b9150509250925092565b6000819050919050565b61145981611446565b811461146457600080fd5b50565b60008135905061147681611450565b92915050565b60008083601f8401126114925761149161134b565b5b8235905067ffffffffffffffff8111156114af576114ae611350565b5b6020830191508360208202830111156114cb576114ca611355565b5b9250929050565b6000806000806000606086880312156114ee576114ed611286565b5b600086013567ffffffffffffffff81111561150c5761150b61128b565b5b6115188882890161135a565b9550955050602061152b88828901611467565b935050604086013567ffffffffffffffff81111561154c5761154b61128b565b5b6115588882890161147c565b92509250509295509295909350565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115b58261156c565b810181811067ffffffffffffffff821117156115d4576115d361157d565b5b80604052505050565b60006115e761127c565b90506115f382826115ac565b919050565b600067ffffffffffffffff8211156116135761161261157d565b5b61161c8261156c565b9050602081019050919050565b82818337600083830152505050565b600061164b611646846115f8565b6115dd565b90508281526020810184848401111561166757611666611567565b5b611672848285611629565b509392505050565b600082601f83011261168f5761168e61134b565b5b813561169f848260208601611638565b91505092915050565b6000602082840312156116be576116bd611286565b5b600082013567ffffffffffffffff8111156116dc576116db61128b565b5b6116e88482850161167a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061171c826116f1565b9050919050565b61172c81611711565b82525050565b61173b81611446565b82525050565b61174a816113b0565b82525050565b60006060820190506117656000830186611723565b6117726020830185611732565b61177f6040830184611741565b949350505050565b6000806020838503121561179e5761179d611286565b5b600083013567ffffffffffffffff8111156117bc576117bb61128b565b5b6117c88582860161135a565b92509250509250929050565b60006060820190506117e96000830186611723565b6117f66020830185611723565b6118036040830184611732565b949350505050565b60006020820190506118206000830184611723565b92915050565b61182f81611711565b811461183a57600080fd5b50565b60008135905061184c81611826565b92915050565b60008060006060848603121561186b5761186a611286565b5b60006118798682870161183d565b935050602061188a8682870161183d565b925050604061189b86828701611467565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b838110156118df5780820151818401526020810190506118c4565b60008484015250505050565b60006118f6826118a5565b61190081856118b0565b93506119108185602086016118c1565b6119198161156c565b840191505092915050565b6000602082019050818103600083015261193e81846118eb565b905092915050565b600067ffffffffffffffff8211156119615761196061157d565b5b602082029050602081019050919050565b600061198561198084611946565b6115dd565b905080838252602082019050602084028301858111156119a8576119a7611355565b5b835b818110156119d157806119bd8882611467565b8452602084019350506020810190506119aa565b5050509392505050565b600082601f8301126119f0576119ef61134b565b5b8135611a00848260208601611972565b91505092915050565b600080600080600060a08688031215611a2557611a24611286565b5b6000611a338882890161183d565b9550506020611a448882890161183d565b945050604086013567ffffffffffffffff811115611a6557611a6461128b565b5b611a71888289016119db565b935050606086013567ffffffffffffffff811115611a9257611a9161128b565b5b611a9e888289016119db565b925050608086013567ffffffffffffffff811115611abf57611abe61128b565b5b611acb8882890161167a565b9150509295509295909350565b611ae181611290565b82525050565b6000602082019050611afc6000830184611ad8565b92915050565b600080600080600060a08688031215611b1e57611b1d611286565b5b6000611b2c8882890161183d565b9550506020611b3d8882890161183d565b9450506040611b4e88828901611467565b9350506060611b5f88828901611467565b925050608086013567ffffffffffffffff811115611b8057611b7f61128b565b5b611b8c8882890161167a565b9150509295509295909350565b600060208284031215611baf57611bae611286565b5b6000611bbd8482850161183d565b91505092915050565b600081905092915050565b6000611bdd8385611bc6565b9350611bea838584611629565b82840190509392505050565b6000611c03828486611bd1565b91508190509392505050565b50565b6000611c1f6000836118b0565b9150611c2a82611c0f565b600082019050919050565b600060a082019050611c4a6000830187611723565b611c576020830186611723565b611c646040830185611732565b611c716060830184611732565b8181036080830152611c8281611c12565b905095945050505050565b6000608082019050611ca26000830187611723565b611caf6020830186611732565b611cbc6040830185611723565b611cc96060830184611732565b95945050505050565b6000604082019050611ce76000830185611723565b611cf46020830184611732565b9392505050565b6000611d06826116f1565b9050919050565b611d1681611cfb565b8114611d2157600080fd5b50565b600081359050611d3381611d0d565b92915050565b600080600060608486031215611d5257611d51611286565b5b6000611d6086828701611d24565b9350506020611d7186828701611d24565b9250506040611d8286828701611467565b9150509250925092565b600082825260208201905092915050565b7f4f776e6572736869702063616e6e6f742062652072656e6f756e636564000000600082015250565b6000611dd3601d83611d8c565b9150611dde82611d9d565b602082019050919050565b60006020820190508181036000830152611e0281611dc6565b9050919050565b7f6261746368207472616e7366657220756e737570706f72746564000000000000600082015250565b6000611e3f601a83611d8c565b9150611e4a82611e09565b602082019050919050565b60006020820190508181036000830152611e6e81611e32565b9050919050565b6000611e80826118a5565b611e8a8185611bc6565b9350611e9a8185602086016118c1565b80840191505092915050565b6000611eb28284611e75565b915081905092915050565b7f6d697373696e67206d65726b6c6520726f6f7400000000000000000000000000600082015250565b6000611ef3601383611d8c565b9150611efe82611ebd565b602082019050919050565b60006020820190508181036000830152611f2281611ee6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f6382611446565b9150611f6e83611446565b9250828201905080821115611f8657611f85611f29565b5b92915050565b6000819050602082019050919050565b6000611fa882516113b0565b80915050919050565b600082821b905092915050565b6000611fc9826118a5565b82611fd384611f8c565b9050611fde81611f9c565b9250602082101561201e576120197fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802611fb1565b831692505b5050919050565b600060808201905061203a6000830187611723565b6120476020830186611732565b6120546040830185611732565b6120616060830184611741565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006120c6602683611d8c565b91506120d18261206a565b604082019050919050565b600060208201905081810360008301526120f5816120b9565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612132601083611d8c565b915061213d826120fc565b602082019050919050565b6000602082019050818103600083015261216181612125565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061219e601f83611d8c565b91506121a982612168565b602082019050919050565b600060208201905081810360008301526121cd81612191565b9050919050565b60008160601b9050919050565b60006121ec826121d4565b9050919050565b60006121fe826121e1565b9050919050565b61221661221182611711565b6121f3565b82525050565b6000819050919050565b61223761223282611446565b61221c565b82525050565b60006122498286612205565b6014820191506122598285612205565b6014820191506122698284612226565b602082019150819050949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122b0602083611d8c565b91506122bb8261227a565b602082019050919050565b600060208201905081810360008301526122df816122a3565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061231c601483611d8c565b9150612327826122e6565b602082019050919050565b6000602082019050818103600083015261234b8161230f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061238c82611446565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123be576123bd611f29565b5b60018201905091905056fea264697066735822122027586e1fe65d5aef3604ee0152892525ed544a11316d6580c2cbd0546a8f07ae64736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
POL | 100.00% | $1 | 10 | $10 |
Loading...
Loading
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.