Interface: SwapTxExtensionMethods
@shareledgerjs/client.swap.SwapTxExtensionMethods
Methods
approveSwapIn
▸ approveSwapIn(creator
, ids
): MsgApproveInEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
ids | Long [] |
Returns
approveSwapOut
▸ approveSwapOut(creator
, ids
, signature
): MsgApproveOutEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
ids | Long [] |
signature | string |
Returns
cancelBatches
▸ cancelBatches(creator
, ids
): MsgCancelBatchesEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
ids | Long [] |
Returns
cancelSwap
▸ cancelSwap(creator
, ids
): MsgCancelEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
ids | Long [] |
Returns
completeBatch
▸ completeBatch(batchId
, creator
): MsgCompleteBatchEncodeObject
Parameters
Name | Type |
---|---|
batchId | Long |
creator | string |
Returns
createSchema
▸ createSchema(creator
, network
, schema
, decimals
, fee?
): MsgCreateSchemaEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
network | string |
schema | string |
decimals | number |
fee? | Object |
fee.in? | DecCoin |
fee.out? | DecCoin |
Returns
deleteSchema
▸ deleteSchema(creator
, network
): MsgDeleteSchemaEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
network | string |
Returns
deposit
▸ deposit(creator
, amount
): MsgDepositEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
amount | DecCoin |
Returns
rejectSwap
▸ rejectSwap(creator
, ids
): MsgRejectEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
ids | Long [] |
Returns
requestSwapIn
▸ requestSwapIn(creator
, srcAddress
, destAddress
, network
, amount
, events
): MsgRequestInEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
srcAddress | string |
destAddress | string |
network | string |
amount | DecCoin |
events | TxEvent [] |
Returns
requestSwapOut
▸ requestSwapOut(creator
, srcAddress
, destAddress
, network
, amount
): MsgRequestOutEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
srcAddress | string |
destAddress | string |
network | string |
amount | DecCoin |
Returns
updateSchema
▸ updateSchema(creator
, network
, schema
, decimals
, fee?
): MsgUpdateSchemaEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
network | string |
schema | string |
decimals | number |
fee? | Object |
fee.in? | DecCoin |
fee.out? | DecCoin |
Returns
updateSwapFee
▸ updateSwapFee(creator
, network
, fee?
): MsgUpdateSwapFeeEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
network | string |
fee? | Object |
fee.in? | DecCoin |
fee.out? | DecCoin |
Returns
withdraw
▸ withdraw(creator
, to
, amount
): MsgWithdrawEncodeObject
Parameters
Name | Type |
---|---|
creator | string |
to | string |
amount | DecCoin |