MarketplaceV3Offers
Handles marketplace offers
class MarketplaceV3Offers<TContract extends OffersLogic> implements DetectableFeature {}
function constructor( contractWrapper: ContractWrapper<TContract>,
Get all offers
const offers = await contract.offers.getAll();
function getAll(
The Offer object array
Get all valid offers
const offers = await contract.offers.getAllValid();
function getAllValid(
The Offer object array
Get a single offer
const offerId = 0;const offer = await contract.offers.getOffer(offerId);
The Direct listing object
Get the total number of offers
const totalOffers = await contract.offers.getTotalCount();
function getTotalCount(): Promise<BigNumber>;
function acceptOffer(offerId: BigNumberish): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling acceptOffer.prepare()
with same arguments. Learn more
function cancelOffer(offerId: BigNumberish): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling cancelOffer.prepare()
with same arguments. Learn more
function makeOffer(offer: { assetContractAddress: string; currencyContractAddress?: string; endTimestamp?: number | Date; quantity?: string | number | bigint | BigNumber; tokenId: string | number | bigint | BigNumber; totalPrice: string | number;}): Promise<TResult>;
let returnType: Promise<TResult>;
The transaction receipt and the id of the newly created offer
Preparable
You can also prepare the transaction without executing it by calling makeOffer.prepare()
with same arguments. Learn more
let featureName: "Offers";
let interceptor: ContractInterceptor<OffersLogic>;