@lifi/sdk-provider-solana 4.1.3 → 4.2.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 (127) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +24 -8
  3. package/dist/cjs/SolanaProvider.d.ts +1 -2
  4. package/dist/cjs/SolanaProvider.js +1 -0
  5. package/dist/cjs/SolanaProvider.js.map +1 -1
  6. package/dist/cjs/actions/getSNSAddress.d.ts +1 -2
  7. package/dist/cjs/actions/getSolanaBalance.d.ts +1 -2
  8. package/dist/cjs/actions/resolveSolanaAddress.d.ts +1 -2
  9. package/dist/cjs/actions/sendAndConfirmBundle.d.ts +1 -2
  10. package/dist/cjs/actions/sendAndConfirmTransaction.d.ts +1 -2
  11. package/dist/cjs/confirmation/abortableSleep.d.ts +1 -2
  12. package/dist/cjs/confirmation/confirmBundle.d.ts +3 -4
  13. package/dist/cjs/confirmation/confirmSignature.d.ts +2 -3
  14. package/dist/cjs/confirmation/createConfirmationDeadline.d.ts +10 -11
  15. package/dist/cjs/confirmation/pollUntilDeadline.d.ts +4 -5
  16. package/dist/cjs/confirmation/raceRpcs.d.ts +2 -3
  17. package/dist/cjs/confirmation/types.d.ts +3 -4
  18. package/dist/cjs/core/SolanaStepExecutor.d.ts +1 -2
  19. package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +1 -2
  20. package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.d.ts +1 -2
  21. package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +1 -2
  22. package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.d.ts +1 -2
  23. package/dist/cjs/core/tasks/readSignature.d.ts +1 -2
  24. package/dist/cjs/core/tasks/unwrapConfirmation.d.ts +2 -3
  25. package/dist/cjs/errors/parseSolanaErrors.d.ts +1 -2
  26. package/dist/cjs/rpc/jito/api/getBundleStatuses.d.ts +1 -2
  27. package/dist/cjs/rpc/jito/api/getTipAccounts.d.ts +1 -2
  28. package/dist/cjs/rpc/jito/api/sendBundle.d.ts +1 -2
  29. package/dist/cjs/rpc/jito/api/simulateBundle.d.ts +1 -2
  30. package/dist/cjs/rpc/jito/createJitoRpc.d.ts +4 -5
  31. package/dist/cjs/rpc/jito/types.d.ts +1 -2
  32. package/dist/cjs/rpc/registry.d.ts +7 -8
  33. package/dist/cjs/rpc/types.d.ts +2 -3
  34. package/dist/cjs/rpc/utils.d.ts +3 -4
  35. package/dist/cjs/types.d.ts +6 -7
  36. package/dist/cjs/utils/KeypairWallet.unit.helpers.d.ts +1 -2
  37. package/dist/cjs/utils/KeypairWalletAdapter.d.ts +1 -2
  38. package/dist/cjs/utils/base64ToUint8Array.d.ts +1 -2
  39. package/dist/cjs/utils/getTransactionLifetime.d.ts +2 -3
  40. package/dist/cjs/utils/getWalletFeature.d.ts +1 -2
  41. package/dist/cjs/utils/solanaErrorCause.d.ts +2 -3
  42. package/dist/cjs/version.d.ts +2 -3
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/version.js.map +1 -1
  45. package/dist/esm/SolanaProvider.d.ts +1 -2
  46. package/dist/esm/SolanaProvider.d.ts.map +1 -1
  47. package/dist/esm/SolanaProvider.js +1 -0
  48. package/dist/esm/SolanaProvider.js.map +1 -1
  49. package/dist/esm/actions/getSNSAddress.d.ts +1 -2
  50. package/dist/esm/actions/getSNSAddress.d.ts.map +1 -1
  51. package/dist/esm/actions/getSolanaBalance.d.ts +1 -2
  52. package/dist/esm/actions/getSolanaBalance.d.ts.map +1 -1
  53. package/dist/esm/actions/resolveSolanaAddress.d.ts +1 -2
  54. package/dist/esm/actions/resolveSolanaAddress.d.ts.map +1 -1
  55. package/dist/esm/actions/sendAndConfirmBundle.d.ts +1 -2
  56. package/dist/esm/actions/sendAndConfirmBundle.d.ts.map +1 -1
  57. package/dist/esm/actions/sendAndConfirmTransaction.d.ts +1 -2
  58. package/dist/esm/actions/sendAndConfirmTransaction.d.ts.map +1 -1
  59. package/dist/esm/confirmation/abortableSleep.d.ts +1 -2
  60. package/dist/esm/confirmation/abortableSleep.d.ts.map +1 -1
  61. package/dist/esm/confirmation/confirmBundle.d.ts +3 -4
  62. package/dist/esm/confirmation/confirmBundle.d.ts.map +1 -1
  63. package/dist/esm/confirmation/confirmSignature.d.ts +2 -3
  64. package/dist/esm/confirmation/confirmSignature.d.ts.map +1 -1
  65. package/dist/esm/confirmation/createConfirmationDeadline.d.ts +10 -11
  66. package/dist/esm/confirmation/createConfirmationDeadline.d.ts.map +1 -1
  67. package/dist/esm/confirmation/pollUntilDeadline.d.ts +4 -5
  68. package/dist/esm/confirmation/pollUntilDeadline.d.ts.map +1 -1
  69. package/dist/esm/confirmation/raceRpcs.d.ts +2 -3
  70. package/dist/esm/confirmation/raceRpcs.d.ts.map +1 -1
  71. package/dist/esm/confirmation/types.d.ts +3 -4
  72. package/dist/esm/confirmation/types.d.ts.map +1 -1
  73. package/dist/esm/core/SolanaStepExecutor.d.ts +1 -2
  74. package/dist/esm/core/SolanaStepExecutor.d.ts.map +1 -1
  75. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +1 -2
  76. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts.map +1 -1
  77. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts +1 -2
  78. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts.map +1 -1
  79. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +1 -2
  80. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts.map +1 -1
  81. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts +1 -2
  82. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts.map +1 -1
  83. package/dist/esm/core/tasks/readSignature.d.ts +1 -2
  84. package/dist/esm/core/tasks/readSignature.d.ts.map +1 -1
  85. package/dist/esm/core/tasks/unwrapConfirmation.d.ts +2 -3
  86. package/dist/esm/core/tasks/unwrapConfirmation.d.ts.map +1 -1
  87. package/dist/esm/errors/parseSolanaErrors.d.ts +1 -2
  88. package/dist/esm/errors/parseSolanaErrors.d.ts.map +1 -1
  89. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts +1 -2
  90. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts.map +1 -1
  91. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts +1 -2
  92. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts.map +1 -1
  93. package/dist/esm/rpc/jito/api/sendBundle.d.ts +1 -2
  94. package/dist/esm/rpc/jito/api/sendBundle.d.ts.map +1 -1
  95. package/dist/esm/rpc/jito/api/simulateBundle.d.ts +1 -2
  96. package/dist/esm/rpc/jito/api/simulateBundle.d.ts.map +1 -1
  97. package/dist/esm/rpc/jito/createJitoRpc.d.ts +4 -5
  98. package/dist/esm/rpc/jito/createJitoRpc.d.ts.map +1 -1
  99. package/dist/esm/rpc/jito/types.d.ts +1 -2
  100. package/dist/esm/rpc/jito/types.d.ts.map +1 -1
  101. package/dist/esm/rpc/registry.d.ts +7 -8
  102. package/dist/esm/rpc/registry.d.ts.map +1 -1
  103. package/dist/esm/rpc/types.d.ts +2 -3
  104. package/dist/esm/rpc/types.d.ts.map +1 -1
  105. package/dist/esm/rpc/utils.d.ts +3 -4
  106. package/dist/esm/rpc/utils.d.ts.map +1 -1
  107. package/dist/esm/types.d.ts +6 -7
  108. package/dist/esm/types.d.ts.map +1 -1
  109. package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts +1 -2
  110. package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts.map +1 -1
  111. package/dist/esm/utils/KeypairWalletAdapter.d.ts +1 -2
  112. package/dist/esm/utils/KeypairWalletAdapter.d.ts.map +1 -1
  113. package/dist/esm/utils/base64ToUint8Array.d.ts +1 -2
  114. package/dist/esm/utils/base64ToUint8Array.d.ts.map +1 -1
  115. package/dist/esm/utils/getTransactionLifetime.d.ts +2 -3
  116. package/dist/esm/utils/getTransactionLifetime.d.ts.map +1 -1
  117. package/dist/esm/utils/getWalletFeature.d.ts +1 -2
  118. package/dist/esm/utils/getWalletFeature.d.ts.map +1 -1
  119. package/dist/esm/utils/solanaErrorCause.d.ts +2 -3
  120. package/dist/esm/utils/solanaErrorCause.d.ts.map +1 -1
  121. package/dist/esm/version.d.ts +2 -3
  122. package/dist/esm/version.d.ts.map +1 -1
  123. package/dist/esm/version.js +1 -1
  124. package/dist/esm/version.js.map +1 -1
  125. package/package.json +4 -4
  126. package/src/SolanaProvider.ts +1 -0
  127. package/src/version.ts +1 -1
