ETH Price: $3,452.03 (+1.57%)

Contract

0x30B20461Ca756570D3a19825Bf48eF4F8D44586F
 

Overview

ETH Balance

1.4003059 ETH

Eth Value

$4,833.89 (@ $3,452.03/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem190162352024-01-16 1:42:47343 days ago1705369367IN
0x30B20461...F8D44586F
0 ETH0.0021579525.02178917
Refund180196102023-08-29 10:13:59483 days ago1693304039IN
0x30B20461...F8D44586F
0 ETH0.0006376917.04486588
Refund180196092023-08-29 10:13:47483 days ago1693304027IN
0x30B20461...F8D44586F
0 ETH0.0006612417.66850977
Refund180194602023-08-29 9:43:47483 days ago1693302227IN
0x30B20461...F8D44586F
0 ETH0.0005861715.66266703
Refund179634672023-08-21 13:41:35491 days ago1692625295IN
0x30B20461...F8D44586F
0 ETH0.001191731.84245774
Refund179592822023-08-20 23:37:47491 days ago1692574667IN
0x30B20461...F8D44586F
0 ETH0.000445911.91848496
Refund179167712023-08-15 0:49:23497 days ago1692060563IN
0x30B20461...F8D44586F
0 ETH0.0006150915.52762337
Refund179134202023-08-14 13:35:23498 days ago1692020123IN
0x30B20461...F8D44586F
0 ETH0.0008777522.15821534
Withdraw Winning...179125192023-08-14 10:34:47498 days ago1692009287IN
0x30B20461...F8D44586F
0 ETH0.0005117414.06363284
Grant Role179125112023-08-14 10:33:11498 days ago1692009191IN
0x30B20461...F8D44586F
0 ETH0.000777315.09104288
Refund179000312023-08-12 16:39:47500 days ago1691858387IN
0x30B20461...F8D44586F
0 ETH0.0006837618.2703344
Refund178935562023-08-11 18:52:47501 days ago1691779967IN
0x30B20461...F8D44586F
0 ETH0.0010483328.01158922
Refund178903992023-08-11 8:17:35501 days ago1691741855IN
0x30B20461...F8D44586F
0 ETH0.000711919.02213293
Refund178898462023-08-11 6:26:23501 days ago1691735183IN
0x30B20461...F8D44586F
0 ETH0.0005415614.47059551
Refund178896762023-08-11 5:52:11501 days ago1691733131IN
0x30B20461...F8D44586F
0 ETH0.0005065113.53424941
Refund178884082023-08-11 1:37:11501 days ago1691717831IN
0x30B20461...F8D44586F
0 ETH0.000556513.93865679
Refund178883972023-08-11 1:34:59501 days ago1691717699IN
0x30B20461...F8D44586F
0 ETH0.000530313.28248375
Refund178883922023-08-11 1:33:59501 days ago1691717639IN
0x30B20461...F8D44586F
0 ETH0.0005207113.04620759
Refund178883902023-08-11 1:33:35501 days ago1691717615IN
0x30B20461...F8D44586F
0 ETH0.0005000513.36163532
Refund178841042023-08-10 11:11:47502 days ago1691665907IN
0x30B20461...F8D44586F
0 ETH0.0007283218.38596386
Refund178797502023-08-09 20:33:35503 days ago1691613215IN
0x30B20461...F8D44586F
0 ETH0.0010753128.73266079
Refund178786062023-08-09 16:42:23503 days ago1691599343IN
0x30B20461...F8D44586F
0 ETH0.0014666539.18912917
Refund178761522023-08-09 8:27:59503 days ago1691569679IN
0x30B20461...F8D44586F
0 ETH0.000748520
Refund178748872023-08-09 4:13:11503 days ago1691554391IN
0x30B20461...F8D44586F
0 ETH0.0006463616.31702247
Refund178742992023-08-09 2:14:23503 days ago1691547263IN
0x30B20461...F8D44586F
0 ETH0.001050226.51151754
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
180196102023-08-29 10:13:59483 days ago1693304039
0x30B20461...F8D44586F
0.251 ETH
180196092023-08-29 10:13:47483 days ago1693304027
0x30B20461...F8D44586F
0.05 ETH
180194602023-08-29 9:43:47483 days ago1693302227
0x30B20461...F8D44586F
0.05 ETH
179634672023-08-21 13:41:35491 days ago1692625295
0x30B20461...F8D44586F
0.15 ETH
179592822023-08-20 23:37:47491 days ago1692574667
0x30B20461...F8D44586F
0.12 ETH
179167712023-08-15 0:49:23497 days ago1692060563
0x30B20461...F8D44586F
0.13 ETH
179134202023-08-14 13:35:23498 days ago1692020123
0x30B20461...F8D44586F
0.14 ETH
179125192023-08-14 10:34:47498 days ago1692009287
0x30B20461...F8D44586F
46.776901 ETH
179000312023-08-12 16:39:47500 days ago1691858387
0x30B20461...F8D44586F
0.138 ETH
178935562023-08-11 18:52:47501 days ago1691779967
0x30B20461...F8D44586F
0.15 ETH
178903992023-08-11 8:17:35501 days ago1691741855
0x30B20461...F8D44586F
0.11 ETH
178898462023-08-11 6:26:23501 days ago1691735183
0x30B20461...F8D44586F
0.2 ETH
178896762023-08-11 5:52:11501 days ago1691733131
0x30B20461...F8D44586F
0.085 ETH
178884082023-08-11 1:37:11501 days ago1691717831
0x30B20461...F8D44586F
0.1 ETH
178883972023-08-11 1:34:59501 days ago1691717699
0x30B20461...F8D44586F
0.1 ETH
178883922023-08-11 1:33:59501 days ago1691717639
0x30B20461...F8D44586F
0.1 ETH
178883902023-08-11 1:33:35501 days ago1691717615
0x30B20461...F8D44586F
0.1 ETH
178841042023-08-10 11:11:47502 days ago1691665907
0x30B20461...F8D44586F
0.181 ETH
178797502023-08-09 20:33:35503 days ago1691613215
0x30B20461...F8D44586F
0.25 ETH
178786062023-08-09 16:42:23503 days ago1691599343
0x30B20461...F8D44586F
0.0502 ETH
178761522023-08-09 8:27:59503 days ago1691569679
0x30B20461...F8D44586F
0.061 ETH
178748872023-08-09 4:13:11503 days ago1691554391
0x30B20461...F8D44586F
0.73 ETH
178742992023-08-09 2:14:23503 days ago1691547263
0x30B20461...F8D44586F
0.0011 ETH
178741872023-08-09 1:51:59503 days ago1691545919
0x30B20461...F8D44586F
0.052 ETH
178737372023-08-09 0:21:23503 days ago1691540483
0x30B20461...F8D44586F
0.24 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Auction

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : Auction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

import {ReentrancyGuard} from "lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";
import {AccessControl} from "lib/openzeppelin-contracts/contracts/access/AccessControl.sol";

import {IWassieCollections} from "./IWassieCollections.sol";
import "./errors.sol";

contract Auction is AccessControl, ReentrancyGuard {
    //
    // Events
    //
    event SetCollections(uint16 id1, uint16 id2);
    event Bid(address indexed bidder, uint256 amount);
    event Refund(address indexed bidder, uint256 amount);
    event Redeemed(address indexed bidder);
    event WithdrawWinningFunds(uint256 amount);

    //
    // Structs
    //
    struct Deposit {
        uint256 amount;
        bool isTop;
        bool redeemed;
    }

    //
    // State
    //
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
    bytes32 public constant TREASURY_ROLE = keccak256("TREASURY_ROLE");

    /// start timestamp
    uint256 public start;

    /// end timestamp
    uint256 public end;

    /// The WassieCollections collection
    IWassieCollections public immutable collections;

    /// The ID of the collection
    uint16[] public ids;

    /// all deposits
    mapping(address => Deposit) public deposits;

    /// ordered set of highest bids
    address[] public highest;

    /// total amount of highest bids (grows from 0 up to the total available supply)
    uint16 public highestCount;

    /// amount of funds in the winning bids
    uint256 public winningFunds;

    /// commit for a secreat to be used for rng-reveal after the auction ends
    bytes32 public secret_commit;

    /// rng for picking allocations
    bytes32 public seed;

    /// sizes of each individual collection
    uint32[] public sizes;

    /// amount remaining on each collection
    uint32[] public remaining;

    uint256 lowestWinningBid;

    //
    // Constructor
    //

    /// Constructor
    /// @param _collections The IERC1155 contract
    /// @param _start timestamp of the auction
    /// @param _duration Duration of the auction
    /// @param _secret_commit a secret to later reveal for randomness
    constructor(IWassieCollections _collections, uint256 _start, uint256 _duration, bytes32 _secret_commit) {
        if (address(_collections) == address(0) || _start == 0 || _duration == 0 || _secret_commit == bytes32(0)) {
            revert InvalidArguments();
        }

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MANAGER_ROLE, msg.sender);

        collections = _collections;
        start = _start;
        end = _start + _duration;
        secret_commit = _secret_commit;
    }

    //
    // modifiers
    //
    modifier onlyDuringAuction() {
        if (block.timestamp < start || block.timestamp > end) {
            revert AuctionClosed();
        }
        _;
    }

    modifier onlyAfterAuction() {
        if (block.timestamp < end) {
            revert AuctionNotOver();
        }
        _;
    }

    modifier onlyAfterRng() {
        if (seed == bytes32(0)) {
            revert RngNotSet();
        }
        _;
    }

    //
    // Owner
    //

    /// Sets the collection IDs
    /// @param _id1 The ID of the first collection
    /// @param _id2 The ID of the second collection
    function setCollections(uint16 _id1, uint16 _id2) external onlyRole(MANAGER_ROLE) {
        if (highest.length > 0) {
            revert Immutable();
        }

        IWassieCollections.CollectionDetails memory details1 = collections.collectionDetails(_id1);
        IWassieCollections.CollectionDetails memory details2 = collections.collectionDetails(_id2);

        ids = new uint16[](2);
        ids[0] = _id1;
        ids[1] = _id2;

        sizes = new uint32[](2);
        sizes[0] = details1.mintableSupply;
        sizes[1] = details2.mintableSupply;

        remaining = new uint32[](2);
        remaining[0] = details1.mintableSupply;
        remaining[1] = details2.mintableSupply;

        highest = new address[](details1.mintableSupply + details2.mintableSupply);

        emit SetCollections(_id1, _id2);
    }

    function reveal(string calldata secret) external onlyAfterAuction {
        if (keccak256(abi.encodePacked(secret)) != secret_commit) {
            revert InvalidSecret();
        }

        collections.reveal(ids[0]);
        collections.reveal(ids[1]);

        seed = keccak256(abi.encodePacked(secret, block.timestamp));
    }

    /// withdraws all funds from auction winners to the contract owner
    /// can only be called once, as the amount is reset back to 0 after the first withdrawal
    function withdrawWinningFunds() external onlyRole(TREASURY_ROLE) onlyAfterAuction nonReentrant {
        uint256 amount = winningFunds;
        winningFunds = 0;
        (bool success,) = msg.sender.call{value: amount}("");

        emit WithdrawWinningFunds(amount);
        require(success);
    }

    //
    // Public API
    //

    error BidTooLow(address bidder, uint256 bid);

    /// Creates a bid, or increments an existing one
    function bid() external payable onlyDuringAuction {
        Deposit storage deposit = deposits[msg.sender];

        deposit.amount += msg.value;
        if (deposit.amount < 0.05 ether) revert BidTooLow(msg.sender, msg.value);

        if (deposit.isTop) {
            _reorderExisting(msg.sender);
        } else {
            deposit.isTop = true;
            _reorderNew(deposit);
        }

        lowestWinningBid = deposits[highest[highestCount - 1]].amount;

        emit Bid(msg.sender, msg.value);
    }

    error RefundReverted();

    /// Refunds a losing bid
    /// Can only be called once the auction is over, and for a bidder that is not in the top list
    /// @param _bidder The address to refund
    function refund(address _bidder) external nonReentrant onlyAfterAuction {
        Deposit storage deposit = deposits[_bidder];
        if (deposit.amount == 0) {
            revert CannotRefund();
        }

        if (deposit.isTop) {
            (bool ok, ) = _bidder.call{value: deposit.amount - lowestWinningBid}("");
            if (!ok) revert RefundReverted();
        } else {
            (bool ok, ) = _bidder.call{value: deposit.amount}("");
            if (!ok) revert RefundReverted();
        }
        emit Refund(_bidder, deposit.amount);

        deposits[_bidder].amount = 0;
    }

    /// Redeems a winning bid
    /// Mints a new NFT to the bidder
    function redeem(address _bidder) external nonReentrant onlyAfterRng {
        Deposit storage deposit = deposits[_bidder];

        if (!deposit.isTop || deposit.redeemed) {
            revert CannotRedeem();
        }

        deposit.redeemed = true;
        emit Redeemed(_bidder);

        uint256 idx;
        if (remaining[0] == 0) {
            idx = 1;
        } else if (remaining[1] == 0) {
            idx = 0;
        } else {
            idx = _randomizeCollectionId(_bidder);
        }
        uint16 colId = ids[idx];
        remaining[idx] -= 1;

        collections.mint(colId, _bidder, 1);
    }

    function totalSupply() external view returns (uint256) {
        return highest.length;
    }

    function _randomizeCollectionId(address _bidder) internal view returns (uint256) {
        uint256 rng = uint256(keccak256(abi.encodePacked(_bidder, seed))) % (sizes[0] + sizes[1]);

        if (rng < sizes[0]) {
            return 0;
        } else {
            return 1;
        }
    }

    //
    // internal
    //

    // finds the given submission on the highest bids, and reorders it
    // @param target sender the address to re-order
    function _reorderExisting(address target) internal {
        uint256 i = highestCount - 1;

        while (highest[i] != target) {
            --i;
        }

        _insertionSort(i);
    }

    // inserts a new deposit, keeping the collection sorted and truncated to a
    // maximum size
    // @param deposit The deposit to insert
    function _reorderNew(Deposit storage deposit) internal {
        // first bid
        if (highestCount == 0) {
            highest[0] = msg.sender;
            highestCount = 1;
            winningFunds += msg.value;
        } else if (highestCount == highest.length && deposits[highest[highestCount - 1]].amount >= deposit.amount) {
            // new amount is not enough to enter top bids
            revert NotEnough();
        } else {
            if (highestCount == highest.length) {
                Deposit storage last = deposits[highest[highestCount - 1]];

                // if list is full
                // remove last bid from top
                last.isTop = false;
                winningFunds += deposit.amount - last.amount;
                highest[highestCount - 1] = msg.sender;
            } else {
                // if not, just push to the list
                highest[highestCount] = msg.sender;
                winningFunds += msg.value;
                highestCount += 1;
            }

            _insertionSort(highestCount - 1);
        }
    }

    // performs a single insertion sort iteration
    // sorts the given array index
    // assumes all other elements are already sorted
    // @param i the index to sort
    function _insertionSort(uint256 i) internal {
        while (i > 0 && deposits[highest[i - 1]].amount < deposits[highest[i]].amount) {
            address tmp = highest[i - 1];
            highest[i - 1] = highest[i];
            highest[i] = tmp;
            --i;
        }
    }
}

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

