@lifi/sdk 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +7 -5
  2. package/src/_cjs/core/EVM/EVMStepExecutor.js +4 -49
  3. package/src/_cjs/core/EVM/EVMStepExecutor.js.map +1 -1
  4. package/src/_cjs/core/Solana/SolanaStepExecutor.js +2 -48
  5. package/src/_cjs/core/Solana/SolanaStepExecutor.js.map +1 -1
  6. package/src/_cjs/core/UTXO/UTXOStepExecutor.js +2 -48
  7. package/src/_cjs/core/UTXO/UTXOStepExecutor.js.map +1 -1
  8. package/src/_cjs/core/waitForDestinationChainTransaction.js +53 -0
  9. package/src/_cjs/core/waitForDestinationChainTransaction.js.map +1 -0
  10. package/src/_cjs/core/{waitForReceivingTransaction.js → waitForTransactionStatus.js} +3 -3
  11. package/src/_cjs/core/waitForTransactionStatus.js.map +1 -0
  12. package/src/_cjs/version.js +1 -1
  13. package/src/_esm/core/EVM/EVMStepExecutor.js +8 -56
  14. package/src/_esm/core/EVM/EVMStepExecutor.js.map +1 -1
  15. package/src/_esm/core/Solana/SolanaStepExecutor.js +3 -50
  16. package/src/_esm/core/Solana/SolanaStepExecutor.js.map +1 -1
  17. package/src/_esm/core/UTXO/UTXOStepExecutor.js +4 -51
  18. package/src/_esm/core/UTXO/UTXOStepExecutor.js.map +1 -1
  19. package/src/_esm/core/waitForDestinationChainTransaction.js +52 -0
  20. package/src/_esm/core/waitForDestinationChainTransaction.js.map +1 -0
  21. package/src/_esm/core/{waitForReceivingTransaction.js → waitForTransactionStatus.js} +2 -2
  22. package/src/_esm/core/waitForTransactionStatus.js.map +1 -0
  23. package/src/_esm/version.js +1 -1
  24. package/src/_types/core/EVM/EVMStepExecutor.d.ts.map +1 -1
  25. package/src/_types/core/Solana/SolanaStepExecutor.d.ts.map +1 -1
  26. package/src/_types/core/UTXO/UTXOStepExecutor.d.ts.map +1 -1
  27. package/src/_types/core/waitForDestinationChainTransaction.d.ts +5 -0
  28. package/src/_types/core/waitForDestinationChainTransaction.d.ts.map +1 -0
  29. package/src/_types/core/waitForTransactionStatus.d.ts +4 -0
  30. package/src/_types/core/waitForTransactionStatus.d.ts.map +1 -0
  31. package/src/_types/version.d.ts +1 -1
  32. package/src/core/EVM/EVMStepExecutor.ts +14 -74
  33. package/src/core/Solana/SolanaStepExecutor.ts +9 -63
  34. package/src/core/UTXO/UTXOStepExecutor.ts +10 -68
  35. package/src/core/waitForDestinationChainTransaction.ts +79 -0
  36. package/src/core/{waitForReceivingTransaction.ts → waitForTransactionStatus.ts} +1 -1
  37. package/src/version.ts +1 -1
  38. package/src/_cjs/core/waitForReceivingTransaction.js.map +0 -1
  39. package/src/_esm/core/waitForReceivingTransaction.js.map +0 -1
  40. package/src/_types/core/waitForReceivingTransaction.d.ts +0 -4
  41. package/src/_types/core/waitForReceivingTransaction.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import type { ExtendedTransactionInfo, FullStatusData } from '@lifi/types'
1
+ import type {} from '@lifi/types'
2
2
  import type { SignerWalletAdapter } from '@solana/wallet-adapter-base'
3
3
  import { VersionedTransaction } from '@solana/web3.js'
4
4
  import { withTimeout } from 'viem'
@@ -7,17 +7,15 @@ import { LiFiErrorCode } from '../../errors/constants.js'
7
7
  import { TransactionError } from '../../errors/errors.js'
