ETH Price: $2,963.16 (+2.15%)
Gas: 1 Gwei

Contract

0x00cA04c45da318d5b7E7B14D5381Ca59F09C73f0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value

There are no matching entries

Please try again later

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
202406282024-07-05 13:33:2315 hrs ago1720186403
0x00cA04c4...9F09C73f0
0.0006208 ETH
202406282024-07-05 13:33:2315 hrs ago1720186403
0x00cA04c4...9F09C73f0
0.0097 ETH
202406282024-07-05 13:33:2315 hrs ago1720186403
0x00cA04c4...9F09C73f0
0.0103208 ETH
202375282024-07-05 3:09:4725 hrs ago1720148987
0x00cA04c4...9F09C73f0
0.6 ETH
202375282024-07-05 3:09:4725 hrs ago1720148987
0x00cA04c4...9F09C73f0
0.6 ETH
202333672024-07-04 13:11:4739 hrs ago1720098707
0x00cA04c4...9F09C73f0
0.024 ETH
202333672024-07-04 13:11:4739 hrs ago1720098707
0x00cA04c4...9F09C73f0
0.024 ETH
202333012024-07-04 12:58:3540 hrs ago1720097915
0x00cA04c4...9F09C73f0
0.000003 ETH
202333012024-07-04 12:58:3540 hrs ago1720097915
0x00cA04c4...9F09C73f0
0.0001 ETH
202333012024-07-04 12:58:3540 hrs ago1720097915
0x00cA04c4...9F09C73f0
0.000103 ETH
202304982024-07-04 3:34:592 days ago1720064099
0x00cA04c4...9F09C73f0
0.0036 ETH
202304982024-07-04 3:34:592 days ago1720064099
0x00cA04c4...9F09C73f0
0.12 ETH
202304982024-07-04 3:34:592 days ago1720064099
0x00cA04c4...9F09C73f0
0.1236 ETH
202304642024-07-04 3:28:112 days ago1720063691
0x00cA04c4...9F09C73f0
0.003 ETH
202304642024-07-04 3:28:112 days ago1720063691
0x00cA04c4...9F09C73f0
0.1 ETH
202304642024-07-04 3:28:112 days ago1720063691
0x00cA04c4...9F09C73f0
0.103 ETH
202289512024-07-03 22:24:472 days ago1720045487
0x00cA04c4...9F09C73f0
0.00004 ETH
202289512024-07-03 22:24:472 days ago1720045487
0x00cA04c4...9F09C73f0
0.004 ETH
202289512024-07-03 22:24:472 days ago1720045487
0x00cA04c4...9F09C73f0
0.00404 ETH
202266162024-07-03 14:35:472 days ago1720017347
0x00cA04c4...9F09C73f0
0.129 ETH
202266162024-07-03 14:35:472 days ago1720017347
0x00cA04c4...9F09C73f0
0.129 ETH
202250022024-07-03 9:10:352 days ago1719997835
0x00cA04c4...9F09C73f0
0.1 ETH
202250022024-07-03 9:10:352 days ago1719997835
0x00cA04c4...9F09C73f0
0.1 ETH
202250022024-07-03 9:10:352 days ago1719997835
0x00cA04c4...9F09C73f0
0.12 ETH
202250022024-07-03 9:10:352 days ago1719997835
0x00cA04c4...9F09C73f0
0.1298 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SeaportV15Module

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : SeaportV15Module.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import {BaseExchangeModule} from "./BaseExchangeModule.sol";
import {BaseModule} from "../BaseModule.sol";
import {ISeaport} from "../../../interfaces/ISeaport.sol";

// Notes on the Seaport module:
// - supports filling listings (both ERC721/ERC1155)
// - supports filling offers (both ERC721/ERC1155)