File 3 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 11 : IWassieCollections.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

struct CreateCollectionParams {
    address minter;
    uint32 mintableSupply;
    uint32 ownerSupply;
    string name;
    string revealedURI;
    string unrevealedURI;
}

interface IWassieCollections {
    event Created(uint16 id);
    event Revealed(uint16 id);

    /// Details of each individual collection
    struct CollectionDetails {
        /// ID of the collection
        uint16 id;
        /// Address authorized to mint this collection
        address minter;
        /// Max supply available to mint
        uint32 totalSupply;
        /// Supply available to be minted
        uint32 mintableSupply;
        /// Supply available for the owner to min
        uint32 ownerSupply;
        /// Whether metadata is already revealed
        bool revealed;
        /// Collection name
        string name;
        /// Base URI for revealed metadata
        string revealedURI;
        /// URI for unrevealed metadata
        string unrevealedURI;
    }

    /// Returns details of a collection
    /// @param _id ID of the collection
    /// @return details of the collection
    function collectionDetails(uint16 _id) external view returns (CollectionDetails memory);

    /// Mints a new item
    /// @notice Must be called by the minter of the given collection
    /// @param _id ID of the collection
    /// @param _to Beneficiary
    /// @param _amount number of items to mint
    function mint(uint16 _id, address _to, uint256 _amount) external;

