-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.evm.EvmBaseSwapProvider
@liquality/evm.EvmBaseSwapProvider
-
default
<BaseProvider
,Signer
>↳
EvmBaseSwapProvider
- canUpdateFee
- claimSwap
- doesTransactionMatchInitiation
- findClaimSwapTransaction
- findInitiateSwapTransaction
- findRefundSwapTransaction
- generateSecret
- getSwapSecret
- getWallet
- initiateSwap
- refundSwap
- setWallet
- tryParseLog
- updateTransactionFee
- validateSwapParams
- verifyInitiateSwapTransaction
• new EvmBaseSwapProvider(swapOptions
, walletProvider?
)
Name | Type |
---|---|
swapOptions |
EvmSwapOptions |
walletProvider? |
EvmBaseWalletProvider <BaseProvider , Signer > |
Swap<BaseProvider, Signer>.constructor
evm/lib/swap/EvmBaseSwapProvider.ts:19
• Protected
contract: LiqualityHTLC
evm/lib/swap/EvmBaseSwapProvider.ts:16
• Protected
swapOptions: EvmSwapOptions
evm/lib/swap/EvmBaseSwapProvider.ts:17
• Protected
walletProvider: EvmBaseWalletProvider
<BaseProvider
, Signer
>
Swap.walletProvider
evm/lib/swap/EvmBaseSwapProvider.ts:15
▸ canUpdateFee(): boolean
boolean
Swap.canUpdateFee
evm/lib/swap/EvmBaseSwapProvider.ts:136
▸ claimSwap(swapParams
, initTxHash
, secret
, fee
): Promise
<Transaction
<TransactionResponse
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initTxHash |
string |
secret |
string |
fee |
FeeType |
Promise
<Transaction
<TransactionResponse
>>
Swap.claimSwap
evm/lib/swap/EvmBaseSwapProvider.ts:50
▸ Protected
doesTransactionMatchInitiation(swapParams
, transaction
): boolean
Name | Type |
---|---|
swapParams |
SwapParams |
transaction |
Transaction <InitiateEvent > |
boolean
Swap.doesTransactionMatchInitiation
evm/lib/swap/EvmBaseSwapProvider.ts:93
▸ Abstract
findClaimSwapTransaction(swapParams
, initTxHash
, _blockNumber?
): Promise
<Transaction
<ClaimEvent
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initTxHash |
string |
_blockNumber? |
number |
Promise
<Transaction
<ClaimEvent
>>
Swap.findClaimSwapTransaction
evm/lib/swap/EvmBaseSwapProvider.ts:160
▸ Abstract
findInitiateSwapTransaction(swapParams
, _blockNumber?
): Promise
<Transaction
<InitiateEvent
>>
Name | Type |
---|---|
swapParams |
SwapParams |
_blockNumber? |
number |
Promise
<Transaction
<InitiateEvent
>>
Swap.findInitiateSwapTransaction
evm/lib/swap/EvmBaseSwapProvider.ts:156
▸ Abstract
findRefundSwapTransaction(swapParams
, initTxHash
, blockNumber?
): Promise
<Transaction
<RefundEvent
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initTxHash |
string |
blockNumber? |
number |
Promise
<Transaction
<RefundEvent
>>
Swap.findRefundSwapTransaction
evm/lib/swap/EvmBaseSwapProvider.ts:158
▸ generateSecret(message
): Promise
<string
>
Name | Type |
---|---|
message |
string |
Promise
<string
>
Swap.generateSecret
client/dist/lib/Swap.d.ts:10
▸ getSwapSecret(claimTx
): Promise
<string
>
Name | Type |
---|---|
claimTx |
string |
Promise
<string
>
Swap.getSwapSecret
evm/lib/swap/EvmBaseSwapProvider.ts:119
▸ getWallet(): any
any
Swap.getWallet
client/dist/lib/Swap.d.ts:7
▸ initiateSwap(swapParams
, fee
): Promise
<Transaction
<TransactionResponse
>>
Name | Type |
---|---|
swapParams |
SwapParams |
fee |
FeeType |
Promise
<Transaction
<TransactionResponse
>>
Swap.initiateSwap
evm/lib/swap/EvmBaseSwapProvider.ts:29
▸ refundSwap(swapParams
, initTxHash
, fee
): Promise
<Transaction
<TransactionResponse
>>
Name | Type |
---|---|
swapParams |
SwapParams |
initTxHash |
string |
fee |
FeeType |
Promise
<Transaction
<TransactionResponse
>>
Swap.refundSwap
evm/lib/swap/EvmBaseSwapProvider.ts:75
▸ setWallet(wallet
): void
Name | Type |
---|---|
wallet |
any |
void
Swap.setWallet
client/dist/lib/Swap.d.ts:6
▸ Protected
tryParseLog(log
): LogDescription
Name | Type |
---|---|
log |
Log |
LogDescription
evm/lib/swap/EvmBaseSwapProvider.ts:144
▸ updateTransactionFee(_tx
, _newFee
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
_tx |
string | Transaction <any > |
_newFee |
FeeType |
Promise
<Transaction
<any
>>
Swap.updateTransactionFee
evm/lib/swap/EvmBaseSwapProvider.ts:140
▸ validateSwapParams(swapParams
): void
Name | Type |
---|---|
swapParams |
SwapParams |
void
Swap.validateSwapParams
client/dist/lib/Swap.d.ts:9
▸ verifyInitiateSwapTransaction(swapParams
, initTx
): Promise
<boolean
>
Name | Type |
---|---|
swapParams |
SwapParams |
initTx |
string | Transaction <any > |
Promise
<boolean
>
Swap.verifyInitiateSwapTransaction
client/dist/lib/Swap.d.ts:8