contract SeaportV15Module is BaseExchangeModule {
  // --- Structs ---

  struct SeaportETHListingWithPrice {
    ISeaport.AdvancedOrder order;
    uint256 price;
  }

  // --- Fields ---

  ISeaport public immutable EXCHANGE;

  // --- Constructor ---

  constructor(
    address owner,
    address router,
    address exchange
  ) BaseModule(owner) BaseExchangeModule(router) {
    EXCHANGE = ISeaport(exchange);
  }

  // --- Fallback ---

  receive() external payable {}

  // --- Single ETH listing ---

  function acceptETHListing(
    ISeaport.AdvancedOrder calldata order,
    ETHListingParams calldata params,
    Fee[] calldata fees
  )
    external
    payable
    nonReentrant
    refundETHLeftover(params.refundTo)
    chargeETHFees(fees, params.amount)
  {
    // Execute the fill
    params.revertIfIncomplete
      ? _fillSingleOrderWithRevertIfIncomplete(
        order,
        new ISeaport.CriteriaResolver[](0),
        params.fillTo,
        params.amount
      )
      : _fillSingleOrder(order, new ISeaport.CriteriaResolver[](0), params.fillTo, params.amount);
  }

  // --- Single ERC20 listing ---

  function acceptERC20Listing(
    ISeaport.AdvancedOrder calldata order,
    ERC20ListingParams calldata params,
    Fee[] calldata fees
  )
    external
    nonReentrant
    refundERC20Leftover(params.refundTo, params.token)
    chargeERC20Fees(fees, params.token, params.amount)
  {
    // Approve the exchange if needed
    _approveERC20IfNeeded(params.token, address(EXCHANGE), params.amount);

    // Execute the fill
    params.revertIfIncomplete
      ? _fillSingleOrderWithRevertIfIncomplete(
        order,
        new ISeaport.CriteriaResolver[](0),
        params.fillTo,
        0
      )
      : _fillSingleOrder(order, new ISeaport.CriteriaResolver[](0), params.fillTo, 0);
  }

  // --- Multiple ETH listings ---

  function acceptETHListings(
    SeaportETHListingWithPrice[] calldata orders,
    ETHListingParams calldata params,
    Fee[] calldata fees
  )
    external
    payable
    nonReentrant
    refundETHLeftover(params.refundTo)
    chargeETHFees(fees, params.amount)
  {
    uint256 length = orders.length;
    ISeaport.CriteriaResolver[] memory criteriaResolvers = new ISeaport.CriteriaResolver[](0);

    // Execute the fills
    if (params.revertIfIncomplete) {
      for (uint256 i; i < length; ) {
        _fillSingleOrderWithRevertIfIncomplete(
          orders[i].order,
          criteriaResolvers,
          params.fillTo,
          orders[i].price
        );

        unchecked {
          ++i;
        }
      }
    } else {
      for (uint256 i; i < length; ) {
        _fillSingleOrder(orders[i].order, criteriaResolvers, params.fillTo, orders[i].price);

        unchecked {
          ++i;
        }
      }
    }
  }

  // --- Multiple ERC20 listings ---

  function acceptERC20Listings(
    ISeaport.AdvancedOrder[] calldata orders,
    ERC20ListingParams calldata params,
    Fee[] calldata fees
  )
    external
    nonReentrant
    refundERC20Leftover(params.refundTo, params.token)
    chargeERC20Fees(fees, params.token, params.amount)
  {
    // Approve the exchange if needed
    _approveERC20IfNeeded(params.token, address(EXCHANGE), params.amount);

    uint256 length = orders.length;
    ISeaport.CriteriaResolver[] memory criteriaResolvers = new ISeaport.CriteriaResolver[](0);

    // Execute the fills
    if (params.revertIfIncomplete) {
      for (uint256 i; i < length; ) {
        _fillSingleOrderWithRevertIfIncomplete(orders[i], criteriaResolvers, params.fillTo, 0);

        unchecked {
          ++i;
        }
      }
    } else {
      for (uint256 i; i < length; ) {
        _fillSingleOrder(orders[i], criteriaResolvers, params.fillTo, 0);

        unchecked {
          ++i;
        }
      }
    }
  }

  // --- Single ERC721 offer ---

  function acceptERC721Offer(
    ISeaport.AdvancedOrder calldata order,
    // Use `memory` instead of `calldata` to avoid `Stack too deep` errors
    ISeaport.CriteriaResolver[] memory criteriaResolvers,
    OfferParams calldata params,
    Fee[] calldata fees
  ) external nonReentrant {
    // Extract the ERC721 token from the consideration items
    ISeaport.ConsiderationItem calldata nftItem = order.parameters.consideration[0];
    if (
      nftItem.itemType != ISeaport.ItemType.ERC721 &&
      nftItem.itemType != ISeaport.ItemType.ERC721_WITH_CRITERIA
    ) {
      revert WrongParams();
    }
    IERC721 nftToken = IERC721(nftItem.token);

    // Extract the payment token from the offer items
    ISeaport.OfferItem calldata paymentItem = order.parameters.offer[0];
    IERC20 paymentToken = IERC20(paymentItem.token);

    // Approve the exchange if needed
    _approveERC721IfNeeded(nftToken, address(EXCHANGE));
    _approveERC20IfNeeded(paymentToken, address(EXCHANGE), type(uint256).max);

    // Execute the fill
    params.revertIfIncomplete
      ? _fillSingleOrderWithRevertIfIncomplete(order, criteriaResolvers, address(this), 0)
      : _fillSingleOrder(order, criteriaResolvers, address(this), 0);

    uint256 identifier = nftItem.itemType == ISeaport.ItemType.ERC721
      ? nftItem.identifierOrCriteria
      : criteriaResolvers[0].identifier;

    // Pay fees
    if (nftToken.ownerOf(identifier) != address(this)) {
      // Only pay fees if the fill was successful
      uint256 feesLength = fees.length;
      for (uint256 i; i < feesLength; ) {
        Fee memory fee = fees[i];
        _sendERC20(fee.recipient, fee.amount, paymentToken);

        unchecked {
          ++i;
        }
      }
    }

    // Refund any ERC721 leftover
    _sendAllERC721(params.refundTo, nftToken, identifier);

    // Forward any left payment to the specified receiver
    _sendAllERC20(params.fillTo, paymentToken);
  }

  // --- Single ERC1155 offer ---

  function acceptERC1155Offer(
    ISeaport.AdvancedOrder calldata order,
    // Use `memory` instead of `calldata` to avoid `Stack too deep` errors
    ISeaport.CriteriaResolver[] memory criteriaResolvers,
    OfferParams calldata params,
    Fee[] calldata fees
  ) external nonReentrant {
    // Extract the ERC1155 token from the consideration items
    ISeaport.ConsiderationItem calldata nftItem = order.parameters.consideration[0];
    if (
      nftItem.itemType != ISeaport.ItemType.ERC1155 &&
      nftItem.itemType != ISeaport.ItemType.ERC1155_WITH_CRITERIA
    ) {
      revert WrongParams();
    }
    IERC1155 nftToken = IERC1155(nftItem.token);

    // Extract the payment token from the offer items
    ISeaport.OfferItem calldata paymentItem = order.parameters.offer[0];
    IERC20 paymentToken = IERC20(paymentItem.token);

    // Approve the exchange if needed
    _approveERC1155IfNeeded(nftToken, address(EXCHANGE));
    _approveERC20IfNeeded(paymentToken, address(EXCHANGE), type(uint256).max);

    uint256 identifier = nftItem.itemType == ISeaport.ItemType.ERC1155
      ? nftItem.identifierOrCriteria
      : criteriaResolvers[0].identifier;

    uint256 balanceBefore = nftToken.balanceOf(address(this), identifier);

    // Execute the fill
    params.revertIfIncomplete
      ? _fillSingleOrderWithRevertIfIncomplete(order, criteriaResolvers, address(this), 0)
      : _fillSingleOrder(order, criteriaResolvers, address(this), 0);

    uint256 balanceAfter = nftToken.balanceOf(address(this), identifier);

    // Pay fees
    uint256 amountFilled = balanceBefore - balanceAfter;
    if (amountFilled > 0) {
      uint256 feesLength = fees.length;
      for (uint256 i; i < feesLength; ) {
        Fee memory fee = fees[i];
        _sendERC20(
          fee.recipient,
          // Only pay fees for the amount that was actually filled
          (fee.amount * amountFilled) / order.numerator,
          paymentToken
        );

        unchecked {
          ++i;
        }
      }
    }

    // Refund any ERC1155 leftover
    _sendAllERC1155(params.refundTo, nftToken, identifier);

    // Forward any left payment to the specified receiver
    _sendAllERC20(params.fillTo, paymentToken);
  }

  // --- Generic handler (used for Seaport-based approvals) ---

  function matchOrders(
    ISeaport.Order[] calldata orders,
    ISeaport.Fulfillment[] calldata fulfillments
  ) external nonReentrant {
    // We don't perform any kind of input or return value validation,
    // so this function should be used with precaution - the official
    // way to use it is only for Seaport-based approvals
    EXCHANGE.matchOrders(orders, fulfillments);
  }

  // --- ERC721 / ERC1155 hooks ---

  // Single token offer acceptance can be done approval-less by using the
  // standard `safeTransferFrom` method together with specifying data for
  // further contract calls. An example:
  // `safeTransferFrom(
  //      0xWALLET,
  //      0xMODULE,
  //      TOKEN_ID,
  //      0xABI_ENCODED_ROUTER_EXECUTION_CALLDATA_FOR_OFFER_ACCEPTANCE
  // )`

  function onERC721Received(
    address, // operator,
    address, // from
    uint256, // tokenId,
    bytes calldata data
  ) external returns (bytes4) {
    if (data.length > 0) {
      _makeCall(router, data, 0);
    }

    return this.onERC721Received.selector;
  }

  function onERC1155Received(
    address, // operator
    address, // from
    uint256, // tokenId
    uint256, // amount
    bytes calldata data
  ) external returns (bytes4) {
    if (data.length > 0) {
      _makeCall(router, data, 0);
    }

    return this.onERC1155Received.selector;
  }

  // --- Internal ---

  // NOTE: In lots of cases, Seaport will not revert if fills were not
  // fully executed. An example of that is partial filling, which will
  // successfully fill any amount that is still available (including a
  // zero amount). One way to ensure that we revert in case of partial
  // executions is to check the order's filled amount before and after
  // we trigger the fill (we can use Seaport's `getOrderStatus` method
  // to check). Since this can be expensive in terms of gas, we have a
  // separate method variant to be called when reverts are enabled.

  function _fillSingleOrder(
    ISeaport.AdvancedOrder calldata order,
    // Use `memory` instead of `calldata` to avoid `Stack too deep` errors
    ISeaport.CriteriaResolver[] memory criteriaResolvers,
    address receiver,
    uint256 value
  ) internal {
    // Execute the fill
    try
      EXCHANGE.fulfillAdvancedOrder{value: value}(order, criteriaResolvers, bytes32(0), receiver)
    {} catch {}
  }

  function _fillSingleOrderWithRevertIfIncomplete(
    ISeaport.AdvancedOrder calldata order,
    // Use `memory` instead of `calldata` to avoid `Stack too deep` errors
    ISeaport.CriteriaResolver[] memory criteriaResolvers,
    address receiver,
    uint256 value
  ) internal {
    // Cache the order's hash
    bytes32 orderHash = _getOrderHash(order.parameters);

    // Before filling, get the order's filled amount
    uint256 beforeFilledAmount = _getFilledAmount(orderHash, order.denominator);

    // Execute the fill
    bool success;
    try
      EXCHANGE.fulfillAdvancedOrder{value: value}(order, criteriaResolvers, bytes32(0), receiver)
    returns (bool fulfilled) {
      success = fulfilled;
    } catch {
      revert UnsuccessfulFill();
    }

    if (!success) {
      revert UnsuccessfulFill();
    } else {
      // After successfully filling, get the order's filled amount
      uint256 afterFilledAmount = _getFilledAmount(orderHash, order.denominator);

      // Make sure the amount filled as part of this call is correct
      if (afterFilledAmount - beforeFilledAmount != order.numerator) {
        revert UnsuccessfulFill();
      }
    }
  }

  function _getOrderHash(
    // Must use `memory` instead of `calldata` for the below cast
    ISeaport.OrderParameters memory orderParameters
  ) internal view returns (bytes32 orderHash) {
    // `OrderParameters` and `OrderComponents` share the exact same
    // fields, apart from the last one, so here we simply treat the
    // `orderParameters` argument as `OrderComponents` and then set
    // the last field to the correct data
    ISeaport.OrderComponents memory orderComponents;
    assembly {
      orderComponents := orderParameters
    }
    orderComponents.counter = EXCHANGE.getCounter(orderParameters.offerer);

    orderHash = EXCHANGE.getOrderHash(orderComponents);
  }

  function _getFilledAmount(
    bytes32 orderHash,
    uint256 adjustedTotalSize
  ) internal view returns (uint256 adjustedTotalFilled) {
    (, , uint256 totalFilled, uint256 totalSize) = EXCHANGE.getOrderStatus(orderHash);
    adjustedTotalFilled = totalSize > 0 ? (totalFilled * adjustedTotalSize) / totalSize : 0;
  }
}

