@lifi/sdk-provider-solana 4.1.2 → 4.2.0

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 (126) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/SolanaProvider.d.ts +1 -2
  3. package/dist/cjs/SolanaProvider.js +1 -0
  4. package/dist/cjs/SolanaProvider.js.map +1 -1
  5. package/dist/cjs/actions/getSNSAddress.d.ts +1 -2
  6. package/dist/cjs/actions/getSolanaBalance.d.ts +1 -2
  7. package/dist/cjs/actions/resolveSolanaAddress.d.ts +1 -2
  8. package/dist/cjs/actions/sendAndConfirmBundle.d.ts +1 -2
  9. package/dist/cjs/actions/sendAndConfirmTransaction.d.ts +1 -2
  10. package/dist/cjs/confirmation/abortableSleep.d.ts +1 -2
  11. package/dist/cjs/confirmation/confirmBundle.d.ts +3 -4
  12. package/dist/cjs/confirmation/confirmSignature.d.ts +2 -3
  13. package/dist/cjs/confirmation/createConfirmationDeadline.d.ts +10 -11
  14. package/dist/cjs/confirmation/pollUntilDeadline.d.ts +4 -5
  15. package/dist/cjs/confirmation/raceRpcs.d.ts +2 -3
  16. package/dist/cjs/confirmation/types.d.ts +3 -4
  17. package/dist/cjs/core/SolanaStepExecutor.d.ts +1 -2
  18. package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +1 -2
  19. package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.d.ts +1 -2
  20. package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +1 -2
  21. package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.d.ts +1 -2
  22. package/dist/cjs/core/tasks/readSignature.d.ts +1 -2
  23. package/dist/cjs/core/tasks/unwrapConfirmation.d.ts +2 -3
  24. package/dist/cjs/errors/parseSolanaErrors.d.ts +1 -2
  25. package/dist/cjs/rpc/jito/api/getBundleStatuses.d.ts +1 -2
  26. package/dist/cjs/rpc/jito/api/getTipAccounts.d.ts +1 -2
  27. package/dist/cjs/rpc/jito/api/sendBundle.d.ts +1 -2
  28. package/dist/cjs/rpc/jito/api/simulateBundle.d.ts +1 -2
  29. package/dist/cjs/rpc/jito/createJitoRpc.d.ts +4 -5
  30. package/dist/cjs/rpc/jito/types.d.ts +1 -2
  31. package/dist/cjs/rpc/registry.d.ts +7 -8
  32. package/dist/cjs/rpc/types.d.ts +2 -3
  33. package/dist/cjs/rpc/utils.d.ts +3 -4
  34. package/dist/cjs/types.d.ts +6 -7
  35. package/dist/cjs/utils/KeypairWallet.unit.helpers.d.ts +1 -2
  36. package/dist/cjs/utils/KeypairWalletAdapter.d.ts +1 -2
  37. package/dist/cjs/utils/base64ToUint8Array.d.ts +1 -2
  38. package/dist/cjs/utils/getTransactionLifetime.d.ts +2 -3
  39. package/dist/cjs/utils/getWalletFeature.d.ts +1 -2
  40. package/dist/cjs/utils/solanaErrorCause.d.ts +2 -3
  41. package/dist/cjs/version.d.ts +2 -3
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/cjs/version.js.map +1 -1
  44. package/dist/esm/SolanaProvider.d.ts +1 -2
  45. package/dist/esm/SolanaProvider.d.ts.map +1 -1
  46. package/dist/esm/SolanaProvider.js +1 -0
  47. package/dist/esm/SolanaProvider.js.map +1 -1
  48. package/dist/esm/actions/getSNSAddress.d.ts +1 -2
  49. package/dist/esm/actions/getSNSAddress.d.ts.map +1 -1
  50. package/dist/esm/actions/getSolanaBalance.d.ts +1 -2
  51. package/dist/esm/actions/getSolanaBalance.d.ts.map +1 -1
  52. package/dist/esm/actions/resolveSolanaAddress.d.ts +1 -2
  53. package/dist/esm/actions/resolveSolanaAddress.d.ts.map +1 -1
  54. package/dist/esm/actions/sendAndConfirmBundle.d.ts +1 -2
  55. package/dist/esm/actions/sendAndConfirmBundle.d.ts.map +1 -1
  56. package/dist/esm/actions/sendAndConfirmTransaction.d.ts +1 -2
  57. package/dist/esm/actions/sendAndConfirmTransaction.d.ts.map +1 -1
  58. package/dist/esm/confirmation/abortableSleep.d.ts +1 -2
  59. package/dist/esm/confirmation/abortableSleep.d.ts.map +1 -1
  60. package/dist/esm/confirmation/confirmBundle.d.ts +3 -4
  61. package/dist/esm/confirmation/confirmBundle.d.ts.map +1 -1
  62. package/dist/esm/confirmation/confirmSignature.d.ts +2 -3
  63. package/dist/esm/confirmation/confirmSignature.d.ts.map +1 -1
  64. package/dist/esm/confirmation/createConfirmationDeadline.d.ts +10 -11
  65. package/dist/esm/confirmation/createConfirmationDeadline.d.ts.map +1 -1
  66. package/dist/esm/confirmation/pollUntilDeadline.d.ts +4 -5
  67. package/dist/esm/confirmation/pollUntilDeadline.d.ts.map +1 -1
  68. package/dist/esm/confirmation/raceRpcs.d.ts +2 -3
  69. package/dist/esm/confirmation/raceRpcs.d.ts.map +1 -1
  70. package/dist/esm/confirmation/types.d.ts +3 -4
  71. package/dist/esm/confirmation/types.d.ts.map +1 -1
  72. package/dist/esm/core/SolanaStepExecutor.d.ts +1 -2
  73. package/dist/esm/core/SolanaStepExecutor.d.ts.map +1 -1
  74. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +1 -2
  75. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts.map +1 -1
  76. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts +1 -2
  77. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts.map +1 -1
  78. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +1 -2
  79. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts.map +1 -1
  80. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts +1 -2
  81. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts.map +1 -1
  82. package/dist/esm/core/tasks/readSignature.d.ts +1 -2
  83. package/dist/esm/core/tasks/readSignature.d.ts.map +1 -1
  84. package/dist/esm/core/tasks/unwrapConfirmation.d.ts +2 -3
  85. package/dist/esm/core/tasks/unwrapConfirmation.d.ts.map +1 -1
  86. package/dist/esm/errors/parseSolanaErrors.d.ts +1 -2
  87. package/dist/esm/errors/parseSolanaErrors.d.ts.map +1 -1
  88. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts +1 -2
  89. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts.map +1 -1
  90. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts +1 -2
  91. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts.map +1 -1
  92. package/dist/esm/rpc/jito/api/sendBundle.d.ts +1 -2
  93. package/dist/esm/rpc/jito/api/sendBundle.d.ts.map +1 -1
  94. package/dist/esm/rpc/jito/api/simulateBundle.d.ts +1 -2
  95. package/dist/esm/rpc/jito/api/simulateBundle.d.ts.map +1 -1
  96. package/dist/esm/rpc/jito/createJitoRpc.d.ts +4 -5
  97. package/dist/esm/rpc/jito/createJitoRpc.d.ts.map +1 -1
  98. package/dist/esm/rpc/jito/types.d.ts +1 -2
  99. package/dist/esm/rpc/jito/types.d.ts.map +1 -1
  100. package/dist/esm/rpc/registry.d.ts +7 -8
  101. package/dist/esm/rpc/registry.d.ts.map +1 -1
  102. package/dist/esm/rpc/types.d.ts +2 -3
  103. package/dist/esm/rpc/types.d.ts.map +1 -1
  104. package/dist/esm/rpc/utils.d.ts +3 -4
  105. package/dist/esm/rpc/utils.d.ts.map +1 -1
  106. package/dist/esm/types.d.ts +6 -7
  107. package/dist/esm/types.d.ts.map +1 -1
  108. package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts +1 -2
  109. package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts.map +1 -1
  110. package/dist/esm/utils/KeypairWalletAdapter.d.ts +1 -2
  111. package/dist/esm/utils/KeypairWalletAdapter.d.ts.map +1 -1
  112. package/dist/esm/utils/base64ToUint8Array.d.ts +1 -2
  113. package/dist/esm/utils/base64ToUint8Array.d.ts.map +1 -1
  114. package/dist/esm/utils/getTransactionLifetime.d.ts +2 -3
  115. package/dist/esm/utils/getTransactionLifetime.d.ts.map +1 -1
  116. package/dist/esm/utils/getWalletFeature.d.ts +1 -2
  117. package/dist/esm/utils/getWalletFeature.d.ts.map +1 -1
  118. package/dist/esm/utils/solanaErrorCause.d.ts +2 -3
  119. package/dist/esm/utils/solanaErrorCause.d.ts.map +1 -1
  120. package/dist/esm/version.d.ts +2 -3
  121. package/dist/esm/version.d.ts.map +1 -1
  122. package/dist/esm/version.js +1 -1
  123. package/dist/esm/version.js.map +1 -1
  124. package/package.json +3 -3
  125. package/src/SolanaProvider.ts +1 -0
  126. package/src/version.ts +1 -1