@@ -3,11 +3,11 @@ import { SDKClient } from "@lifi/sdk";
3
3
  //#region src/rpc/registry.d.ts
4
4
  /** Both leave the endpoint out of the Jito list, but only `unsupported` is a
5
5
  * configuration gap the integrator can act on. */
6
- type JitoProbeOutcome = "supported" | "unsupported" | "unreachable";
6
+ export type JitoProbeOutcome = "supported" | "unsupported" | "unreachable";
7
7
  /** An outcome plus how long it may be trusted. The classifier decides both,
8
8
  * because how long an answer is worth is a property of the evidence that
9
9
  * produced it, not of the outcome alone. */
10
- type JitoProbeResult = {
10
+ export type JitoProbeResult = {
11
11
  outcome: JitoProbeOutcome;
12
12
  /** `Infinity` for an answer that cannot change. */
13
13
  retryMs: number;
@@ -15,7 +15,7 @@ type JitoProbeResult = {
15
15
  /** Retry window for a probe that failed without naming the method unknown.
16
16
  * An outage heals, so a permanent entry would keep a recovered endpoint out of
17
17
  * the Jito list for the whole process. */
18
- declare const JITO_PROBE_RETRY_MS = 3e4;
18
+ export declare const JITO_PROBE_RETRY_MS = 3e4;
19
19
  /** Retry window for a bare HTTP 401/403. Longer than an outage's, shorter than
20
20
  * forever. The refusal never reached the JSON-RPC layer, so it proves nothing
21
21
  * about capability: a plan gate, a provider deploy and an allowlist entry
@@ -23,27 +23,26 @@ declare const JITO_PROBE_RETRY_MS = 3e4;
23
23
  * one transient 403 removed a working endpoint for the process lifetime;
24
24
  * treating it as a 30 s outage would re-probe a real plan gate on the
25
25
  * pre-submission latency path twice a minute, forever. */
26
- declare const JITO_PROBE_GATEWAY_RETRY_MS: number;
26
+ export declare const JITO_PROBE_GATEWAY_RETRY_MS: number;
27
27
  /**
28
28
  * Probes with `getBundleStatuses` rather than `getTipAccounts`: it is the
29
29
  * method bundle confirmation actually uses, and providers such as Helius
30
30
  * support it without exposing `getTipAccounts`.
31
31
  */
32
- declare const probeJitoRpc: (rpcUrl: string) => Promise<JitoProbeResult>;
32
+ export declare const probeJitoRpc: (rpcUrl: string) => Promise<JitoProbeResult>;
33
33
  /**
34
34
  * Wrapper around getting the Solana RPCs
35
35
  * @returns - Solana RPCs
36
36
  */
37
- declare const getSolanaRpcs: (client: SDKClient) => Promise<SolanaRpcType[]>;
37
+ export declare const getSolanaRpcs: (client: SDKClient) => Promise<SolanaRpcType[]>;
38
38
  /** `unreachable` counts endpoints whose probe failed without naming the
39
39
  * method unknown. Empty `rpcs` with a non-zero count is usually an outage, but
40
40
  * not always: a bare 401/403 lands here too, and that can be a plan gate the
41
41
  * integrator has to fix. `sendAndConfirmBundle`'s message names both, because
42
42
  * this count cannot tell them apart. */
43
- declare const getJitoRpcs: (client: SDKClient) => Promise<{
43
+ export declare const getJitoRpcs: (client: SDKClient) => Promise<{
44
44
  rpcs: JitoRpcType[];
45
45
  unreachable: number;
46
46
  }>;
47
47
  //#endregion
48
- export { JITO_PROBE_GATEWAY_RETRY_MS, JITO_PROBE_RETRY_MS, JitoProbeOutcome, JitoProbeResult, getJitoRpcs, getSolanaRpcs, probeJitoRpc };
49
48
  //# sourceMappingURL=registry.d.ts.map
@@ -1,8 +1,7 @@
1
1
  import { JitoRpcApi } from "./jito/createJitoRpc.js";
2
2
  import { Rpc, createSolanaRpc } from "@solana/kit";
3
3
  //#region src/rpc/types.d.ts
4
- type SolanaRpcType = ReturnType<typeof createSolanaRpc>;
5
- type JitoRpcType = Rpc<JitoRpcApi>;
4
+ export type SolanaRpcType = ReturnType<typeof createSolanaRpc>;
5
+ export type JitoRpcType = Rpc<JitoRpcApi>;
6
6
  //#endregion
7
- export { JitoRpcType, SolanaRpcType };
8
7
  //# sourceMappingURL=types.d.ts.map
@@ -22,7 +22,7 @@ type RetryFn<Rpc> = <R>(client: SDKClient, fn: (rpc: Rpc) => Promise<R>) => Prom
22
22
  * )
23
23
  * ```
24
24
  */
25
- declare function callWithRetry<T, R>(rpcs: T[], fn: (rpc: T) => Promise<R>): Promise<R>;
25
+ export declare function callWithRetry<T, R>(rpcs: T[], fn: (rpc: T) => Promise<R>): Promise<R>;
26
26
  /**
27
27
  * Calls a function on Solana RPC instances with retry logic.
28
28
  * Automatically fetches available Solana RPCs and tries each in sequence.
@@ -41,7 +41,7 @@ declare function callWithRetry<T, R>(rpcs: T[], fn: (rpc: T) => Promise<R>): Pro
41
41
  * )
42
42
  * ```
43
43
  */
44
- declare const callSolanaRpcsWithRetry: RetryFn<SolanaRpcType>;
44
+ export declare const callSolanaRpcsWithRetry: RetryFn<SolanaRpcType>;
45
45
  /**
46
46
  * Calls a function on Jito RPC instances with retry logic.
47
47
  * Automatically fetches available Jito RPCs and tries each in sequence.
@@ -60,7 +60,6 @@ declare const callSolanaRpcsWithRetry: RetryFn<SolanaRpcType>;
60
60
  * )
61
61
  * ```
62
62
  */
63
- declare const callJitoRpcsWithRetry: RetryFn<JitoRpcType>;
63
+ export declare const callJitoRpcsWithRetry: RetryFn<JitoRpcType>;
64
64
  //#endregion
65
- export { callJitoRpcsWithRetry, callSolanaRpcsWithRetry, callWithRetry };
66
65
  //# sourceMappingURL=utils.d.ts.map
@@ -2,11 +2,11 @@ import { SDKProvider, StepExecutorContext, StepExecutorOptions } from "@lifi/sdk
2
2
  import { Transaction } from "@solana/kit";
3
3
  import { Wallet, WalletAccount } from "@wallet-standard/base";
4
4
  //#region src/types.d.ts
5
- interface SolanaProviderOptions {
5
+ export interface SolanaProviderOptions {
6
6
  getWallet?: () => Promise<Wallet>;
7
7
  skipSimulation?: boolean;
8
8
  }
9
- interface SolanaTaskContext {
9
+ export interface SolanaTaskContext {
10
10
  signedTransactions?: Transaction[];
11
11
  /**
12
12
  * Whether the backend returned a Jito bundle (array `transactionRequest.data`)
@@ -14,19 +14,18 @@ interface SolanaTaskContext {
14
14
  */
15
15
  isBundleExecution?: boolean;
16
16
  }
17
- interface SolanaStepExecutorContext extends StepExecutorContext, SolanaTaskContext {
17
+ export interface SolanaStepExecutorContext extends StepExecutorContext, SolanaTaskContext {
18
18
  wallet: Wallet;
19
19
  walletAccount: WalletAccount;
20
20
  skipSimulation: boolean;
21
21
  }
22
- interface SolanaSDKProvider extends SDKProvider {
22
+ export interface SolanaSDKProvider extends SDKProvider {
23
23
  setOptions(options: SolanaProviderOptions): void;
24
24
  }
25
- declare function isSolanaProvider(provider: SDKProvider): provider is SolanaSDKProvider;
26
- interface SolanaStepExecutorOptions extends StepExecutorOptions {
25
+ export declare function isSolanaProvider(provider: SDKProvider): provider is SolanaSDKProvider;
26
+ export interface SolanaStepExecutorOptions extends StepExecutorOptions {
27
27
  wallet: Wallet;
28
28
  skipSimulation?: boolean;
29
29
  }
30
30
  //#endregion
31
- export { SolanaProviderOptions, SolanaSDKProvider, SolanaStepExecutorContext, SolanaStepExecutorOptions, SolanaTaskContext, isSolanaProvider };
32
31
  //# sourceMappingURL=types.d.ts.map
@@ -1,8 +1,7 @@
1
1
  //#region src/utils/KeypairWallet.unit.helpers.d.ts
2
- declare const generateTestKeypair: () => Promise<{
2
+ export declare const generateTestKeypair: () => Promise<{
3
3
  secretKey: string;
4
4
  publicKey: Uint8Array;
5
5
  }>;
6
6
  //#endregion
7
- export { generateTestKeypair };
8
7
  //# sourceMappingURL=KeypairWallet.unit.helpers.d.ts.map
@@ -5,7 +5,7 @@ import { SolanaSignTransactionFeature } from "@solana/wallet-standard-features";
5
5
  * This keypair wallet adapter is unsafe to use on the frontend and is only included to provide an easy way for applications to test
6
6
  * Wallet Adapter without using a third-party wallet.
7
7
  */
8
- declare class KeypairWalletAdapter implements Wallet {
8
+ export declare class KeypairWalletAdapter implements Wallet {
9
9
  /**
10
10
  * Storing a keypair locally like this is not safe because any application using this adapter could retrieve the
11
11
  * secret key, and because the keypair will be lost any time the wallet is disconnected or the window is refreshed.
@@ -25,5 +25,4 @@ declare class KeypairWalletAdapter implements Wallet {
25
25
  private _signTransactionFeature;
26
26
  }
27
27
  //#endregion
28
- export { KeypairWalletAdapter };
29
28
  //# sourceMappingURL=KeypairWalletAdapter.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region src/utils/base64ToUint8Array.d.ts
2
- declare function base64ToUint8Array(base64String: string): Uint8Array;
2
+ export declare function base64ToUint8Array(base64String: string): Uint8Array;
3
3
  //#endregion
4
- export { base64ToUint8Array };
5
4
  //# sourceMappingURL=base64ToUint8Array.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Blockhash, Transaction } from "@solana/kit";
2
2
  //#region src/utils/getTransactionLifetime.d.ts
3
- type TransactionLifetime = {
3
+ export type TransactionLifetime = {
4
4
  kind: "blockhash";
5
5
  blockhash: Blockhash;
6
6
  } | {
@@ -15,7 +15,6 @@ type TransactionLifetime = {
15
15
  * Never throws: anything undecodable yields `unknown`, degrading confirmation
16
16
  * to the wall-clock ceiling rather than aborting the send.
17
17
  */
18
- declare function getTransactionLifetime(transaction: Transaction): Promise<TransactionLifetime>;
18
+ export declare function getTransactionLifetime(transaction: Transaction): Promise<TransactionLifetime>;
19
19
  //#endregion
20
- export { TransactionLifetime, getTransactionLifetime };
21
20
  //# sourceMappingURL=getTransactionLifetime.d.ts.map
@@ -23,7 +23,6 @@ type FeatureMap = {
23
23
  *
24
24
  * const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction)
25
25
  */
26
- declare function getWalletFeature<K extends keyof FeatureMap>(wallet: Wallet, featureName: K): FeatureMap[K];
26
+ export declare function getWalletFeature<K extends keyof FeatureMap>(wallet: Wallet, featureName: K): FeatureMap[K];
27
27
  //#endregion
28
- export { getWalletFeature };
29
28
  //# sourceMappingURL=getWalletFeature.d.ts.map
@@ -1,15 +1,14 @@
1
1
  //#region src/utils/solanaErrorCause.d.ts
2
- declare const safeStringifyBigInt: (value: unknown) => string;
2
+ export declare const safeStringifyBigInt: (value: unknown) => string;
3
3
  /**
4
4
  * Carries the structured payload of a failed Solana RPC simulation or
5
5
  * confirmation so consumers can inspect `err` and `logs` directly from
6
6
  * the thrown `TransactionError`'s `cause`, without re-simulating.
7
7
  */
8
- declare class SolanaTransactionDetailsError extends Error {
8
+ export declare class SolanaTransactionDetailsError extends Error {
9
9
  readonly err: unknown;
10
10
  readonly logs: readonly string[] | null;
11
11
  constructor(err: unknown, logs?: readonly string[] | null);
12
12
  }
13
13
  //#endregion
14
- export { SolanaTransactionDetailsError, safeStringifyBigInt };
15
14
  //# sourceMappingURL=solanaErrorCause.d.ts.map
@@ -1,6 +1,5 @@
1
1
  //#region src/version.d.ts
2
- declare const name = "@lifi/sdk-provider-solana";
3
- declare const version = "4.1.3";
2
+ export declare const name = "@lifi/sdk-provider-solana";
3
+ export declare const version = "4.2.1";
4
4
  //#endregion
5
- export { name, version };
6
5
  //# sourceMappingURL=version.d.ts.map
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/version.ts
3
3
  const name = "@lifi/sdk-provider-solana";
4
- const version = "4.1.3";
4
+ const version = "4.2.1";
5
5
  //#endregion
6
6
  exports.name = name;
7
7
  exports.version = version;
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-solana'\nexport const version = '4.1.3'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-solana'\nexport const version = '4.2.1'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
@@ -1,6 +1,5 @@
1
1
  import { SolanaProviderOptions, SolanaSDKProvider } from "./types.js";
2
2
  //#region src/SolanaProvider.d.ts
3
- declare function SolanaProvider(options?: SolanaProviderOptions): SolanaSDKProvider;
3
+ export declare function SolanaProvider(options?: SolanaProviderOptions): SolanaSDKProvider;
4
4
  //#endregion
5
- export { SolanaProvider };
6
5
  //# sourceMappingURL=SolanaProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":";;iBAYgB,eACd,UAAU,wBACT"}
1
+ {"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":";;wBAYgB,eACd,UAAU,wBACT"}
@@ -11,6 +11,7 @@ function SolanaProvider(options) {
11
11
  return ChainType.SVM;
12
12
  },
13
13
  isAddress,
14
+ isTokenAddress: isAddress,
14
15
  resolveAddress: resolveSolanaAddress,
15
16
  getBalance: getSolanaBalance,
16
17
  async getStepExecutor(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaProvider.js","names":[],"sources":["../../src/SolanaProvider.ts"],"sourcesContent":["import {\n ChainType,\n LiFiErrorCode,\n ProviderError,\n type StepExecutorOptions,\n} from '@lifi/sdk'\nimport { isAddress } from '@solana/kit'\nimport { getSolanaBalance } from './actions/getSolanaBalance.js'\nimport { resolveSolanaAddress } from './actions/resolveSolanaAddress.js'\nimport { SolanaStepExecutor } from './core/SolanaStepExecutor.js'\nimport type { SolanaProviderOptions, SolanaSDKProvider } from './types.js'\n\nexport function SolanaProvider(\n options?: SolanaProviderOptions\n): SolanaSDKProvider {\n const _options: SolanaProviderOptions = options ?? {}\n return {\n get type() {\n return ChainType.SVM\n },\n isAddress,\n resolveAddress: resolveSolanaAddress,\n getBalance: getSolanaBalance,\n async getStepExecutor(\n options: StepExecutorOptions\n ): Promise<SolanaStepExecutor> {\n if (!_options.getWallet) {\n throw new ProviderError(\n LiFiErrorCode.ConfigError,\n 'SolanaProvider requires a getWallet function'\n )\n }\n\n const wallet = await _options.getWallet()\n\n const executor = new SolanaStepExecutor({\n wallet,\n routeId: options.routeId,\n skipSimulation: _options.skipSimulation,\n executionOptions: {\n ...options.executionOptions,\n },\n })\n\n return executor\n },\n setOptions(options: SolanaProviderOptions) {\n Object.assign(_options, options)\n },\n }\n}\n"],"mappings":";;;;;;AAYA,SAAgB,eACd,SACmB;CACnB,MAAM,WAAkC,WAAW,CAAC;CACpD,OAAO;EACL,IAAI,OAAO;GACT,OAAO,UAAU;EACnB;EACA;EACA,gBAAgB;EAChB,YAAY;EACZ,MAAM,gBACJ,SAC6B;GAC7B,IAAI,CAAC,SAAS,WACZ,MAAM,IAAI,cACR,cAAc,aACd,8CACF;GAGF,MAAM,SAAS,MAAM,SAAS,UAAU;GAWxC,OAAO,IATc,mBAAmB;IACtC;IACA,SAAS,QAAQ;IACjB,gBAAgB,SAAS;IACzB,kBAAkB,EAChB,GAAG,QAAQ,iBACb;GACF,CAEc;EAChB;EACA,WAAW,SAAgC;GACzC,OAAO,OAAO,UAAU,OAAO;EACjC;CACF;AACF"}
1
+ {"version":3,"file":"SolanaProvider.js","names":[],"sources":["../../src/SolanaProvider.ts"],"sourcesContent":["import {\n ChainType,\n LiFiErrorCode,\n ProviderError,\n type StepExecutorOptions,\n} from '@lifi/sdk'\nimport { isAddress } from '@solana/kit'\nimport { getSolanaBalance } from './actions/getSolanaBalance.js'\nimport { resolveSolanaAddress } from './actions/resolveSolanaAddress.js'\nimport { SolanaStepExecutor } from './core/SolanaStepExecutor.js'\nimport type { SolanaProviderOptions, SolanaSDKProvider } from './types.js'\n\nexport function SolanaProvider(\n options?: SolanaProviderOptions\n): SolanaSDKProvider {\n const _options: SolanaProviderOptions = options ?? {}\n return {\n get type() {\n return ChainType.SVM\n },\n isAddress,\n isTokenAddress: isAddress,\n resolveAddress: resolveSolanaAddress,\n getBalance: getSolanaBalance,\n async getStepExecutor(\n options: StepExecutorOptions\n ): Promise<SolanaStepExecutor> {\n if (!_options.getWallet) {\n throw new ProviderError(\n LiFiErrorCode.ConfigError,\n 'SolanaProvider requires a getWallet function'\n )\n }\n\n const wallet = await _options.getWallet()\n\n const executor = new SolanaStepExecutor({\n wallet,\n routeId: options.routeId,\n skipSimulation: _options.skipSimulation,\n executionOptions: {\n ...options.executionOptions,\n },\n })\n\n return executor\n },\n setOptions(options: SolanaProviderOptions) {\n Object.assign(_options, options)\n },\n }\n}\n"],"mappings":";;;;;;AAYA,SAAgB,eACd,SACmB;CACnB,MAAM,WAAkC,WAAW,CAAC;CACpD,OAAO;EACL,IAAI,OAAO;GACT,OAAO,UAAU;EACnB;EACA;EACA,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,MAAM,gBACJ,SAC6B;GAC7B,IAAI,CAAC,SAAS,WACZ,MAAM,IAAI,cACR,cAAc,aACd,8CACF;GAGF,MAAM,SAAS,MAAM,SAAS,UAAU;GAWxC,OAAO,IATc,mBAAmB;IACtC;IACA,SAAS,QAAQ;IACjB,gBAAgB,SAAS;IACzB,kBAAkB,EAChB,GAAG,QAAQ,iBACb;GACF,CAEc;EAChB;EACA,WAAW,SAAgC;GACzC,OAAO,OAAO,UAAU,OAAO;EACjC;CACF;AACF"}
@@ -1,5 +1,4 @@
1
1
  //#region src/actions/getSNSAddress.d.ts
2
- declare const getSNSAddress: (name: string) => Promise<string | undefined>;
2
+ export declare const getSNSAddress: (name: string) => Promise<string | undefined>;
3
3
  //#endregion
4
- export { getSNSAddress };
5
4
  //# sourceMappingURL=getSNSAddress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":";cASa,gBACX,iBACC"}
1
+ {"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":";qBASa,gBACX,iBACC"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
2
2
  //#region src/actions/getSolanaBalance.d.ts
3
- declare const getSolanaBalance: (client: SDKClient, walletAddress: string, tokens: Token[]) => Promise<TokenAmount[]>;
3
+ export declare const getSolanaBalance: (client: SDKClient, walletAddress: string, tokens: Token[]) => Promise<TokenAmount[]>;
4
4
  //#endregion
5
- export { getSolanaBalance };
6
5
  //# sourceMappingURL=getSolanaBalance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":";;cAea,mBACX,QAAQ,WACR,uBACA,QAAQ,YACP,QAAQ"}
1
+ {"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":";;qBAea,mBACX,QAAQ,WACR,uBACA,QAAQ,YACP,QAAQ"}
@@ -1,5 +1,4 @@
1
1
  //#region src/actions/resolveSolanaAddress.d.ts
2
- declare function resolveSolanaAddress(name: string): Promise<string | undefined>;
2
+ export declare function resolveSolanaAddress(name: string): Promise<string | undefined>;
3
3
  //#endregion
4
- export { resolveSolanaAddress };
5
4
  //# sourceMappingURL=resolveSolanaAddress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveSolanaAddress.d.ts","names":[],"sources":["../../../src/actions/resolveSolanaAddress.ts"],"mappings":";iBAEsB,qBACpB,eACC"}
1
+ {"version":3,"file":"resolveSolanaAddress.d.ts","names":[],"sources":["../../../src/actions/resolveSolanaAddress.ts"],"mappings":";wBAEsB,qBACpB,eACC"}
@@ -15,10 +15,9 @@ import { Transaction } from "@solana/kit";
15
15
  * deadline starts on the same clock as `BRANCH_TIMEOUT_MS` instead of after
16
16
  * the submission returns.
17
17
  */
18
- declare function sendAndConfirmBundle(client: SDKClient, signedTransactions: Transaction[], options?: {
18
+ export declare function sendAndConfirmBundle(client: SDKClient, signedTransactions: Transaction[], options?: {
19
19
  /** Runs once, when the first Jito RPC accepts the submission. */
20
20
  onBroadcast?: () => void;
21
21
  }): Promise<RaceResult<BundleConfirmation>>;
22
22
  //#endregion
23
- export { sendAndConfirmBundle };
24
23
  //# sourceMappingURL=sendAndConfirmBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendAndConfirmBundle.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmBundle.ts"],"mappings":";;;;;;;;;;;;;;;;;iBAuBsB,qBACpB,QAAQ,WACR,oBAAoB,eACpB;;EAEE;IAED,QAAQ,WAAW"}
1
+ {"version":3,"file":"sendAndConfirmBundle.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmBundle.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAuBsB,qBACpB,QAAQ,WACR,oBAAoB,eACpB;;EAEE;IAED,QAAQ,WAAW"}
@@ -12,10 +12,9 @@ import { Transaction } from "@solana/kit";
12
12
  * least one endpoint in the default LI.FI set answers that call with the slot
13
13
  * number.
14
14
  */
15
- declare function sendAndConfirmTransaction(client: SDKClient, signedTransaction: Transaction, options?: {
15
+ export declare function sendAndConfirmTransaction(client: SDKClient, signedTransaction: Transaction, options?: {
16
16
  /** Runs once, when the first RPC accepts a send. */
17
17
  onBroadcast?: () => void;
18
18
  }): Promise<RaceResult<SignatureStatus>>;
19
19
  //#endregion
20
- export { sendAndConfirmTransaction };
21
20
  //# sourceMappingURL=sendAndConfirmTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendAndConfirmTransaction.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmTransaction.ts"],"mappings":";;;;;;;;;;;;;;iBAwBsB,0BACpB,QAAQ,WACR,mBAAmB,aACnB;;EAEE;IAED,QAAQ,WAAW"}
1
+ {"version":3,"file":"sendAndConfirmTransaction.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmTransaction.ts"],"mappings":";;;;;;;;;;;;;;wBAwBsB,0BACpB,QAAQ,WACR,mBAAmB,aACnB;;EAEE;IAED,QAAQ,WAAW"}
@@ -13,7 +13,6 @@
13
13
  * through their own loop condition, so a rejection here would only add a
14
14
  * catch to every call site.
15
15
  */
16
- declare function abortableSleep(ms: number, signal: AbortSignal): Promise<void>;
16
+ export declare function abortableSleep(ms: number, signal: AbortSignal): Promise<void>;
17
17
  //#endregion
18
- export { abortableSleep };
19
18
  //# sourceMappingURL=abortableSleep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abortableSleep.d.ts","names":[],"sources":["../../../src/confirmation/abortableSleep.ts"],"mappings":";;;;;;;;;;;;;;;iBAcgB,eAAe,YAAY,QAAQ,cAAc"}
1
+ {"version":3,"file":"abortableSleep.d.ts","names":[],"sources":["../../../src/confirmation/abortableSleep.ts"],"mappings":";;;;;;;;;;;;;;;wBAcgB,eAAe,YAAY,QAAQ,cAAc"}
@@ -6,8 +6,8 @@ import { Signature } from "@solana/kit";
6
6
  /** Slower than the signature poller's 400 ms: Jito documents 1 req/s per IP
7
7
  * per region. At 2 s this holds 0.5 req/s, leaving room for the deadline's
8
8
  * blockhash probes on the same endpoint. */
9
- declare const BUNDLE_POLL_INTERVAL_MS = 2e3;
10
- type BundleConfirmation = {
9
+ export declare const BUNDLE_POLL_INTERVAL_MS = 2e3;
10
+ export type BundleConfirmation = {
11
11
  /** The submission's own id, carried for diagnostics. */
12
12
  bundleId: string;
13
13
  /** Never read for a `txHash` - its order is Jito's to choose. Kept so the
@@ -25,7 +25,7 @@ type BundleConfirmation = {
25
25
  * deadline starts before submission rather than after it. A `send` failure
26
26
  * throws, which `raceRpcs` buckets as `rpc-unavailable`.
27
27
  */
28
- declare function confirmBundle(options: {
28
+ export declare function confirmBundle(options: {
29
29
  rpc: JitoRpcType;
30
30
  signal: AbortSignal;
31
31
  lifetimes: TransactionLifetime[];
@@ -39,5 +39,4 @@ declare function confirmBundle(options: {
39
39
  onBroadcast?: () => void;
40
40
  }): Promise<ConfirmationOutcome<BundleConfirmation>>;
41
41
  //#endregion
42
- export { BUNDLE_POLL_INTERVAL_MS, BundleConfirmation, confirmBundle };
43
42
  //# sourceMappingURL=confirmBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"confirmBundle.d.ts","names":[],"sources":["../../../src/confirmation/confirmBundle.ts"],"mappings":";;;;;;;;cAca;KAED;;EAEV;;;EAGA,cAAc;EACd,4BAA4B;;;EAG5B;;;;;;;;;iBAUoB,cAAc;EAClC,KAAK;EACL,QAAQ;EACR,WAAW;EACX,YAAY;;;;;;;EAOZ;IACE,QAAQ,oBAAoB"}
1
+ {"version":3,"file":"confirmBundle.d.ts","names":[],"sources":["../../../src/confirmation/confirmBundle.ts"],"mappings":";;;;;;;;qBAca;YAED;;EAEV;;;EAGA,cAAc;EACd,4BAA4B;;;EAG5B;;;;;;;;;wBAUoB,cAAc;EAClC,KAAK;EACL,QAAQ;EACR,WAAW;EACX,YAAY;;;;;;;EAOZ;IACE,QAAQ,oBAAoB"}
@@ -8,10 +8,10 @@ import { Signature } from "@solana/kit";
8
8
  * RPCs tolerate 2.5 req/s of status reads; the Jito bundle poller runs slower
9
9
  * because its endpoints do not (see `confirmBundle`).
10
10
  */
11
- declare const SIGNATURE_POLL_INTERVAL_MS = 400;
11
+ export declare const SIGNATURE_POLL_INTERVAL_MS = 400;
12
12
  /** Confirms one transaction against one RPC. Holds no policy: the deadline
13
13
  * decides when to stop, and the resend loop only observes an `AbortSignal`. */
14
- declare function confirmSignature(options: {
14
+ export declare function confirmSignature(options: {
15
15
  rpc: SolanaRpcType;
16
16
  signal: AbortSignal;
17
17
  signature: Signature;
@@ -25,5 +25,4 @@ declare function confirmSignature(options: {
25
25
  onBroadcast?: () => void;
26
26
  }): Promise<ConfirmationOutcome<SignatureStatus>>;
27
27
  //#endregion
28
- export { SIGNATURE_POLL_INTERVAL_MS, confirmSignature };
29
28
  //# sourceMappingURL=confirmSignature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"confirmSignature.d.ts","names":[],"sources":["../../../src/confirmation/confirmSignature.ts"],"mappings":";;;;;;;;;;cAkBa;;;iBAIS,iBAAiB;EACrC,KAAK;EACL,QAAQ;EACR,WAAW;EACX,WAAW;EACX,SAAS,KAAK,eAAe,QAAQ,gBAAgB;;;;;;EAMrD;IACE,QAAQ,oBAAoB"}
1
+ {"version":3,"file":"confirmSignature.d.ts","names":[],"sources":["../../../src/confirmation/confirmSignature.ts"],"mappings":";;;;;;;;;;qBAkBa;;;wBAIS,iBAAiB;EACrC,KAAK;EACL,QAAQ;EACR,WAAW;EACX,WAAW;EACX,SAAS,KAAK,eAAe,QAAQ,gBAAgB;;;;;;EAMrD;IACE,QAAQ,oBAAoB"}
@@ -3,31 +3,31 @@ import { TransactionLifetime } from "../utils/getTransactionLifetime.js";
3
3
  //#region src/confirmation/createConfirmationDeadline.d.ts
4
4
  /** Give-up point for a branch's polling. Read between iterations only, so a
5
5
  * hung RPC call needs `BRANCH_TIMEOUT_MS` to close the gap. */
6
- declare const CONFIRMATION_TIMEOUT_MS = 9e4;
6
+ export declare const CONFIRMATION_TIMEOUT_MS = 9e4;
7
7
  /** Head-room for the final probe after the deadline.
8
8
  * `STATUS_RETRY_BACKOFF_CAP_MS` must stay below it. */
9
- declare const FINAL_PROBE_MARGIN_MS = 5e3;
9
+ export declare const FINAL_PROBE_MARGIN_MS = 5e3;
10
10
  /** Hard bound on a branch, in-flight requests included. Above the ceiling so
11
11
  * an abort cannot pre-empt the final probe. */
12
- declare const BRANCH_TIMEOUT_MS: number;
12
+ export declare const BRANCH_TIMEOUT_MS: number;
13
13
  /** How long a healthy-but-lagging node may need to catch up. A premise, not a
14
14
  * knob: `isBlockhashValid` answers `false` for lag and for death alike, so no
15
15
  * verdict may land inside this window. */
16
- declare const NODE_LAG_WINDOW_MS = 12e3;
16
+ export declare const NODE_LAG_WINDOW_MS = 12e3;
17
17
  /** Gap between `isBlockhashValid` probes. Spacing them is what makes the
18
18
  * consecutive-`false` rule meaningful: quantized to the 400 ms tick, probes
19
19
  * land at 0.4/7.6/14.8 s, so no verdict lands inside `NODE_LAG_WINDOW_MS`. */
20
- declare const EXPIRY_PROBE_INTERVAL_MS = 7e3;
20
+ export declare const EXPIRY_PROBE_INTERVAL_MS = 7e3;
21
21
  /** Consecutive `false` results before a blockhash is believed dead. Derived so
22
22
  * a change to either premise moves it automatically; `+ 2` keeps the
23
23
  * inequality strict when the window divides exactly. */
24
- declare const EXPIRY_CONFIRMATIONS: number;
24
+ export declare const EXPIRY_CONFIRMATIONS: number;
25
25
  /** Probe failures per blockhash before that blockhash stops being probed.
26
26
  * Prober-only; the status pollers have `MAX_STATUS_READ_SILENCE_MS`. */
27
- declare const MAX_PROBE_ERRORS = 5;
27
+ export declare const MAX_PROBE_ERRORS = 5;
28
28
  /** Structural, so one implementation serves both the Solana and Jito RPC. */
29
- type BlockhashProbeRpc = Pick<SolanaRpcType, "isBlockhashValid">;
30
- interface ConfirmationDeadline {
29
+ export type BlockhashProbeRpc = Pick<SolanaRpcType, "isBlockhashValid">;
30
+ export interface ConfirmationDeadline {
31
31
  /** Checked at the top of every poll iteration. */
32
32
  reached(): boolean;
33
33
  /** Advances the policy; never throws. Probes at most once per
@@ -41,11 +41,10 @@ interface ConfirmationDeadline {
41
41
  * the slot number, making any `lastValidBlockHeight` comparison false on its
42
42
  * first evaluation.
43
43
  */
44
- declare function createConfirmationDeadline(options: {
44
+ export declare function createConfirmationDeadline(options: {
45
45
  lifetimes: TransactionLifetime[];
46
46
  rpc: BlockhashProbeRpc;
47
47
  now?: () => number;
48
48
  }): ConfirmationDeadline;
49
49
  //#endregion
50
- export { BRANCH_TIMEOUT_MS, BlockhashProbeRpc, CONFIRMATION_TIMEOUT_MS, ConfirmationDeadline, EXPIRY_CONFIRMATIONS, EXPIRY_PROBE_INTERVAL_MS, FINAL_PROBE_MARGIN_MS, MAX_PROBE_ERRORS, NODE_LAG_WINDOW_MS, createConfirmationDeadline };
51
50
  //# sourceMappingURL=createConfirmationDeadline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createConfirmationDeadline.d.ts","names":[],"sources":["../../../src/confirmation/createConfirmationDeadline.ts"],"mappings":";;;;;cAMa;;;cAGA;;;cAGA;;;;cAKA;;;;cAIA;;;;cAIA;;;cAIA;;KAGD,oBAAoB,KAAK;UAEpB;;EAEf;;;EAGA,KAAK,QAAQ,cAAc;;;;;;;;;iBAUb,2BAA2B;EACzC,WAAW;EACX,KAAK;EACL;IACE"}
1
+ {"version":3,"file":"createConfirmationDeadline.d.ts","names":[],"sources":["../../../src/confirmation/createConfirmationDeadline.ts"],"mappings":";;;;;qBAMa;;;qBAGA;;;qBAGA;;;;qBAKA;;;;qBAIA;;;;qBAIA;;;qBAIA;;YAGD,oBAAoB,KAAK;iBAEpB;;EAEf;;;EAGA,KAAK,QAAQ,cAAc;;;;;;;;;wBAUb,2BAA2B;EACzC,WAAW;EACX,KAAK;EACL;IACE"}
@@ -3,13 +3,13 @@ import { ConfirmationDeadline } from "./createConfirmationDeadline.js";
3
3
  //#region src/confirmation/pollUntilDeadline.d.ts
4
4
  /** Cadence of the detached deadline-advance loop. Independent of the
5
5
  * status-poll interval, which each caller sets for its own rate limits. */
6
- declare const DEADLINE_TICK_INTERVAL_MS = 400;
6
+ export declare const DEADLINE_TICK_INTERVAL_MS = 400;
7
7
  /** How long an endpoint may go without answering a status read before its
8
8
  * branch gives up. Measured in wall-clock time, not in failures: a count is
9
9
  * coupled to the backoff curve, and ten failures spanned only ~16.4 s, so a
10
10
  * routine 20 s throttling window ended the branch 74 s inside the 90 s ceiling
11
11
  * and reported an already-broadcast transaction as an outage. */
12
- declare const MAX_STATUS_READ_SILENCE_MS = 3e4;
12
+ export declare const MAX_STATUS_READ_SILENCE_MS = 3e4;
13
13
  /** Ceiling on one backoff sleep. Squeezed between two bounds:
14
14
  * - Above `BUNDLE_POLL_INTERVAL_MS`, the largest base interval any caller
15
15
  * uses. At 2 s the two were equal, so `Math.max(pollIntervalMs, ...)` below
@@ -26,7 +26,7 @@ declare const MAX_STATUS_READ_SILENCE_MS = 3e4;
26
26
  * backoff is a single step rather than a curve. Widening it means raising
27
27
  * `FINAL_PROBE_MARGIN_MS`, which lengthens the branch bound the SDK
28
28
  * documents. */
29
- declare const STATUS_RETRY_BACKOFF_CAP_MS = 3e3;
29
+ export declare const STATUS_RETRY_BACKOFF_CAP_MS = 3e3;
30
30
  /**
31
31
  * Polls one probe against one RPC until the deadline, and owns the verdict
32
32
  * rules shared by the signature and bundle branches.
@@ -35,7 +35,7 @@ declare const STATUS_RETRY_BACKOFF_CAP_MS = 3e3;
35
35
  * nothing", and rejects for a failed read. The deadline advances on a detached
36
36
  * loop so a hung blockhash probe cannot stop status polling.
37
37
  */
38
- declare function pollUntilDeadline<T>(options: {
38
+ export declare function pollUntilDeadline<T>(options: {
39
39
  deadline: ConfirmationDeadline;
40
40
  signal: AbortSignal;
41
41
  /** Sleep between two status reads that answered. */
@@ -54,5 +54,4 @@ declare function pollUntilDeadline<T>(options: {
54
54
  now?: () => number;
55
55
  }): Promise<ConfirmationOutcome<T>>;
56
56
  //#endregion
57
- export { DEADLINE_TICK_INTERVAL_MS, MAX_STATUS_READ_SILENCE_MS, STATUS_RETRY_BACKOFF_CAP_MS, pollUntilDeadline };
58
57
  //# sourceMappingURL=pollUntilDeadline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pollUntilDeadline.d.ts","names":[],"sources":["../../../src/confirmation/pollUntilDeadline.ts"],"mappings":";;;;;cAMa;;;;;;cAMA;;;;;;;;;;;;;;;;;cAiBA;;;;;;;;;iBAUS,kBAAkB,GAAG;EACzC,UAAU;EACV,QAAQ;;EAER;;EAEA,aAAa,QAAQ;;EAErB;;EAEA;;;EAGA;;;EAGA;IACE,QAAQ,oBAAoB"}
1
+ {"version":3,"file":"pollUntilDeadline.d.ts","names":[],"sources":["../../../src/confirmation/pollUntilDeadline.ts"],"mappings":";;;;;qBAMa;;;;;;qBAMA;;;;;;;;;;;;;;;;;qBAiBA;;;;;;;;;wBAUS,kBAAkB,GAAG;EACzC,UAAU;EACV,QAAQ;;EAER;;EAEA,aAAa,QAAQ;;EAErB;;EAEA;;;EAGA;;;EAGA;IACE,QAAQ,oBAAoB"}
@@ -1,6 +1,6 @@
1
1
  import { ConfirmationOutcome } from "./types.js";
2
2
  //#region src/confirmation/raceRpcs.d.ts
3
- type RaceResult<T> = {
3
+ export type RaceResult<T> = {
4
4
  kind: "confirmed";
5
5
  value: T;
6
6
  } | {
@@ -18,9 +18,8 @@ type RaceResult<T> = {
18
18
  * never answered - the defect that reported live swaps as `TransactionExpired`.
19
19
  * `timeoutMs` is the caller's; this module holds no confirmation policy.
20
20
  */
21
- declare function raceRpcs<Rpc, T>(rpcs: Rpc[], run: (rpc: Rpc, signal: AbortSignal) => Promise<ConfirmationOutcome<T>>, options: {
21
+ export declare function raceRpcs<Rpc, T>(rpcs: Rpc[], run: (rpc: Rpc, signal: AbortSignal) => Promise<ConfirmationOutcome<T>>, options: {
22
22
  timeoutMs: number;
23
23
  }): Promise<RaceResult<T>>;
24
24
  //#endregion
25
- export { RaceResult, raceRpcs };
26
25
  //# sourceMappingURL=raceRpcs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"raceRpcs.d.ts","names":[],"sources":["../../../src/confirmation/raceRpcs.ts"],"mappings":";;KAEY,WAAW;EACjB;EAAmB,OAAO;;EAC1B;EAAuB,QAAQ;;EAC/B;EAAyB,QAAQ;;;;;;;;;;iBAmDjB,SAAS,KAAK,GAClC,MAAM,OACN,MAAM,KAAK,KAAK,QAAQ,gBAAgB,QAAQ,oBAAoB,KACpE;EAAW;IACV,QAAQ,WAAW"}
1
+ {"version":3,"file":"raceRpcs.d.ts","names":[],"sources":["../../../src/confirmation/raceRpcs.ts"],"mappings":";;YAEY,WAAW;EACjB;EAAmB,OAAO;;EAC1B;EAAuB,QAAQ;;EAC/B;EAAyB,QAAQ;;;;;;;;;;wBAmDjB,SAAS,KAAK,GAClC,MAAM,OACN,MAAM,KAAK,KAAK,QAAQ,gBAAgB,QAAQ,oBAAoB,KACpE;EAAW;IACV,QAAQ,WAAW"}
@@ -4,15 +4,14 @@ import { Commitment } from "@solana/kit";
4
4
  type SignatureStatusesResponse = Awaited<ReturnType<ReturnType<SolanaRpcType["getSignatureStatuses"]>["send"]>>;
5
5
  /** Derived from the RPC type rather than hand-written, which removes every
6
6
  * `as SignatureStatus` cast. A `JitoRpcType` response assigns without one. */
7
- type SignatureStatus = NonNullable<SignatureStatusesResponse["value"][number]>;
7
+ export type SignatureStatus = NonNullable<SignatureStatusesResponse["value"][number]>;
8
8
  /** What a single RPC branch is allowed to report. Failure is a throw. */
9
- type ConfirmationOutcome<T> = {
9
+ export type ConfirmationOutcome<T> = {
10
10
  kind: "confirmed";
11
11
  value: T;
12
12
  } | {
13
13
  kind: "not-confirmed";
14
14
  };
15
- declare function isConfirmedCommitment(status: Commitment | string | null | undefined): boolean;
15
+ export declare function isConfirmedCommitment(status: Commitment | string | null | undefined): boolean;
16
16
  //#endregion
17
- export { ConfirmationOutcome, SignatureStatus, isConfirmedCommitment };
18
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/confirmation/types.ts"],"mappings":";;;KAGK,4BAA4B,QAC/B,WAAW,WAAW;;;KAKZ,kBAAkB,YAC5B;;KAIU,oBAAoB;EAC1B;EAAmB,OAAO;;EAC1B;;iBAEU,sBACd,QAAQ"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/confirmation/types.ts"],"mappings":";;;KAGK,4BAA4B,QAC/B,WAAW,WAAW;;;YAKZ,kBAAkB,YAC5B;;YAIU,oBAAoB;EAC1B;EAAmB,OAAO;;EAC1B;;wBAEU,sBACd,QAAQ"}
@@ -2,7 +2,7 @@ import { SolanaStepExecutorContext, SolanaStepExecutorOptions } from "../types.j
2
2
  import { BaseStepExecutor, ExecutionAction, LiFiStepExtended, SDKError, StepExecutorBaseContext, TaskPipeline } from "@lifi/sdk";
3
3
  import { WalletAccount } from "@wallet-standard/base";
4
4
  //#region src/core/SolanaStepExecutor.d.ts
5
- declare class SolanaStepExecutor extends BaseStepExecutor {
5
+ export declare class SolanaStepExecutor extends BaseStepExecutor {
6
6
  private wallet;
7
7
  private skipSimulation;
8
8
  constructor(options: SolanaStepExecutorOptions);
@@ -12,5 +12,4 @@ declare class SolanaStepExecutor extends BaseStepExecutor {
12
12
  override createPipeline: (context: SolanaStepExecutorContext) => TaskPipeline;
13
13
  }
14
14
  //#endregion
15
- export { SolanaStepExecutor };
16
15
  //# sourceMappingURL=SolanaStepExecutor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaStepExecutor.d.ts","names":[],"sources":["../../../src/core/SolanaStepExecutor.ts"],"mappings":";;;;cAsBa,2BAA2B;UAC9B;UACA;EAER,YAAY,SAAS;EAMrB,mBAAoB,MAAM,qBAAmB;WAepC,cACP,OAAO,OACP,OAAO,kBACP,SAAS,oBACR,QAAQ;WAEF,gBACP,aAAa,4BACZ,QAAQ;WAaF,iBACP,SAAS,8BACR"}
1
+ {"version":3,"file":"SolanaStepExecutor.d.ts","names":[],"sources":["../../../src/core/SolanaStepExecutor.ts"],"mappings":";;;;qBAsBa,2BAA2B;UAC9B;UACA;EAER,YAAY,SAAS;EAMrB,mBAAoB,MAAM,qBAAmB;WAepC,cACP,OAAO,OACP,OAAO,kBACP,SAAS,oBACR,QAAQ;WAEF,gBACP,aAAa,4BACZ,QAAQ;WAaF,iBACP,SAAS,8BACR"}
@@ -1,9 +1,8 @@
1
1
  import { SolanaStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/SolanaJitoWaitForTransactionTask.d.ts
4
- declare class SolanaJitoWaitForTransactionTask extends BaseStepExecutionTask {
4
+ export declare class SolanaJitoWaitForTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: SolanaStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { SolanaJitoWaitForTransactionTask };
9
8
  //# sourceMappingURL=SolanaJitoWaitForTransactionTask.d.ts.map