Skip to main content

metaTx.handler

@bosonprotocol/core-sdk / Exports / metaTx / handler

Namespace: handler

metaTx.handler

Table of contents

Type Aliases

Functions

Type Aliases

BaseMetaTxArgs

Ƭ BaseMetaTxArgs: Object

Type declaration

NameType
chainIdnumber
metaTxHandlerAddressstring
nonceBigNumberish
web3LibWeb3LibAdapter

Defined in

src/meta-tx/handler.ts:32


SignedMetaTx

Ƭ SignedMetaTx: Object

Type declaration

NameType
functionNamestring
functionSignaturestring
rstring
sstring
vnumber

Defined in

src/meta-tx/handler.ts:39

Functions

getResubmitted

getResubmitted(args): Promise<GetRetriedHashesData>

Parameters

NameType
argsObject
args.chainIdnumber
args.metaTxObject
args.metaTx.configPartial<Omit<MetaTxConfig, "apiIds"> & { apiId: string }>
args.metaTx.originalHashstring

Returns

Promise<GetRetriedHashesData>

Defined in

src/meta-tx/handler.ts:686


relayMetaTransaction

relayMetaTransaction(args): Promise<TransactionResponse>

Parameters

NameType
argsObject
args.chainIdnumber
args.contractAddressstring
args.metaTxObject
args.metaTx.configOmit<MetaTxConfig, "apiIds"> & { apiId: string }
args.metaTx.paramsObject
args.metaTx.params.functionNamestring
args.metaTx.params.functionSignatureBytesLike
args.metaTx.params.nonceBigNumberish
args.metaTx.params.sigRBytesLike
args.metaTx.params.sigSBytesLike
args.metaTx.params.sigVBigNumberish
args.metaTx.params.userAddressstring
args.web3LibAdapterWeb3LibAdapter

Returns

Promise<TransactionResponse>

Defined in

src/meta-tx/handler.ts:626


signMetaTx

signMetaTx(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { functionName: string ; functionSignature: string }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:47


signMetaTxCancelVoucher

signMetaTxCancelVoucher(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:331


signMetaTxCommitToOffer

signMetaTxCommitToOffer(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { offerId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:275


signMetaTxCompleteExchange

signMetaTxCompleteExchange(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:347


signMetaTxCompleteExchangeBatch

signMetaTxCompleteExchangeBatch(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeIds: BigNumberish[] }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:188


signMetaTxCreateGroup

signMetaTxCreateGroup(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { createGroupArgs: CreateGroupArgs }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:233


signMetaTxCreateOffer

signMetaTxCreateOffer(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { createOfferArgs: CreateOfferArgs ; metadataStorage?: MetadataStorage ; theGraphStorage?: MetadataStorage }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:103


signMetaTxCreateOfferBatch

signMetaTxCreateOfferBatch(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { createOffersArgs: CreateOfferArgs[] ; metadataStorage?: MetadataStorage ; theGraphStorage?: MetadataStorage }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:128


signMetaTxCreateOfferWithCondition

signMetaTxCreateOfferWithCondition(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { condition: ConditionStruct ; metadataStorage?: MetadataStorage ; offerToCreate: CreateOfferArgs ; theGraphStorage?: MetadataStorage }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:246


signMetaTxCreateSeller

signMetaTxCreateSeller(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { createSellerArgs: CreateSellerArgs }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:90


signMetaTxDepositFunds

signMetaTxDepositFunds(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { fundsAmount: BigNumberish ; fundsTokenAddress: string ; sellerId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:536


signMetaTxEscalateDispute

signMetaTxEscalateDispute(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:366


signMetaTxExpireVoucher

signMetaTxExpireVoucher(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:203


signMetaTxExtendDisputeTimeout

signMetaTxExtendDisputeTimeout(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish ; newTimeout: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:461


signMetaTxRaiseDispute

signMetaTxRaiseDispute(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:377


signMetaTxRedeemVoucher

signMetaTxRedeemVoucher(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:339


signMetaTxResolveDispute

signMetaTxResolveDispute(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { buyerPercent: BigNumberish ; counterpartySig: { r: string ; s: string ; v: number } ; exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:388


signMetaTxRetractDispute

signMetaTxRetractDispute(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:355


signMetaTxRevokeVoucher

signMetaTxRevokeVoucher(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { exchangeId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:218


signMetaTxVoidOffer

signMetaTxVoidOffer(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { offerId: BigNumberish }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:159


signMetaTxVoidOfferBatch

signMetaTxVoidOfferBatch(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { offerIds: BigNumberish[] }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:173


signMetaTxWithdrawFunds

signMetaTxWithdrawFunds(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { entityId: BigNumberish ; tokenAmounts: BigNumberish[] ; tokenList: string[] }

Returns

Promise<SignedMetaTx>

Defined in

src/meta-tx/handler.ts:477