-
Notifications
You must be signed in to change notification settings - Fork 70
@liquality.near.NearUtils
Krasimir Raykov edited this page Mar 30, 2022
·
3 revisions
@liquality/near.NearUtils
- getClaimActions
- getHtlcActions
- getRefundActions
- parseBlockResponse
- parseNearBlockTx
- parseScraperTransaction
- parseTxResponse
▸ getClaimActions(secret): Action[]
| Name | Type |
|---|---|
secret |
string |
Action[]
▸ getHtlcActions(swapParams): Action[]
| Name | Type |
|---|---|
swapParams |
SwapParams |
Action[]
▸ getRefundActions(): Action[]
Action[]
▸ parseBlockResponse(block, transactions?): Block<BlockResult>
| Name | Type |
|---|---|
block |
BlockResult |
transactions? |
Transaction<any>[] |
Block<BlockResult>
▸ parseNearBlockTx(tx, currentBlock, txBlock): Transaction<NearTransaction>
| Name | Type |
|---|---|
tx |
NearTransaction |
currentBlock |
number |
txBlock |
number |
▸ parseScraperTransaction(tx): NearTxLog
| Name | Type |
|---|---|
tx |
NearScraperData |
▸ parseTxResponse(response, blockNumber?, latestBlock?): Transaction<NearTxLog>
| Name | Type |
|---|---|
response |
NearTxResponse |
blockNumber? |
number |
latestBlock? |
number |