    /// Reveals a collection
    /// @notice Only the minter can reveal a collection
    ///
    /// @param _id collection ID
    function reveal(uint16 _id) external;
}

File 5 of 11 : errors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

error MaxSupplyReached();
error InvalidArguments();
error NotMinter();
error InvalidCollection();
error Immutable();
error NotEnough();
error CannotRefund();
error CannotRedeem();
error AuctionClosed();
error AuctionNotOver();
error AlreadyRevealed();
error InvalidSecret();
error RngNotSet();

File 6 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

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

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

File 11 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);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IWassieCollections","name":"_collections","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"bytes32","name":"_secret_commit","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AuctionClosed","type":"error"},{"inputs":[],"name":"AuctionNotOver","type":"error"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"bid","type":"uint256"}],"name":"BidTooLow","type":"error"},{"inputs":[],"name":"CannotRedeem","type":"error"},{"inputs":[],"name":"CannotRefund","type":"error"},{"inputs":[],"name":"Immutable","type":"error"},{"inputs":[],"name":"InvalidArguments","type":"error"},{"inputs":[],"name":"InvalidSecret","type":"error"},{"inputs":[],"name":"NotEnough","type":"error"},{"inputs":[],"name":"RefundReverted","type":"error"},{"inputs":[],"name":"RngNotSet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"id1","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"id2","type":"uint16"}],"name":"SetCollections","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawWinningFunds","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"collections","outputs":[{"internalType":"contract IWassieCollections","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isTop","type":"bool"},{"internalType":"bool","name":"redeemed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"highest","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"highestCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ids","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bidder","type":"address"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bidder","type":"address"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"remaining","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"secret","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secret_commit","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seed","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_id1","type":"uint16"},{"internalType":"uint16","name":"_id2","type":"uint16"}],"name":"setCollections","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sizes","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winningFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawWinningFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620027f0380380620027f083398101604081905262000034916200019b565b600180556001600160a01b03841615806200004d575082155b8062000057575081155b8062000061575080155b1562000080576040516317dbc4cb60e21b815260040160405180910390fd5b6200008d600033620000e7565b620000b97f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0833620000e7565b6001600160a01b0384166080526002839055620000d78284620001e8565b600355600955506200020a915050565b620000f3828262000170565b6200016c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200012b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff165b92915050565b60008060008060808587031215620001b257600080fd5b84516001600160a01b0381168114620001ca57600080fd5b60208601516040870151606090970151919890975090945092505050565b808201808211156200019557634e487b7160e01b600052601160045260246000fd5b6080516125a7620002496000396000818161047f0152818161088f0152818161094201528181610c7b01528181610d4d0152610deb01526125a76000f3fe6080604052600436106101b75760003560e01c8063b1541b0c116100ec578063e562dfd61161008a578063efbe1c1c11610064578063efbe1c1c14610503578063fa89401a14610519578063fac333ac14610539578063fc7e286d1461055957600080fd5b8063e562dfd61461046d578063e6742898146104a1578063ec87621c146104cf57600080fd5b8063d11a57ec116100c6578063d11a57ec146103c1578063d547741f146103f5578063d9a9b0c614610415578063e076913c1461043557600080fd5b8063b1541b0c14610376578063be9a655514610396578063ca09f945146103ac57600080fd5b80634c261247116101595780637ecdf746116101335780637ecdf7461461030b57806391d148541461032157806395a2251f14610341578063a217fddf1461036157600080fd5b80634c261247146102bf57806361a04fbc146102df5780637d94792a146102f557600080fd5b80631998aeef116101955780631998aeef14610245578063248a9ca31461024f5780632f2ff15d1461027f57806336568abe1461029f57600080fd5b806301ffc9a7146101bc5780630361bf14146101f157806318160ddd14610226575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611fee565b6105b6565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061021161020c366004612018565b6105ed565b60405163ffffffff90911681526020016101e8565b34801561023257600080fd5b506006545b6040519081526020016101e8565b61024d610627565b005b34801561025b57600080fd5b5061023761026a366004612018565b60009081526020819052604090206001015490565b34801561028b57600080fd5b5061024d61029a366004612046565b610778565b3480156102ab57600080fd5b5061024d6102ba366004612046565b6107a2565b3480156102cb57600080fd5b5061024d6102da366004612076565b610820565b3480156102eb57600080fd5b5061023760095481565b34801561030157600080fd5b50610237600a5481565b34801561031757600080fd5b5061023760085481565b34801561032d57600080fd5b506101dc61033c366004612046565b610a27565b34801561034d57600080fd5b5061024d61035c3660046120e8565b610a50565b34801561036d57600080fd5b50610237600081565b34801561038257600080fd5b5061024d610391366004612115565b610ce6565b3480156103a257600080fd5b5061023760025481565b3480156103b857600080fd5b5061024d6111ad565b3480156103cd57600080fd5b506102377fe1dcbdb91df27212a29bc27177c840cf2f819ecf2187432e1fac86c2dd5dfca981565b34801561040157600080fd5b5061024d610410366004612046565b6112a5565b34801561042157600080fd5b50610211610430366004612018565b6112ca565b34801561044157600080fd5b50610455610450366004612018565b6112da565b6040516001600160a01b0390911681526020016101e8565b34801561047957600080fd5b506104557f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ad57600080fd5b506007546104bc9061ffff1681565b60405161ffff90911681526020016101e8565b3480156104db57600080fd5b506102377f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561050f57600080fd5b5061023760035481565b34801561052557600080fd5b5061024d6105343660046120e8565b611304565b34801561054557600080fd5b506104bc610554366004612018565b6114d3565b34801561056557600080fd5b506105996105743660046120e8565b6005602052600090815260409020805460019091015460ff8082169161010090041683565b6040805193845291151560208401521515908201526060016101e8565b60006001600160e01b03198216637965db0b60e01b14806105e757506301ffc9a760e01b6001600160e01b03198316145b92915050565b600c81815481106105fd57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b600254421080610638575060035442115b15610656576040516336b6b46d60e01b815260040160405180910390fd5b336000908152600560205260408120805490913491839190610679908490612159565b9091555050805466b1a2bc2ec5000011156106b4576040516356320b8560e01b81523360048201523460248201526044015b60405180910390fd5b600181015460ff16156106cf576106ca3361150b565b6106e8565b6001818101805460ff191690911790556106e881611578565b6007546005906000906006906107049060019061ffff1661216c565b61ffff16815481106107185761071861218e565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902054600d555134815233917fe684a55f31b79eca403df938249029212a5925ec6be8012e099b45bc1019e5d2910160405180910390a250565b60008281526020819052604090206001015461079381611826565b61079d8383611830565b505050565b6001600160a01b03811633146108125760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106ab565b61081c82826118b4565b5050565b6003544210156108435760405163058ebc1760e11b815260040160405180910390fd5b60095482826040516020016108599291906121a4565b604051602081830303815290604052805190602001201461088d5760405163abab6bd760e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3ae547a60046000815481106108d0576108d061218e565b6000918252602090912060108204015460405160e084901b6001600160e01b0319168152600f9092166002026101000a900461ffff166004820152602401600060405180830381600087803b15801561092857600080fd5b505af115801561093c573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3ae547a60046001815481106109835761098361218e565b6000918252602090912060108204015460405160e084901b6001600160e01b0319168152600f9092166002026101000a900461ffff166004820152602401600060405180830381600087803b1580156109db57600080fd5b505af11580156109ef573d6000803e3d6000fd5b50505050818142604051602001610a08939291906121b4565b60408051601f198184030181529190528051602090910120600a555050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610a58611919565b600a54610a7857604051633cec027760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600560205260409020600181015460ff161580610aad57506001810154610100900460ff165b15610acb5760405163061c42b960e11b815260040160405180910390fd5b60018101805461ff0019166101001790556040516001600160a01b038316907fcb7d87f76b4d6501ac27ed560664bf84ce273a2ddd7b9b1da63c753e68ccae2090600090a26000600c600081548110610b2657610b2661218e565b60009182526020822060088204015460079091166004026101000a900463ffffffff169003610b5757506001610ba8565b600c600181548110610b6b57610b6b61218e565b60009182526020822060088204015460079091166004026101000a900463ffffffff169003610b9c57506000610ba8565b610ba583611972565b90505b600060048281548110610bbd57610bbd61218e565b90600052602060002090601091828204019190066002029054906101000a900461ffff1690506001600c8381548110610bf857610bf861218e565b90600052602060002090600891828204019190066004028282829054906101000a900463ffffffff16610c2b91906121c6565b825463ffffffff9182166101009390930a9283029190920219909116179055506040516397cd0ab160e01b815261ffff821660048201526001600160a01b038581166024830152600160448301527f000000000000000000000000000000000000000000000000000000000000000016906397cd0ab190606401600060405180830381600087803b158015610cbf57600080fd5b505af1158015610cd3573d6000803e3d6000fd5b50505050505050610ce360018055565b50565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610d1081611826565b60065415610d3157604051635dbbc87360e11b815260040160405180910390fd5b604051630c530b9560e31b815261ffff841660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906362985ca890602401600060405180830381865afa158015610d9c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dc4919081019061230e565b604051630c530b9560e31b815261ffff851660048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906362985ca890602401600060405180830381865afa158015610e32573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e5a919081019061230e565b604080516002808252606082018352929350919060208301908036833750508151610e8c926004925060200190611e3e565b50846004600081548110610ea257610ea261218e565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550836004600181548110610ee657610ee661218e565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600267ffffffffffffffff811115610f2f57610f2f6121e3565b604051908082528060200260200182016040528015610f58578160200160208202803683370190505b508051610f6d91600b91602090910190611ee7565b508160600151600b600081548110610f8757610f8761218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151600b600181548110610fd357610fd361218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff160217905550600267ffffffffffffffff811115611020576110206121e3565b604051908082528060200260200182016040528015611049578160200160208202803683370190505b50805161105e91600c91602090910190611ee7565b508160600151600c6000815481106110785761107861218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151600c6001815481106110c4576110c461218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151826060015161110b919061242e565b63ffffffff1667ffffffffffffffff811115611129576111296121e3565b604051908082528060200260200182016040528015611152578160200160208202803683370190505b50805161116791600691602090910190611f84565b506040805161ffff8088168252861660208201527fcc34c8dabf686d9befeb38afc1faf731f28800f2d35cf2f1df8d11e2cda94e66910160405180910390a15050505050565b7fe1dcbdb91df27212a29bc27177c840cf2f819ecf2187432e1fac86c2dd5dfca96111d781611826565b6003544210156111fa5760405163058ebc1760e11b815260040160405180910390fd5b611202611919565b60088054600091829055604051909190339083908381818185875af1925050503d806000811461124e576040519150601f19603f3d011682016040523d82523d6000602084013e611253565b606091505b505090507ffcfd0ce1fe1525446bb4a9b80e5a0ffc89de37840aa2a080b1e995b1e3bb6ff38260405161128891815260200190565b60405180910390a18061129a57600080fd5b5050610ce360018055565b6000828152602081905260409020600101546112c081611826565b61079d83836118b4565b600b81815481106105fd57600080fd5b600681815481106112ea57600080fd5b6000918252602090912001546001600160a01b0316905081565b61130c611919565b60035442101561132f5760405163058ebc1760e11b815260040160405180910390fd5b6001600160a01b03811660009081526005602052604081208054909103611368576040516202d94960ed1b815260040160405180910390fd5b600181015460ff16156113fc576000826001600160a01b0316600d548360000154611393919061244b565b604051600081818185875af1925050503d80600081146113cf576040519150601f19603f3d011682016040523d82523d6000602084013e6113d4565b606091505b50509050806113f657604051631cac8d9960e21b815260040160405180910390fd5b50611470565b80546040516000916001600160a01b038516918381818185875af1925050503d8060008114611447576040519150601f19603f3d011682016040523d82523d6000602084013e61144c565b606091505b505090508061146e57604051631cac8d9960e21b815260040160405180910390fd5b505b80546040519081526001600160a01b038316907fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d9060200160405180910390a2506001600160a01b038116600090815260056020526040812055610ce360018055565b600481815481106114e357600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b6007546000906115219060019061ffff1661216c565b61ffff1690505b816001600160a01b0316600682815481106115455761154561218e565b6000918252602090912001546001600160a01b03161461156f576115688161245e565b9050611528565b61081c81611aa1565b60075461ffff166000036115ef5733600660008154811061159b5761159b61218e565b6000918252602082200180546001600160a01b0319166001600160a01b0393909316929092179091556007805461ffff19166001179055600880543492906115e4908490612159565b90915550610ce39050565b60065460075461ffff1614801561165b5750805460075460059060009060069061161f9060019061ffff1661216c565b61ffff16815481106116335761163361218e565b60009182526020808320909101546001600160a01b0316835282019290925260400190205410155b156116795760405163342ccafd60e21b815260040160405180910390fd5b60065460075461ffff16036117705760075460009060059082906006906116a69060019061ffff1661216c565b61ffff16815481106116ba576116ba61218e565b60009182526020808320909101546001600160a01b03168352820192909252604001902060018101805460ff19169055805483549192506116fa9161244b565b6008600082825461170b9190612159565b909155505060075433906006906117289060019061ffff1661216c565b61ffff168154811061173c5761173c61218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050611806565b60075460068054339261ffff1690811061178c5761178c61218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555034600860008282546117cc9190612159565b909155505060078054600191906000906117eb90849061ffff16612475565b92506101000a81548161ffff021916908361ffff1602179055505b600754610ce39061181d9060019061ffff1661216c565b61ffff16611aa1565b610ce38133611c30565b61183a8282610a27565b61081c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556118703390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118be8282610a27565b1561081c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60026001540361196b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ab565b6002600155565b600080600b6001815481106119895761198961218e565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16600b6000815481106119c3576119c361218e565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff166119f3919061242e565b63ffffffff1683600a54604051602001611a2b92919060609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6040516020818303038152906040528051906020012060001c611a4e9190612490565b9050600b600081548110611a6457611a6461218e565b6000918252602090912060088204015460079091166004026101000a900463ffffffff16811015611a985750600092915050565b50600192915050565b600081118015611b3057506005600060068381548110611ac357611ac361218e565b60009182526020808320909101546001600160a01b03168352820192909252604001812054906005906006611af960018661244b565b81548110611b0957611b0961218e565b60009182526020808320909101546001600160a01b03168352820192909252604001902054105b15610ce35760006006611b4460018461244b565b81548110611b5457611b5461218e565b600091825260209091200154600680546001600160a01b0390921692509083908110611b8257611b8261218e565b6000918252602090912001546001600160a01b03166006611ba460018561244b565b81548110611bb457611bb461218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060068381548110611bf657611bf661218e565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055611c288261245e565b915050611aa1565b611c3a8282610a27565b61081c57611c4781611c89565b611c52836020611c9b565b604051602001611c639291906124b2565b60408051601f198184030181529082905262461bcd60e51b82526106ab91600401612527565b60606105e76001600160a01b03831660145b60606000611caa83600261255a565b611cb5906002612159565b67ffffffffffffffff811115611ccd57611ccd6121e3565b6040519080825280601f01601f191660200182016040528015611cf7576020820181803683370190505b509050600360fc1b81600081518110611d1257611d1261218e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d4157611d4161218e565b60200101906001600160f81b031916908160001a9053506000611d6584600261255a565b611d70906001612159565b90505b6001811115611de8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611da457611da461218e565b1a60f81b828281518110611dba57611dba61218e565b60200101906001600160f81b031916908160001a90535060049490941c93611de18161245e565b9050611d73565b508315611e375760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106ab565b9392505050565b82805482825590600052602060002090600f01601090048101928215611ed75791602002820160005b83821115611ea757835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302611e67565b8015611ed55782816101000a81549061ffff0219169055600201602081600101049283019260010302611ea7565b505b50611ee3929150611fd9565b5090565b82805482825590600052602060002090600701600890048101928215611ed75791602002820160005b83821115611f5457835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302611f10565b8015611ed55782816101000a81549063ffffffff0219169055600401602081600301049283019260010302611f54565b828054828255906000526020600020908101928215611ed7579160200282015b82811115611ed757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611fa4565b5b80821115611ee35760008155600101611fda565b60006020828403121561200057600080fd5b81356001600160e01b031981168114611e3757600080fd5b60006020828403121561202a57600080fd5b5035919050565b6001600160a01b0381168114610ce357600080fd5b6000806040838503121561205957600080fd5b82359150602083013561206b81612031565b809150509250929050565b6000806020838503121561208957600080fd5b823567ffffffffffffffff808211156120a157600080fd5b818501915085601f8301126120b557600080fd5b8135818111156120c457600080fd5b8660208285010111156120d657600080fd5b60209290920196919550909350505050565b6000602082840312156120fa57600080fd5b8135611e3781612031565b61ffff81168114610ce357600080fd5b6000806040838503121561212857600080fd5b823561213381612105565b9150602083013561206b81612105565b634e487b7160e01b600052601160045260246000fd5b808201808211156105e7576105e7612143565b61ffff82811682821603908082111561218757612187612143565b5092915050565b634e487b7160e01b600052603260045260246000fd5b8183823760009101908152919050565b82848237909101908152602001919050565b63ffffffff82811682821603908082111561218757612187612143565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff8111828210171561221d5761221d6121e3565b60405290565b805161222e81612105565b919050565b805161222e81612031565b805163ffffffff8116811461222e57600080fd5b8051801515811461222e57600080fd5b60005b8381101561227d578181015183820152602001612265565b50506000910152565b600082601f83011261229757600080fd5b815167ffffffffffffffff808211156122b2576122b26121e3565b604051601f8301601f19908116603f011681019082821181831017156122da576122da6121e3565b816040528381528660208588010111156122f357600080fd5b612304846020830160208901612262565b9695505050505050565b60006020828403121561232057600080fd5b815167ffffffffffffffff8082111561233857600080fd5b90830190610120828603121561234d57600080fd5b6123556121f9565b61235e83612223565b815261236c60208401612233565b602082015261237d6040840161223e565b604082015261238e6060840161223e565b606082015261239f6080840161223e565b60808201526123b060a08401612252565b60a082015260c0830151828111156123c757600080fd5b6123d387828601612286565b60c08301525060e0830151828111156123eb57600080fd5b6123f787828601612286565b60e083015250610100808401518381111561241157600080fd5b61241d88828701612286565b918301919091525095945050505050565b63ffffffff81811683821601908082111561218757612187612143565b818103818111156105e7576105e7612143565b60008161246d5761246d612143565b506000190190565b61ffff81811683821601908082111561218757612187612143565b6000826124ad57634e487b7160e01b600052601260045260246000fd5b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516124ea816017850160208801612262565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161251b816028840160208801612262565b01602801949350505050565b6020815260008251806020840152612546816040850160208701612262565b601f01601f19169190910160400192915050565b80820281158282048414176105e7576105e761214356fea2646970667358221220234423656044484395aba2c0031eafc216101b966085cb02ba24a888f33eb7a864736f6c6343000813003300000000000000000000000018780cee3781a298fc28df29890c9f4384ebec860000000000000000000000000000000000000000000000000000000064cd2e90000000000000000000000000000000000000000000000000000000000002a300741d1751b58083acb72945351b1550244d5607006ae1b5cebfa72fe72985b816

