ETH Price: $3,415.60 (+3.00%)

Contract

0x10224Da3aF2d353f16C826edb931E4a6EcFC019C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim202350242024-07-04 18:45:59172 days ago1720118759IN
0x10224Da3...6EcFC019C
0 ETH0.001146629.3971116
Claim202005912024-06-29 23:21:47177 days ago1719703307IN
0x10224Da3...6EcFC019C
0 ETH0.000134591.29938435
Claim201490732024-06-22 18:36:47184 days ago1719081407IN
0x10224Da3...6EcFC019C
0 ETH0.000255872.7574333
Claim201094122024-06-17 5:26:23190 days ago1718601983IN
0x10224Da3...6EcFC019C
0 ETH0.000633342.60905588
Claim200463802024-06-08 10:00:59198 days ago1717840859IN
0x10224Da3...6EcFC019C
0 ETH0.000836447.61063391
Claim199728092024-05-29 3:22:47209 days ago1716952967IN
0x10224Da3...6EcFC019C
0 ETH0.000827837.53313799
Claim199595982024-05-27 7:04:47210 days ago1716793487IN
0x10224Da3...6EcFC019C
0 ETH0.0013237612.77834737
Claim199534672024-05-26 10:30:35211 days ago1716719435IN
0x10224Da3...6EcFC019C
0 ETH0.000802214.27542709
Claim199486112024-05-25 18:14:35212 days ago1716660875IN
0x10224Da3...6EcFC019C
0 ETH0.000906858.25309003
Claim199392962024-05-24 10:58:35213 days ago1716548315IN
0x10224Da3...6EcFC019C
0 ETH0.000580315.60178075
Claim198995982024-05-18 21:45:35219 days ago1716068735IN
0x10224Da3...6EcFC019C
0 ETH0.000273132.94382143
Claim198699492024-05-14 18:15:59223 days ago1715710559IN
0x10224Da3...6EcFC019C
0 ETH0.0009584110.3284936
Claim198588012024-05-13 4:47:11225 days ago1715575631IN
0x10224Da3...6EcFC019C
0 ETH0.000302853.26415008
Claim198435142024-05-11 1:28:11227 days ago1715390891IN
0x10224Da3...6EcFC019C
0 ETH0.000435884.69743614
Claim198367752024-05-10 2:52:11228 days ago1715309531IN
0x10224Da3...6EcFC019C
0 ETH0.000430164.63577112
Claim198365952024-05-10 2:15:23228 days ago1715307323IN
0x10224Da3...6EcFC019C
0 ETH0.000487994.71229596
Claim198365592024-05-10 2:08:11228 days ago1715306891IN
0x10224Da3...6EcFC019C
0 ETH0.000367943.09972173
Claim196857772024-04-18 23:59:59249 days ago1713484799IN
0x10224Da3...6EcFC019C
0 ETH0.004203296.98002581
Claim196466622024-04-13 12:30:47254 days ago1713011447IN
0x10224Da3...6EcFC019C
0 ETH0.0026320510.60225322
Claim194976292024-03-23 13:35:23275 days ago1711200923IN
0x10224Da3...6EcFC019C
0 ETH0.0017112418.44391437
Claim194715502024-03-19 21:44:59279 days ago1710884699IN
0x10224Da3...6EcFC019C
0 ETH0.0034134532.95792516
Claim194298672024-03-14 1:02:47285 days ago1710378167IN
0x10224Da3...6EcFC019C
0 ETH0.011527247.47926624
Claim194297662024-03-14 0:42:35285 days ago1710376955IN
0x10224Da3...6EcFC019C
0 ETH0.004788751.61295903
Claim194250682024-03-13 8:49:59285 days ago1710319799IN
0x10224Da3...6EcFC019C
0 ETH0.0372576547.54902233
Claim193164972024-02-27 4:27:35301 days ago1709008055IN
0x10224Da3...6EcFC019C
0 ETH0.0044085142.56554772
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HamsterClaim

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 11 : HamsterClaim.sol
// SPDX-License-Identifier: None
pragma solidity 0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interface/IDelegationRegistry.sol";

