-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.types.SwapProvider
@liquality/types.SwapProvider
- claimSwap
- findClaimSwapTransaction
- findInitiateSwapTransaction
- findRefundSwapTransaction
- generateSecret
- getSwapSecret
- initiateSwap
- refundSwap
- verifyInitiateSwapTransaction
▸ claimSwap(swapParams
, initiationTxHash
, secret
, fee
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initiationTxHash |
string |
secret |
string |
fee |
FeeType |
Promise
<Transaction
<any
>>
▸ findClaimSwapTransaction(swapParams
, initiationTxHash
, blockNumber?
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initiationTxHash |
string |
blockNumber? |
number |
Promise
<Transaction
<any
>>
▸ findInitiateSwapTransaction(swapParams
, blockNumber?
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
blockNumber? |
number |
Promise
<Transaction
<any
>>
▸ findRefundSwapTransaction(swapParams
, initiationTxHash
, blockNumber?
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initiationTxHash |
string |
blockNumber? |
number |
Promise
<Transaction
<any
>>
▸ generateSecret(message
): Promise
<string
>
Name | Type |
---|---|
message |
string |
Promise
<string
>
▸ getSwapSecret(claimTxHash
, initTxHash?
): Promise
<string
>
Name | Type |
---|---|
claimTxHash |
string |
initTxHash? |
string |
Promise
<string
>
▸ initiateSwap(swapParams
, fee
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
fee |
FeeType |
Promise
<Transaction
<any
>>
▸ refundSwap(swapParams
, initiationTxHash
, fee
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initiationTxHash |
string |
fee |
FeeType |
Promise
<Transaction
<any
>>
▸ verifyInitiateSwapTransaction(swapParams
, initiationTxHash
): Promise
<boolean
>
Name | Type |
---|---|
swapParams |
SwapParams |
initiationTxHash |
string | Transaction <any > |
Promise
<boolean
>