File 2 of 13 : 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 3 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 4 of 13 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 8 of 13 : 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 9 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 10 of 13 : ISeaport.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface ISeaport {
  enum OrderType {
    FULL_OPEN,
    PARTIAL_OPEN,
    FULL_RESTRICTED,
    PARTIAL_RESTRICTED
  }

  enum ItemType {
    NATIVE,
    ERC20,
    ERC721,
    ERC1155,
    ERC721_WITH_CRITERIA,
    ERC1155_WITH_CRITERIA
  }

  enum Side {
    OFFER,
    CONSIDERATION
  }

  struct OfferItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
  }

  struct ConsiderationItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
    address recipient;
  }

  struct SpentItem {
    ItemType itemType;
    address token;
    uint256 identifier;
    uint256 amount;
  }

  struct ReceivedItem {
    ItemType itemType;
    address token;
    uint256 identifier;
    uint256 amount;
    address recipient;
  }

  struct OrderComponents {
    address offerer;
    address zone;
    OfferItem[] offer;
    ConsiderationItem[] consideration;
    OrderType orderType;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
    uint256 salt;
    bytes32 conduitKey;
    uint256 counter;
  }

  struct OrderParameters {
    address offerer;
    address zone;
    OfferItem[] offer;
    ConsiderationItem[] consideration;
    OrderType orderType;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
    uint256 salt;
    bytes32 conduitKey;
    uint256 totalOriginalConsiderationItems;
  }

  struct Order {
    OrderParameters parameters;
    bytes signature;
  }

  struct AdvancedOrder {
    OrderParameters parameters;
    uint120 numerator;
    uint120 denominator;
    bytes signature;
    bytes extraData;
  }

  struct CriteriaResolver {
    uint256 orderIndex;
    Side side;
    uint256 index;
    uint256 identifier;
    bytes32[] criteriaProof;
  }

  struct FulfillmentComponent {
    uint256 orderIndex;
    uint256 itemIndex;
  }

  struct Fulfillment {
    FulfillmentComponent[] offerComponents;
    FulfillmentComponent[] considerationComponents;
  }

  struct Execution {
    ReceivedItem item;
    address offerer;
    bytes32 conduitKey;
  }

  struct ZoneParameters {
    bytes32 orderHash;
    address fulfiller;
    address offerer;
    SpentItem[] offer;
    ReceivedItem[] consideration;
    bytes extraData;
    bytes32[] orderHashes;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
  }

  struct Schema {
    uint256 id;
    bytes metadata;
  }

  function getOrderHash(OrderComponents calldata order) external view returns (bytes32 orderHash);

  function getOrderStatus(bytes32 orderHash)
    external
    view
    returns (
      bool isValidated,
      bool isCancelled,
      uint256 totalFilled,
      uint256 totalSize
    );

  function getCounter(address offerer) external view returns (uint256 counter);

  function fulfillAdvancedOrder(
    AdvancedOrder calldata advancedOrder,
    CriteriaResolver[] calldata criteriaResolvers,
    bytes32 fulfillerConduitKey,
    address recipient
  ) external payable returns (bool fulfilled);

  function fulfillAvailableAdvancedOrders(
    AdvancedOrder[] memory advancedOrders,
    CriteriaResolver[] calldata criteriaResolvers,
    FulfillmentComponent[][] calldata offerFulfillments,
    FulfillmentComponent[][] calldata considerationFulfillments,
    bytes32 fulfillerConduitKey,
    address recipient,
    uint256 maximumFulfilled
  ) external payable returns (bool[] memory availableOrders, Execution[] memory executions);

  function matchOrders(Order[] calldata orders, Fulfillment[] calldata fulfillments)
    external
    payable
    returns (Execution[] memory executions);

  function matchAdvancedOrders(
    AdvancedOrder[] calldata advancedOrders,
    CriteriaResolver[] calldata criteriaResolvers,
    Fulfillment[] calldata fulfillments
  ) external payable returns (Execution[] memory executions);
}

