opensea-js
Version:
TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data
13 lines (12 loc) • 959 B
TypeScript
import { ConsiderationInputItem, CreateInputItem, MatchOrdersFulfillment, Order, OrderWithCounter } from "@opensea/seaport-js/lib/types";
/**
* Compute the native currency (ETH) value required to fulfill a private listing.
* Sums all native currency consideration items not going to the taker.
* @param order The private listing order
* @param takerAddress The address of the private listing recipient
* @returns The total native currency value as a bigint
*/
export declare const computePrivateListingValue: (order: OrderWithCounter, takerAddress: string) => bigint;
export declare const getPrivateListingConsiderations: (offer: CreateInputItem[], privateSaleRecipient: string) => ConsiderationInputItem[];
export declare const constructPrivateListingCounterOrder: (order: OrderWithCounter, privateSaleRecipient: string) => Order;
export declare const getPrivateListingFulfillments: (privateListingOrder: OrderWithCounter) => MatchOrdersFulfillment[];