8
8
  import { getStepTransaction } from '../../services/api.js'
9
9
  import { base64ToUint8Array } from '../../utils/base64ToUint8Array.js'
10
- import { getTransactionFailedMessage } from '../../utils/getTransactionMessage.js'
11
10
  import { BaseStepExecutor } from '../BaseStepExecutor.js'
12
11
  import { checkBalance } from '../checkBalance.js'
13
- import { getSubstatusMessage } from '../processMessages.js'
14
12
  import { stepComparison } from '../stepComparison.js'
15
13
  import type {
16
14
  LiFiStepExtended,
17
15
  StepExecutorOptions,
18
16
  TransactionParameters,
19
17
  } from '../types.js'
20
- import { waitForReceivingTransaction } from '../waitForReceivingTransaction.js'
18
+ import { waitForDestinationChainTransaction } from '../waitForDestinationChainTransaction.js'
21
19
  import { callSolanaWithRetry } from './connection.js'
22
20
  import { parseSolanaErrors } from './parseSolanaErrors.js'
23
21
  import { sendAndConfirmTransaction } from './sendAndConfirmTransaction.js'
@@ -53,7 +51,6 @@ export class SolanaStepExecutor extends BaseStepExecutor {
53
51
  const isBridgeExecution = fromChain.id !== toChain.id
54
52
  const currentProcessType = isBridgeExecution ? 'CROSS_CHAIN' : 'SWAP'
55
53
 
56
- // STEP 2: Get transaction
57
54
  let process = this.statusManager.findOrCreateProcess({
58
55
  step,
59
56
  type: currentProcessType,
@@ -220,8 +217,7 @@ export class SolanaStepExecutor extends BaseStepExecutor {
220
217
  }
221
218
  }
222
219
 
223
- // STEP 5: Wait for the receiving chain
224
- const processTxHash = process.txHash
220
+ // Wait for the transaction status on the destination chain
225
221
  if (isBridgeExecution) {
226
222
  process = this.statusManager.findOrCreateProcess({
227
223
  step,
@@ -230,63 +226,13 @@ export class SolanaStepExecutor extends BaseStepExecutor {
230
226
  chainId: toChain.id,
231
227
  })
232
228
  }
233
- let statusResponse: FullStatusData
234
- try {
235
- if (!processTxHash) {
236
- throw new Error('Transaction hash is undefined.')
237
- }
238
- statusResponse = (await waitForReceivingTransaction(
239
- processTxHash,
240
- this.statusManager,
241
- process.type,
242
- step
243
- )) as FullStatusData
244
-
245
- const statusReceiving =
246
- statusResponse.receiving as ExtendedTransactionInfo
247
-
248
- process = this.statusManager.updateProcess(step, process.type, 'DONE', {
249
- substatus: statusResponse.substatus,
250
- substatusMessage:
251
- statusResponse.substatusMessage ||
252
- getSubstatusMessage(statusResponse.status, statusResponse.substatus),
253
- txHash: statusReceiving?.txHash,
254
- txLink: `${toChain.metamask.blockExplorerUrls[0]}tx/${statusReceiving?.txHash}`,
255
- })
256
-
257
- this.statusManager.updateExecution(step, 'DONE', {
258
- fromAmount: statusResponse.sending.amount,
259
- toAmount: statusReceiving?.amount,
260
- toToken: statusReceiving?.token,
261
- gasCosts: [
262
- {
263
- amount: statusResponse.sending.gasAmount,
264
- amountUSD: statusResponse.sending.gasAmountUSD,
265
- token: statusResponse.sending.gasToken,
266
- estimate: statusResponse.sending.gasUsed,
267
- limit: statusResponse.sending.gasUsed,
268
- price: statusResponse.sending.gasPrice,
269
- type: 'SEND',
270
- },
271
- ],
272
- })
273
- } catch (e: unknown) {
274
- const htmlMessage = await getTransactionFailedMessage(
275
- step,
276
- process.txLink
277
- )
278
229
 
279
- process = this.statusManager.updateProcess(step, process.type, 'FAILED', {
280
- error: {
281
- code: LiFiErrorCode.TransactionFailed,
282
- message: 'Failed while waiting for receiving chain.',
283
- htmlMessage,
284
- },
285
- })
286
- this.statusManager.updateExecution(step, 'FAILED')
287
- console.warn(e)
288
- throw e
289
- }
230
+ await waitForDestinationChainTransaction(
231
+ step,
232
+ process,
233
+ this.statusManager,
234
+ toChain
235
+ )
290
236
 
291
237
  // DONE
292
238
  return step
@@ -1,27 +1,21 @@
1
1
  import { signPsbt, waitForTransaction } from '@bigmi/core'
2
2
  import type { ReplacementReason } from '@bigmi/core'
3
- import {
4
- ChainId,
5
- type ExtendedTransactionInfo,
6
- type FullStatusData,
7
- } from '@lifi/types'
3
+ import { ChainId } from '@lifi/types'
8
4
  import { Psbt, address, networks } from 'bitcoinjs-lib'
9
5
  import { type Client, withTimeout } from 'viem'
10
6
  import { config } from '../../config.js'
11
7
  import { LiFiErrorCode } from '../../errors/constants.js'
12
8
  import { TransactionError } from '../../errors/errors.js'
13
9
  import { getStepTransaction } from '../../services/api.js'
14
- import { getTransactionFailedMessage } from '../../utils/getTransactionMessage.js'
15
10
  import { BaseStepExecutor } from '../BaseStepExecutor.js'
16
11
  import { checkBalance } from '../checkBalance.js'
17
- import { getSubstatusMessage } from '../processMessages.js'
18
12
  import { stepComparison } from '../stepComparison.js'
19
13
  import type {
20
14
  LiFiStepExtended,
21
15
  StepExecutorOptions,
22
16
  TransactionParameters,
23
17
  } from '../types.js'
24
- import { waitForReceivingTransaction } from '../waitForReceivingTransaction.js'
18
+ import { waitForDestinationChainTransaction } from '../waitForDestinationChainTransaction.js'
25
19
  import { getUTXOPublicClient } from './getUTXOPublicClient.js'
26
20
  import { parseUTXOErrors } from './parseUTXOErrors.js'
27
21
 
@@ -57,7 +51,6 @@ export class UTXOStepExecutor extends BaseStepExecutor {
57
51
  const isBridgeExecution = fromChain.id !== toChain.id
58
52
  const currentProcessType = isBridgeExecution ? 'CROSS_CHAIN' : 'SWAP'
59
53
 
60
- // STEP 2: Get transaction
61
54
  let process = this.statusManager.findOrCreateProcess({
62
55
  step,
63
56
  type: currentProcessType,
@@ -270,8 +263,7 @@ export class UTXOStepExecutor extends BaseStepExecutor {
270
263
  }
271
264
  }
272
265
 
273
- // STEP 5: Wait for the receiving chain
274
- const processTxHash = process.txHash
266
+ // Wait for the transaction status on the destination chain
275
267
  if (isBridgeExecution) {
276
268
  process = this.statusManager.findOrCreateProcess({
277
269
  step,
@@ -280,64 +272,14 @@ export class UTXOStepExecutor extends BaseStepExecutor {
280
272
  chainId: toChain.id,
281
273
  })
282
274
  }
283
- let statusResponse: FullStatusData
284
- try {
285
- if (!processTxHash) {
286
- throw new Error('Transaction hash is undefined.')
287
- }
288
- statusResponse = (await waitForReceivingTransaction(
289
- processTxHash,
290
- this.statusManager,
291
- process.type,
292
- step,
293
- 10_000
294
- )) as FullStatusData
295
-
296
- const statusReceiving =
297
- statusResponse.receiving as ExtendedTransactionInfo
298
-
299
- process = this.statusManager.updateProcess(step, process.type, 'DONE', {
300
- substatus: statusResponse.substatus,
301
- substatusMessage:
302
- statusResponse.substatusMessage ||
303
- getSubstatusMessage(statusResponse.status, statusResponse.substatus),
304
- txHash: statusReceiving?.txHash,
305
- txLink: `${toChain.metamask.blockExplorerUrls[0]}tx/${statusReceiving?.txHash}`,
306
- })
307
-
308
- this.statusManager.updateExecution(step, 'DONE', {
309
- fromAmount: statusResponse.sending.amount,
310
- toAmount: statusReceiving?.amount,
311
- toToken: statusReceiving?.token,
312
- gasCosts: [
313
- {
314
- amount: statusResponse.sending.gasAmount,
315
- amountUSD: statusResponse.sending.gasAmountUSD,
316
- token: statusResponse.sending.gasToken,
317
- estimate: statusResponse.sending.gasUsed,
318
- limit: statusResponse.sending.gasUsed,
319
- price: statusResponse.sending.gasPrice,
320
- type: 'SEND',
321
- },
322
- ],
323
- })
324
- } catch (e: unknown) {
325
- const htmlMessage = await getTransactionFailedMessage(
326
- step,
327
- process.txLink
328
- )
329
275
 
330
- process = this.statusManager.updateProcess(step, process.type, 'FAILED', {
331
- error: {
332
- code: LiFiErrorCode.TransactionFailed,
333
- message: 'Failed while waiting for receiving chain.',
334
- htmlMessage,
335
- },
336
- })
337
- this.statusManager.updateExecution(step, 'FAILED')
338
- console.warn(e)
339
- throw e
340
- }
276
+ await waitForDestinationChainTransaction(
277
+ step,
278
+ process,
279
+ this.statusManager,
280
+ toChain,
281
+ 10_000
282
+ )
341
283
 
342
284
  // DONE
343
285
  return step
@@ -0,0 +1,79 @@
1
+ import type {
2
+ ExtendedChain,
3
+ ExtendedTransactionInfo,
4
+ FullStatusData,
5
+ Process,
6
+ } from '@lifi/types'
7
+ import { LiFiErrorCode } from '../errors/constants.js'
8
+ import { getTransactionFailedMessage } from '../utils/getTransactionMessage.js'
9
+ import type { StatusManager } from './StatusManager.js'
10
+ import type { LiFiStepExtended } from './types.js'
11
+ import { waitForTransactionStatus } from './waitForTransactionStatus.js'
12
+
13
+ export async function waitForDestinationChainTransaction(
14
+ step: LiFiStepExtended,
15
+ process: Process,
16
+ statusManager: StatusManager,
17
+ toChain: ExtendedChain,
18
+ pollingInterval?: number
19
+ ): Promise<LiFiStepExtended> {
20
+ if (!process.txHash) {
21
+ throw new Error('Transaction hash is undefined.')
22
+ }
23
+
24
+ try {
25
+ const statusResponse = (await waitForTransactionStatus(
26
+ process.txHash,
27
+ statusManager,
28
+ process.type,
29
+ step,
30
+ pollingInterval
31
+ )) as FullStatusData
32
+
33
+ const statusReceiving = statusResponse.receiving as ExtendedTransactionInfo
34
+
35
+ // Update process status
36
+ statusManager.updateProcess(step, process.type, 'DONE', {
37
+ substatus: statusResponse.substatus,
38
+ substatusMessage: statusResponse.substatusMessage,
39
+ txHash: statusReceiving?.txHash,
40
+ txLink: `${toChain.metamask.blockExplorerUrls[0]}tx/${statusReceiving?.txHash}`,
41
+ })
42
+
43
+ // Update execution status
44
+ statusManager.updateExecution(step, 'DONE', {
45
+ ...(statusResponse.sending.amount && {
46
+ fromAmount: statusResponse.sending.amount,
47
+ }),
48
+ ...(statusReceiving?.amount && { toAmount: statusReceiving.amount }),
49
+ ...(statusReceiving?.token && { toToken: statusReceiving.token }),
50
+ gasCosts: [
51
+ {
52
+ amount: statusResponse.sending.gasAmount,
53
+ amountUSD: statusResponse.sending.gasAmountUSD,
54
+ token: statusResponse.sending.gasToken,
55
+ estimate: statusResponse.sending.gasUsed,
56
+ limit: statusResponse.sending.gasUsed,
57
+ price: statusResponse.sending.gasPrice,
58
+ type: 'SEND',
59
+ },
60
+ ],
61
+ })
62
+
63
+ return step
64
+ } catch (e: unknown) {
65
+ const htmlMessage = await getTransactionFailedMessage(step, process.txLink)
66
+
67
+ statusManager.updateProcess(step, process.type, 'FAILED', {
68
+ error: {
69
+ code: LiFiErrorCode.TransactionFailed,
70
+ message:
71
+ 'Failed while waiting for status of destination chain transaction.',
72
+ htmlMessage,
73
+ },
74
+ })
75
+
76
+ statusManager.updateExecution(step, 'FAILED')
77
+ throw e
78
+ }
79
+ }
@@ -12,7 +12,7 @@ import { getSubstatusMessage } from './processMessages.js'
12
12
 
13
13
  const TRANSACTION_HASH_OBSERVERS: Record<string, Promise<StatusResponse>> = {}
14
14
 
15
- export async function waitForReceivingTransaction(
15
+ export async function waitForTransactionStatus(
16
16
  txHash: string,
17
17
  statusManager: StatusManager,
18
18
  processType: ProcessType,
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk'
2
- export const version = '3.5.0'
2
+ export const version = '3.5.1'
@@ -1 +0,0 @@
1
- {"version":3,"file":"waitForReceivingTransaction.js","sourceRoot":"","sources":["../../core/waitForReceivingTransaction.ts"],"names":[],"mappings":";;AAcA,kEAwDC;AAhED,mDAAiD;AACjD,+CAA8C;AAC9C,gEAAyD;AAEzD,6DAA0D;AAE1D,MAAM,0BAA0B,GAA4C,EAAE,CAAA;AAEvE,KAAK,UAAU,2BAA2B,CAC/C,MAAc,EACd,aAA4B,EAC5B,WAAwB,EACxB,IAAc,EACd,QAAQ,GAAG,KAAK;IAEhB,MAAM,UAAU,GAAG,GAAwC,EAAE;QAC3D,OAAO,IAAA,kBAAS,EAAC;YACf,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;YAClC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS;YAC9B,MAAM;YACN,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;SACrD,CAAC;aACC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE;YACvB,QAAQ,cAAc,CAAC,MAAM,EAAE,CAAC;gBAC9B,KAAK,MAAM;oBACT,OAAO,cAAc,CAAA;gBACvB,KAAK,SAAS;oBACZ,aAAa,EAAE,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE;wBACzD,SAAS,EAAE,cAAc,CAAC,SAAS;wBACnC,gBAAgB,EACd,cAAc,CAAC,gBAAgB;4BAC/B,IAAA,wCAAmB,EACjB,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,SAAS,CACzB;wBACH,MAAM,EAAG,cAAiC,CAAC,kBAAkB;qBAC9D,CAAC,CAAA;oBACF,OAAO,SAAS,CAAA;gBAClB,KAAK,WAAW;oBACd,OAAO,SAAS,CAAA;gBAClB;oBACE,OAAO,OAAO,CAAC,MAAM,EAAE,CAAA;YAC3B,CAAC;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,OAAO,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4 +0,0 @@
1
- import type { LiFiStep, ProcessType, StatusResponse } from '@lifi/types';
2
- import type { StatusManager } from './StatusManager.js';
3
- export declare function waitForReceivingTransaction(txHash: string, statusManager: StatusManager, processType: ProcessType, step: LiFiStep, interval?: number): Promise<StatusResponse>;
4
- //# sourceMappingURL=waitForReceivingTransaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"waitForReceivingTransaction.d.ts","sourceRoot":"","sources":["../../core/waitForReceivingTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,WAAW,EACX,cAAc,EACf,MAAM,aAAa,CAAA;AAIpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAKvD,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,QAAQ,EACd,QAAQ,SAAQ,GACf,OAAO,CAAC,cAAc,CAAC,CAkDzB"}