contract HamsterClaim is Ownable {
  using ECDSA for bytes32;

  // ERRORS *****************************************************

  error NoAuthSigner();
  error InvalidSignature();
  error AlreadyClaimedSnapshot();
  error AlreadyClaimedMong(uint256 tokenId);
  error NotOwnerOfMong(uint256 mongId);

  // Storage *****************************************************

  // Public ****************************

  /// @dev The $HAM contract
  IERC20 public immutable Hamster;
  IERC721 public immutable mongsNFT;
  IDelegationRegistry public immutable delegationRegistry;
  address public immutable hamsterStorageWallet;

  /// @dev Keeps track of whether a wallet has claimed its allocation from the snapshot
  mapping(address => bool) public snapshotClaimed;

  /// @dev Keeps track of whether each Mong NFT has claimed
  mapping(uint256 => bool) public mongClaimed;

  /// @dev The public address of the authorized signer used to validate the claim
  address public authSigner;

  // Private ****************************

  /// @dev used for decoding the claim signature
  bytes32 private DOMAIN_SEPARATOR;
  bytes32 private SNAPSHOT_TYPEHASH = keccak256("claim(address account,uint256 amount)");
  bytes32 private MONG_TYPEHASH = keccak256("claim(address account,uint256 amount,bytes32 monghash)");

  // Constructor *****************************************************

  constructor(address hamsterContractAddress_, address hamsterStorageWallet_, address mongsNftContractAddress_) {
    Hamster = IERC20(hamsterContractAddress_);
    mongsNFT = IERC721(mongsNftContractAddress_);
    hamsterStorageWallet = hamsterStorageWallet_;
    delegationRegistry = IDelegationRegistry(0x00000000000076A84feF008CDAbe6409d2FE638B);

    uint256 chainId;
    assembly {
      chainId := chainid()
    }

    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
        keccak256(bytes("HamsterClaim")),
        keccak256(bytes("1")),
        chainId,
        address(this)
      )
    );
  }

  // Public Methods *****************************************************

  /// @notice Function for eligible users to claim $HAMSTR
  /// @dev eligible claimants verified through offchain process via authSigner, claims for wallet snapshot and mong nft are processed separately
  /// @param snapshotSignature The signature produced by the authSigner to validate that the recipient is eligible for the snapshot claim
  /// @param snapshotAmount The number of tokens allocated from snapshot
  /// @param mongSignature The signature produced by the authSigner to validate the claim for mong nfts
  /// @param mongAmount The number of tokens eligible based on supplied mongTokenIds
  /// @param mongTokenIds The mong nft tokenIds to claim
  function claim(
    bytes calldata snapshotSignature,
    uint256 snapshotAmount,
    bytes calldata mongSignature,
    uint256 mongAmount,
    uint256[] calldata mongTokenIds
  ) external {
    if (authSigner == address(0)) revert NoAuthSigner();

    if (mongAmount > 0) validateMongClaim(mongSignature, mongAmount, mongTokenIds);
    if (snapshotAmount > 0) validateSnapshotClaim(snapshotSignature, snapshotAmount);

    Hamster.transferFrom(hamsterStorageWallet, msg.sender, mongAmount + snapshotAmount);
  }

  function mongHasClaimed(uint256[] calldata tokenIds) external view returns (bool[] memory claimed) {
    claimed = new bool[](tokenIds.length);

    for (uint i = 0; i < tokenIds.length; ) {
      claimed[i] = mongClaimed[tokenIds[i]];

      unchecked {
        ++i;
      }
    }
  }

  // Owner Methods *****************************************************

  /// @notice Allows the contract owner to set the address of the authSigner
  /// @param signer address of the new signer
  function setAuthSigner(address signer) external onlyOwner {
    authSigner = signer;
  }

  // Private Methods *****************************************************

  function validateMongClaim(bytes memory signature, uint256 amount, uint256[] calldata tokenIds) private {
    bytes32 mongHash = keccak256(abi.encodePacked(tokenIds));

    bytes32 digest = keccak256(
      abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(MONG_TYPEHASH, msg.sender, amount, mongHash)))
    );

    address signer = digest.recover(signature);

    if (signer != authSigner) revert InvalidSignature();

    for (uint i = 0; i < tokenIds.length; ) {
      uint256 mongId = tokenIds[i];

      if (mongClaimed[mongId]) revert AlreadyClaimedMong(mongId);

      //check NFT owner
      address nftOwner = mongsNFT.ownerOf(mongId);
      if (nftOwner != msg.sender) {
        if (!delegationRegistry.checkDelegateForToken(msg.sender, nftOwner, address(mongsNFT), mongId)) {
          revert NotOwnerOfMong(mongId);
        }
      }

      mongClaimed[tokenIds[i]] = true;

      unchecked {
        ++i;
      }
    }
  }

  function validateSnapshotClaim(bytes memory signature, uint256 amount) private {
    bytes32 digest = keccak256(
      abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(SNAPSHOT_TYPEHASH, msg.sender, amount)))
    );

    address signer = digest.recover(signature);

    if (signer != authSigner) revert InvalidSignature();

    if (snapshotClaimed[msg.sender]) revert AlreadyClaimedSnapshot();

    snapshotClaimed[msg.sender] = true;
  }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 4 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

