Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,049 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Team Airdrop | 16101610 | 768 days ago | IN | 0 ETH | 0.00409183 | ||||
Team Airdrop | 16094210 | 769 days ago | IN | 0 ETH | 0.00197034 | ||||
Withdraw | 16079143 | 771 days ago | IN | 0 ETH | 0.0003317 | ||||
Set Status | 16079140 | 771 days ago | IN | 0 ETH | 0.00031161 | ||||
Public Mint | 16076382 | 772 days ago | IN | 0.06 ETH | 0.00157251 | ||||
Public Mint | 16076247 | 772 days ago | IN | 0.06 ETH | 0.0019321 | ||||
Public Mint | 16074897 | 772 days ago | IN | 0.03 ETH | 0.00156874 | ||||
Public Mint | 16073702 | 772 days ago | IN | 0.06 ETH | 0.00171822 | ||||
Pre Mint | 16073135 | 772 days ago | IN | 0 ETH | 0.00045188 | ||||
Public Mint | 16072441 | 772 days ago | IN | 0.06 ETH | 0.00158692 | ||||
Public Mint | 16072294 | 772 days ago | IN | 0.06 ETH | 0.0014126 | ||||
Public Mint | 16072152 | 772 days ago | IN | 0.06 ETH | 0.00213651 | ||||
Public Mint | 16071801 | 772 days ago | IN | 0.06 ETH | 0.00140487 | ||||
Public Mint | 16071728 | 772 days ago | IN | 0.06 ETH | 0.00125755 | ||||
Public Mint | 16071725 | 772 days ago | IN | 0.03 ETH | 0.00115691 | ||||
Public Mint | 16071656 | 772 days ago | IN | 0.06 ETH | 0.00157106 | ||||
Public Mint | 16071622 | 772 days ago | IN | 0.06 ETH | 0.00155464 | ||||
Public Mint | 16071418 | 772 days ago | IN | 0.06 ETH | 0.00143921 | ||||
Public Mint | 16071402 | 772 days ago | IN | 0.03 ETH | 0.0013333 | ||||
Public Mint | 16071401 | 772 days ago | IN | 0.03 ETH | 0.00119409 | ||||
Public Mint | 16071364 | 772 days ago | IN | 0.06 ETH | 0.00139214 | ||||
Public Mint | 16071363 | 772 days ago | IN | 0.06 ETH | 0.00146534 | ||||
Public Mint | 16071356 | 772 days ago | IN | 0.06 ETH | 0.00151434 | ||||
Public Mint | 16071191 | 772 days ago | IN | 0.06 ETH | 0.00141749 | ||||
Public Mint | 16071186 | 772 days ago | IN | 0.06 ETH | 0.00155862 |
Loading...
Loading
Contract Name:
ProxySale
Compiler Version
v0.8.17+commit.8df45f5f
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.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interface/IReap3rMint.sol"; contract ProxySale is Ownable, ReentrancyGuard { using SafeMath for uint256; enum Status { Pending, ReapMint, AllowMint, PublicMint, TeamMint, Finished } Status public status; address public nftAddress; IReap3rMint private nftMint; bytes32 public reapRoot; bytes32 public allowRoot; address private vault; mapping(address => uint256) public mintedReapAddress; mapping(address => uint256) public mintedAllowAddress; mapping(address => uint256) public mintedPublicAddress; string private _baseTokenURI; uint256 public _mintedReapAmount = 0; uint256 public _mintedAllowAmount = 0; uint256 public _teamReservedAmount = 0; uint256 public immutable MAX_REAP_MINT_AMOUNT = 1; uint256 public immutable MAX_ALLOW_MINT_AMOUNT = 2; uint256 public immutable MAX_PUBLIC_MINT_AMOUNT = 2; uint256 public immutable MAX_REAP_AMOUNT = 1111; uint256 public immutable MAX_ALLOW_AMOUNT = 5555; uint256 public allowListSalePrice = 0.025 ether; uint256 public publicSalePrice = 0.03 ether; uint256 public immutable MAX_TOTAL_SUPPLY = 7000; uint256 public immutable MAX_TEAM_HOLD = 334; modifier eoaOnly() { require(tx.origin == msg.sender, "EOA Only."); _; } constructor(address _vault) public { vault = _vault; } function teamAirdrop(address to, uint256 num) public virtual onlyOwner { require(MAX_TOTAL_SUPPLY - nftMint.totalSupply() >= num, "Max supply reached."); require(MAX_TEAM_HOLD - _teamReservedAmount >= num, "Airdrop max supply reached."); nftMint.mint(msg.sender, num); _teamReservedAmount += num; } function _allowListVerify(bytes32[] memory proof) internal view returns (bool) { if (status == Status.ReapMint) { return MerkleProof.verify( proof, reapRoot, keccak256(abi.encodePacked(msg.sender)) ); } return MerkleProof.verify( proof, allowRoot, keccak256(abi.encodePacked(msg.sender)) ); } function makeChange(uint256 price) private { require(msg.value >= price, "Insufficient ether amount."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function _preMint(bytes32[] memory proof, uint256 num) internal { require(status == Status.ReapMint || status == Status.AllowMint, "AllowList not avalible for now."); require(_allowListVerify(proof), "Invalid merkle proof."); if (status == Status.ReapMint) { require(MAX_REAP_AMOUNT - _mintedReapAmount >= num, "Max supply reached."); require(mintedReapAddress[msg.sender] + num <= MAX_REAP_MINT_AMOUNT, "Minting more than the max supply for a single address."); mintedReapAddress[msg.sender] = mintedReapAddress[msg.sender] + num; _mintedReapAmount += num; makeChange(0); } else { require(MAX_ALLOW_AMOUNT - _mintedAllowAmount >= num, "Max supply reached."); require(mintedAllowAddress[msg.sender] + num <= MAX_ALLOW_MINT_AMOUNT, "Minting more than the max supply for a single address."); mintedAllowAddress[msg.sender] = mintedAllowAddress[msg.sender] + num; _mintedAllowAmount += num; makeChange(allowListSalePrice.mul(num)); } nftMint.mint(msg.sender, num); } function preMint(bytes32[] memory proof, uint256 num) public payable nonReentrant eoaOnly { _preMint(proof, num); } function _publicMint(uint256 num) internal { require(status == Status.PublicMint, "PublicSale not avalible for now."); require(MAX_TOTAL_SUPPLY - nftMint.totalSupply() - num >= MAX_TEAM_HOLD - _teamReservedAmount, "Max supply reached."); require(mintedPublicAddress[msg.sender] + num <= MAX_PUBLIC_MINT_AMOUNT, "Minting more than the max supply for a single address."); nftMint.mint(msg.sender, num); makeChange(publicSalePrice.mul(num)); mintedPublicAddress[msg.sender] = mintedPublicAddress[msg.sender] + num; } function publicMint(uint256 num) public payable nonReentrant eoaOnly { _publicMint(num); } function setNftAddress(address _nftAddress) public onlyOwner { nftAddress = _nftAddress; nftMint = IReap3rMint(nftAddress); } function setStatus(Status _status) public onlyOwner { status = _status; } function setRoot(bytes32 _reapRoot, bytes32 _allowRoot) public onlyOwner { reapRoot = _reapRoot; allowRoot = _allowRoot; } function setVault(address _vault) public onlyOwner { vault = _vault; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(vault).transfer(balance); } }
// 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // 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 // 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.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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); } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./lib/RevokableOperatorFilterer.sol"; import "./lib/RevokableDefaultOperatorFilterer.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable, RevokableDefaultOperatorFilterer, Ownable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override onlyAllowedOperatorApproval(to) { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override onlyAllowedOperator(from) { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function owner() public view virtual override (Ownable, RevokableOperatorFilterer) returns (address) { return Ownable.owner(); } }
pragma solidity ^0.8.0; import "../ERC721A.sol"; interface IReap3rMint { /** * @dev Generate NFT by `num` with given `to`. */ function mint(address to, uint256 num) external; /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./RevokableOperatorFilterer.sol"; import "./OperatorFilterer.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./OperatorFilterer.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently opt out of the OperatorFilterRegistry. The Registry * itself has an "unregister" function, but if the contract is ownable, the owner can re-register at any point. * As implemented, this abstract contract allows the contract owner to toggle the * isOperatorFilterRegistryRevoked flag in order to permanently bypass the OperatorFilterRegistry checks. */ abstract contract RevokableOperatorFilterer is OperatorFilterer { error OnlyOwner(); error AlreadyRevoked(); bool private _isOperatorFilterRegistryRevoked; modifier onlyAllowedOperator(address from) override { // Check registry code length to facilitate testing in environments without a deployed registry. if (!_isOperatorFilterRegistryRevoked && address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) override { // Check registry code length to facilitate testing in environments without a deployed registry. if (!_isOperatorFilterRegistryRevoked && address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } /** * @notice Disable the isOperatorFilterRegistryRevoked flag. OnlyOwner. */ function revokeOperatorFilterRegistry() external { if (msg.sender != owner()) { revert OnlyOwner(); } if (_isOperatorFilterRegistryRevoked) { revert AlreadyRevoked(); } _isOperatorFilterRegistryRevoked = true; } function isOperatorFilterRegistryRevoked() public view returns (bool) { return _isOperatorFilterRegistryRevoked; } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"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"},{"inputs":[],"name":"MAX_ALLOW_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOW_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REAP_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REAP_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TEAM_HOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintedAllowAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintedReapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_teamReservedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAllowAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedPublicAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedReapAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reapRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"}],"name":"setNftAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_reapRoot","type":"bytes32"},{"internalType":"bytes32","name":"_allowRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ProxySale.Status","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum ProxySale.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"teamAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040526000600b556000600c556000600d556001608090815250600260a090815250600260c09081525061045760e0908152506115b3610100908152506658d15e17628000600e55666a94d74f430000600f55611b586101209081525061014e610140908152503480156200007657600080fd5b5060405162002a2238038062002a2283398181016040528101906200009c919062000241565b620000bc620000b06200010b60201b60201c565b6200011360201b60201c565b6001808190555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000273565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200020982620001dc565b9050919050565b6200021b81620001fc565b81146200022757600080fd5b50565b6000815190506200023b8162000210565b92915050565b6000602082840312156200025a5762000259620001d7565b5b60006200026a848285016200022a565b91505092915050565b60805160a05160c05160e0516101005161012051610140516127156200030d6000396000818161095a01528181610c890152610f6a01526000818161088b01528181610c190152611027015260008181610a4c0152611662015260008181610b5b015261148f015260008181610aab015261109d0152600081816109c801526116ce0152600081816107a801526114fb01526127156000f3fe6080604052600436106101cd5760003560e01c80635e247bcf116100f75780638f87732c11610095578063c3e3019611610064578063c3e3019614610627578063d0856cc214610643578063e31f9b201461066e578063f2fde38b14610697576101cd565b80638f87732c1461057b57806398c755ea146105a65780639b6860c8146105d1578063aefd1bc3146105fc576101cd565b80636817031b116100d15780636817031b146104e5578063715018a61461050e57806380800dbf146105255780638da5cb5b14610550576101cd565b80635e247bcf146104525780635e72e3381461047d57806361580e29146104ba576101cd565b80632e49d78b1161016f57806342af83fb1161013e57806342af83fb146103a857806347192f11146103d15780634ec0fd4b146103fc5780635bf8633a14610427576101cd565b80632e49d78b1461030057806333039d3d1461032957806338e0aadb146103545780633ccfd60b14610391576101cd565b8063200d2ed2116101ab578063200d2ed214610251578063247181161461027c57806326875e19146102b95780632db11544146102e4576101cd565b80630b102d1a146101d25780630d51bcba146101fb5780631473e25414610226575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190611b63565b6106c0565b005b34801561020757600080fd5b5061021061076f565b60405161021d9190611ba9565b60405180910390f35b34801561023257600080fd5b5061023b610775565b6040516102489190611bdd565b60405180910390f35b34801561025d57600080fd5b5061026661077b565b6040516102739190611c6f565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190611b63565b61078e565b6040516102b09190611bdd565b60405180910390f35b3480156102c557600080fd5b506102ce6107a6565b6040516102db9190611bdd565b60405180910390f35b6102fe60048036038101906102f99190611cb6565b6107ca565b005b34801561030c57600080fd5b5061032760048036038101906103229190611d08565b610854565b005b34801561033557600080fd5b5061033e610889565b60405161034b9190611bdd565b60405180910390f35b34801561036057600080fd5b5061037b60048036038101906103769190611b63565b6108ad565b6040516103889190611bdd565b60405180910390f35b34801561039d57600080fd5b506103a66108c5565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190611d61565b61093e565b005b3480156103dd57600080fd5b506103e6610958565b6040516103f39190611bdd565b60405180910390f35b34801561040857600080fd5b5061041161097c565b60405161041e9190611bdd565b60405180910390f35b34801561043357600080fd5b5061043c610982565b6040516104499190611db0565b60405180910390f35b34801561045e57600080fd5b506104676109a8565b6040516104749190611bdd565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f9190611b63565b6109ae565b6040516104b19190611bdd565b60405180910390f35b3480156104c657600080fd5b506104cf6109c6565b6040516104dc9190611bdd565b60405180910390f35b3480156104f157600080fd5b5061050c60048036038101906105079190611b63565b6109ea565b005b34801561051a57600080fd5b50610523610a36565b005b34801561053157600080fd5b5061053a610a4a565b6040516105479190611bdd565b60405180910390f35b34801561055c57600080fd5b50610565610a6e565b6040516105729190611db0565b60405180910390f35b34801561058757600080fd5b50610590610a97565b60405161059d9190611bdd565b60405180910390f35b3480156105b257600080fd5b506105bb610a9d565b6040516105c89190611ba9565b60405180910390f35b3480156105dd57600080fd5b506105e6610aa3565b6040516105f39190611bdd565b60405180910390f35b34801561060857600080fd5b50610611610aa9565b60405161061e9190611bdd565b60405180910390f35b610641600480360381019061063c9190611f24565b610acd565b005b34801561064f57600080fd5b50610658610b59565b6040516106659190611bdd565b60405180910390f35b34801561067a57600080fd5b5061069560048036038101906106909190611f80565b610b7d565b005b3480156106a357600080fd5b506106be60048036038101906106b99190611b63565b610d9f565b005b6106c8610e22565b80600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b600c5481565b600260009054906101000a900460ff1681565b60076020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6107d2610ea0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610840576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108379061201d565b60405180910390fd5b61084981610eef565b610851611285565b50565b61085c610e22565b80600260006101000a81548160ff0219169083600581111561088157610880611bf8565b5b021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60086020528060005260406000206000915090505481565b6108cd610e22565b6000479050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561093a573d6000803e3d6000fd5b5050565b610946610e22565b81600481905550806005819055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600b5481565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b60096020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6109f2610e22565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a3e610e22565b610a48600061128e565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e5481565b60055481565b600f5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b610ad5610ea0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a9061201d565b60405180910390fd5b610b4d8282611352565b610b55611285565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b85610e22565b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c179190612052565b7f0000000000000000000000000000000000000000000000000000000000000000610c4291906120ae565b1015610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a9061212e565b60405180910390fd5b80600d547f0000000000000000000000000000000000000000000000000000000000000000610cb291906120ae565b1015610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea9061219a565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610d509291906121ba565b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b5050505080600d6000828254610d9491906121e3565b925050819055505050565b610da7610e22565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0d90612289565b60405180910390fd5b610e1f8161128e565b50565b610e2a6118d1565b73ffffffffffffffffffffffffffffffffffffffff16610e48610a6e565b73ffffffffffffffffffffffffffffffffffffffff1614610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e95906122f5565b60405180910390fd5b565b600260015403610ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edc90612361565b60405180910390fd5b6002600181905550565b60036005811115610f0357610f02611bf8565b5b600260009054906101000a900460ff166005811115610f2557610f24611bf8565b5b14610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906123cd565b60405180910390fd5b600d547f0000000000000000000000000000000000000000000000000000000000000000610f9391906120ae565b81600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611001573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110259190612052565b7f000000000000000000000000000000000000000000000000000000000000000061105091906120ae565b61105a91906120ae565b101561109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461110791906121e3565b1115611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f9061245f565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016111a59291906121ba565b600060405180830381600087803b1580156111bf57600080fd5b505af11580156111d3573d6000803e3d6000fd5b505050506111f46111ef82600f546118d990919063ffffffff16565b6118ef565b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461123f91906121e3565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001600581111561136657611365611bf8565b5b600260009054906101000a900460ff16600581111561138857611387611bf8565b5b14806113c75750600260058111156113a3576113a2611bf8565b5b600260009054906101000a900460ff1660058111156113c5576113c4611bf8565b5b145b611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd906124cb565b60405180910390fd5b61140f82611990565b61144e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144590612537565b60405180910390fd5b6001600581111561146257611461611bf8565b5b600260009054906101000a900460ff16600581111561148457611483611bf8565b5b0361165c5780600b547f00000000000000000000000000000000000000000000000000000000000000006114b891906120ae565b10156114f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f09061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461156591906121e3565b11156115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d9061245f565b60405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115f191906121e3565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600b600082825461164691906121e3565b9250508190555061165760006118ef565b61183e565b80600c547f000000000000000000000000000000000000000000000000000000000000000061168b91906120ae565b10156116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c39061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461173891906121e3565b1115611779576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117709061245f565b60405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117c491906121e3565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c600082825461181991906121e3565b9250508190555061183d61183882600e546118d990919063ffffffff16565b6118ef565b5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b815260040161189b9291906121ba565b600060405180830381600087803b1580156118b557600080fd5b505af11580156118c9573d6000803e3d6000fd5b505050505050565b600033905090565b600081836118e79190612557565b905092915050565b80341015611932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611929906125e5565b60405180910390fd5b8034111561198d573373ffffffffffffffffffffffffffffffffffffffff166108fc823461196091906120ae565b9081150290604051600060405180830381858888f1935050505015801561198b573d6000803e3d6000fd5b505b50565b6000600160058111156119a6576119a5611bf8565b5b600260009054906101000a900460ff1660058111156119c8576119c7611bf8565b5b03611a0757611a0082600454336040516020016119e5919061264d565b60405160208183030381529060405280519060200120611a42565b9050611a3d565b611a3a8260055433604051602001611a1f919061264d565b60405160208183030381529060405280519060200120611a42565b90505b919050565b600082611a4f8584611a59565b1490509392505050565b60008082905060005b8451811015611aa457611a8f82868381518110611a8257611a81612668565b5b6020026020010151611aaf565b91508080611a9c90612697565b915050611a62565b508091505092915050565b6000818310611ac757611ac28284611ada565b611ad2565b611ad18383611ada565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b3082611b05565b9050919050565b611b4081611b25565b8114611b4b57600080fd5b50565b600081359050611b5d81611b37565b92915050565b600060208284031215611b7957611b78611afb565b5b6000611b8784828501611b4e565b91505092915050565b6000819050919050565b611ba381611b90565b82525050565b6000602082019050611bbe6000830184611b9a565b92915050565b6000819050919050565b611bd781611bc4565b82525050565b6000602082019050611bf26000830184611bce565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60068110611c3857611c37611bf8565b5b50565b6000819050611c4982611c27565b919050565b6000611c5982611c3b565b9050919050565b611c6981611c4e565b82525050565b6000602082019050611c846000830184611c60565b92915050565b611c9381611bc4565b8114611c9e57600080fd5b50565b600081359050611cb081611c8a565b92915050565b600060208284031215611ccc57611ccb611afb565b5b6000611cda84828501611ca1565b91505092915050565b60068110611cf057600080fd5b50565b600081359050611d0281611ce3565b92915050565b600060208284031215611d1e57611d1d611afb565b5b6000611d2c84828501611cf3565b91505092915050565b611d3e81611b90565b8114611d4957600080fd5b50565b600081359050611d5b81611d35565b92915050565b60008060408385031215611d7857611d77611afb565b5b6000611d8685828601611d4c565b9250506020611d9785828601611d4c565b9150509250929050565b611daa81611b25565b82525050565b6000602082019050611dc56000830184611da1565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611e1982611dd0565b810181811067ffffffffffffffff82111715611e3857611e37611de1565b5b80604052505050565b6000611e4b611af1565b9050611e578282611e10565b919050565b600067ffffffffffffffff821115611e7757611e76611de1565b5b602082029050602081019050919050565b600080fd5b6000611ea0611e9b84611e5c565b611e41565b90508083825260208201905060208402830185811115611ec357611ec2611e88565b5b835b81811015611eec5780611ed88882611d4c565b845260208401935050602081019050611ec5565b5050509392505050565b600082601f830112611f0b57611f0a611dcb565b5b8135611f1b848260208601611e8d565b91505092915050565b60008060408385031215611f3b57611f3a611afb565b5b600083013567ffffffffffffffff811115611f5957611f58611b00565b5b611f6585828601611ef6565b9250506020611f7685828601611ca1565b9150509250929050565b60008060408385031215611f9757611f96611afb565b5b6000611fa585828601611b4e565b9250506020611fb685828601611ca1565b9150509250929050565b600082825260208201905092915050565b7f454f41204f6e6c792e0000000000000000000000000000000000000000000000600082015250565b6000612007600983611fc0565b915061201282611fd1565b602082019050919050565b6000602082019050818103600083015261203681611ffa565b9050919050565b60008151905061204c81611c8a565b92915050565b60006020828403121561206857612067611afb565b5b60006120768482850161203d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120b982611bc4565b91506120c483611bc4565b92508282039050818111156120dc576120db61207f565b5b92915050565b7f4d617820737570706c7920726561636865642e00000000000000000000000000600082015250565b6000612118601383611fc0565b9150612123826120e2565b602082019050919050565b600060208201905081810360008301526121478161210b565b9050919050565b7f41697264726f70206d617820737570706c7920726561636865642e0000000000600082015250565b6000612184601b83611fc0565b915061218f8261214e565b602082019050919050565b600060208201905081810360008301526121b381612177565b9050919050565b60006040820190506121cf6000830185611da1565b6121dc6020830184611bce565b9392505050565b60006121ee82611bc4565b91506121f983611bc4565b92508282019050808211156122115761221061207f565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612273602683611fc0565b915061227e82612217565b604082019050919050565b600060208201905081810360008301526122a281612266565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122df602083611fc0565b91506122ea826122a9565b602082019050919050565b6000602082019050818103600083015261230e816122d2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061234b601f83611fc0565b915061235682612315565b602082019050919050565b6000602082019050818103600083015261237a8161233e565b9050919050565b7f5075626c696353616c65206e6f74206176616c69626c6520666f72206e6f772e600082015250565b60006123b7602083611fc0565b91506123c282612381565b602082019050919050565b600060208201905081810360008301526123e6816123aa565b9050919050565b7f4d696e74696e67206d6f7265207468616e20746865206d617820737570706c7960008201527f20666f7220612073696e676c6520616464726573732e00000000000000000000602082015250565b6000612449603683611fc0565b9150612454826123ed565b604082019050919050565b600060208201905081810360008301526124788161243c565b9050919050565b7f416c6c6f774c697374206e6f74206176616c69626c6520666f72206e6f772e00600082015250565b60006124b5601f83611fc0565b91506124c08261247f565b602082019050919050565b600060208201905081810360008301526124e4816124a8565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f662e0000000000000000000000600082015250565b6000612521601583611fc0565b915061252c826124eb565b602082019050919050565b6000602082019050818103600083015261255081612514565b9050919050565b600061256282611bc4565b915061256d83611bc4565b925082820261257b81611bc4565b915082820484148315176125925761259161207f565b5b5092915050565b7f496e73756666696369656e7420657468657220616d6f756e742e000000000000600082015250565b60006125cf601a83611fc0565b91506125da82612599565b602082019050919050565b600060208201905081810360008301526125fe816125c2565b9050919050565b60008160601b9050919050565b600061261d82612605565b9050919050565b600061262f82612612565b9050919050565b61264761264282611b25565b612624565b82525050565b60006126598284612636565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006126a282611bc4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036126d4576126d361207f565b5b60018201905091905056fea26469706673582212207ccfc0d9b5206a32134a0ce11faed394900921ef9e2d1ee862624a464b2d190664736f6c634300081100330000000000000000000000006d97e1bbc04e6d277856070eb1d17fdc648ae728
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c80635e247bcf116100f75780638f87732c11610095578063c3e3019611610064578063c3e3019614610627578063d0856cc214610643578063e31f9b201461066e578063f2fde38b14610697576101cd565b80638f87732c1461057b57806398c755ea146105a65780639b6860c8146105d1578063aefd1bc3146105fc576101cd565b80636817031b116100d15780636817031b146104e5578063715018a61461050e57806380800dbf146105255780638da5cb5b14610550576101cd565b80635e247bcf146104525780635e72e3381461047d57806361580e29146104ba576101cd565b80632e49d78b1161016f57806342af83fb1161013e57806342af83fb146103a857806347192f11146103d15780634ec0fd4b146103fc5780635bf8633a14610427576101cd565b80632e49d78b1461030057806333039d3d1461032957806338e0aadb146103545780633ccfd60b14610391576101cd565b8063200d2ed2116101ab578063200d2ed214610251578063247181161461027c57806326875e19146102b95780632db11544146102e4576101cd565b80630b102d1a146101d25780630d51bcba146101fb5780631473e25414610226575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190611b63565b6106c0565b005b34801561020757600080fd5b5061021061076f565b60405161021d9190611ba9565b60405180910390f35b34801561023257600080fd5b5061023b610775565b6040516102489190611bdd565b60405180910390f35b34801561025d57600080fd5b5061026661077b565b6040516102739190611c6f565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190611b63565b61078e565b6040516102b09190611bdd565b60405180910390f35b3480156102c557600080fd5b506102ce6107a6565b6040516102db9190611bdd565b60405180910390f35b6102fe60048036038101906102f99190611cb6565b6107ca565b005b34801561030c57600080fd5b5061032760048036038101906103229190611d08565b610854565b005b34801561033557600080fd5b5061033e610889565b60405161034b9190611bdd565b60405180910390f35b34801561036057600080fd5b5061037b60048036038101906103769190611b63565b6108ad565b6040516103889190611bdd565b60405180910390f35b34801561039d57600080fd5b506103a66108c5565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190611d61565b61093e565b005b3480156103dd57600080fd5b506103e6610958565b6040516103f39190611bdd565b60405180910390f35b34801561040857600080fd5b5061041161097c565b60405161041e9190611bdd565b60405180910390f35b34801561043357600080fd5b5061043c610982565b6040516104499190611db0565b60405180910390f35b34801561045e57600080fd5b506104676109a8565b6040516104749190611bdd565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f9190611b63565b6109ae565b6040516104b19190611bdd565b60405180910390f35b3480156104c657600080fd5b506104cf6109c6565b6040516104dc9190611bdd565b60405180910390f35b3480156104f157600080fd5b5061050c60048036038101906105079190611b63565b6109ea565b005b34801561051a57600080fd5b50610523610a36565b005b34801561053157600080fd5b5061053a610a4a565b6040516105479190611bdd565b60405180910390f35b34801561055c57600080fd5b50610565610a6e565b6040516105729190611db0565b60405180910390f35b34801561058757600080fd5b50610590610a97565b60405161059d9190611bdd565b60405180910390f35b3480156105b257600080fd5b506105bb610a9d565b6040516105c89190611ba9565b60405180910390f35b3480156105dd57600080fd5b506105e6610aa3565b6040516105f39190611bdd565b60405180910390f35b34801561060857600080fd5b50610611610aa9565b60405161061e9190611bdd565b60405180910390f35b610641600480360381019061063c9190611f24565b610acd565b005b34801561064f57600080fd5b50610658610b59565b6040516106659190611bdd565b60405180910390f35b34801561067a57600080fd5b5061069560048036038101906106909190611f80565b610b7d565b005b3480156106a357600080fd5b506106be60048036038101906106b99190611b63565b610d9f565b005b6106c8610e22565b80600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b600c5481565b600260009054906101000a900460ff1681565b60076020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000181565b6107d2610ea0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610840576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108379061201d565b60405180910390fd5b61084981610eef565b610851611285565b50565b61085c610e22565b80600260006101000a81548160ff0219169083600581111561088157610880611bf8565b5b021790555050565b7f0000000000000000000000000000000000000000000000000000000000001b5881565b60086020528060005260406000206000915090505481565b6108cd610e22565b6000479050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561093a573d6000803e3d6000fd5b5050565b610946610e22565b81600481905550806005819055505050565b7f000000000000000000000000000000000000000000000000000000000000014e81565b600b5481565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b60096020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000281565b6109f2610e22565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a3e610e22565b610a48600061128e565b565b7f00000000000000000000000000000000000000000000000000000000000015b381565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e5481565b60055481565b600f5481565b7f000000000000000000000000000000000000000000000000000000000000000281565b610ad5610ea0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a9061201d565b60405180910390fd5b610b4d8282611352565b610b55611285565b5050565b7f000000000000000000000000000000000000000000000000000000000000045781565b610b85610e22565b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c179190612052565b7f0000000000000000000000000000000000000000000000000000000000001b58610c4291906120ae565b1015610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a9061212e565b60405180910390fd5b80600d547f000000000000000000000000000000000000000000000000000000000000014e610cb291906120ae565b1015610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea9061219a565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610d509291906121ba565b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b5050505080600d6000828254610d9491906121e3565b925050819055505050565b610da7610e22565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0d90612289565b60405180910390fd5b610e1f8161128e565b50565b610e2a6118d1565b73ffffffffffffffffffffffffffffffffffffffff16610e48610a6e565b73ffffffffffffffffffffffffffffffffffffffff1614610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e95906122f5565b60405180910390fd5b565b600260015403610ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edc90612361565b60405180910390fd5b6002600181905550565b60036005811115610f0357610f02611bf8565b5b600260009054906101000a900460ff166005811115610f2557610f24611bf8565b5b14610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906123cd565b60405180910390fd5b600d547f000000000000000000000000000000000000000000000000000000000000014e610f9391906120ae565b81600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611001573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110259190612052565b7f0000000000000000000000000000000000000000000000000000000000001b5861105091906120ae565b61105a91906120ae565b101561109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000281600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461110791906121e3565b1115611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f9061245f565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016111a59291906121ba565b600060405180830381600087803b1580156111bf57600080fd5b505af11580156111d3573d6000803e3d6000fd5b505050506111f46111ef82600f546118d990919063ffffffff16565b6118ef565b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461123f91906121e3565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001600581111561136657611365611bf8565b5b600260009054906101000a900460ff16600581111561138857611387611bf8565b5b14806113c75750600260058111156113a3576113a2611bf8565b5b600260009054906101000a900460ff1660058111156113c5576113c4611bf8565b5b145b611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd906124cb565b60405180910390fd5b61140f82611990565b61144e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144590612537565b60405180910390fd5b6001600581111561146257611461611bf8565b5b600260009054906101000a900460ff16600581111561148457611483611bf8565b5b0361165c5780600b547f00000000000000000000000000000000000000000000000000000000000004576114b891906120ae565b10156114f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f09061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000181600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461156591906121e3565b11156115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d9061245f565b60405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115f191906121e3565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600b600082825461164691906121e3565b9250508190555061165760006118ef565b61183e565b80600c547f00000000000000000000000000000000000000000000000000000000000015b361168b91906120ae565b10156116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c39061212e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000281600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461173891906121e3565b1115611779576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117709061245f565b60405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117c491906121e3565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c600082825461181991906121e3565b9250508190555061183d61183882600e546118d990919063ffffffff16565b6118ef565b5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b815260040161189b9291906121ba565b600060405180830381600087803b1580156118b557600080fd5b505af11580156118c9573d6000803e3d6000fd5b505050505050565b600033905090565b600081836118e79190612557565b905092915050565b80341015611932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611929906125e5565b60405180910390fd5b8034111561198d573373ffffffffffffffffffffffffffffffffffffffff166108fc823461196091906120ae565b9081150290604051600060405180830381858888f1935050505015801561198b573d6000803e3d6000fd5b505b50565b6000600160058111156119a6576119a5611bf8565b5b600260009054906101000a900460ff1660058111156119c8576119c7611bf8565b5b03611a0757611a0082600454336040516020016119e5919061264d565b60405160208183030381529060405280519060200120611a42565b9050611a3d565b611a3a8260055433604051602001611a1f919061264d565b60405160208183030381529060405280519060200120611a42565b90505b919050565b600082611a4f8584611a59565b1490509392505050565b60008082905060005b8451811015611aa457611a8f82868381518110611a8257611a81612668565b5b6020026020010151611aaf565b91508080611a9c90612697565b915050611a62565b508091505092915050565b6000818310611ac757611ac28284611ada565b611ad2565b611ad18383611ada565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b3082611b05565b9050919050565b611b4081611b25565b8114611b4b57600080fd5b50565b600081359050611b5d81611b37565b92915050565b600060208284031215611b7957611b78611afb565b5b6000611b8784828501611b4e565b91505092915050565b6000819050919050565b611ba381611b90565b82525050565b6000602082019050611bbe6000830184611b9a565b92915050565b6000819050919050565b611bd781611bc4565b82525050565b6000602082019050611bf26000830184611bce565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60068110611c3857611c37611bf8565b5b50565b6000819050611c4982611c27565b919050565b6000611c5982611c3b565b9050919050565b611c6981611c4e565b82525050565b6000602082019050611c846000830184611c60565b92915050565b611c9381611bc4565b8114611c9e57600080fd5b50565b600081359050611cb081611c8a565b92915050565b600060208284031215611ccc57611ccb611afb565b5b6000611cda84828501611ca1565b91505092915050565b60068110611cf057600080fd5b50565b600081359050611d0281611ce3565b92915050565b600060208284031215611d1e57611d1d611afb565b5b6000611d2c84828501611cf3565b91505092915050565b611d3e81611b90565b8114611d4957600080fd5b50565b600081359050611d5b81611d35565b92915050565b60008060408385031215611d7857611d77611afb565b5b6000611d8685828601611d4c565b9250506020611d9785828601611d4c565b9150509250929050565b611daa81611b25565b82525050565b6000602082019050611dc56000830184611da1565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611e1982611dd0565b810181811067ffffffffffffffff82111715611e3857611e37611de1565b5b80604052505050565b6000611e4b611af1565b9050611e578282611e10565b919050565b600067ffffffffffffffff821115611e7757611e76611de1565b5b602082029050602081019050919050565b600080fd5b6000611ea0611e9b84611e5c565b611e41565b90508083825260208201905060208402830185811115611ec357611ec2611e88565b5b835b81811015611eec5780611ed88882611d4c565b845260208401935050602081019050611ec5565b5050509392505050565b600082601f830112611f0b57611f0a611dcb565b5b8135611f1b848260208601611e8d565b91505092915050565b60008060408385031215611f3b57611f3a611afb565b5b600083013567ffffffffffffffff811115611f5957611f58611b00565b5b611f6585828601611ef6565b9250506020611f7685828601611ca1565b9150509250929050565b60008060408385031215611f9757611f96611afb565b5b6000611fa585828601611b4e565b9250506020611fb685828601611ca1565b9150509250929050565b600082825260208201905092915050565b7f454f41204f6e6c792e0000000000000000000000000000000000000000000000600082015250565b6000612007600983611fc0565b915061201282611fd1565b602082019050919050565b6000602082019050818103600083015261203681611ffa565b9050919050565b60008151905061204c81611c8a565b92915050565b60006020828403121561206857612067611afb565b5b60006120768482850161203d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120b982611bc4565b91506120c483611bc4565b92508282039050818111156120dc576120db61207f565b5b92915050565b7f4d617820737570706c7920726561636865642e00000000000000000000000000600082015250565b6000612118601383611fc0565b9150612123826120e2565b602082019050919050565b600060208201905081810360008301526121478161210b565b9050919050565b7f41697264726f70206d617820737570706c7920726561636865642e0000000000600082015250565b6000612184601b83611fc0565b915061218f8261214e565b602082019050919050565b600060208201905081810360008301526121b381612177565b9050919050565b60006040820190506121cf6000830185611da1565b6121dc6020830184611bce565b9392505050565b60006121ee82611bc4565b91506121f983611bc4565b92508282019050808211156122115761221061207f565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612273602683611fc0565b915061227e82612217565b604082019050919050565b600060208201905081810360008301526122a281612266565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122df602083611fc0565b91506122ea826122a9565b602082019050919050565b6000602082019050818103600083015261230e816122d2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061234b601f83611fc0565b915061235682612315565b602082019050919050565b6000602082019050818103600083015261237a8161233e565b9050919050565b7f5075626c696353616c65206e6f74206176616c69626c6520666f72206e6f772e600082015250565b60006123b7602083611fc0565b91506123c282612381565b602082019050919050565b600060208201905081810360008301526123e6816123aa565b9050919050565b7f4d696e74696e67206d6f7265207468616e20746865206d617820737570706c7960008201527f20666f7220612073696e676c6520616464726573732e00000000000000000000602082015250565b6000612449603683611fc0565b9150612454826123ed565b604082019050919050565b600060208201905081810360008301526124788161243c565b9050919050565b7f416c6c6f774c697374206e6f74206176616c69626c6520666f72206e6f772e00600082015250565b60006124b5601f83611fc0565b91506124c08261247f565b602082019050919050565b600060208201905081810360008301526124e4816124a8565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f662e0000000000000000000000600082015250565b6000612521601583611fc0565b915061252c826124eb565b602082019050919050565b6000602082019050818103600083015261255081612514565b9050919050565b600061256282611bc4565b915061256d83611bc4565b925082820261257b81611bc4565b915082820484148315176125925761259161207f565b5b5092915050565b7f496e73756666696369656e7420657468657220616d6f756e742e000000000000600082015250565b60006125cf601a83611fc0565b91506125da82612599565b602082019050919050565b600060208201905081810360008301526125fe816125c2565b9050919050565b60008160601b9050919050565b600061261d82612605565b9050919050565b600061262f82612612565b9050919050565b61264761264282611b25565b612624565b82525050565b60006126598284612636565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006126a282611bc4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036126d4576126d361207f565b5b60018201905091905056fea26469706673582212207ccfc0d9b5206a32134a0ce11faed394900921ef9e2d1ee862624a464b2d190664736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006d97e1bbc04e6d277856070eb1d17fdc648ae728
-----Decoded View---------------
Arg [0] : _vault (address): 0x6D97e1BBC04e6D277856070EB1D17fdc648ae728
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006d97e1bbc04e6d277856070eb1d17fdc648ae728
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.