metaTx.handler
@bosonprotocol/core-sdk / Exports / metaTx / handler
Namespace: handler
metaTx.handler
Table of contents
Type Aliases
Functions
- getResubmitted
- relayMetaTransaction
- signMetaTx
- signMetaTxCancelVoucher
- signMetaTxCommitToOffer
- signMetaTxCompleteExchange
- signMetaTxCompleteExchangeBatch
- signMetaTxCreateGroup
- signMetaTxCreateOffer
- signMetaTxCreateOfferBatch
- signMetaTxCreateOfferWithCondition
- signMetaTxCreateSeller
- signMetaTxDepositFunds
- signMetaTxEscalateDispute
- signMetaTxExpireVoucher
- signMetaTxExtendDisputeTimeout
- signMetaTxRaiseDispute
- signMetaTxRedeemVoucher
- signMetaTxResolveDispute
- signMetaTxRetractDispute
- signMetaTxRevokeVoucher
- signMetaTxVoidOffer
- signMetaTxVoidOfferBatch
- signMetaTxWithdrawFunds
Type Aliases
BaseMetaTxArgs
Ƭ BaseMetaTxArgs: Object
Type declaration
Name | Type |
---|---|
chainId | number |
metaTxHandlerAddress | string |
nonce | BigNumberish |
web3Lib | Web3LibAdapter |
Defined in
SignedMetaTx
Ƭ SignedMetaTx: Object
Type declaration
Name | Type |
---|---|
functionName | string |
functionSignature | string |
r | string |
s | string |
v | number |
Defined in
Functions
getResubmitted
▸ getResubmitted(args
): Promise
<GetRetriedHashesData
>
Parameters
Name | Type |
---|---|
args | Object |
args.chainId | number |
args.metaTx | Object |
args.metaTx.config | Partial <Omit <MetaTxConfig , "apiIds" > & { apiId : string }> |
args.metaTx.originalHash | string |
Returns
Promise
<GetRetriedHashesData
>
Defined in
relayMetaTransaction
▸ relayMetaTransaction(args
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
args | Object |
args.chainId | number |
args.contractAddress | string |
args.metaTx | Object |
args.metaTx.config | Omit <MetaTxConfig , "apiIds" > & { apiId : string } |
args.metaTx.params | Object |
args.metaTx.params.functionName | string |
args.metaTx.params.functionSignature | BytesLike |
args.metaTx.params.nonce | BigNumberish |
args.metaTx.params.sigR | BytesLike |
args.metaTx.params.sigS | BytesLike |
args.metaTx.params.sigV | BigNumberish |
args.metaTx.params.userAddress | string |
args.web3LibAdapter | Web3LibAdapter |
Returns
Promise
<TransactionResponse
>
Defined in
signMetaTx
▸ signMetaTx(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { functionName : string ; functionSignature : string } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCancelVoucher
▸ signMetaTxCancelVoucher(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCommitToOffer
▸ signMetaTxCommitToOffer(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { offerId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCompleteExchange
▸ signMetaTxCompleteExchange(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCompleteExchangeBatch
▸ signMetaTxCompleteExchangeBatch(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeIds : BigNumberish [] } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCreateGroup
▸ signMetaTxCreateGroup(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { createGroupArgs : CreateGroupArgs } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCreateOffer
▸ signMetaTxCreateOffer(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { createOfferArgs : CreateOfferArgs ; metadataStorage? : MetadataStorage ; theGraphStorage? : MetadataStorage } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCreateOfferBatch
▸ signMetaTxCreateOfferBatch(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { createOffersArgs : CreateOfferArgs [] ; metadataStorage? : MetadataStorage ; theGraphStorage? : MetadataStorage } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCreateOfferWithCondition
▸ signMetaTxCreateOfferWithCondition(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { condition : ConditionStruct ; metadataStorage? : MetadataStorage ; offerToCreate : CreateOfferArgs ; theGraphStorage? : MetadataStorage } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxCreateSeller
▸ signMetaTxCreateSeller(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { createSellerArgs : CreateSellerArgs } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxDepositFunds
▸ signMetaTxDepositFunds(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { fundsAmount : BigNumberish ; fundsTokenAddress : string ; sellerId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxEscalateDispute
▸ signMetaTxEscalateDispute(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxExpireVoucher
▸ signMetaTxExpireVoucher(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxExtendDisputeTimeout
▸ signMetaTxExtendDisputeTimeout(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish ; newTimeout : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxRaiseDispute
▸ signMetaTxRaiseDispute(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxRedeemVoucher
▸ signMetaTxRedeemVoucher(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxResolveDispute
▸ signMetaTxResolveDispute(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { buyerPercent : BigNumberish ; counterpartySig : { r : string ; s : string ; v : number } ; exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxRetractDispute
▸ signMetaTxRetractDispute(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxRevokeVoucher
▸ signMetaTxRevokeVoucher(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { exchangeId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxVoidOffer
▸ signMetaTxVoidOffer(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { offerId : BigNumberish } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxVoidOfferBatch
▸ signMetaTxVoidOfferBatch(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { offerIds : BigNumberish [] } |
Returns
Promise
<SignedMetaTx
>
Defined in
signMetaTxWithdrawFunds
▸ signMetaTxWithdrawFunds(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { entityId : BigNumberish ; tokenAmounts : BigNumberish [] ; tokenList : string [] } |
Returns
Promise
<SignedMetaTx
>