File 11 of 13 : TwoStepOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Adapted from:
// https://github.com/boringcrypto/BoringSolidity/blob/e74c5b22a61bfbadd645e51a64aa1d33734d577a/contracts/BoringOwnable.sol
contract TwoStepOwnable {
  // --- Fields ---

  address public owner;
  address public pendingOwner;

  // --- Events ---

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

  // --- Errors ---

  error InvalidParams();
  error Unauthorized();

  // --- Modifiers ---

  modifier onlyOwner() {
    if (msg.sender != owner) {
      revert Unauthorized();
    }

    _;
  }

  // --- Constructor ---

  constructor(address initialOwner) {
    owner = initialOwner;
    emit OwnershipTransferred(address(0), initialOwner);
  }

  // --- Methods ---

  function transferOwnership(address newOwner) public onlyOwner {
    pendingOwner = newOwner;
  }

  function claimOwnership() public {
    address _pendingOwner = pendingOwner;
    if (msg.sender != _pendingOwner) {
      revert Unauthorized();
    }

    owner = _pendingOwner;
    pendingOwner = address(0);
    emit OwnershipTransferred(owner, _pendingOwner);
  }
}

File 12 of 13 : BaseModule.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import {TwoStepOwnable} from "../../misc/TwoStepOwnable.sol";

// Notes:
// - includes common helpers useful for all modules

abstract contract BaseModule is TwoStepOwnable, ReentrancyGuard {
  using SafeERC20 for IERC20;

  // --- Events ---

  event CallExecuted(address target, bytes data, uint256 value);

  // --- Errors ---

  error UnsuccessfulCall();
  error UnsuccessfulPayment();
  error WrongParams();

  // --- Constructor ---

  constructor(address owner) TwoStepOwnable(owner) {}

  // --- Owner ---

  // To be able to recover anything that gets stucked by mistake in the module,
  // we allow the owner to perform any arbitrary call. Since the goal is to be
  // stateless, this should only happen in case of mistakes. In addition, this
  // method is also useful for withdrawing any earned trading rewards.
  function makeCalls(
    address[] calldata targets,
    bytes[] calldata data,
    uint256[] calldata values
  ) external payable onlyOwner nonReentrant {
    uint256 length = targets.length;
    for (uint256 i = 0; i < length; ) {
      _makeCall(targets[i], data[i], values[i]);
      emit CallExecuted(targets[i], data[i], values[i]);

      unchecked {
        ++i;
      }
    }
  }

  // --- Helpers ---

  function _sendETH(address to, uint256 amount) internal {
    if (amount > 0) {
      (bool success, ) = payable(to).call{value: amount}("");
      if (!success) {
        revert UnsuccessfulPayment();
      }
    }
  }

  function _sendERC20(
    address to,
    uint256 amount,
    IERC20 token
  ) internal {
    if (amount > 0) {
      token.safeTransfer(to, amount);
    }
  }

  function _makeCall(
    address target,
    bytes memory data,
    uint256 value
  ) internal {
    (bool success, ) = payable(target).call{value: value}(data);
    if (!success) {
      revert UnsuccessfulCall();
    }
  }
}

File 13 of 13 : BaseExchangeModule.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

import {BaseModule} from "../BaseModule.sol";

// Notes:
// - includes common helpers useful for all marketplace/exchange modules

