Skip to main content

Interface: SwapTxExtensionMethods

@shareledgerjs/client.swap.SwapTxExtensionMethods

Methods

approveSwapIn

approveSwapIn(creator, ids): MsgApproveInEncodeObject

Parameters

NameType
creatorstring
idsLong[]

Returns

MsgApproveInEncodeObject


approveSwapOut

approveSwapOut(creator, ids, signature): MsgApproveOutEncodeObject

Parameters

NameType
creatorstring
idsLong[]
signaturestring

Returns

MsgApproveOutEncodeObject


cancelBatches

cancelBatches(creator, ids): MsgCancelBatchesEncodeObject

Parameters

NameType
creatorstring
idsLong[]

Returns

MsgCancelBatchesEncodeObject


cancelSwap

cancelSwap(creator, ids): MsgCancelEncodeObject

Parameters

NameType
creatorstring
idsLong[]

Returns

MsgCancelEncodeObject


completeBatch

completeBatch(batchId, creator): MsgCompleteBatchEncodeObject

Parameters

NameType
batchIdLong
creatorstring

Returns

MsgCompleteBatchEncodeObject


createSchema

createSchema(creator, network, schema, decimals, fee?): MsgCreateSchemaEncodeObject

Parameters

NameType
creatorstring
networkstring
schemastring
decimalsnumber
fee?Object
fee.in?DecCoin
fee.out?DecCoin

Returns

MsgCreateSchemaEncodeObject


deleteSchema

deleteSchema(creator, network): MsgDeleteSchemaEncodeObject

Parameters

NameType
creatorstring
networkstring

Returns

MsgDeleteSchemaEncodeObject


deposit

deposit(creator, amount): MsgDepositEncodeObject

Parameters

NameType
creatorstring
amountDecCoin

Returns

MsgDepositEncodeObject


rejectSwap

rejectSwap(creator, ids): MsgRejectEncodeObject

Parameters

NameType
creatorstring
idsLong[]

Returns

MsgRejectEncodeObject


requestSwapIn

requestSwapIn(creator, srcAddress, destAddress, network, amount, events): MsgRequestInEncodeObject

Parameters

NameType
creatorstring
srcAddressstring
destAddressstring
networkstring
amountDecCoin
eventsTxEvent[]

Returns

MsgRequestInEncodeObject


requestSwapOut

requestSwapOut(creator, srcAddress, destAddress, network, amount): MsgRequestOutEncodeObject

Parameters

NameType
creatorstring
srcAddressstring
destAddressstring
networkstring
amountDecCoin

Returns

MsgRequestOutEncodeObject


updateSchema

updateSchema(creator, network, schema, decimals, fee?): MsgUpdateSchemaEncodeObject

Parameters

NameType
creatorstring
networkstring
schemastring
decimalsnumber
fee?Object
fee.in?DecCoin
fee.out?DecCoin

Returns

MsgUpdateSchemaEncodeObject


updateSwapFee

updateSwapFee(creator, network, fee?): MsgUpdateSwapFeeEncodeObject

Parameters

NameType
creatorstring
networkstring
fee?Object
fee.in?DecCoin
fee.out?DecCoin

Returns

MsgUpdateSwapFeeEncodeObject


withdraw

withdraw(creator, to, amount): MsgWithdrawEncodeObject

Parameters

NameType
creatorstring
tostring
amountDecCoin

Returns

MsgWithdrawEncodeObject