Skip to content

@liquality.near.NearUtils

Krasimir Raykov edited this page Mar 30, 2022 · 3 revisions

Namespace: NearUtils

@liquality/near.NearUtils

Table of contents

Functions

Functions

getClaimActions

getClaimActions(secret): Action[]

Parameters

Name Type
secret string

Returns

Action[]

Defined in

near/lib/utils.ts:74


getHtlcActions

getHtlcActions(swapParams): Action[]

Parameters

Name Type
swapParams SwapParams

Returns

Action[]

Defined in

near/lib/utils.ts:65


getRefundActions

getRefundActions(): Action[]

Returns

Action[]

Defined in

near/lib/utils.ts:79


parseBlockResponse

parseBlockResponse(block, transactions?): Block<BlockResult>

Parameters

Name Type
block BlockResult
transactions? Transaction<any>[]

Returns

Block<BlockResult>

Defined in

near/lib/utils.ts:7


parseNearBlockTx

parseNearBlockTx(tx, currentBlock, txBlock): Transaction<NearTransaction>

Parameters

Name Type
tx NearTransaction
currentBlock number
txBlock number

Returns

Transaction<NearTransaction>

Defined in

near/lib/utils.ts:19


parseScraperTransaction

parseScraperTransaction(tx): NearTxLog

Parameters

Name Type
tx NearScraperData

Returns

NearTxLog

Defined in

near/lib/utils.ts:84


parseTxResponse

parseTxResponse(response, blockNumber?, latestBlock?): Transaction<NearTxLog>

Parameters

Name Type
response NearTxResponse
blockNumber? number
latestBlock? number

Returns

Transaction<NearTxLog>

Defined in

near/lib/utils.ts:29

Clone this wiki locally