abstract contract BaseExchangeModule is BaseModule {
  using SafeERC20 for IERC20;

  // --- Structs ---

  // Every fill execution has the following parameters:
  // - `fillTo`: the recipient of the received items
  // - `refundTo`: the recipient of any refunds
  // - `revertIfIncomplete`: whether to revert or skip unsuccessful fills

  // The below `ETHListingParams` and `ERC20ListingParams` rely on the
  // off-chain execution encoder to ensure that the orders filled with
  // the passed in listing parameters exactly match (eg. order amounts
  // and payment tokens match).

  struct ETHListingParams {
    address fillTo;
    address refundTo;
    bool revertIfIncomplete;
    // The total amount of ETH to be provided when filling
    uint256 amount;
  }

  struct ERC20ListingParams {
    address fillTo;
    address refundTo;
    bool revertIfIncomplete;
    // The ERC20 payment token for the listings
    IERC20 token;
    // The total amount of `token` to be provided when filling
    uint256 amount;
  }

  struct OfferParams {
    address fillTo;
    address refundTo;
    bool revertIfIncomplete;
  }

  struct Fee {
    address recipient;
    uint256 amount;
  }

  // --- Fields ---

  address public immutable router;

  // --- Errors ---

  error UnsuccessfulFill();

  // --- Constructor ---

  constructor(address routerAddress) {
    router = routerAddress;
  }

  // --- Modifiers ---

  modifier refundETHLeftover(address refundTo) {
    _;

    uint256 leftover = address(this).balance;
    if (leftover > 0) {
      _sendETH(refundTo, leftover);
    }
  }

  modifier refundERC20Leftover(address refundTo, IERC20 token) {
    _;

    uint256 leftover = token.balanceOf(address(this));
    if (leftover > 0) {
      token.safeTransfer(refundTo, leftover);
    }
  }

  modifier chargeETHFees(Fee[] calldata fees, uint256 amount) {
    if (fees.length == 0) {
      _;
    } else {
      uint256 balanceBefore = address(this).balance;

      _;

      uint256 length = fees.length;
      if (length > 0) {
        uint256 balanceAfter = address(this).balance;
        uint256 actualPaid = balanceBefore - balanceAfter;

        uint256 actualFee;
        for (uint256 i = 0; i < length; ) {
          // Adjust the fee to what was actually paid
          actualFee = (fees[i].amount * actualPaid) / amount;
          if (actualFee > 0) {
            _sendETH(fees[i].recipient, actualFee);
          }

          unchecked {
            ++i;
          }
        }
      }
    }
  }

  modifier chargeERC20Fees(
    Fee[] calldata fees,
    IERC20 token,
    uint256 amount
  ) {
    if (fees.length == 0) {
      _;
    } else {
      uint256 balanceBefore = token.balanceOf(address(this));

      _;

      uint256 length = fees.length;
      if (length > 0) {
        uint256 balanceAfter = token.balanceOf(address(this));
        uint256 actualPaid = balanceBefore - balanceAfter;

        uint256 actualFee;
        for (uint256 i = 0; i < length; ) {
          // Adjust the fee to what was actually paid
          actualFee = (fees[i].amount * actualPaid) / amount;
          if (actualFee > 0) {
            token.safeTransfer(fees[i].recipient, actualFee);
          }

          unchecked {
            ++i;
          }
        }
      }
    }
  }

  // --- Helpers ---

  function _sendAllETH(address to) internal {
    _sendETH(to, address(this).balance);
  }

  function _sendAllERC20(address to, IERC20 token) internal {
    uint256 balance = token.balanceOf(address(this));
    if (balance > 0) {
      token.safeTransfer(to, balance);
    }
  }

  function _sendAllERC721(address to, IERC721 token, uint256 tokenId) internal {
    if (token.ownerOf(tokenId) == address(this)) {
      token.safeTransferFrom(address(this), to, tokenId);
    }
  }

  function _sendAllERC1155(address to, IERC1155 token, uint256 tokenId) internal {
    uint256 balance = token.balanceOf(address(this), tokenId);
    if (balance > 0) {
      token.safeTransferFrom(address(this), to, tokenId, balance, "");
    }
  }

  function _approveERC20IfNeeded(IERC20 token, address spender, uint256 amount) internal {
    uint256 allowance = token.allowance(address(this), spender);
    if (allowance < amount) {
      token.approve(spender, amount);
    }
  }

  function _approveERC721IfNeeded(IERC721 token, address operator) internal {
    bool isApproved = token.isApprovedForAll(address(this), operator);
    if (!isApproved) {
      token.setApprovalForAll(operator, true);
    }
  }

  function _approveERC1155IfNeeded(IERC1155 token, address operator) internal {
    bool isApproved = token.isApprovedForAll(address(this), operator);
    if (!isApproved) {
      token.setApprovalForAll(operator, true);
    }
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"exchange","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidParams","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsuccessfulCall","type":"error"},{"inputs":[],"name":"UnsuccessfulFill","type":"error"},{"inputs":[],"name":"UnsuccessfulPayment","type":"error"},{"inputs":[],"name":"WrongParams","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"CallExecuted","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"},{"inputs":[],"name":"EXCHANGE","outputs":[{"internalType":"contract ISeaport","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"enum ISeaport.Side","name":"side","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"bytes32[]","name":"criteriaProof","type":"bytes32[]"}],"internalType":"struct ISeaport.CriteriaResolver[]","name":"criteriaResolvers","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"internalType":"struct BaseExchangeModule.OfferParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC1155Offer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ERC20ListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC20Listing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder[]","name":"orders","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ERC20ListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC20Listings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"enum ISeaport.Side","name":"side","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"bytes32[]","name":"criteriaProof","type":"bytes32[]"}],"internalType":"struct ISeaport.CriteriaResolver[]","name":"criteriaResolvers","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"internalType":"struct BaseExchangeModule.OfferParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC721Offer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ETHListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptETHListing","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct SeaportV15Module.SeaportETHListingWithPrice[]","name":"orders","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ETHListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptETHListings","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"makeCalls","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ISeaport.Order[]","name":"orders","type":"tuple[]"},{"components":[{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"uint256","name":"itemIndex","type":"uint256"}],"internalType":"struct ISeaport.FulfillmentComponent[]","name":"offerComponents","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"uint256","name":"itemIndex","type":"uint256"}],"internalType":"struct ISeaport.FulfillmentComponent[]","name":"considerationComponents","type":"tuple[]"}],"internalType":"struct ISeaport.Fulfillment[]","name":"fulfillments","type":"tuple[]"}],"name":"matchOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0346200012857601f6200353738819003918201601f19168301916001600160401b038311848410176200012d5780849260609460405283398101031262000128576200004d8162000143565b620000696040620000616020850162000143565b930162000143565b600080546001600160a01b0319166001600160a01b03938416908117825560405194917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a360016002556080521660a0526133de90816200015982396080518181816103bf015261141d015260a05181818161079c01528181610bf6015281816111f1015281816112e7015281816118d901528181612b2201528181612b9401528181612e6501528181612f830152818161320f01526132ee0152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001285756fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f00000000000000000000000000000000000000000000000000000000000000006115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b6001600160401b03811161043b57604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f8480611ff3565b6060810190612009565b9061203e565b92600361072b85612082565b61073481612070565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b8880611ff3565b604081019061208c565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000000000000000000000000000000000000000000008c166107c7818d6122ae565b8d611b68565b60036107d882612082565b6107e181612070565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a612e05565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b61237b565b61147b565b61215c565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b6120fb565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b01612371565b6001600160781b031690565b90611698565b90612149565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a612afa565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb836120c1565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e385612082565b6109ec81612070565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611e2e565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f8580611ff3565b936002610ba986612082565b610bb281612070565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b80611ff3565b966001600160a01b0396610c277f00000000000000000000000000000000000000000000000000000000000000008916610c21818a6122ae565b8a611b68565b610c3360408b016116c2565b15610d4c57610c4490833091612e05565b6002610c4f82612082565b610c5881612070565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b6121ca565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316612149565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b8101906120e6565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d436060916120c1565b51015194610c65565b610d5890833091612afa565b610c44565b506004610d6986612082565b610d7281612070565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612f2b565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612b6a565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611d8b565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611d46565b80611d76565b6110288761147b565b858d611035868c8b611d46565b013592612f2b565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611d46565b6110788761147b565b858d611085868c8b611d46565b013592612b6a565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526128cd565b0381837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b81019061247a565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612846565b916112a06112948480612580565b89835289830190612741565b90602094848680960190612815565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690611c5a565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b612e05565b610320916119436116cc565b90359161194f83610304565b612afa565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611ad6565b805190828215928315611a5d575b50505015611a065750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b611a6d9350820181019101611a75565b3882816119fb565b908160209103126101945751611485816116b8565b15611a9157565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611af65750815115611aea575090565b611485903b1515611a8a565b825190915015611b095750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b4f575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b2c565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216908381604481855afa908115611c4d575b600091611c30575b5060001911611bb757505050565b60405163095ea7b360e01b81526001600160a01b0392909216600483015260001960248301528290829060449082906000905af18015611c23575b611bfa575050565b81611c1992903d10611c1c575b611c1181836104ac565b810190611a75565b50565b503d611c07565b611c2b611792565b611bf2565b611c479150843d86116109575761094881836104ac565b38611ba9565b611c55611792565b611ba1565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094921692919081908581604481885afa908115611d39575b600091611d1c575b5010611cac575b50505050565b60405163095ea7b360e01b81526001600160a01b039290921660048301526024820152908290829060449082906000905af18015611d0f575b611cf1575b8080611ca6565b81611d0792903d10611c1c57611c1181836104ac565b503880611cea565b611d17611792565b611ce5565b611d339150863d88116109575761094881836104ac565b38611c9f565b611d41611792565b611c97565b9190811015611d69575b60051b81013590603e1981360301821215610194570190565b611d7161144c565b611d50565b903590609e1981360301821215610194570190565b909291611d966116cc565b91611da3604083016116c2565b15611deb5760005b858110611dba57505050509050565b80611de5611dce6110196001948a87611d46565b611dd78661147b565b876020611035868d8a611d46565b01611dab565b60005b858110611dfd57505050509050565b80611e28611e116110196001948a87611d46565b611e1a8661147b565b876020611085868d8a611d46565b01611dee565b909192949394611e406060850161147b565b60808501359680611e5957505050610320939450611f58565b6040516370a0823160e01b808252306004830152602097949693959294611eae946001600160a01b038816948a9392919084866024818a5afa958615611f25575b600096611efe575b509061181e9291611f58565b60005b828110611ec2575050505050509050565b80611ed989610ea3858a610e9c6001978a8d611667565b80611ee6575b5001611eb1565b611ef8906118826108a684888b611667565b38611edf565b61181e9392919650611f1c90863d88116109575761094881836104ac565b95909192611ea2565b611f2d611792565b611e9a565b909161148592811015611f4b575b60051b810190611d76565b611f5361144c565b611f40565b9190611f696118d16060840161147b565b611f716116cc565b90611f7e604084016116c2565b15611fbb5760005b818110611f94575050505050565b80611fb5611fa56001938589611f32565b85611faf8861147b565b91612e05565b01611f86565b60005b818110611fcc575050505050565b80611fed611fdd6001938589611f32565b85611fe78861147b565b91612afa565b01611fbe565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b90156120475790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b6006111561207a57565b610320612059565b356114858161204f565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b6020908051156120cf570190565b6120d761144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b0382111761213c575b604052803561213081610304565b83520135602082015290565b612144610409565b612122565b8161215357505050565b61032092611954565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa9182156121bd575b60009261219d575b508161215357505050565b6121b691925060203d81116109575761094881836104ac565b9038612192565b6121c5611792565b61218a565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa9182156122a1575b600092612281575b5016301461221257505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af18015612274575b6122615750565b8061226e61032092610448565b806109f3565b61227c611792565b61225a565b61229a91925060203d8111610d2357610d1481836104ac565b9038612205565b6122a9611792565b6121fd565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa908115612353575b600091612335575b50156122f9575050565b803b156101945760405163a22cb46560e01b81526001600160a01b0390921660048301526001602483015260009082908183816044810161224f565b61234d915060203d8111611c1c57611c1181836104ac565b386122ef565b61235b611792565b6122e7565b6001600160781b0381160361019457565b3561148581612360565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa91821561246d575b60009261244d575b50816123c45750505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af18015612440575b61242d575b808080611ca6565b8061226e61243a92610448565b38612425565b612448611792565b612420565b61246691925060203d81116109575761094881836104ac565b90386123b8565b612475611792565b6123b0565b6020908181840312610194578051906001600160401b038211610194570182601f82011215610194578051916124af836104ed565b9360406124be815196876104ac565b848652828601918360e080970286010194818611610194578401925b8584106124eb575050505050505090565b838203878112610194578351916125018361045b565b60a08092126101945788926125688893875161251c81610420565b89516125278161204f565b8152858a015161253681610304565b86820152888a0151898201526060808b0151908201526080808b01519061255c82610304565b820152835288016120db565b8382015260c0870151868201528152019301926124da565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156125d65752565b6125de612059565b52565b9190808252602080920192916000905b8282106125ff575050505090565b909192938061261a60019287356126158161204f565b6125c9565b8286013561262781610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a080910195019201909291926125f1565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106126b4575050505090565b90919293806126ca60019287356126158161204f565b828601356126d781610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561271281610304565b169082015260c09081019501939201906126a6565b3590600482101561019457565b9060048210156125d65752565b9061275c8161274f84610315565b6001600160a01b03169052565b61277b61276b60208401610315565b6001600160a01b03166020830152565b6127ba61279f61278e6040850185612595565b6101608060408701528501916125e1565b6127ac6060850185612662565b908483036060860152612696565b916127d46127ca60808301612727565b6080840190612734565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106128ac575050505090565b8335855283810135858201526040948501949093019260019091019061289e565b90808352602080930192838260051b850194846000925b8584106128f5575050505050505090565b90919293949596858061294883856001950388526129138c88612846565b9061293b612931612924848061285a565b604080865285019161288e565b928581019061285a565b918581850391015261288e565b9901940194019295949391906128e4565b90815180825260208092019182818360051b8201950193600080925b858410612986575050505050505090565b9091929394959681810384528751908660c060a0928381019385518252838601516002811015612a1e575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612a05575050509080600192990194019401929594939190612975565b91938060019294865181520194019201889392916129e5565b612a26612059565b6129b1565b939290612ae061032093612ad26060936080895288612ac2612ab7612a65612a538580612580565b60a06080860152610120850190612741565b6020850135612a7381612360565b6001600160781b0380911660a08601526040860135612a9181612360565b1660c0850152612aa389860186612815565b90607f199560e08782860301910152611538565b926080810190612815565b918b8403016101008c0152611538565b908782036020890152612959565b600060408701526001600160a01b03909216940193909352565b90602091612b1c60405194859384936339eb2ac960e21b855260048501612a2b565b038160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1612b535750565b611c199060203d8111611c1c57611c1181836104ac565b9260209291612b9094604051958694859384936339eb2ac960e21b855260048501612a2b565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1612b535750565b81601f8201121561019457803590612bdc826104ed565b92604090612bec825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612c1c575050505050505090565b8684830312610194578487918451612c3381610420565b8635612c3e8161204f565b815282870135612c4d81610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612c0b565b81601f8201121561019457803590612c8f826104ed565b92604090612c9f825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b858410612ccf575050505050505090565b8684830312610194578487918451612ce681610476565b8635612cf18161204f565b815282870135612d0081610304565b838201528587013586820152606080880135908201526080808801359082015260a08088013590612d3082610304565b820152815201930192612cbe565b6101608136031261019457612d516104cd565b90612d5b81610315565b8252612d6960208201610315565b60208301526001600160401b03604082013581811161019457612d8f9036908401612bc5565b6040840152606082013590811161019457612dad9036908301612c78565b6060830152612dbe60808201612727565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b91612e20612e1b612e168580611ff3565b612d3e565b6131dc565b91612e6060408501916020612e40612e3a61091186612371565b876132d1565b9460009260405194859283926339eb2ac960e21b84528b60048501612a2b565b0381847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612f0b575b50612eae57604051631298f31b60e11b8152600490fd5b612ec457604051631298f31b60e11b8152600490fd5b612eeb61091192612ee6612ef295612ee0610911602096612371565b906132d1565b611652565b9301612371565b03612ef957565b604051631298f31b60e11b8152600490fd5b612f2491925060203d8111611c1c57611c1181836104ac565b9038612e97565b929091612f7f612f41612e1b612e168780611ff3565b9360206040870193612f5e612f5861091187612371565b886132d1565b956000936040518096819482936339eb2ac960e21b84528d60048501612a2b565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612f0b5750612eae57604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117613031575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b613039610409565b612fe7565b90815180825260208080930193019160005b82811061305e575050505090565b909192938260a060019287516130758282516125c9565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101613050565b90815180825260208080930193019160005b8281106130ce575050505090565b909192938260c060019287516130e58282516125c9565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a08092015116908201520195019101929190926130c0565b602080825282516001600160a01b03169082015260208201516001600160a01b0316604082015260408201516131896131736101609283606086015261018085019061303e565b6060850151848203601f190160808601526130ae565b9261319c608082015160a0850190612734565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b6131e4612fcb565b50805160405163f07ec37360e01b81526001600160a01b03918216600482015260209261326c9284927f0000000000000000000000000000000000000000000000000000000000000000909116908381602481855afa9081156132c4575b6000916132a7575b5061014083015260405180809581946379df72bd60e01b83526004830161312c565b03915afa91821561329a575b60009261328457505090565b6114859250803d106109575761094881836104ac565b6132a2611792565b613278565b6132be9150843d86116109575761094881836104ac565b3861324a565b6132cc611792565b613242565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa90811561339b575b6000908192613348575b5060008215613341575061148592610ea391611685565b9250505090565b91506080823d8211613393575b81613362608093836104ac565b81010312610a65575061337581516116b8565b61338260208201516116b8565b60606040820151910151903861332a565b3d9150613355565b6133a3611792565b61332056fea26469706673582212205515273aea9016efee18f52cdec47a11cbfa8e1d6eed7b73351bcf0a58b68d2964736f6c63430008110033000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc

Deployed Bytecode

0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b6001600160401b03811161043b57604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f8480611ff3565b6060810190612009565b9061203e565b92600361072b85612082565b61073481612070565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b8880611ff3565b604081019061208c565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc8c166107c7818d6122ae565b8d611b68565b60036107d882612082565b6107e181612070565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a612e05565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b61237b565b61147b565b61215c565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b6120fb565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b01612371565b6001600160781b031690565b90611698565b90612149565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a612afa565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb836120c1565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e385612082565b6109ec81612070565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611e2e565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f8580611ff3565b936002610ba986612082565b610bb281612070565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b80611ff3565b966001600160a01b0396610c277f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc8916610c21818a6122ae565b8a611b68565b610c3360408b016116c2565b15610d4c57610c4490833091612e05565b6002610c4f82612082565b610c5881612070565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b6121ca565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316612149565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b8101906120e6565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d436060916120c1565b51015194610c65565b610d5890833091612afa565b610c44565b506004610d6986612082565b610d7281612070565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612f2b565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612b6a565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611d8b565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611d46565b80611d76565b6110288761147b565b858d611035868c8b611d46565b013592612f2b565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611d46565b6110788761147b565b858d611085868c8b611d46565b013592612b6a565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526128cd565b0381837f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b81019061247a565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612846565b916112a06112948480612580565b89835289830190612741565b90602094848680960190612815565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b031690611c5a565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b612e05565b610320916119436116cc565b90359161194f83610304565b612afa565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611ad6565b805190828215928315611a5d575b50505015611a065750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b611a6d9350820181019101611a75565b3882816119fb565b908160209103126101945751611485816116b8565b15611a9157565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611af65750815115611aea575090565b611485903b1515611a8a565b825190915015611b095750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b4f575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b2c565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216908381604481855afa908115611c4d575b600091611c30575b5060001911611bb757505050565b60405163095ea7b360e01b81526001600160a01b0392909216600483015260001960248301528290829060449082906000905af18015611c23575b611bfa575050565b81611c1992903d10611c1c575b611c1181836104ac565b810190611a75565b50565b503d611c07565b611c2b611792565b611bf2565b611c479150843d86116109575761094881836104ac565b38611ba9565b611c55611792565b611ba1565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094921692919081908581604481885afa908115611d39575b600091611d1c575b5010611cac575b50505050565b60405163095ea7b360e01b81526001600160a01b039290921660048301526024820152908290829060449082906000905af18015611d0f575b611cf1575b8080611ca6565b81611d0792903d10611c1c57611c1181836104ac565b503880611cea565b611d17611792565b611ce5565b611d339150863d88116109575761094881836104ac565b38611c9f565b611d41611792565b611c97565b9190811015611d69575b60051b81013590603e1981360301821215610194570190565b611d7161144c565b611d50565b903590609e1981360301821215610194570190565b909291611d966116cc565b91611da3604083016116c2565b15611deb5760005b858110611dba57505050509050565b80611de5611dce6110196001948a87611d46565b611dd78661147b565b876020611035868d8a611d46565b01611dab565b60005b858110611dfd57505050509050565b80611e28611e116110196001948a87611d46565b611e1a8661147b565b876020611085868d8a611d46565b01611dee565b909192949394611e406060850161147b565b60808501359680611e5957505050610320939450611f58565b6040516370a0823160e01b808252306004830152602097949693959294611eae946001600160a01b038816948a9392919084866024818a5afa958615611f25575b600096611efe575b509061181e9291611f58565b60005b828110611ec2575050505050509050565b80611ed989610ea3858a610e9c6001978a8d611667565b80611ee6575b5001611eb1565b611ef8906118826108a684888b611667565b38611edf565b61181e9392919650611f1c90863d88116109575761094881836104ac565b95909192611ea2565b611f2d611792565b611e9a565b909161148592811015611f4b575b60051b810190611d76565b611f5361144c565b611f40565b9190611f696118d16060840161147b565b611f716116cc565b90611f7e604084016116c2565b15611fbb5760005b818110611f94575050505050565b80611fb5611fa56001938589611f32565b85611faf8861147b565b91612e05565b01611f86565b60005b818110611fcc575050505050565b80611fed611fdd6001938589611f32565b85611fe78861147b565b91612afa565b01611fbe565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b90156120475790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b6006111561207a57565b610320612059565b356114858161204f565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b6020908051156120cf570190565b6120d761144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b0382111761213c575b604052803561213081610304565b83520135602082015290565b612144610409565b612122565b8161215357505050565b61032092611954565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa9182156121bd575b60009261219d575b508161215357505050565b6121b691925060203d81116109575761094881836104ac565b9038612192565b6121c5611792565b61218a565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa9182156122a1575b600092612281575b5016301461221257505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af18015612274575b6122615750565b8061226e61032092610448565b806109f3565b61227c611792565b61225a565b61229a91925060203d8111610d2357610d1481836104ac565b9038612205565b6122a9611792565b6121fd565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa908115612353575b600091612335575b50156122f9575050565b803b156101945760405163a22cb46560e01b81526001600160a01b0390921660048301526001602483015260009082908183816044810161224f565b61234d915060203d8111611c1c57611c1181836104ac565b386122ef565b61235b611792565b6122e7565b6001600160781b0381160361019457565b3561148581612360565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa91821561246d575b60009261244d575b50816123c45750505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af18015612440575b61242d575b808080611ca6565b8061226e61243a92610448565b38612425565b612448611792565b612420565b61246691925060203d81116109575761094881836104ac565b90386123b8565b612475611792565b6123b0565b6020908181840312610194578051906001600160401b038211610194570182601f82011215610194578051916124af836104ed565b9360406124be815196876104ac565b848652828601918360e080970286010194818611610194578401925b8584106124eb575050505050505090565b838203878112610194578351916125018361045b565b60a08092126101945788926125688893875161251c81610420565b89516125278161204f565b8152858a015161253681610304565b86820152888a0151898201526060808b0151908201526080808b01519061255c82610304565b820152835288016120db565b8382015260c0870151868201528152019301926124da565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156125d65752565b6125de612059565b52565b9190808252602080920192916000905b8282106125ff575050505090565b909192938061261a60019287356126158161204f565b6125c9565b8286013561262781610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a080910195019201909291926125f1565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106126b4575050505090565b90919293806126ca60019287356126158161204f565b828601356126d781610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561271281610304565b169082015260c09081019501939201906126a6565b3590600482101561019457565b9060048210156125d65752565b9061275c8161274f84610315565b6001600160a01b03169052565b61277b61276b60208401610315565b6001600160a01b03166020830152565b6127ba61279f61278e6040850185612595565b6101608060408701528501916125e1565b6127ac6060850185612662565b908483036060860152612696565b916127d46127ca60808301612727565b6080840190612734565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106128ac575050505090565b8335855283810135858201526040948501949093019260019091019061289e565b90808352602080930192838260051b850194846000925b8584106128f5575050505050505090565b90919293949596858061294883856001950388526129138c88612846565b9061293b612931612924848061285a565b604080865285019161288e565b928581019061285a565b918581850391015261288e565b9901940194019295949391906128e4565b90815180825260208092019182818360051b8201950193600080925b858410612986575050505050505090565b9091929394959681810384528751908660c060a0928381019385518252838601516002811015612a1e575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612a05575050509080600192990194019401929594939190612975565b91938060019294865181520194019201889392916129e5565b612a26612059565b6129b1565b939290612ae061032093612ad26060936080895288612ac2612ab7612a65612a538580612580565b60a06080860152610120850190612741565b6020850135612a7381612360565b6001600160781b0380911660a08601526040860135612a9181612360565b1660c0850152612aa389860186612815565b90607f199560e08782860301910152611538565b926080810190612815565b918b8403016101008c0152611538565b908782036020890152612959565b600060408701526001600160a01b03909216940193909352565b90602091612b1c60405194859384936339eb2ac960e21b855260048501612a2b565b038160007f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165af1612b535750565b611c199060203d8111611c1c57611c1181836104ac565b9260209291612b9094604051958694859384936339eb2ac960e21b855260048501612a2b565b03917f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165af1612b535750565b81601f8201121561019457803590612bdc826104ed565b92604090612bec825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612c1c575050505050505090565b8684830312610194578487918451612c3381610420565b8635612c3e8161204f565b815282870135612c4d81610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612c0b565b81601f8201121561019457803590612c8f826104ed565b92604090612c9f825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b858410612ccf575050505050505090565b8684830312610194578487918451612ce681610476565b8635612cf18161204f565b815282870135612d0081610304565b838201528587013586820152606080880135908201526080808801359082015260a08088013590612d3082610304565b820152815201930192612cbe565b6101608136031261019457612d516104cd565b90612d5b81610315565b8252612d6960208201610315565b60208301526001600160401b03604082013581811161019457612d8f9036908401612bc5565b6040840152606082013590811161019457612dad9036908301612c78565b6060830152612dbe60808201612727565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b91612e20612e1b612e168580611ff3565b612d3e565b6131dc565b91612e6060408501916020612e40612e3a61091186612371565b876132d1565b9460009260405194859283926339eb2ac960e21b84528b60048501612a2b565b0381847f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165af1909181612f0b575b50612eae57604051631298f31b60e11b8152600490fd5b612ec457604051631298f31b60e11b8152600490fd5b612eeb61091192612ee6612ef295612ee0610911602096612371565b906132d1565b611652565b9301612371565b03612ef957565b604051631298f31b60e11b8152600490fd5b612f2491925060203d8111611c1c57611c1181836104ac565b9038612e97565b929091612f7f612f41612e1b612e168780611ff3565b9360206040870193612f5e612f5861091187612371565b886132d1565b956000936040518096819482936339eb2ac960e21b84528d60048501612a2b565b03917f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165af1909181612f0b5750612eae57604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117613031575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b613039610409565b612fe7565b90815180825260208080930193019160005b82811061305e575050505090565b909192938260a060019287516130758282516125c9565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101613050565b90815180825260208080930193019160005b8281106130ce575050505090565b909192938260c060019287516130e58282516125c9565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a08092015116908201520195019101929190926130c0565b602080825282516001600160a01b03169082015260208201516001600160a01b0316604082015260408201516131896131736101609283606086015261018085019061303e565b6060850151848203601f190160808601526130ae565b9261319c608082015160a0850190612734565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b6131e4612fcb565b50805160405163f07ec37360e01b81526001600160a01b03918216600482015260209261326c9284927f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc909116908381602481855afa9081156132c4575b6000916132a7575b5061014083015260405180809581946379df72bd60e01b83526004830161312c565b03915afa91821561329a575b60009261328457505090565b6114859250803d106109575761094881836104ac565b6132a2611792565b613278565b6132be9150843d86116109575761094881836104ac565b3861324a565b6132cc611792565b613242565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc6001600160a01b03165afa90811561339b575b6000908192613348575b5060008215613341575061148592610ea391611685565b9250505090565b91506080823d8211613393575b81613362608093836104ac565b81010312610a65575061337581516116b8565b61338260208201516116b8565b60606040820151910151903861332a565b3d9150613355565b6133a3611792565b61332056fea26469706673582212205515273aea9016efee18f52cdec47a11cbfa8e1d6eed7b73351bcf0a58b68d2964736f6c63430008110033

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

000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc

-----Decoded View---------------
Arg [0] : owner (address): 0xf3d63166F0Ca56C3c1A3508FcE03Ff0Cf3Fb691e
Arg [1] : router (address): 0xC2c862322E9c97D6244a3506655DA95F05246Fd8
Arg [2] : exchange (address): 0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e
Arg [1] : 000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd8
Arg [2] : 00000000000000000000000000000000000000adc04c56bf30ac9d3c0aaf14dc


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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