@@ -16,7 +16,7 @@ type GetBundleStatusesResponse = {
16
16
  /** Jito answers with `null` for a bundle id it does not know. */
17
17
  value: (BundleStatus | null)[];
18
18
  };
19
- type GetBundleStatusesApi = {
19
+ export type GetBundleStatusesApi = {
20
20
  /**
21
21
  * Returns the status of submitted bundle(s).
22
22
  * @see https://www.quicknode.com/docs/solana/getBundleStatuses
@@ -24,5 +24,4 @@ type GetBundleStatusesApi = {
24
24
  getBundleStatuses(bundleIds: string[], region?: JitoRegion): GetBundleStatusesResponse;
25
25
  };
26
26
  //#endregion
27
- export { GetBundleStatusesApi };
28
27
  //# sourceMappingURL=getBundleStatuses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBundleStatuses.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getBundleStatuses.ts"],"mappings":";;;KAIK;EACH;;EAEA,eAAe;EACf;EACA;EACA;;KAGG;EACH;IACE;;;EAGF,QAAQ;;KAGE;;;;;EAKV,kBAEE,qBAEA,SAAS,aACR"}
1
+ {"version":3,"file":"getBundleStatuses.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getBundleStatuses.ts"],"mappings":";;;KAIK;EACH;;EAEA,eAAe;EACf;EACA;EACA;;KAGG;EACH;IACE;;;EAGF,QAAQ;;YAGE;;;;;EAKV,kBAEE,qBAEA,SAAS,aACR"}
@@ -2,7 +2,7 @@ import { JitoRegion } from "../types.js";
2
2
  //#region src/rpc/jito/api/getTipAccounts.d.ts
3
3
  /** Array of tip account addresses (Solana public keys) */
4
4
  type GetTipAccountsResponse = string[];
5
- type GetTipAccountsApi = {
5
+ export type GetTipAccountsApi = {
6
6
  /**
7
7
  * Fetches the tip accounts designated for tip payments for bundles.
8
8
  * Returns an array of 8 tip account addresses that can receive tips for transaction prioritization.
@@ -11,5 +11,4 @@ type GetTipAccountsApi = {
11
11
  getTipAccounts(region?: JitoRegion): GetTipAccountsResponse;
12
12
  };
13
13
  //#endregion
14
- export { GetTipAccountsApi };
15
14
  //# sourceMappingURL=getTipAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTipAccounts.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getTipAccounts.ts"],"mappings":";;;KAGK;KAEO;;;;;;EAMV,eAEE,SAAS,aACR"}
1
+ {"version":3,"file":"getTipAccounts.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getTipAccounts.ts"],"mappings":";;;KAGK;YAEO;;;;;;EAMV,eAEE,SAAS,aACR"}
@@ -3,7 +3,7 @@ import { Base64EncodedWireTransaction } from "@solana/kit";
3
3
  //#region src/rpc/jito/api/sendBundle.d.ts
4
4
  /** Bundle ID returned on successful submission */
5
5
  type SendBundleResponse = string;
6
- type SendBundleApi = {
6
+ export type SendBundleApi = {
7
7
  /**
8
8
  * Submits a bundle of signed transactions (base-64 encoded) to the cluster for atomic processing.
9
9
  * If any transaction fails, the entire bundle is rejected.
@@ -18,5 +18,4 @@ type SendBundleApi = {
18
18
  sendBundle(transactions: Array<Base64EncodedWireTransaction>, region?: JitoRegion): SendBundleResponse;
19
19
  };
20
20
  //#endregion
21
- export { SendBundleApi };
22
21
  //# sourceMappingURL=sendBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/sendBundle.ts"],"mappings":";;;;KAKK;KAEO;;;;;;;;;;;;EAYV,WAEE,cAAc,MAAM,+BAEpB,SAAS,aACR"}
1
+ {"version":3,"file":"sendBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/sendBundle.ts"],"mappings":";;;;KAKK;YAEO;;;;;;;;;;;;EAYV,WAEE,cAAc,MAAM,+BAEpB,SAAS,aACR"}
@@ -36,7 +36,7 @@ type SimulateBundleResponse = {
36
36
  }>;
37
37
  };
38
38
  };
39
- type SimulateBundleApi = {
39
+ export type SimulateBundleApi = {
40
40
  /**
41
41
  * Simulates a Jito bundle - runs simulation on the bundle to check if it will succeed
42
42
  * @see https://www.quicknode.com/docs/solana/simulateBundle
@@ -57,5 +57,4 @@ type SimulateBundleApi = {
57
57
  }>): SimulateBundleResponse;
58
58
  };
59
59
  //#endregion
60
- export { SimulateBundleApi };
61
60
  //# sourceMappingURL=simulateBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulateBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/simulateBundle.ts"],"mappings":";;KAEK;EACH;EACA;;KAGG;EACH;EACA;EACA;EACA;EACA;;KAGG;EACH;IACE;IACA;;EAEF;IACE;MAAyB;QAAU;QAAgB;;;IACnD,oBAAoB;MAClB;MACA;MACA;MACA;QACE;QACA;;MAEF,sBAAsB;MACtB,uBAAuB;;;;KAKjB;;;;;EAKV,eACE,QAAQ;IACN,qBAAqB,MAAM;MAE7B,SAAS;;IAEP;;IAEA;;IAEA;;IAEA,8BAA8B;;IAE9B,+BAA+B;OAEhC"}
1
+ {"version":3,"file":"simulateBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/simulateBundle.ts"],"mappings":";;KAEK;EACH;EACA;;KAGG;EACH;EACA;EACA;EACA;EACA;;KAGG;EACH;IACE;IACA;;EAEF;IACE;MAAyB;QAAU;QAAgB;;;IACnD,oBAAoB;MAClB;MACA;MACA;MACA;QACE;QACA;;MAEF,sBAAsB;MACtB,uBAAuB;;;;YAKjB;;;;;EAKV,eACE,QAAQ;IACN,qBAAqB,MAAM;MAE7B,SAAS;;IAEP;;IAEA;;IAEA;;IAEA,8BAA8B;;IAE9B,+BAA+B;OAEhC"}
@@ -4,10 +4,9 @@ import { SendBundleApi } from "./api/sendBundle.js";
4
4
  import { SimulateBundleApi } from "./api/simulateBundle.js";
5
5
  import { ClusterUrl, Rpc, RpcTransport, SolanaRpcApi, createDefaultRpcTransport } from "@solana/kit";
6
6
  //#region src/rpc/jito/createJitoRpc.d.ts
7
- type JitoBundleApi = GetBundleStatusesApi & GetTipAccountsApi & SendBundleApi & SimulateBundleApi;
8
- type JitoRpcApi = JitoBundleApi & SolanaRpcApi;
9
- declare function createJitoRpcFromTransport<TTransport extends RpcTransport>(transport: TTransport): Rpc<JitoRpcApi>;
10
- declare function createJitoRpc<TClusterUrl extends ClusterUrl>(clusterUrl: TClusterUrl, config?: Omit<Parameters<typeof createDefaultRpcTransport<TClusterUrl>>[0], "url">): Rpc<JitoRpcApi>;
7
+ export type JitoBundleApi = GetBundleStatusesApi & GetTipAccountsApi & SendBundleApi & SimulateBundleApi;
8
+ export type JitoRpcApi = JitoBundleApi & SolanaRpcApi;
9
+ export declare function createJitoRpcFromTransport<TTransport extends RpcTransport>(transport: TTransport): Rpc<JitoRpcApi>;
10
+ export declare function createJitoRpc<TClusterUrl extends ClusterUrl>(clusterUrl: TClusterUrl, config?: Omit<Parameters<typeof createDefaultRpcTransport<TClusterUrl>>[0], "url">): Rpc<JitoRpcApi>;
11
11
  //#endregion
12
- export { JitoBundleApi, JitoRpcApi, createJitoRpc, createJitoRpcFromTransport };
13
12
  //# sourceMappingURL=createJitoRpc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createJitoRpc.d.ts","names":[],"sources":["../../../../src/rpc/jito/createJitoRpc.ts"],"mappings":";;;;;;KAeY,gBAAgB,uBAC1B,oBACA,gBACA;KAGU,aAAa,gBAAgB;iBAQzB,2BAA2B,mBAAmB,cAC5D,WAAW,aACV,IAAI;iBAQS,cAAc,oBAAoB,YAChD,YAAY,aACZ,SAAS,KACP,kBAAkB,0BAA0B,2BAG7C,IAAI"}
1
+ {"version":3,"file":"createJitoRpc.d.ts","names":[],"sources":["../../../../src/rpc/jito/createJitoRpc.ts"],"mappings":";;;;;;YAeY,gBAAgB,uBAC1B,oBACA,gBACA;YAGU,aAAa,gBAAgB;wBAQzB,2BAA2B,mBAAmB,cAC5D,WAAW,aACV,IAAI;wBAQS,cAAc,oBAAoB,YAChD,YAAY,aACZ,SAAS,KACP,kBAAkB,0BAA0B,2BAG7C,IAAI"}
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  * Available Jito regions for routing requests.
4
4
  */
5
- type JitoRegion = "mainnet" | "amsterdam" | "frankfurt" | "ny" | "tokyo" | "slc" | "london" | "singapore";
5
+ export type JitoRegion = "mainnet" | "amsterdam" | "frankfurt" | "ny" | "tokyo" | "slc" | "london" | "singapore";
6
6
  //#endregion
7
- export { JitoRegion };
8
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/rpc/jito/types.ts"],"mappings":";;;;KAGY"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/rpc/jito/types.ts"],"mappings":";;;;YAGY"}
@@ -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 +1 @@
1
- {"version":3,"file":"registry.d.ts","names":[],"sources":["../../../src/rpc/registry.ts"],"mappings":";;;;;KAuBY;;;;KAKA;EACV,SAAS;;EAET;;;;;cAMW;;;;;;;;cASA;;;;;;cA8EA,eACX,mBACC,QAAQ;;;;;cAiGE,gBACX,QAAQ,cACP,QAAQ;;;;;;cAYE,cACX,QAAQ,cACP;EAAU,MAAM;EAAe"}
1
+ {"version":3,"file":"registry.d.ts","names":[],"sources":["../../../src/rpc/registry.ts"],"mappings":";;;;;YAuBY;;;;YAKA;EACV,SAAS;;EAET;;;;;qBAMW;;;;;;;;qBASA;;;;;;qBA8EA,eACX,mBACC,QAAQ;;;;;qBAiGE,gBACX,QAAQ,cACP,QAAQ;;;;;;qBAYE,cACX,QAAQ,cACP;EAAU,MAAM;EAAe"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/rpc/types.ts"],"mappings":";;;KAGY,gBAAgB,kBAAkB;KAClC,cAAc,IAAI"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/rpc/types.ts"],"mappings":";;;YAGY,gBAAgB,kBAAkB;YAClC,cAAc,IAAI"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/rpc/utils.ts"],"mappings":";;;KAIK,QAAQ,QAAQ,GACnB,QAAQ,WACR,KAAK,KAAK,QAAQ,QAAQ,OACvB,QAAQ;;;;;;;;;;;;;;;;;;;;;iBAsBS,cAAc,GAAG,GACrC,MAAM,KACN,KAAK,KAAK,MAAM,QAAQ,KACvB,QAAQ;;;;;;;;;;;;;;;;;;;cA8CE,yBAAyB,QAAQ;;;;;;;;;;;;;;;;;;;cAqBjC,uBAAuB,QAAQ"}
1
+ {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/rpc/utils.ts"],"mappings":";;;KAIK,QAAQ,QAAQ,GACnB,QAAQ,WACR,KAAK,KAAK,QAAQ,QAAQ,OACvB,QAAQ;;;;;;;;;;;;;;;;;;;;;wBAsBS,cAAc,GAAG,GACrC,MAAM,KACN,KAAK,KAAK,MAAM,QAAQ,KACvB,QAAQ;;;;;;;;;;;;;;;;;;;qBA8CE,yBAAyB,QAAQ;;;;;;;;;;;;;;;;;;;qBAqBjC,uBAAuB,QAAQ"}
@@ -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 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":";;;;UASiB;EACf,kBAAkB,QAAQ;EAC1B;;UAGe;EACf,qBAAqB;;;;;EAKrB;;UAGe,kCACP,qBACN;EACF,QAAQ;EACR,eAAe;EACf;;UAGe,0BAA0B;EACzC,WAAW,SAAS;;iBAGN,iBACd,UAAU,cACT,YAAY;UAIE,kCAAkC;EACjD,QAAQ;EACR"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":";;;;iBASiB;EACf,kBAAkB,QAAQ;EAC1B;;iBAGe;EACf,qBAAqB;;;;;EAKrB;;iBAGe,kCACP,qBACN;EACF,QAAQ;EACR,eAAe;EACf;;iBAGe,0BAA0B;EACzC,WAAW,SAAS;;wBAGN,iBACd,UAAU,cACT,YAAY;iBAIE,kCAAkC;EACjD,QAAQ;EACR"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"KeypairWallet.unit.helpers.d.ts","names":[],"sources":["../../../src/utils/KeypairWallet.unit.helpers.ts"],"mappings":";cAKa,2BAAgC;EAC3C;EACA,WAAW"}
1
+ {"version":3,"file":"KeypairWallet.unit.helpers.d.ts","names":[],"sources":["../../../src/utils/KeypairWallet.unit.helpers.ts"],"mappings":";qBAKa,2BAAgC;EAC3C;EACA,WAAW"}
@@ -5,7 +5,7 @@ import { Wallet, WalletAccount } from "@wallet-standard/base";
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 +1 @@
1
- {"version":3,"file":"KeypairWalletAdapter.d.ts","names":[],"sources":["../../../src/utils/KeypairWalletAdapter.ts"],"mappings":";;;;;;;cAsBa,gCAAgC;;;;;UAKnC;UACA;mBACS;WAER;WACA;WACA;EAGT,YAAY;MAqBR;MAIA,qBAAqB;MAIrB,YAAY;EAUhB,WAAiB;EAejB,cAAoB;UAMN"}
1
+ {"version":3,"file":"KeypairWalletAdapter.d.ts","names":[],"sources":["../../../src/utils/KeypairWalletAdapter.ts"],"mappings":";;;;;;;qBAsBa,gCAAgC;;;;;UAKnC;UACA;mBACS;WAER;WACA;WACA;EAGT,YAAY;MAqBR;MAIA,qBAAqB;MAIrB,YAAY;EAUhB,WAAiB;EAejB,cAAoB;UAMN"}
@@ -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 +1 @@
1
- {"version":3,"file":"base64ToUint8Array.d.ts","names":[],"sources":["../../../src/utils/base64ToUint8Array.ts"],"mappings":";iBAAgB,mBAAmB,uBAAuB"}
1
+ {"version":3,"file":"base64ToUint8Array.d.ts","names":[],"sources":["../../../src/utils/base64ToUint8Array.ts"],"mappings":";wBAAgB,mBAAmB,uBAAuB"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"getTransactionLifetime.d.ts","names":[],"sources":["../../../src/utils/getTransactionLifetime.ts"],"mappings":";;KAOY;EACN;EAAmB,WAAW;;EAC9B;;EACA;;;;;;;;;iBAWgB,uBACpB,aAAa,cACZ,QAAQ"}
1
+ {"version":3,"file":"getTransactionLifetime.d.ts","names":[],"sources":["../../../src/utils/getTransactionLifetime.ts"],"mappings":";;YAOY;EACN;EAAmB,WAAW;;EAC9B;;EACA;;;;;;;;;wBAWgB,uBACpB,aAAa,cACZ,QAAQ"}
@@ -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 +1 @@
1
- {"version":3,"file":"getWalletFeature.d.ts","names":[],"sources":["../../../src/utils/getWalletFeature.ts"],"mappings":";;;KAaK;GACF,wBAAwB,oCAAoC;GAC5D,oBAAoB,gCAAgC;GACpD,+BAA+B,2CAA2C;GAC1E,eAAe,2BAA2B;;;;;;;;;;;;;;;;;;iBAmB7B,iBAAiB,gBAAgB,YAC/C,QAAQ,QACR,aAAa,IACZ,WAAW"}
1
+ {"version":3,"file":"getWalletFeature.d.ts","names":[],"sources":["../../../src/utils/getWalletFeature.ts"],"mappings":";;;KAaK;GACF,wBAAwB,oCAAoC;GAC5D,oBAAoB,gCAAgC;GACpD,+BAA+B,2CAA2C;GAC1E,eAAe,2BAA2B;;;;;;;;;;;;;;;;;;wBAmB7B,iBAAiB,gBAAgB,YAC/C,QAAQ,QACR,aAAa,IACZ,WAAW"}
@@ -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 +1 @@
1
- {"version":3,"file":"solanaErrorCause.d.ts","names":[],"sources":["../../../src/utils/solanaErrorCause.ts"],"mappings":";cAAa,sBAAuB;;;;;;cAavB,sCAAsC;WACxC;WACA;EAET,YAAY,cAAc"}
1
+ {"version":3,"file":"solanaErrorCause.d.ts","names":[],"sources":["../../../src/utils/solanaErrorCause.ts"],"mappings":";qBAAa,sBAAuB;;;;;;qBAavB,sCAAsC;WACxC;WACA;EAET,YAAY,cAAc"}
@@ -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.2";
2
+ export declare const name = "@lifi/sdk-provider-solana";
3
+ export declare const version = "4.2.0";
4
4
  //#endregion
5
- export { name, version };
6
5
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","names":[],"sources":["../../src/version.ts"],"mappings":";cAAa;cACA"}
1
+ {"version":3,"file":"version.d.ts","names":[],"sources":["../../src/version.ts"],"mappings":";qBAAa;qBACA"}
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  const name = "@lifi/sdk-provider-solana";
3
- const version = "4.1.2";
3
+ const version = "4.2.0";
4
4
  //#endregion
5
5
  export { name, version };
6
6
 
@@ -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.2'\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.0'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk-provider-solana",
3
- "version": "4.1.2",
3
+ "version": "4.2.0",
4
4
  "description": "LI.FI Solana SDK Provider for Any-to-Any Cross-Chain-Swap",
5
5
  "homepage": "https://github.com/lifinance/sdk",
6
6
  "bugs": {
@@ -28,8 +28,8 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@lifi/sdk": "4.6.1",
32
- "@solana/kit": "^8.0.0",
31
+ "@lifi/sdk": "4.7.0",
32
+ "@solana/kit": "^8.2.0",
33
33
  "@solana/wallet-standard-features": "^1.4.0",
34
34
  "@wallet-standard/base": "^1.1.1"
35
35
  },
@@ -19,6 +19,7 @@ export function SolanaProvider(
19
19
  return ChainType.SVM
20
20
  },
21
21
  isAddress,
22
+ isTokenAddress: isAddress,
22
23
  resolveAddress: resolveSolanaAddress,
23
24
  getBalance: getSolanaBalance,
24
25
  async getStepExecutor(
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk-provider-solana'
2
- export const version = '4.1.2'
2
+ export const version = '4.2.0'