ETH Price: $1,589.50 (+0.41%)

Contract

0x6922A3667d6cc29B2b47Cb74B9a3d56FA272024b

Overview

ETH Balance

0.161139 ETH

ETH Value

$256.13 (@ $1,589.50/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Settle Trade70526162025-04-19 1:18:3535 secs ago1745025515IN
0x6922A366...FA272024b
0 ETH0.000006550.04525
Deposit Escrow70525922025-04-19 1:18:111 mins ago1745025491IN
0x6922A366...FA272024b
0.03739881 ETH0.000006590.04525
Settle Trade70515532025-04-19 1:00:1518 mins ago1745024415IN
0x6922A366...FA272024b
0 ETH0.000005860.04525
Settle Trade70515422025-04-19 1:00:0419 mins ago1745024404IN
0x6922A366...FA272024b
0 ETH0.000005860.04525
Deposit Escrow70515272025-04-19 0:59:4919 mins ago1745024389IN
0x6922A366...FA272024b
0.0185 ETH0.000005980.04525
Deposit Escrow70515222025-04-19 0:59:4419 mins ago1745024384IN
0x6922A366...FA272024b
0.0391 ETH0.000006270.04525
Settle Trade70511612025-04-19 0:53:3525 mins ago1745024015IN
0x6922A366...FA272024b
0 ETH0.000006550.04525
Deposit Escrow70511402025-04-19 0:53:1425 mins ago1745023994IN
0x6922A366...FA272024b
0.022039 ETH0.000004790.04525
Withdraw Escrow70510502025-04-19 0:51:4227 mins ago1745023902IN
0x6922A366...FA272024b
0 ETH0.00000440.04525
Withdraw Escrow70509222025-04-19 0:49:3429 mins ago1745023774IN
0x6922A366...FA272024b
0 ETH0.000005990.04525
Settle Trade70500112025-04-19 0:34:0745 mins ago1745022847IN
0x6922A366...FA272024b
0 ETH0.000006550.04525
Deposit Escrow70499962025-04-19 0:33:5145 mins ago1745022831IN
0x6922A366...FA272024b
0.0188 ETH0.000006590.04525
Settle Trade70494782025-04-19 0:25:0054 mins ago1745022300IN
0x6922A366...FA272024b
0 ETH0.000004750.04525
Deposit Escrow70494632025-04-19 0:24:4454 mins ago1745022284IN
0x6922A366...FA272024b
0.15 ETH0.000005810.04525
Deposit Escrow70494132025-04-19 0:23:5455 mins ago1745022234IN
0x6922A366...FA272024b
0.022042 ETH0.00000580.04525
Withdraw Escrow70493472025-04-19 0:22:4856 mins ago1745022168IN
0x6922A366...FA272024b
0 ETH0.00000460.04525
Withdraw Escrow70493352025-04-19 0:22:3656 mins ago1745022156IN
0x6922A366...FA272024b
0 ETH0.00000460.04525
Withdraw Escrow70493212025-04-19 0:22:2256 mins ago1745022142IN
0x6922A366...FA272024b
0 ETH0.000005880.04525
Settle Trade70489922025-04-19 0:16:531 hr ago1745021813IN
0x6922A366...FA272024b
0 ETH0.000005860.04525
Deposit Escrow70489682025-04-19 0:16:291 hr ago1745021789IN
0x6922A366...FA272024b
0.034 ETH0.000006130.04525
Settle Trade70489622025-04-19 0:16:231 hr ago1745021783IN
0x6922A366...FA272024b
0 ETH0.000006170.04525
Deposit Escrow70489422025-04-19 0:16:031 hr ago1745021763IN
0x6922A366...FA272024b
0.0094497 ETH0.000004880.04525
Settle Trade70488392025-04-19 0:14:201 hr ago1745021660IN
0x6922A366...FA272024b
0 ETH0.000005860.04525
Deposit Escrow70488022025-04-19 0:13:421 hr ago1745021622IN
0x6922A366...FA272024b
0.0377988 ETH0.000006130.04525
Settle Trade70487752025-04-19 0:13:151 hr ago1745021595IN
0x6922A366...FA272024b
0 ETH0.000006550.04525
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
70526162025-04-19 1:18:3535 secs ago1745025515
0x6922A366...FA272024b
0.03739881 ETH
70525922025-04-19 1:18:111 mins ago1745025491
0x6922A366...FA272024b
0.03739881 ETH
70515532025-04-19 1:00:1518 mins ago1745024415
0x6922A366...FA272024b
0.0391 ETH
70515422025-04-19 1:00:0419 mins ago1745024404
0x6922A366...FA272024b
0.0185 ETH
70515272025-04-19 0:59:4919 mins ago1745024389
0x6922A366...FA272024b
0.0185 ETH
70515222025-04-19 0:59:4419 mins ago1745024384
0x6922A366...FA272024b
0.0391 ETH
70511612025-04-19 0:53:3525 mins ago1745024015
0x6922A366...FA272024b
0.022039 ETH
70511402025-04-19 0:53:1425 mins ago1745023994
0x6922A366...FA272024b
0.022039 ETH
70510502025-04-19 0:51:4227 mins ago1745023902
0x6922A366...FA272024b
0.006165 ETH
70509222025-04-19 0:49:3429 mins ago1745023774
0x6922A366...FA272024b
0.022042 ETH
70500112025-04-19 0:34:0745 mins ago1745022847
0x6922A366...FA272024b
0.0188 ETH
70499962025-04-19 0:33:5145 mins ago1745022831
0x6922A366...FA272024b
0.0188 ETH
70494782025-04-19 0:25:0054 mins ago1745022300
0x6922A366...FA272024b
0.15 ETH
70494632025-04-19 0:24:4454 mins ago1745022284
0x6922A366...FA272024b
0.15 ETH
70494132025-04-19 0:23:5455 mins ago1745022234
0x6922A366...FA272024b
0.022042 ETH
70493472025-04-19 0:22:4856 mins ago1745022168
0x6922A366...FA272024b
0.001 ETH
70493352025-04-19 0:22:3656 mins ago1745022156
0x6922A366...FA272024b
0.0029 ETH
70493212025-04-19 0:22:2256 mins ago1745022142
0x6922A366...FA272024b
0.0029 ETH
70489922025-04-19 0:16:531 hr ago1745021813
0x6922A366...FA272024b
0.034 ETH
70489682025-04-19 0:16:291 hr ago1745021789
0x6922A366...FA272024b
0.034 ETH
70489622025-04-19 0:16:231 hr ago1745021783
0x6922A366...FA272024b
0.0094497 ETH
70489422025-04-19 0:16:031 hr ago1745021763
0x6922A366...FA272024b
0.0094497 ETH
70488392025-04-19 0:14:201 hr ago1745021660
0x6922A366...FA272024b
0.0377988 ETH
70488022025-04-19 0:13:421 hr ago1745021622
0x6922A366...FA272024b
0.0377988 ETH
70487752025-04-19 0:13:151 hr ago1745021595
0x6922A366...FA272024b
0.022 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xc37600Bf...7A1128037
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
GoldRushTrade

Compiler Version
v0.8.26+commit.8a97fa7a

ZkSolc Version
v1.5.7

Optimization Enabled:
Yes with Mode 3

Other Settings:
cancun EvmVersion
File 1 of 14 : GoldRushTrade.sol
// SPDX-License-Identifier: UNLICENSED

/**
 *   ______                           __                  __
 *  /      \                         |  \                |  \
 * |  $$$$$$\  ______   ______ ____  | $$____    ______   \$$  ______
 * | $$   \$$ |      \ |      \    \ | $$    \  /      \ |  \ |      \
 * | $$        \$$$$$$\| $$$$$$\$$$$\| $$$$$$$\|  $$$$$$\| $$  \$$$$$$\
 * | $$   __  /      $$| $$ | $$ | $$| $$  | $$| $$   \$$| $$ /      $$
 * | $$__/  \|  $$$$$$$| $$ | $$ | $$| $$__/ $$| $$      | $$|  $$$$$$$
 *  \$$    $$ \$$    $$| $$ | $$ | $$| $$    $$| $$      | $$ \$$    $$
 *   \$$$$$$   \$$$$$$$ \$$  \$$  \$$ \$$$$$$$  \$$       \$$  \$$$$$$$
 *
 *   ______             __        __        _______                       __
 *  /      \           |  \      |  \      |       \                     |  \
 * |  $$$$$$\  ______  | $$  ____| $$      | $$$$$$$\ __    __   _______ | $$____
 * | $$ __\$$ /      \ | $$ /      $$      | $$__| $$|  \  |  \ /       \| $$    \
 * | $$|    \|  $$$$$$\| $$|  $$$$$$$      | $$    $$| $$  | $$|  $$$$$$$| $$$$$$$\
 * | $$ \$$$$| $$  | $$| $$| $$  | $$      | $$$$$$$\| $$  | $$ \$$    \ | $$  | $$
 * | $$__| $$| $$__/ $$| $$| $$__| $$      | $$  | $$| $$__/ $$ _\$$$$$$\| $$  | $$
 *  \$$    $$ \$$    $$| $$ \$$    $$      | $$  | $$ \$$    $$|       $$| $$  | $$
 *   \$$$$$$   \$$$$$$  \$$  \$$$$$$$       \$$   \$$  \$$$$$$  \$$$$$$$  \$$   \$$
 *
 *
 * @title Cambria Gold Rush Trade
 * @notice See cambria.gg for more details.
 * @author will [at] cambria dot gg
 * @notice questions, concerns, vulns to security [at] cambria.gg
 */
pragma solidity 0.8.26;

import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";
import "openzeppelin-contracts/utils/Address.sol";
import "openzeppelin-contracts/utils/cryptography/ECDSA.sol";
import "openzeppelin-contracts/utils/cryptography/EIP712.sol";
import "openzeppelin-contracts/security/ReentrancyGuard.sol";

import "./IGoldRushTrade.sol";

error TransferFailed();
error InvalidEthValue();
error InvalidSignature();
error EthFeeNumerTooHigh();
error ZeroAddressNotAllowed();
error TradeRequestAlreadyProcessed();
error EscrowAlreadyClaimed();
error TradeHasExistingEscrow();
error ForgedSignature();
error ZeroValueETH();
error EmptyEscrow();
error NotDepositor();

contract GoldRushTrade is IGoldRushTrade, Ownable, EIP712, ReentrancyGuard {
    using Address for address payable;

    uint256 public ethFeeNumer = 0;
    address public treasury;
    address public tradeAgent;

    event TradeEscrowDeposit(uint256 indexed tradeId, address indexed buyer, uint256 value);
    event TradeEscrowWithdraw(uint256 indexed tradeId, address indexed buyer);
    event TradeSettled(uint256 indexed tradeId, address indexed buyer, address indexed seller, uint256 value);
    event TradeAgentChanged(address tradeAgent);
    event TreasuryChanged(address treasury);
    event EthFeeNumerChanged(uint256 newFeeNumer);

    mapping(uint256 => TradeEscrow) public tradeEscrows;

    constructor(address _tradeAgent, address _treasury) EIP712("CambriaGoldrushTrade", "1") {
        if (_tradeAgent == address(0) || _treasury == address(0)) {
            revert ZeroAddressNotAllowed();
        }
        tradeAgent = _tradeAgent;
        treasury = _treasury;
    }

    // tradeId is provided by the game engine
    function depositEscrow(uint256 tradeId) external payable {
        if (msg.value <= 0) revert ZeroValueETH();

        TradeEscrow memory escrow = tradeEscrows[tradeId];
        if (escrow.claimed) revert EscrowAlreadyClaimed();
        if (escrow.value > 0) revert TradeHasExistingEscrow();

        tradeEscrows[tradeId] = TradeEscrow({claimed: false, value: msg.value, buyer: msg.sender});

        emit TradeEscrowDeposit(tradeId, msg.sender, msg.value);
    }

    function withdrawEscrow(uint256 tradeId) external {
        TradeEscrow memory escrow = tradeEscrows[tradeId];
        if (escrow.claimed) revert EscrowAlreadyClaimed();
        if (!(escrow.value > 0)) revert EmptyEscrow();
        if (escrow.buyer != msg.sender) revert NotDepositor();

        uint256 value = tradeEscrows[tradeId].value;
        tradeEscrows[tradeId].claimed = true;

        payable(escrow.buyer).sendValue(value);
        emit TradeEscrowWithdraw(tradeId, msg.sender);
    }

    function settleTrade(uint256 tradeId, bytes memory signature) external nonReentrant {
        TradeEscrow memory escrow = tradeEscrows[tradeId];
        if (escrow.claimed) revert EscrowAlreadyClaimed();
        if (!(escrow.value > 0)) revert EmptyEscrow();

        address signer = ECDSA.recover(
            getTradeTypedDataHash(
                Trade({buyer: escrow.buyer, seller: msg.sender, value: escrow.value, tradeId: tradeId})
            ),
            signature
        );

        if (signer != tradeAgent) {
            revert InvalidSignature();
        }

        tradeEscrows[tradeId].claimed = true;
        tradeEscrows[tradeId].value = 0;

        uint256 fee = calcEthFee(escrow.value);
        payable(msg.sender).sendValue(escrow.value - fee);

        if (fee > 0) {
            payable(treasury).sendValue(fee);
        }

        emit TradeSettled(tradeId, escrow.buyer, msg.sender, escrow.value);
    }

    function _tradeTypeHash() internal pure returns (bytes32) {
        return keccak256("Trade(address buyer,address seller,uint256 value,uint256 tradeId)");
    }

    function getTradeTypedDataHash(Trade memory trade) public view returns (bytes32) {
        return _hashTypedDataV4(
            keccak256(abi.encode(_tradeTypeHash(), trade.buyer, trade.seller, trade.value, trade.tradeId))
        );
    }

    function calcEthFee(uint256 value) public view returns (uint256) {
        if (ethFeeNumer <= 0) return 0;
        return (value * ethFeeNumer) / _ethFeeDenom();
    }

    function _ethFeeDenom() internal pure returns (uint256) {
        return 10_000;
    }

    function changeEthFeeNumer(uint256 feeNumer) external onlyOwner {
        if (feeNumer >= _ethFeeDenom()) revert EthFeeNumerTooHigh();
        ethFeeNumer = feeNumer;
        emit EthFeeNumerChanged(feeNumer);
    }

    function changeTradeAgent(address newTradeAgent) external onlyOwner {
        if (newTradeAgent == address(0)) revert ZeroAddressNotAllowed();
        tradeAgent = newTradeAgent;
        emit TradeAgentChanged(newTradeAgent);
    }

    function changeTreasury(address newTreasury) external onlyOwner {
        if (newTreasury == address(0)) revert ZeroAddressNotAllowed();
        treasury = newTreasury;
        emit TreasuryChanged(newTreasury);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

File 5 of 14 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.8;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}

File 6 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 7 of 14 : IGoldRushTrade.sol
// SPDX-License-Identifier: UNLICENSED
// Written by will at cambria dot gg
// reachout for questions / concerns / vuln reports

pragma solidity ^0.8.18;

interface IGoldRushTrade {
    struct TradeEscrow {
        bool claimed;
        address buyer;
        uint256 value;
    }

    struct Trade {
        address buyer;
        address seller;
        uint256 value;
        uint256 tradeId;
    }
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

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

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

pragma solidity ^0.8.8;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 11 of 14 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.0;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 12 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

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

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

File 14 of 14 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

Settings
{
  "viaIR": false,
  "codegen": "yul",
  "remappings": [
    "openzeppelin-contracts/=dependencies/@openzeppelin-contracts-4.9.6/",
    "forge-std/=dependencies/forge-std-1.9.5/src/",
    "openzeppelin-contracts-5/=dependencies/@openzeppelin-contracts-5.0.2/",
    "solady/=dependencies/solady-0.0.298/src/",
    "@openzeppelin-contracts-4.9.6/=dependencies/@openzeppelin-contracts-4.9.6/",
    "@openzeppelin-contracts-5.0.2/=dependencies/@openzeppelin-contracts-5.0.2/",
    "forge-std-1.9.5/=dependencies/forge-std-1.9.5/src/",
    "solady-0.0.298/=dependencies/solady-0.0.298/src/"
  ],
  "evmVersion": "cancun",
  "outputSelection": {
    "*": {
      "*": [
        "abi",
        "metadata"
      ],
      "": [
        "ast"
      ]
    }
  },
  "optimizer": {
    "enabled": true,
    "mode": "3",
    "fallback_to_optimizing_for_size": false,
    "disable_system_request_memoization": true
  },
  "metadata": {},
  "libraries": {},
  "enableEraVMExtensions": false,
  "forceEVMLA": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_tradeAgent","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EmptyEscrow","type":"error"},{"inputs":[],"name":"EscrowAlreadyClaimed","type":"error"},{"inputs":[],"name":"EthFeeNumerTooHigh","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NotDepositor","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TradeHasExistingEscrow","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"inputs":[],"name":"ZeroValueETH","type":"error"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFeeNumer","type":"uint256"}],"name":"EthFeeNumerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tradeAgent","type":"address"}],"name":"TradeAgentChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tradeId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TradeEscrowDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tradeId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"}],"name":"TradeEscrowWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tradeId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TradeSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"calcEthFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeNumer","type":"uint256"}],"name":"changeEthFeeNumer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTradeAgent","type":"address"}],"name":"changeTradeAgent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"changeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tradeId","type":"uint256"}],"name":"depositEscrow","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethFeeNumer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"tradeId","type":"uint256"}],"internalType":"struct IGoldRushTrade.Trade","name":"trade","type":"tuple"}],"name":"getTradeTypedDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tradeId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"settleTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradeAgent","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tradeEscrows","outputs":[{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tradeId","type":"uint256"}],"name":"withdrawEscrow","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x0002000000000002000700000000000200000060031002700000020d0330019700010000003103550000000100200190000000360000c13d0000008002000039000000400020043f000000040030008c0000005d0000413d000000000201043b000000e002200270000002200020009c0000005f0000213d0000022c0020009c0000006c0000213d000002320020009c000000d30000213d000002350020009c000001470000613d000002360020009c0000005d0000c13d000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b000002100010009c0000005d0000213d000000000200041a00000210022001970000000003000411000000000032004b000001fe0000c13d000000000001004b000001ca0000613d0000000602000039000000000302041a0000021403300197000000000313019f000000000032041b000000800010043f00000000010004140000020d0010009c0000020d01008041000000c00110021000000244011001c70000800d02000039000000010300003900000265040000410000037b0000013d0000016004000039000000400040043f0000000002000416000000000002004b0000005d0000c13d0000001f023000390000020e022001970000016002200039000000400020043f0000001f0530018f0000020f063001980000016002600039000000480000613d000000000701034f000000007807043c0000000004840436000000000024004b000000440000c13d000000000005004b000000550000613d000000000161034f0000000304500210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000400030008c0000005d0000413d000001600300043d000002100030009c0000005d0000213d000001800400043d000002100040009c000000dc0000a13d00000000010000190000083100010430000002210020009c000000c20000213d000002270020009c000000ee0000213d0000022a0020009c000001560000613d0000022b0020009c0000005d0000c13d0000000001000416000000000001004b0000005d0000c13d000000000100041a0000018a0000013d0000022d0020009c000000fa0000213d000002300020009c000001850000613d000002310020009c0000005d0000c13d000000440030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000402100370000000000902043b0000002402100370000000000402043b000002170040009c0000005d0000213d0000002302400039000000000032004b0000005d0000813d0000000405400039000000000251034f000000000202043b000002170020009c000000e80000213d0000001f0720003900000267077001970000003f077000390000026707700197000002540070009c000000e80000213d0000008007700039000000400070043f000000800020043f00000000042400190000002404400039000000000034004b0000005d0000213d0000002003500039000000000331034f00000267042001980000001f0520018f000000a0014000390000009e0000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b0000009a0000c13d000000000005004b000000ab0000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a00120003900000000000104350000000302000039000000000102041a000000020010008c000004450000c13d000000400100043d00000044021000390000026103000041000000000032043500000024021000390000001f030000390000000000320435000002380200004100000000002104350000000402100039000000200300003900000000003204350000020d0010009c0000020d01008041000000400110021000000256011001c70000083100010430000002220020009c000001290000213d000002250020009c0000018e0000613d000002260020009c0000005d0000c13d000000240030008c0000005d0000413d0000000401100370000000000301043b0000000001000416000000000001004b000002570000c13d0000024301000041000000000010043f0000023f010000410000083100010430000002330020009c000001a00000613d000002340020009c0000005d0000c13d0000000001000416000000000001004b0000005d0000c13d0000000601000039000001890000013d000000400500043d000002110050009c000000e80000213d0000004001500039000000400010043f0000001401000039000000000615043600000212010000410000000000160435000000400200043d000002110020009c000002070000a13d0000025201000041000000000010043f0000004101000039000000040010043f00000253010000410000083100010430000002280020009c000001ba0000613d000002290020009c0000005d0000c13d0000000001000416000000000001004b0000005d0000c13d0000000401000039000000000101041a000000800010043f0000024701000041000008300001042e0000022e0020009c000001ce0000613d0000022f0020009c0000005d0000c13d0000000001000416000000000001004b0000005d0000c13d0000024b01000041000000000010044300000000010004120000000400100443000000a001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000005b20000613d000000000101043b000000ff0010008c000002b90000c13d0000000104000039000000000304041a000000010630019000000001013002700000007f0510018f00000000010560190000001f0010008c00000000020000390000000102002039000000000223013f0000000100200190000003cd0000c13d000000400700043d0000000002170436000000000006004b000003960000c13d00000268013001970000000000120435000000000005004b00000020030000390000000003006039000003a30000013d000002230020009c000001e20000613d000002240020009c0000005d0000c13d000000840030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000010002000039000000400020043f0000000402100370000000000202043b000002100020009c0000005d0000213d000000800020043f0000002402100370000000000202043b000002100020009c0000005d0000213d000000a00020043f0000004402100370000000000202043b000000c00020043f0000006401100370000000000101043b000000e00010043f0000008001000039082f069e0000040f0000014f0000013d000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b082f068a0000040f000000400200043d00000000001204350000020d0020009c0000020d02008041000000400120021000000237011001c7000008300001042e000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b000700000001001d000000000010043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d00000007060000390000000705000029000000400200043d0000023d0020009c000000e80000213d000000000301043b0000006001200039000000400010043f000000000103041a000000ff001001900000000004000039000000010400c039000000000742043600000008011002700000021001100197000000000017043500000040042000390000000102300039000000000202041a0000000000240435000002790000c13d000000000002004b000003d30000c13d0000025f01000041000000000010043f0000023f0100004100000831000104300000000001000416000000000001004b0000005d0000c13d0000000501000039000000000101041a0000021001100197000000800010043f0000024701000041000008300001042e000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b000000000200041a00000210022001970000000003000411000000000032004b000001fe0000c13d000027100010008c000002c00000413d0000024601000041000000000010043f0000023f010000410000083100010430000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b000000000010043f0000000701000039000000200010043f00000040020000390000000001000019082f08100000040f0000000102100039000000000202041a000000000101041a000000ff001001900000000003000039000000010300c039000000800030043f00000008011002700000021001100197000000a00010043f000000c00020043f0000026201000041000008300001042e000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000101043b000002100010009c0000005d0000213d000000000200041a00000210022001970000000003000411000000000032004b000001fe0000c13d000000000001004b0000036d0000c13d0000026601000041000000000010043f0000023f0100004100000831000104300000000001000416000000000001004b0000005d0000c13d000000000100041a00000210021001970000000005000411000000000052004b000001fe0000c13d0000021401100197000000000010041b00000000010004140000020d0010009c0000020d01008041000000c00110021000000215011001c70000800d020000390000000303000039000002160400004100000000060000190000037b0000013d000000240030008c0000005d0000413d0000000002000416000000000002004b0000005d0000c13d0000000401100370000000000601043b000002100060009c0000005d0000213d000000000100041a00000210021001970000000005000411000000000052004b000001fe0000c13d000000000006004b000003800000c13d0000023801000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000023901000041000000c40010043f0000023a01000041000000e40010043f0000023b0100004100000831000104300000023801000041000000800010043f0000002001000039000000840010043f000000a40010043f0000026301000041000000c40010043f00000264010000410000083100010430000500000006001d000700000005001d0000004001200039000000400010043f0000000101000039000600000002001d00000000021204360000021301000041000400000002001d0000000000120435000000000100041a0000021402100197000300000003001d000200000004001d0000000006000411000000000262019f000000000020041b000000000200041400000210051001970000020d0020009c0000020d02008041000000c00120021000000215011001c70000800d0200003900000003030000390000021604000041082f08250000040f00000001002001900000005d0000613d00000007070000290000000004070433000000200040008c0000027d0000413d000002170040009c000000e80000213d0000000101000039000000000101041a000000010210019000000001011002700000007f0110618f0000001f0010008c00000000030000390000000103002039000000000032004b000003cd0000c13d000000200010008c000002420000413d0000001f0110003900000005011002700000001f024000390000000502200270000000000012004b000002420000813d000002180110009a000002180220009a000000000002041b0000000102200039000000000012004b0000023e0000413d000100000004001d0000000101000039000000000010043f00000000010004140000020d0010009c0000020d01008041000000c00110021000000219011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d00000001090000290000026702900198000000000101043b000004aa0000c13d0000002003000039000000060600002900000007070000290000000508000029000004b90000013d000000000030043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039000700000003001d082f082a0000040f00000001002001900000005d0000613d0000000706000029000000400200043d0000023d0020009c000000e80000213d000000000101043b0000006003200039000000400030043f000000000301041a0000000804300270000002100440019700000020052000390000000000450435000000ff003001900000000003000039000000010300c039000000000032043500000040022000390000000101100039000000000101041a0000000000120435000004060000613d0000026001000041000000000010043f0000023f01000041000008310001043000000003014002100000010001100089000002690110021f000000000004004b000000000100601900000005080000290000000002080433000000000112016f000000000141019f0000000606000029000001200010043f0000000004060433000000200040008c000002cc0000413d000002170040009c000000e80000213d0000000205000039000000000205041a000000010020019000000001012002700000007f0110618f0000001f0010008c00000000030000390000000103002039000000000232013f0000000100200190000003cd0000c13d000000200010008c000002a60000413d0000001f0110003900000005011002700000001f024000390000000502200270000000000012004b000002a60000813d0000021a0110009a0000021a0220009a000000000002041b0000000102200039000000000012004b000002a20000413d000100000004001d000000000050043f00000000010004140000020d0010009c0000020d01008041000000c00110021000000219011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d00000001090000290000026702900198000000000101043b000004d30000c13d000000200300003900000006060000290000000508000029000004e10000013d000000ff0210018f000000200020008c0000038c0000413d0000024e01000041000000000010043f0000023f0100004100000831000104300000000402000039000000000012041b000000800010043f00000000010004140000020d0010009c0000020d01008041000000c00110021000000244011001c70000800d02000039000000010300003900000245040000410000037b0000013d00000003014002100000010001100089000002690110021f000000000004004b000000000100601900000004020000290000000002020433000000000112016f000000000141019f000001400010043f0000020d0080009c0000020d08008041000000400180021000000000020704330000020d0020009c0000020d020080410000006002200210000000000112019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d000000000101043b000700000001001d000000e00010043f00000004010000290000020d0010009c0000020d010080410000004001100210000000060200002900000000020204330000020d0020009c0000020d020080410000006002200210000000000112019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d000000000101043b000600000001001d000001000010043f0000021b01000041000000000010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000021c011001c70000800b02000039082f082a0000040f0000000100200190000005b20000613d000000000201043b000000a00020043f000000400100043d00000080031000390000000000230435000000600210003900000006030000290000000000320435000000400210003900000007030000290000000000320435000000a0020000390000000002210436000000a003100039000000000400041000000000004304350000021d0300004100000000003204350000021e0010009c000000e80000213d000000c003100039000000400030043f0000020d0020009c0000020d02008041000000400220021000000000010104330000020d0010009c0000020d010080410000006001100210000000000121019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f000000030300002900000001002001900000005d0000613d000000000101043b000000800010043f0000000002000410000000c00020043f00000001020000390000000304000039000000000024041b0000000402000039000000000002041b0000021003300198000001ca0000613d00000002020000290000021002200198000001ca0000613d0000000604000039000000000504041a0000021405500197000000000335019f000000000034041b0000000503000039000000000403041a0000021404400197000000000224019f000000000023041b000001400000044300000160001004430000002001000039000000a00200043d0000018000100443000001a0002004430000004002000039000001c0002004430000000002000410000001e0002004430000006002000039000000e00300043d000002000020044300000220003004430000008002000039000001000300043d00000240002004430000026000300443000001200200043d000000a0030000390000028000300443000002a000200443000000c002000039000001400300043d000002c000200443000002e0003004430000010000100443000000070100003900000120001004430000021f01000041000008300001042e0000000502000039000000000302041a0000021403300197000000000313019f000000000032041b000000800010043f00000000010004140000020d0010009c0000020d01008041000000c00110021000000244011001c70000800d0200003900000001030000390000024804000041082f08250000040f00000001002001900000005d0000613d0000000001000019000008300001042e0000021401100197000000000161019f000000000010041b00000000010004140000020d0010009c0000020d01008041000000c00110021000000215011001c70000800d02000039000000030300003900000216040000410000037b0000013d000000400400043d000002110040009c000000e80000213d0000004003400039000000400030043f00000020034000390000000000130435000700000004001d0000000000240435000003af0000013d000000000040043f000000020030008c0000000003000019000003a30000413d0000024d0400004100000000030000190000000005320019000000000604041a000000000065043500000001044000390000002003300039000000000013004b0000039c0000413d0000003f0130003900000267021001970000000001720019000000000021004b00000000020000390000000102004039000002170010009c000000e80000213d0000000100200190000000e80000c13d000700000007001d000000400010043f00000000020004120000024b0100004100000000001004430000000400200443000000c001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000005b20000613d000000000201043b000000ff0020008c000004940000c13d0000000205000039000000000405041a000000010740019000000001024002700000007f0620018f00000000020660190000001f0020008c00000000010000390000000101002039000000000114013f0000000100100190000004c90000613d0000025201000041000000000010043f0000002201000039000000040010043f000002530100004100000831000104300000000002000411000000000021004b000004a20000c13d000600000007001d000000000050043f000000200060043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d000000000101043b0000000101100039000000000101041a000500000001001d0000000701000029000000000010043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d000000000101043b000000000201041a000002680220019700000001022001bf000000000021041b0000000601000029000000000101043300000210011001970000000502000029082f07890000040f00000000010004140000020d0010009c0000020d01008041000000c00110021000000215011001c70000800d0200003900000003030000390000024a04000041000004420000013d000000000001004b000004a60000c13d000000400300043d0000023d0030009c000000e80000213d0000006001300039000000400010043f00000040023000390000000001000416000600000002001d0000000000120435000500000003001d00000000020304360000000001000411000400000002001d0000000000120435000000000060043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d00000005020000290000000002020433000000000002004b000000000101043b000000000201041a0000024002200197000000010220c1bf0000000403000029000000000303043300000008033002100000024103300197000000000232019f000000000021041b000000010110003900000006020000290000000002020433000000000021041b000000400100043d000000000200041600000000002104350000020d0010009c0000020d01008041000000400110021000000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000219011001c70000800d0200003900000003030000390000024204000041000000070500002900000000060004110000037b0000013d0000000201000039000000000012041b000000000090043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039000700000009001d082f082a0000040f00000001002001900000005d0000613d000000400300043d0000023d0030009c000000e80000213d000000000101043b0000006002300039000000400020043f000000000201041a000000ff002001900000000004000039000000010400c039000000000443043600000008022002700000021002200197000500000004001d000000000024043500000040043000390000000101100039000000000301041a000600000004001d0000000000340435000002790000c13d000000000003004b000001810000613d000000400100043d000002540010009c0000000705000029000000e80000213d0000008004100039000000400040043f00000060041000390000000000540435000000400410003900000000003404350000002003100039000000000400041100000000004304350000000000210435082f069e0000040f000000400200043d000000800300043d000000410030008c000005b30000c13d000000c00300043d000002570030009c000005c30000a13d00000064012000390000025c03000041000000000031043500000044012000390000025d030000410000000000310435000000240120003900000022030000390000000000310435000002380100004100000000001204350000000401200039000000200300003900000000003104350000020d0020009c0000020d0200804100000040012002100000025e011001c70000083100010430000000ff0320018f0000001f0030008c000002bc0000213d000000400100043d000002110010009c0000000705000029000000e80000213d0000004004100039000000400040043f000000200410003900000000002404350000000000310435000000400300043d0000050b0000013d0000024901000041000000000010043f0000023f0100004100000831000104300000023e01000041000000000010043f0000023f010000410000083100010430000000010320008a000000050330027000000000043100190000002003000039000000010440003900000006060000290000000707000029000000050800002900000000057300190000000005050433000000000051041b00000020033000390000000101100039000000000041004b000004b20000c13d000000000092004b000004c30000813d0000000302900210000000f80220018f000002690220027f000002690220016700000000037300190000000003030433000000000223016f000000000021041b000000010190021000000001011001bf0000000102000039000000000012041b000000ff01000039000002870000013d000000400100043d0000000003210436000000000007004b000004f20000c13d00000268024001970000000000230435000000000006004b00000020040000390000000004006039000004ff0000013d000000010320008a00000005033002700000000004310019000000200300003900000001044000390000000606000029000000050800002900000000056300190000000005050433000000000051041b00000020033000390000000101100039000000000041004b000004da0000c13d000000000092004b0000000707000029000004ec0000813d0000000302900210000000f80220018f000002690220027f000002690220016700000000036300190000000003030433000000000223016f000000000021041b000000010190021000000001011001bf0000000202000039000000000012041b000000ff01000039000002d50000013d000000000050043f000000020040008c0000000004000019000004ff0000413d0000024f0500004100000000040000190000000006430019000000000705041a000000000076043500000001055000390000002004400039000000000024004b000004f80000413d0000003f0240003900000267022001970000000003120019000000000023004b00000000020000390000000102004039000002170030009c0000000705000029000000e80000213d0000000100200190000000e80000c13d000000400030043f000002500030009c000000e80000213d0000002002300039000300000002001d000000400020043f000400000003001d0000000000030435000000400700043d0000002002700039000000e003000039000000000032043500000251020000410000000000270435000000e0037000390000000042050434000000000023043500000267062001970000001f0520018f000600000007001d0000010003700039000000000034004b000005310000813d000000000006004b0000052d0000613d00000000085400190000000007530019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c000005270000c13d000000000005004b000005470000613d00000000070300190000053d0000013d0000000007630019000000000006004b0000053a0000613d00000000080400190000000009030019000000008a0804340000000009a90436000000000079004b000005360000c13d000000000005004b000005470000613d00000000046400190000000305500210000000000607043300000000065601cf000000000656022f00000000040404330000010005500089000000000454022f00000000045401cf000000000464019f0000000000470435000000000432001900000000000404350000001f02200039000002670220019700000000023200190000000604000029000000000342004900000040044000390000000000340435000000001601043400000000046204360000026703600197000500000006001d0000001f0260018f000700000004001d000000000041004b000005680000813d000000000003004b000005640000613d00000000052100190000000704200029000000200440008a000000200550008a0000000006340019000000000735001900000000070704330000000000760435000000200330008c0000055e0000c13d000000000002004b0000057e0000613d0000000704000029000005740000013d0000000704300029000000000003004b000005710000613d0000000005010019000000070600002900000000570504340000000006760436000000000046004b0000056d0000c13d000000000002004b0000057e0000613d00000000013100190000000302200210000000000304043300000000032301cf000000000323022f00000000010104330000010002200089000000000121022f00000000012101cf000000000131019f00000000001404350000000502000029000000070120002900000000000104350000021b01000041000000000010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000021c011001c70000800b02000039082f082a0000040f0000000100200190000005b20000613d000000000101043b00000006040000290000008002400039000000000300041000000000003204350000006002400039000000000012043500000005010000290000001f01100039000002670110019700000007011000290000000002410049000000c0034000390000000000230435000000a0024000390000000000020435000000040200002900000000020204330000000001210436000000000002004b000005a80000613d00000000030000190000000305000029000000005405043400000000014104360000000103300039000000000023004b000005a30000413d000000060200002900000000012100490000020d0010009c0000020d0100804100000060011002100000020d0020009c0000020d020080410000004002200210000000000121019f000008300001042e000000000001042f00000044012000390000025503000041000000000031043500000024012000390000001f030000390000000000310435000002380100004100000000001204350000000401200039000000200300003900000000003104350000020d0020009c0000020d02008041000000400120021000000256011001c700000831000104300000006004200039000000e00500043d000000a00600043d000000000034043500000040032000390000000000630435000000f803500270000000200420003900000000003404350000000000120435000000000000043f0000020d0020009c0000020d02008041000000400120021000000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000258011001c70000000102000039082f082a0000040f00000060031002700000020d03300197000000200030008c000000200400003900000000040340190000001f0540018f0000002004400190000005e70000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000005e30000c13d000000000005004b000005f40000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00010000000103550000000100200190000006020000613d000000000100043d0000021000100198000006200000c13d000000400100043d00000044021000390000025b03000041000000000032043500000024021000390000001803000039000000b70000013d0000001f0530018f0000020f06300198000000400200043d00000000046200190000060d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000006090000c13d000000000005004b0000061a0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000020d0020009c0000020d020080410000004002200210000000000112019f00000831000104300000000602000039000000000202041a000000000112013f00000210001001980000066c0000c13d0000000701000029000000000010043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f000000070400002900000001002001900000005d0000613d000000000101043b000000000201041a000002680220019700000001022001bf000000000021041b000000000040043f0000000701000039000000200010043f00000000010004140000020d0010009c0000020d01008041000000c0011002100000023c011001c70000801002000039082f082a0000040f00000001002001900000005d0000613d000000000101043b0000000101100039000000000001041b000000060100002900000000020104330000000401000039000000000101041a000000000001004b000006700000c13d0000000001000411082f07890000040f0000000501000029000000000201043300000006010000290000000001010433000000400300043d00000000001304350000020d0030009c0000020d03008041000000400130021000000000030004140000020d0030009c0000020d03008041000000c003300210000000000113019f00000219011001c700000210062001970000800d0200003900000004030000390000025a0400004100000007050000290000000007000411082f08250000040f00000001002001900000005d0000613d00000003010000390000000102000039000000000021041b0000000001000019000008300001042e0000025901000041000000000010043f0000023f01000041000008310001043000040000002100ad000000000002004b000006760000613d00000004032000f9000000000031004b0000067a0000c13d00000004010000290003271000100122000000030220006c000006800000813d0000025201000041000000000010043f0000001101000039000000040010043f000002530100004100000831000104300000000001000411082f07890000040f0000000401000029000027100010008c0000064f0000413d0000000501000039000000000101041a000002100110019700000003020000290000064e0000013d0000000402000039000000000202041a000000000002004b000006960000613d00000000031200a9000000000001004b000006940000613d00000000011300d9000000000012004b000006980000c13d000027100130011a000000000001042d0000000001000019000000000001042d0000025201000041000000000010043f0000001101000039000000040010043f0000025301000041000008310001043000030000000000020000002002100039000000000202043300000040031000390000000003030433000000000401043300000060011000390000000005010433000000400100043d000000a00610003900000000005604350000008005100039000000000035043500000210034001970000004004100039000000000034043500000210022001970000006003100039000000000023043500000020021000390000026a030000410000000000320435000000a00300003900000000003104350000026b0010009c000007830000813d000000c003100039000000400030043f0000020d0020009c0000020d02008041000000400220021000000000010104330000020d0010009c0000020d010080410000006001100210000000000121019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f0000000100200190000007810000613d000000000101043b000200000001001d0000024b010000410000000000100443000000000100041200000004001004430000004001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000007800000613d000000000101043b00000210011001970000000002000410000000000012004b000007100000c13d0000024b010000410000000000100443000000000100041200000004001004430000002001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000007800000613d000000000101043b000300000001001d0000021b01000041000000000010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000021c011001c70000800b02000039082f082a0000040f0000000100200190000007800000613d000000000101043b000000030010006c000007100000c13d0000024b01000041000000000010044300000000010004120000000400100443000000240000044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000007680000c13d000007800000013d000000400100043d000300000001001d00000020021000390000021d01000041000100000002001d00000000001204350000024b010000410000000000100443000000000100041200000004001004430000006001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000007800000613d000000000101043b0000000302000029000000400220003900000000001204350000024b010000410000000000100443000000000100041200000004001004430000008001000039000000240010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000024c011001c70000800502000039082f082a0000040f0000000100200190000007800000613d000000000101043b0000000302000029000000600220003900000000001204350000021b01000041000000000010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000021c011001c70000800b02000039082f082a0000040f0000000100200190000007800000613d000000000101043b0000000304000029000000a0024000390000000003000410000000000032043500000080024000390000000000120435000000a00100003900000000001404350000021e0040009c000007830000213d0000000302000029000000c001200039000000400010043f00000001010000290000020d0010009c0000020d01008041000000400110021000000000020204330000020d0020009c0000020d020080410000006002200210000000000112019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f0000000100200190000007810000613d0000000204000029000000000101043b000000400200043d000000220320003900000000004304350000026c030000410000000000320435000000020320003900000000001304350000020d0020009c0000020d02008041000000400120021000000000020004140000020d0020009c0000020d02008041000000c002200210000000000121019f0000026d011001c70000801002000039082f082a0000040f0000000100200190000007810000613d000000000101043b000000000001042d000000000001042f000000000100001900000831000104300000025201000041000000000010043f0000004101000039000000040010043f000002530100004100000831000104300002000000000002000200000002001d000100000001001d0000026e0100004100000000001004430000000001000410000000040010044300000000010004140000020d0010009c0000020d01008041000000c0011002100000026f011001c70000800a02000039082f082a0000040f0000000100200190000007e90000613d000000000101043b0000000203000029000000000031004b000007ea0000413d000000000100041400000001020000290000021004200197000000040040008c000007a70000c13d00000001020000390000000001000031000000000001004b000007b80000c13d000007e00000013d0000020d0010009c0000020d01008041000000c001100210000000000003004b000007b00000613d00000215011001c700008009020000390000000005000019000007b10000013d0000000002040019082f08250000040f000100000001035500000060011002700000020d0010019d0000020d01100197000000000001004b000007e00000613d000002700010009c000007e30000813d0000001f0410003900000267044001970000003f044000390000026705400197000000400400043d0000000005540019000000000045004b00000000060000390000000106004039000002170050009c000007e30000213d0000000100600190000007e30000c13d000000400050043f000000000614043600000267031001980000001f0410018f00000000013600190000000105000367000007d30000613d000000000705034f000000007807043c0000000006860436000000000016004b000007cf0000c13d000000000004004b000007e00000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f00000000003104350000000100200190000007fb0000613d000000000001042d0000025201000041000000000010043f0000004101000039000000040010043f00000253010000410000083100010430000000000001042f000000400100043d00000044021000390000027303000041000000000032043500000024021000390000001d030000390000000000320435000002380200004100000000002104350000000402100039000000200300003900000000003204350000020d0010009c0000020d01008041000000400110021000000256011001c70000083100010430000000400100043d00000064021000390000027103000041000000000032043500000044021000390000027203000041000000000032043500000024021000390000003a030000390000000000320435000002380200004100000000002104350000000402100039000000200300003900000000003204350000020d0010009c0000020d0100804100000040011002100000025e011001c70000083100010430000000000001042f0000020d0010009c0000020d0100804100000040011002100000020d0020009c0000020d020080410000006002200210000000000112019f00000000020004140000020d0020009c0000020d02008041000000c002200210000000000112019f00000215011001c70000801002000039082f082a0000040f0000000100200190000008230000613d000000000101043b000000000001042d0000000001000019000008310001043000000828002104210000000102000039000000000001042d0000000002000019000000000001042d0000082d002104230000000102000039000000000001042d0000000002000019000000000001042d0000082f00000432000008300001042e00000831000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffbf43616d62726961476f6c647275736854726164650000000000000000000000003100000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000000000000000000000000000000000000000000000ffffffffffffffff4ef1d2ad89edf8c4d91132028e8195cdf30bb4b5053d4f8cd260341d4805f30a0200000000000000000000000000000000000020000000000000000000000000bfa87805ed57dc1f0d489ce33be4c4577d74ccde357eeeee058a32c55c44a5329a8a0592ac89c5ad3bc6df8224c17b485976f597df104ee20d0df415241f670b02000002000000000000000000000000000000040000000000000000000000008b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f000000000000000000000000000000000000000000000000ffffffffffffff3f000000020000000000000000000000000000020000000100000000000000000000000000000000000000000000000000000000000000000000000000876512cf00000000000000000000000000000000000000000000000000000000ba12121600000000000000000000000000000000000000000000000000000000f2fde38a00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000f4864bda00000000000000000000000000000000000000000000000000000000ba12121700000000000000000000000000000000000000000000000000000000cb991efe00000000000000000000000000000000000000000000000000000000b14f2a3800000000000000000000000000000000000000000000000000000000b14f2a3900000000000000000000000000000000000000000000000000000000b546234700000000000000000000000000000000000000000000000000000000876512d0000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000061d027b200000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000715018a60000000000000000000000000000000000000000000000000000000084b0196e0000000000000000000000000000000000000000000000000000000061d027b30000000000000000000000000000000000000000000000000000000062232c01000000000000000000000000000000000000000000000000000000003d762a50000000000000000000000000000000000000000000000000000000003d762a510000000000000000000000000000000000000000000000000000000056601435000000000000000000000000000000000000000000000000000000002828eea8000000000000000000000000000000000000000000000000000000003ca3e0bc000000000000000000000000000000000000002000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000000200000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9feb72c7c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0089c27cb03973e4675a5b3bf980240558cf384c3de8b1ae45f7d0cda07753ff81b2d71ce0000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000800000000000000000ebd01212c8e07d8dfc99de72a08a3d0f4f8c05806b947a90c3c8e00129b780656cb2e311000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000800000000000000000c714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f6083cc50b4500000000000000000000000000000000000000000000000000000000def3f9f4352b58e5be237d40866b274ff996ff4a0cf154b3dd7939ae1dfd42a1310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e0200000200000000000000000000000000000044000000000000000000000000b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6b3512b0c00000000000000000000000000000000000000000000000000000000405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace000000000000000000000000000000000000000000000000ffffffffffffffdf0f000000000000000000000000000000000000000000000000000000000000004e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f45434453413a20696e76616c6964207369676e6174757265206c656e6774680000000000000000000000000000000000000000640000000000000000000000007fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a000000000000000000000000000000000000000800000000000000000000000008baa579f00000000000000000000000000000000000000000000000000000000ad940b63e9eddcb865c714b11742f31c912439f2b51c704d05355cc8b1772f8645434453413a20696e76616c6964207369676e61747572650000000000000000756500000000000000000000000000000000000000000000000000000000000045434453413a20696e76616c6964207369676e6174757265202773272076616c000000000000000000000000000000000000008400000000000000000000000037d8a5cd00000000000000000000000000000000000000000000000000000000c2f29191000000000000000000000000000000000000000000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c0000000000000000000000000000000000000000600000008000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000640000008000000000000000004dd866a4b8a732b069de66592c7bf8c1752fa4a090c0a4895284523b32c910cf8579befe00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5109663685c6bd0912c56f1bbf50aaf6a2aa66e5713952d9f9b32cdc23a7162d000000000000000000000000000000000000000000000000ffffffffffffff40190100000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000420000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f39020000020000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000000000000100000000000000006563697069656e74206d61792068617665207265766572746564000000000000416464726573733a20756e61626c6520746f2073656e642076616c75652c2072416464726573733a20696e73756666696369656e742062616c616e63650000001292599669b7c99a60677bd7872c2b95cea50db9d2b0ad7253294a942ed80544

Block Transaction 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
[ 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.