Deployed Bytecode

0x6080604052600436106101b75760003560e01c8063b1541b0c116100ec578063e562dfd61161008a578063efbe1c1c11610064578063efbe1c1c14610503578063fa89401a14610519578063fac333ac14610539578063fc7e286d1461055957600080fd5b8063e562dfd61461046d578063e6742898146104a1578063ec87621c146104cf57600080fd5b8063d11a57ec116100c6578063d11a57ec146103c1578063d547741f146103f5578063d9a9b0c614610415578063e076913c1461043557600080fd5b8063b1541b0c14610376578063be9a655514610396578063ca09f945146103ac57600080fd5b80634c261247116101595780637ecdf746116101335780637ecdf7461461030b57806391d148541461032157806395a2251f14610341578063a217fddf1461036157600080fd5b80634c261247146102bf57806361a04fbc146102df5780637d94792a146102f557600080fd5b80631998aeef116101955780631998aeef14610245578063248a9ca31461024f5780632f2ff15d1461027f57806336568abe1461029f57600080fd5b806301ffc9a7146101bc5780630361bf14146101f157806318160ddd14610226575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611fee565b6105b6565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061021161020c366004612018565b6105ed565b60405163ffffffff90911681526020016101e8565b34801561023257600080fd5b506006545b6040519081526020016101e8565b61024d610627565b005b34801561025b57600080fd5b5061023761026a366004612018565b60009081526020819052604090206001015490565b34801561028b57600080fd5b5061024d61029a366004612046565b610778565b3480156102ab57600080fd5b5061024d6102ba366004612046565b6107a2565b3480156102cb57600080fd5b5061024d6102da366004612076565b610820565b3480156102eb57600080fd5b5061023760095481565b34801561030157600080fd5b50610237600a5481565b34801561031757600080fd5b5061023760085481565b34801561032d57600080fd5b506101dc61033c366004612046565b610a27565b34801561034d57600080fd5b5061024d61035c3660046120e8565b610a50565b34801561036d57600080fd5b50610237600081565b34801561038257600080fd5b5061024d610391366004612115565b610ce6565b3480156103a257600080fd5b5061023760025481565b3480156103b857600080fd5b5061024d6111ad565b3480156103cd57600080fd5b506102377fe1dcbdb91df27212a29bc27177c840cf2f819ecf2187432e1fac86c2dd5dfca981565b34801561040157600080fd5b5061024d610410366004612046565b6112a5565b34801561042157600080fd5b50610211610430366004612018565b6112ca565b34801561044157600080fd5b50610455610450366004612018565b6112da565b6040516001600160a01b0390911681526020016101e8565b34801561047957600080fd5b506104557f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec8681565b3480156104ad57600080fd5b506007546104bc9061ffff1681565b60405161ffff90911681526020016101e8565b3480156104db57600080fd5b506102377f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561050f57600080fd5b5061023760035481565b34801561052557600080fd5b5061024d6105343660046120e8565b611304565b34801561054557600080fd5b506104bc610554366004612018565b6114d3565b34801561056557600080fd5b506105996105743660046120e8565b6005602052600090815260409020805460019091015460ff8082169161010090041683565b6040805193845291151560208401521515908201526060016101e8565b60006001600160e01b03198216637965db0b60e01b14806105e757506301ffc9a760e01b6001600160e01b03198316145b92915050565b600c81815481106105fd57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b600254421080610638575060035442115b15610656576040516336b6b46d60e01b815260040160405180910390fd5b336000908152600560205260408120805490913491839190610679908490612159565b9091555050805466b1a2bc2ec5000011156106b4576040516356320b8560e01b81523360048201523460248201526044015b60405180910390fd5b600181015460ff16156106cf576106ca3361150b565b6106e8565b6001818101805460ff191690911790556106e881611578565b6007546005906000906006906107049060019061ffff1661216c565b61ffff16815481106107185761071861218e565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902054600d555134815233917fe684a55f31b79eca403df938249029212a5925ec6be8012e099b45bc1019e5d2910160405180910390a250565b60008281526020819052604090206001015461079381611826565b61079d8383611830565b505050565b6001600160a01b03811633146108125760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106ab565b61081c82826118b4565b5050565b6003544210156108435760405163058ebc1760e11b815260040160405180910390fd5b60095482826040516020016108599291906121a4565b604051602081830303815290604052805190602001201461088d5760405163abab6bd760e01b815260040160405180910390fd5b7f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec866001600160a01b031663f3ae547a60046000815481106108d0576108d061218e565b6000918252602090912060108204015460405160e084901b6001600160e01b0319168152600f9092166002026101000a900461ffff166004820152602401600060405180830381600087803b15801561092857600080fd5b505af115801561093c573d6000803e3d6000fd5b505050507f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec866001600160a01b031663f3ae547a60046001815481106109835761098361218e565b6000918252602090912060108204015460405160e084901b6001600160e01b0319168152600f9092166002026101000a900461ffff166004820152602401600060405180830381600087803b1580156109db57600080fd5b505af11580156109ef573d6000803e3d6000fd5b50505050818142604051602001610a08939291906121b4565b60408051601f198184030181529190528051602090910120600a555050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610a58611919565b600a54610a7857604051633cec027760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600560205260409020600181015460ff161580610aad57506001810154610100900460ff165b15610acb5760405163061c42b960e11b815260040160405180910390fd5b60018101805461ff0019166101001790556040516001600160a01b038316907fcb7d87f76b4d6501ac27ed560664bf84ce273a2ddd7b9b1da63c753e68ccae2090600090a26000600c600081548110610b2657610b2661218e565b60009182526020822060088204015460079091166004026101000a900463ffffffff169003610b5757506001610ba8565b600c600181548110610b6b57610b6b61218e565b60009182526020822060088204015460079091166004026101000a900463ffffffff169003610b9c57506000610ba8565b610ba583611972565b90505b600060048281548110610bbd57610bbd61218e565b90600052602060002090601091828204019190066002029054906101000a900461ffff1690506001600c8381548110610bf857610bf861218e565b90600052602060002090600891828204019190066004028282829054906101000a900463ffffffff16610c2b91906121c6565b825463ffffffff9182166101009390930a9283029190920219909116179055506040516397cd0ab160e01b815261ffff821660048201526001600160a01b038581166024830152600160448301527f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec8616906397cd0ab190606401600060405180830381600087803b158015610cbf57600080fd5b505af1158015610cd3573d6000803e3d6000fd5b50505050505050610ce360018055565b50565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610d1081611826565b60065415610d3157604051635dbbc87360e11b815260040160405180910390fd5b604051630c530b9560e31b815261ffff841660048201526000907f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec866001600160a01b0316906362985ca890602401600060405180830381865afa158015610d9c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dc4919081019061230e565b604051630c530b9560e31b815261ffff851660048201529091506000906001600160a01b037f00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec8616906362985ca890602401600060405180830381865afa158015610e32573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e5a919081019061230e565b604080516002808252606082018352929350919060208301908036833750508151610e8c926004925060200190611e3e565b50846004600081548110610ea257610ea261218e565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550836004600181548110610ee657610ee661218e565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600267ffffffffffffffff811115610f2f57610f2f6121e3565b604051908082528060200260200182016040528015610f58578160200160208202803683370190505b508051610f6d91600b91602090910190611ee7565b508160600151600b600081548110610f8757610f8761218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151600b600181548110610fd357610fd361218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff160217905550600267ffffffffffffffff811115611020576110206121e3565b604051908082528060200260200182016040528015611049578160200160208202803683370190505b50805161105e91600c91602090910190611ee7565b508160600151600c6000815481106110785761107861218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151600c6001815481106110c4576110c461218e565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508060600151826060015161110b919061242e565b63ffffffff1667ffffffffffffffff811115611129576111296121e3565b604051908082528060200260200182016040528015611152578160200160208202803683370190505b50805161116791600691602090910190611f84565b506040805161ffff8088168252861660208201527fcc34c8dabf686d9befeb38afc1faf731f28800f2d35cf2f1df8d11e2cda94e66910160405180910390a15050505050565b7fe1dcbdb91df27212a29bc27177c840cf2f819ecf2187432e1fac86c2dd5dfca96111d781611826565b6003544210156111fa5760405163058ebc1760e11b815260040160405180910390fd5b611202611919565b60088054600091829055604051909190339083908381818185875af1925050503d806000811461124e576040519150601f19603f3d011682016040523d82523d6000602084013e611253565b606091505b505090507ffcfd0ce1fe1525446bb4a9b80e5a0ffc89de37840aa2a080b1e995b1e3bb6ff38260405161128891815260200190565b60405180910390a18061129a57600080fd5b5050610ce360018055565b6000828152602081905260409020600101546112c081611826565b61079d83836118b4565b600b81815481106105fd57600080fd5b600681815481106112ea57600080fd5b6000918252602090912001546001600160a01b0316905081565b61130c611919565b60035442101561132f5760405163058ebc1760e11b815260040160405180910390fd5b6001600160a01b03811660009081526005602052604081208054909103611368576040516202d94960ed1b815260040160405180910390fd5b600181015460ff16156113fc576000826001600160a01b0316600d548360000154611393919061244b565b604051600081818185875af1925050503d80600081146113cf576040519150601f19603f3d011682016040523d82523d6000602084013e6113d4565b606091505b50509050806113f657604051631cac8d9960e21b815260040160405180910390fd5b50611470565b80546040516000916001600160a01b038516918381818185875af1925050503d8060008114611447576040519150601f19603f3d011682016040523d82523d6000602084013e61144c565b606091505b505090508061146e57604051631cac8d9960e21b815260040160405180910390fd5b505b80546040519081526001600160a01b038316907fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d9060200160405180910390a2506001600160a01b038116600090815260056020526040812055610ce360018055565b600481815481106114e357600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b6007546000906115219060019061ffff1661216c565b61ffff1690505b816001600160a01b0316600682815481106115455761154561218e565b6000918252602090912001546001600160a01b03161461156f576115688161245e565b9050611528565b61081c81611aa1565b60075461ffff166000036115ef5733600660008154811061159b5761159b61218e565b6000918252602082200180546001600160a01b0319166001600160a01b0393909316929092179091556007805461ffff19166001179055600880543492906115e4908490612159565b90915550610ce39050565b60065460075461ffff1614801561165b5750805460075460059060009060069061161f9060019061ffff1661216c565b61ffff16815481106116335761163361218e565b60009182526020808320909101546001600160a01b0316835282019290925260400190205410155b156116795760405163342ccafd60e21b815260040160405180910390fd5b60065460075461ffff16036117705760075460009060059082906006906116a69060019061ffff1661216c565b61ffff16815481106116ba576116ba61218e565b60009182526020808320909101546001600160a01b03168352820192909252604001902060018101805460ff19169055805483549192506116fa9161244b565b6008600082825461170b9190612159565b909155505060075433906006906117289060019061ffff1661216c565b61ffff168154811061173c5761173c61218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050611806565b60075460068054339261ffff1690811061178c5761178c61218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555034600860008282546117cc9190612159565b909155505060078054600191906000906117eb90849061ffff16612475565b92506101000a81548161ffff021916908361ffff1602179055505b600754610ce39061181d9060019061ffff1661216c565b61ffff16611aa1565b610ce38133611c30565b61183a8282610a27565b61081c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556118703390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118be8282610a27565b1561081c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60026001540361196b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ab565b6002600155565b600080600b6001815481106119895761198961218e565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16600b6000815481106119c3576119c361218e565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff166119f3919061242e565b63ffffffff1683600a54604051602001611a2b92919060609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6040516020818303038152906040528051906020012060001c611a4e9190612490565b9050600b600081548110611a6457611a6461218e565b6000918252602090912060088204015460079091166004026101000a900463ffffffff16811015611a985750600092915050565b50600192915050565b600081118015611b3057506005600060068381548110611ac357611ac361218e565b60009182526020808320909101546001600160a01b03168352820192909252604001812054906005906006611af960018661244b565b81548110611b0957611b0961218e565b60009182526020808320909101546001600160a01b03168352820192909252604001902054105b15610ce35760006006611b4460018461244b565b81548110611b5457611b5461218e565b600091825260209091200154600680546001600160a01b0390921692509083908110611b8257611b8261218e565b6000918252602090912001546001600160a01b03166006611ba460018561244b565b81548110611bb457611bb461218e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060068381548110611bf657611bf661218e565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055611c288261245e565b915050611aa1565b611c3a8282610a27565b61081c57611c4781611c89565b611c52836020611c9b565b604051602001611c639291906124b2565b60408051601f198184030181529082905262461bcd60e51b82526106ab91600401612527565b60606105e76001600160a01b03831660145b60606000611caa83600261255a565b611cb5906002612159565b67ffffffffffffffff811115611ccd57611ccd6121e3565b6040519080825280601f01601f191660200182016040528015611cf7576020820181803683370190505b509050600360fc1b81600081518110611d1257611d1261218e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d4157611d4161218e565b60200101906001600160f81b031916908160001a9053506000611d6584600261255a565b611d70906001612159565b90505b6001811115611de8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611da457611da461218e565b1a60f81b828281518110611dba57611dba61218e565b60200101906001600160f81b031916908160001a90535060049490941c93611de18161245e565b9050611d73565b508315611e375760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106ab565b9392505050565b82805482825590600052602060002090600f01601090048101928215611ed75791602002820160005b83821115611ea757835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302611e67565b8015611ed55782816101000a81549061ffff0219169055600201602081600101049283019260010302611ea7565b505b50611ee3929150611fd9565b5090565b82805482825590600052602060002090600701600890048101928215611ed75791602002820160005b83821115611f5457835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302611f10565b8015611ed55782816101000a81549063ffffffff0219169055600401602081600301049283019260010302611f54565b828054828255906000526020600020908101928215611ed7579160200282015b82811115611ed757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611fa4565b5b80821115611ee35760008155600101611fda565b60006020828403121561200057600080fd5b81356001600160e01b031981168114611e3757600080fd5b60006020828403121561202a57600080fd5b5035919050565b6001600160a01b0381168114610ce357600080fd5b6000806040838503121561205957600080fd5b82359150602083013561206b81612031565b809150509250929050565b6000806020838503121561208957600080fd5b823567ffffffffffffffff808211156120a157600080fd5b818501915085601f8301126120b557600080fd5b8135818111156120c457600080fd5b8660208285010111156120d657600080fd5b60209290920196919550909350505050565b6000602082840312156120fa57600080fd5b8135611e3781612031565b61ffff81168114610ce357600080fd5b6000806040838503121561212857600080fd5b823561213381612105565b9150602083013561206b81612105565b634e487b7160e01b600052601160045260246000fd5b808201808211156105e7576105e7612143565b61ffff82811682821603908082111561218757612187612143565b5092915050565b634e487b7160e01b600052603260045260246000fd5b8183823760009101908152919050565b82848237909101908152602001919050565b63ffffffff82811682821603908082111561218757612187612143565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff8111828210171561221d5761221d6121e3565b60405290565b805161222e81612105565b919050565b805161222e81612031565b805163ffffffff8116811461222e57600080fd5b8051801515811461222e57600080fd5b60005b8381101561227d578181015183820152602001612265565b50506000910152565b600082601f83011261229757600080fd5b815167ffffffffffffffff808211156122b2576122b26121e3565b604051601f8301601f19908116603f011681019082821181831017156122da576122da6121e3565b816040528381528660208588010111156122f357600080fd5b612304846020830160208901612262565b9695505050505050565b60006020828403121561232057600080fd5b815167ffffffffffffffff8082111561233857600080fd5b90830190610120828603121561234d57600080fd5b6123556121f9565b61235e83612223565b815261236c60208401612233565b602082015261237d6040840161223e565b604082015261238e6060840161223e565b606082015261239f6080840161223e565b60808201526123b060a08401612252565b60a082015260c0830151828111156123c757600080fd5b6123d387828601612286565b60c08301525060e0830151828111156123eb57600080fd5b6123f787828601612286565b60e083015250610100808401518381111561241157600080fd5b61241d88828701612286565b918301919091525095945050505050565b63ffffffff81811683821601908082111561218757612187612143565b818103818111156105e7576105e7612143565b60008161246d5761246d612143565b506000190190565b61ffff81811683821601908082111561218757612187612143565b6000826124ad57634e487b7160e01b600052601260045260246000fd5b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516124ea816017850160208801612262565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161251b816028840160208801612262565b01602801949350505050565b6020815260008251806020840152612546816040850160208701612262565b601f01601f19169190910160400192915050565b80820281158282048414176105e7576105e761214356fea2646970667358221220234423656044484395aba2c0031eafc216101b966085cb02ba24a888f33eb7a864736f6c63430008130033

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

00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec860000000000000000000000000000000000000000000000000000000064cd2e90000000000000000000000000000000000000000000000000000000000002a300741d1751b58083acb72945351b1550244d5607006ae1b5cebfa72fe72985b816

-----Decoded View---------------
Arg [0] : _collections (address): 0x18780CEE3781A298FC28dF29890C9f4384EBEc86
Arg [1] : _start (uint256): 1691168400
Arg [2] : _duration (uint256): 172800
Arg [3] : _secret_commit (bytes32): 0x741d1751b58083acb72945351b1550244d5607006ae1b5cebfa72fe72985b816

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000018780cee3781a298fc28df29890c9f4384ebec86
Arg [1] : 0000000000000000000000000000000000000000000000000000000064cd2e90
Arg [2] : 000000000000000000000000000000000000000000000000000000000002a300
Arg [3] : 741d1751b58083acb72945351b1550244d5607006ae1b5cebfa72fe72985b816


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  ]
[ 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.