import { ConsiderationInputItem, OrderComponents } from '@opensea/seaport-js/lib/types'; import { ethers } from 'ethers'; import { AssetInstance, OrderResponse, SeaportOrderData, ShopResponse, ExecuteOrderParams, OrderPayloadResponse } from './types'; /** * Handling the Ethereum transactions by Seaport */ export declare class EthereumPort { private percentageBase; private readonly apiPath; private logger; /** * Seller uses this function to cancel a listing. * @param signer * @param uuid orderUuid * @returns */ cancelOrder(signer: ethers.providers.JsonRpcSigner, uuid: string): Promise; /** * Buyer uses this to fulfill an order. * @param signer * @param uuid * @returns */ fulfillOrder(signer: ethers.providers.JsonRpcSigner, uuid: string): Promise; private calculatePaymentSplitAmount; private getSplitReceiver; getConsiderationFromOrder(offerer: string, consideration: AssetInstance, shop: ShopResponse): ConsiderationInputItem[]; convertToSeaportOrderData(orderComponents: OrderComponents): SeaportOrderData; getShopByUuid(shopUuid: string): Promise<{ result: ShopResponse; }>; getOrderByUuid(orderUuid: string): Promise; getFulfillOrderPayloadByUuidAndBuyerAddress(orderUuid: string, buyerAddress: string): Promise; /** * Execute orders by seaport and create orders in candy shop * @param params ExecuteOrderParams * @returns uuid of executed order */ executeOrder(params: ExecuteOrderParams): Promise; private createOrder; }