File 5 of 11 : Context.sol
// 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;
    }
}

File 6 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 7 of 11 : IERC165.sol
// 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);
}

File 8 of 11 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

File 9 of 11 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 10 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 11 of 11 : IDelegationRegistry.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.17;

/**
 * @title An immutable registry contract to be deployed as a standalone primitive
 * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations
 * from here and integrate those permissions into their flow
 */
interface IDelegationRegistry {
  /// @notice Delegation type
  enum DelegationType {
    NONE,
    ALL,
    CONTRACT,
    TOKEN
  }

  /// @notice Info about a single delegation, used for onchain enumeration
  struct DelegationInfo {
    DelegationType type_;
    address vault;
    address delegate;
    address contract_;
    uint256 tokenId;
  }

  /// @notice Info about a single contract-level delegation
  struct ContractDelegation {
    address contract_;
    address delegate;
  }

  /// @notice Info about a single token-level delegation
  struct TokenDelegation {
    address contract_;
    uint256 tokenId;
    address delegate;
  }

  /// @notice Emitted when a user delegates their entire wallet
  event DelegateForAll(address vault, address delegate, bool value);

  /// @notice Emitted when a user delegates a specific contract
  event DelegateForContract(address vault, address delegate, address contract_, bool value);

  /// @notice Emitted when a user delegates a specific token
  event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value);

  /// @notice Emitted when a user revokes all delegations
  event RevokeAllDelegates(address vault);

  /// @notice Emitted when a user revoes all delegations for a given delegate
  event RevokeDelegate(address vault, address delegate);

  /**
   * -----------  WRITE -----------
   */

  /**
   * @notice Allow the delegate to act on your behalf for all contracts
   * @param delegate The hotwallet to act on your behalf
   * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
   */
  function delegateForAll(address delegate, bool value) external;

  /**
   * @notice Allow the delegate to act on your behalf for a specific contract
   * @param delegate The hotwallet to act on your behalf
   * @param contract_ The address for the contract you're delegating
   * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
   */
  function delegateForContract(address delegate, address contract_, bool value) external;

  /**
   * @notice Allow the delegate to act on your behalf for a specific token
   * @param delegate The hotwallet to act on your behalf
   * @param contract_ The address for the contract you're delegating
   * @param tokenId The token id for the token you're delegating
   * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
   */
  function delegateForToken(address delegate, address contract_, uint256 tokenId, bool value) external;

  /**
   * @notice Revoke all delegates
   */
  function revokeAllDelegates() external;

  /**
   * @notice Revoke a specific delegate for all their permissions
   * @param delegate The hotwallet to revoke
   */
  function revokeDelegate(address delegate) external;

  /**
   * @notice Remove yourself as a delegate for a specific vault
   * @param vault The vault which delegated to the msg.sender, and should be removed
   */
  function revokeSelf(address vault) external;

  /**
   * -----------  READ -----------
   */

  /**
   * @notice Returns all active delegations a given delegate is able to claim on behalf of
   * @param delegate The delegate that you would like to retrieve delegations for
   * @return info Array of DelegationInfo structs
   */
  function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory);

  /**
   * @notice Returns an array of wallet-level delegates for a given vault
   * @param vault The cold wallet who issued the delegation
   * @return addresses Array of wallet-level delegates for a given vault
   */
  function getDelegatesForAll(address vault) external view returns (address[] memory);

  /**
   * @notice Returns an array of contract-level delegates for a given vault and contract
   * @param vault The cold wallet who issued the delegation
   * @param contract_ The address for the contract you're delegating
   * @return addresses Array of contract-level delegates for a given vault and contract
   */
  function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory);

  /**
   * @notice Returns an array of contract-level delegates for a given vault's token
   * @param vault The cold wallet who issued the delegation
   * @param contract_ The address for the contract holding the token
   * @param tokenId The token id for the token you're delegating
   * @return addresses Array of contract-level delegates for a given vault's token
   */
  function getDelegatesForToken(
    address vault,
    address contract_,
    uint256 tokenId
  ) external view returns (address[] memory);

  /**
   * @notice Returns all contract-level delegations for a given vault
   * @param vault The cold wallet who issued the delegations
   * @return delegations Array of ContractDelegation structs
   */
  function getContractLevelDelegations(address vault) external view returns (ContractDelegation[] memory delegations);

  /**
   * @notice Returns all token-level delegations for a given vault
   * @param vault The cold wallet who issued the delegations
   * @return delegations Array of TokenDelegation structs
   */
  function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations);

  /**
   * @notice Returns true if the address is delegated to act on the entire vault
   * @param delegate The hotwallet to act on your behalf
   * @param vault The cold wallet who issued the delegation
   */
  function checkDelegateForAll(address delegate, address vault) external view returns (bool);

  /**
   * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault
   * @param delegate The hotwallet to act on your behalf
   * @param contract_ The address for the contract you're delegating
   * @param vault The cold wallet who issued the delegation
   */
  function checkDelegateForContract(address delegate, address vault, address contract_) external view returns (bool);

  /**
   * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault
   * @param delegate The hotwallet to act on your behalf
   * @param contract_ The address for the contract you're delegating
   * @param tokenId The token id for the token you're delegating
   * @param vault The cold wallet who issued the delegation
   */
  function checkDelegateForToken(
    address delegate,
    address vault,
    address contract_,
    uint256 tokenId
  ) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"hamsterContractAddress_","type":"address"},{"internalType":"address","name":"hamsterStorageWallet_","type":"address"},{"internalType":"address","name":"mongsNftContractAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AlreadyClaimedMong","type":"error"},{"inputs":[],"name":"AlreadyClaimedSnapshot","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NoAuthSigner","type":"error"},{"inputs":[{"internalType":"uint256","name":"mongId","type":"uint256"}],"name":"NotOwnerOfMong","type":"error"},{"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":"Hamster","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"authSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"snapshotSignature","type":"bytes"},{"internalType":"uint256","name":"snapshotAmount","type":"uint256"},{"internalType":"bytes","name":"mongSignature","type":"bytes"},{"internalType":"uint256","name":"mongAmount","type":"uint256"},{"internalType":"uint256[]","name":"mongTokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delegationRegistry","outputs":[{"internalType":"contract IDelegationRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hamsterStorageWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mongClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mongHasClaimed","outputs":[{"internalType":"bool[]","name":"claimed","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mongsNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setAuthSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"snapshotClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040527f42f5763ca75c7893ac49ab6d9144293046fef1027a9a49a9e59145710603af506005557fa04b958285eb9ef528e8e771533f750e52438df32d7902fab28e297d716996326006553480156200005a57600080fd5b5060405162001427380380620014278339810160408190526200007d916200021d565b6200008833620001b0565b6001600160a01b0380841660805281811660a052821660e0526d76a84fef008cdabe6409d2fe638b60c052604080518082018252600c81526b48616d73746572436c61696d60a01b6020918201528151808301835260018152603160f81b90820152905146916200018a917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f917f96a828c0f4c1b6ca36e9beb82e070953fd3df5cf67a3a3ffb6d598973a0aec1b917fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69186913091019485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b604051602081830303815290604052805190602001206004819055505050505062000267565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200021857600080fd5b919050565b6000806000606084860312156200023357600080fd5b6200023e8462000200565b92506200024e6020850162000200565b91506200025e6040850162000200565b90509250925092565b60805160a05160c05160e051611164620002c3600039600081816101e70152610490015260008181610162015261095601526000818160fe015281816108640152610927015260008181610232015261046901526111646000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063808e4a611161008c578063b42348ac11610066578063b42348ac1461021a578063c8947afd1461022d578063d44b7a3714610254578063f2fde38b1461026757600080fd5b8063808e4a61146101bf578063838dff61146101e25780638da5cb5b1461020957600080fd5b80631fbdd72d116100bd5780631fbdd72d1461015d57806322c6bcf814610184578063715018a6146101b757600080fd5b80630532bca1146100e45780630d5d9007146100f9578063140ef8fd1461013d575b600080fd5b6100f76100f2366004610e51565b61027a565b005b6101207f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61015061014b366004610eba565b6102bc565b6040516101349190610efc565b6101207f000000000000000000000000000000000000000000000000000000000000000081565b6101a7610192366004610e51565b60016020526000908152604090205460ff1681565b6040519015158152602001610134565b6100f7610378565b6101a76101cd366004610f42565b60026020526000908152604090205460ff1681565b6101207f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b0316610120565b600354610120906001600160a01b031681565b6101207f000000000000000000000000000000000000000000000000000000000000000081565b6100f7610262366004610f9d565b61038c565b6100f7610275366004610e51565b610555565b6102826105ea565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60608167ffffffffffffffff8111156102d7576102d761104a565b604051908082528060200260200182016040528015610300578160200160208202803683370190505b50905060005b82811015610371576002600085858481811061032457610324611060565b90506020020135815260200190815260200160002060009054906101000a900460ff1682828151811061035957610359611060565b91151560209283029190910190910152600101610306565b5092915050565b6103806105ea565b61038a6000610644565b565b6003546001600160a01b03166103ce576040517f23fadf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82156104185761041885858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792508691508590506106ac565b851561045f5761045f88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250610a4e915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323b872dd7f0000000000000000000000000000000000000000000000000000000000000000336104ba8a88611076565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190611097565b505050505050505050565b61055d6105ea565b6001600160a01b0381166105de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e781610644565b50565b6000546001600160a01b0316331461038a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d5565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082826040516020016106c19291906110b9565b60408051601f1981840301815282825280516020918201206004546006548386015233858501526060850189905260808086018390528451808703909101815260a0860185528051908401207f190100000000000000000000000000000000000000000000000000000000000060c087015260c286019190915260e280860191909152835180860390910181526101029094019092528251920191909120909150600061076e8288610ba8565b6003549091506001600160a01b038083169116146107b8576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84811015610a445760008686838181106107d7576107d7611060565b60209081029290920135600081815260029093526040909220549192505060ff1615610832576040517f44bdb384000000000000000000000000000000000000000000000000000000008152600481018290526024016105d5565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa1580156108b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d791906110fb565b90506001600160a01b03811633146109fa576040517faba69cf80000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382811660248301527f000000000000000000000000000000000000000000000000000000000000000081166044830152606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063aba69cf890608401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c19190611097565b6109fa576040517fb0917e14000000000000000000000000000000000000000000000000000000008152600481018390526024016105d5565b6001600260008a8a87818110610a1257610a12611060565b60209081029290920135835250810191909152604001600020805460ff191691151591909117905550506001016107bb565b5050505050505050565b6004546005546040805160208101929092523390820152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610acb9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506000610af18285610ba8565b6003549091506001600160a01b03808316911614610b3b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526001602052604090205460ff1615610b85576040517fae3b9a6d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050336000908152600160208190526040909120805460ff191690911790555050565b6000806000610bb78585610bce565b91509150610bc481610c13565b5090505b92915050565b6000808251604103610c045760208301516040840151606085015160001a610bf887828585610d78565b94509450505050610c0c565b506000905060025b9250929050565b6000816004811115610c2757610c27611118565b03610c2f5750565b6001816004811115610c4357610c43611118565b03610c905760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d5565b6002816004811115610ca457610ca4611118565b03610cf15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d5565b6003816004811115610d0557610d05611118565b036105e75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610daf5750600090506003610e33565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e03573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e2c57600060019250925050610e33565b9150600090505b94509492505050565b6001600160a01b03811681146105e757600080fd5b600060208284031215610e6357600080fd5b8135610e6e81610e3c565b9392505050565b60008083601f840112610e8757600080fd5b50813567ffffffffffffffff811115610e9f57600080fd5b6020830191508360208260051b8501011115610c0c57600080fd5b60008060208385031215610ecd57600080fd5b823567ffffffffffffffff811115610ee457600080fd5b610ef085828601610e75565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015610f36578351151583529284019291840191600101610f18565b50909695505050505050565b600060208284031215610f5457600080fd5b5035919050565b60008083601f840112610f6d57600080fd5b50813567ffffffffffffffff811115610f8557600080fd5b602083019150836020828501011115610c0c57600080fd5b60008060008060008060008060a0898b031215610fb957600080fd5b883567ffffffffffffffff80821115610fd157600080fd5b610fdd8c838d01610f5b565b909a50985060208b0135975060408b0135915080821115610ffd57600080fd5b6110098c838d01610f5b565b909750955060608b0135945060808b013591508082111561102957600080fd5b506110368b828c01610e75565b999c989b5096995094979396929594505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b80820180821115610bc857634e487b7160e01b600052601160045260246000fd5b6000602082840312156110a957600080fd5b81518015158114610e6e57600080fd5b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156110e857600080fd5b8260051b80858437919091019392505050565b60006020828403121561110d57600080fd5b8151610e6e81610e3c565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220755c321bc038f5a3680dd6093f3a2272cd3f521e247249593563a3b1afb057ee64736f6c6343000811003300000000000000000000000042a43bc18a20831a6abfc551c9476eba124c03c200000000000000000000000037b08c24ce616e7e3a439ca2f0c22aa8cdee4a34000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100df5760003560e01c8063808e4a611161008c578063b42348ac11610066578063b42348ac1461021a578063c8947afd1461022d578063d44b7a3714610254578063f2fde38b1461026757600080fd5b8063808e4a61146101bf578063838dff61146101e25780638da5cb5b1461020957600080fd5b80631fbdd72d116100bd5780631fbdd72d1461015d57806322c6bcf814610184578063715018a6146101b757600080fd5b80630532bca1146100e45780630d5d9007146100f9578063140ef8fd1461013d575b600080fd5b6100f76100f2366004610e51565b61027a565b005b6101207f000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf81565b6040516001600160a01b0390911681526020015b60405180910390f35b61015061014b366004610eba565b6102bc565b6040516101349190610efc565b6101207f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b81565b6101a7610192366004610e51565b60016020526000908152604090205460ff1681565b6040519015158152602001610134565b6100f7610378565b6101a76101cd366004610f42565b60026020526000908152604090205460ff1681565b6101207f00000000000000000000000037b08c24ce616e7e3a439ca2f0c22aa8cdee4a3481565b6000546001600160a01b0316610120565b600354610120906001600160a01b031681565b6101207f00000000000000000000000042a43bc18a20831a6abfc551c9476eba124c03c281565b6100f7610262366004610f9d565b61038c565b6100f7610275366004610e51565b610555565b6102826105ea565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60608167ffffffffffffffff8111156102d7576102d761104a565b604051908082528060200260200182016040528015610300578160200160208202803683370190505b50905060005b82811015610371576002600085858481811061032457610324611060565b90506020020135815260200190815260200160002060009054906101000a900460ff1682828151811061035957610359611060565b91151560209283029190910190910152600101610306565b5092915050565b6103806105ea565b61038a6000610644565b565b6003546001600160a01b03166103ce576040517f23fadf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82156104185761041885858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792508691508590506106ac565b851561045f5761045f88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250610a4e915050565b6001600160a01b037f00000000000000000000000042a43bc18a20831a6abfc551c9476eba124c03c2166323b872dd7f00000000000000000000000037b08c24ce616e7e3a439ca2f0c22aa8cdee4a34336104ba8a88611076565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190611097565b505050505050505050565b61055d6105ea565b6001600160a01b0381166105de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e781610644565b50565b6000546001600160a01b0316331461038a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d5565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082826040516020016106c19291906110b9565b60408051601f1981840301815282825280516020918201206004546006548386015233858501526060850189905260808086018390528451808703909101815260a0860185528051908401207f190100000000000000000000000000000000000000000000000000000000000060c087015260c286019190915260e280860191909152835180860390910181526101029094019092528251920191909120909150600061076e8288610ba8565b6003549091506001600160a01b038083169116146107b8576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84811015610a445760008686838181106107d7576107d7611060565b60209081029290920135600081815260029093526040909220549192505060ff1615610832576040517f44bdb384000000000000000000000000000000000000000000000000000000008152600481018290526024016105d5565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290526000907f000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf6001600160a01b031690636352211e90602401602060405180830381865afa1580156108b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d791906110fb565b90506001600160a01b03811633146109fa576040517faba69cf80000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382811660248301527f000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf81166044830152606482018490527f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b169063aba69cf890608401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c19190611097565b6109fa576040517fb0917e14000000000000000000000000000000000000000000000000000000008152600481018390526024016105d5565b6001600260008a8a87818110610a1257610a12611060565b60209081029290920135835250810191909152604001600020805460ff191691151591909117905550506001016107bb565b5050505050505050565b6004546005546040805160208101929092523390820152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610acb9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506000610af18285610ba8565b6003549091506001600160a01b03808316911614610b3b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526001602052604090205460ff1615610b85576040517fae3b9a6d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050336000908152600160208190526040909120805460ff191690911790555050565b6000806000610bb78585610bce565b91509150610bc481610c13565b5090505b92915050565b6000808251604103610c045760208301516040840151606085015160001a610bf887828585610d78565b94509450505050610c0c565b506000905060025b9250929050565b6000816004811115610c2757610c27611118565b03610c2f5750565b6001816004811115610c4357610c43611118565b03610c905760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d5565b6002816004811115610ca457610ca4611118565b03610cf15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d5565b6003816004811115610d0557610d05611118565b036105e75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610daf5750600090506003610e33565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e03573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e2c57600060019250925050610e33565b9150600090505b94509492505050565b6001600160a01b03811681146105e757600080fd5b600060208284031215610e6357600080fd5b8135610e6e81610e3c565b9392505050565b60008083601f840112610e8757600080fd5b50813567ffffffffffffffff811115610e9f57600080fd5b6020830191508360208260051b8501011115610c0c57600080fd5b60008060208385031215610ecd57600080fd5b823567ffffffffffffffff811115610ee457600080fd5b610ef085828601610e75565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015610f36578351151583529284019291840191600101610f18565b50909695505050505050565b600060208284031215610f5457600080fd5b5035919050565b60008083601f840112610f6d57600080fd5b50813567ffffffffffffffff811115610f8557600080fd5b602083019150836020828501011115610c0c57600080fd5b60008060008060008060008060a0898b031215610fb957600080fd5b883567ffffffffffffffff80821115610fd157600080fd5b610fdd8c838d01610f5b565b909a50985060208b0135975060408b0135915080821115610ffd57600080fd5b6110098c838d01610f5b565b909750955060608b0135945060808b013591508082111561102957600080fd5b506110368b828c01610e75565b999c989b5096995094979396929594505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b80820180821115610bc857634e487b7160e01b600052601160045260246000fd5b6000602082840312156110a957600080fd5b81518015158114610e6e57600080fd5b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156110e857600080fd5b8260051b80858437919091019392505050565b60006020828403121561110d57600080fd5b8151610e6e81610e3c565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220755c321bc038f5a3680dd6093f3a2272cd3f521e247249593563a3b1afb057ee64736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000042a43bc18a20831a6abfc551c9476eba124c03c200000000000000000000000037b08c24ce616e7e3a439ca2f0c22aa8cdee4a34000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf

-----Decoded View---------------
Arg [0] : hamsterContractAddress_ (address): 0x42a43bc18a20831a6AbfC551C9476eBA124C03c2
Arg [1] : hamsterStorageWallet_ (address): 0x37b08c24Ce616E7E3A439Ca2f0C22aA8CdeE4a34
Arg [2] : mongsNftContractAddress_ (address): 0xb4a7d131436ed8EC06aD696FA3BF8d23C0aB3Acf

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000042a43bc18a20831a6abfc551c9476eba124c03c2
Arg [1] : 00000000000000000000000037b08c24ce616e7e3a439ca2f0c22aa8cdee4a34
Arg [2] : 000000000000000000000000b4a7d131436ed8ec06ad696fa3bf8d23c0ab3acf


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.