@lifi/sdk-provider-solana 4.0.3 → 4.0.5

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 (110) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/SolanaProvider.d.ts +0 -1
  3. package/dist/cjs/actions/getSolanaBalance.d.ts +0 -1
  4. package/dist/cjs/actions/getSolanaBalance.js.map +1 -1
  5. package/dist/cjs/actions/sendAndConfirmBundle.d.ts +7 -8
  6. package/dist/cjs/actions/sendAndConfirmTransaction.d.ts +6 -7
  7. package/dist/cjs/core/SolanaStepExecutor.d.ts +0 -1
  8. package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +0 -1
  9. package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.d.ts +0 -1
  10. package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.js +6 -2
  11. package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.js.map +1 -1
  12. package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +0 -1
  13. package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.d.ts +0 -1
  14. package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.js +1 -4
  15. package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.js.map +1 -1
  16. package/dist/cjs/errors/parseSolanaErrors.d.ts +0 -1
  17. package/dist/cjs/rpc/jito/api/getBundleStatuses.d.ts +3 -4
  18. package/dist/cjs/rpc/jito/api/getTipAccounts.d.ts +4 -5
  19. package/dist/cjs/rpc/jito/api/sendBundle.d.ts +10 -11
  20. package/dist/cjs/rpc/jito/api/simulateBundle.d.ts +12 -8
  21. package/dist/cjs/rpc/jito/createJitoRpc.d.ts +0 -1
  22. package/dist/cjs/rpc/jito/types.d.ts +2 -2
  23. package/dist/cjs/rpc/registry.d.ts +11 -9
  24. package/dist/cjs/rpc/registry.js +16 -2
  25. package/dist/cjs/rpc/registry.js.map +1 -1
  26. package/dist/cjs/rpc/types.d.ts +0 -1
  27. package/dist/cjs/rpc/utils.d.ts +53 -54
  28. package/dist/cjs/types.d.ts +5 -1
  29. package/dist/cjs/types.js.map +1 -1
  30. package/dist/cjs/utils/KeypairWalletAdapter.d.ts +9 -10
  31. package/dist/cjs/utils/getWalletFeature.d.ts +15 -16
  32. package/dist/cjs/utils/solanaErrorCause.d.ts +4 -4
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/cjs/version.js.map +1 -1
  36. package/dist/esm/SolanaProvider.d.ts +0 -1
  37. package/dist/esm/SolanaProvider.d.ts.map +1 -1
  38. package/dist/esm/actions/getSNSAddress.d.ts.map +1 -1
  39. package/dist/esm/actions/getSolanaBalance.d.ts +0 -1
  40. package/dist/esm/actions/getSolanaBalance.d.ts.map +1 -1
  41. package/dist/esm/actions/resolveSolanaAddress.d.ts.map +1 -1
  42. package/dist/esm/actions/sendAndConfirmBundle.d.ts +7 -8
  43. package/dist/esm/actions/sendAndConfirmBundle.d.ts.map +1 -1
  44. package/dist/esm/actions/sendAndConfirmTransaction.d.ts +6 -7
  45. package/dist/esm/actions/sendAndConfirmTransaction.d.ts.map +1 -1
  46. package/dist/esm/core/SolanaStepExecutor.d.ts +0 -1
  47. package/dist/esm/core/SolanaStepExecutor.d.ts.map +1 -1
  48. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +0 -1
  49. package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts.map +1 -1
  50. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts +0 -1
  51. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts.map +1 -1
  52. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.js +6 -2
  53. package/dist/esm/core/tasks/SolanaSignAndExecuteTask.js.map +1 -1
  54. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +0 -1
  55. package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts.map +1 -1
  56. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts +0 -1
  57. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts.map +1 -1
  58. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.js +1 -4
  59. package/dist/esm/core/tasks/SolanaWaitForTransactionTask.js.map +1 -1
  60. package/dist/esm/errors/parseSolanaErrors.d.ts +0 -1
  61. package/dist/esm/errors/parseSolanaErrors.d.ts.map +1 -1
  62. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts +3 -4
  63. package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts.map +1 -1
  64. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts +4 -5
  65. package/dist/esm/rpc/jito/api/getTipAccounts.d.ts.map +1 -1
  66. package/dist/esm/rpc/jito/api/sendBundle.d.ts +10 -11
  67. package/dist/esm/rpc/jito/api/sendBundle.d.ts.map +1 -1
  68. package/dist/esm/rpc/jito/api/simulateBundle.d.ts +12 -8
  69. package/dist/esm/rpc/jito/api/simulateBundle.d.ts.map +1 -1
  70. package/dist/esm/rpc/jito/createJitoRpc.d.ts +0 -1
  71. package/dist/esm/rpc/jito/createJitoRpc.d.ts.map +1 -1
  72. package/dist/esm/rpc/jito/types.d.ts +2 -2
  73. package/dist/esm/rpc/jito/types.d.ts.map +1 -1
  74. package/dist/esm/rpc/registry.d.ts +11 -9
  75. package/dist/esm/rpc/registry.d.ts.map +1 -1
  76. package/dist/esm/rpc/registry.js +16 -2
  77. package/dist/esm/rpc/registry.js.map +1 -1
  78. package/dist/esm/rpc/types.d.ts +0 -1
  79. package/dist/esm/rpc/types.d.ts.map +1 -1
  80. package/dist/esm/rpc/utils.d.ts +53 -54
  81. package/dist/esm/rpc/utils.d.ts.map +1 -1
  82. package/dist/esm/types.d.ts +5 -1
  83. package/dist/esm/types.d.ts.map +1 -1
  84. package/dist/esm/types.js.map +1 -1
  85. package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts.map +1 -1
  86. package/dist/esm/utils/KeypairWalletAdapter.d.ts +9 -10
  87. package/dist/esm/utils/KeypairWalletAdapter.d.ts.map +1 -1
  88. package/dist/esm/utils/base64ToUint8Array.d.ts.map +1 -1
  89. package/dist/esm/utils/getWalletFeature.d.ts +15 -16
  90. package/dist/esm/utils/getWalletFeature.d.ts.map +1 -1
  91. package/dist/esm/utils/solanaErrorCause.d.ts +4 -4
  92. package/dist/esm/utils/solanaErrorCause.d.ts.map +1 -1
  93. package/dist/esm/version.d.ts +1 -1
  94. package/dist/esm/version.d.ts.map +1 -1
  95. package/dist/esm/version.js +1 -1
  96. package/dist/esm/version.js.map +1 -1
  97. package/package.json +2 -2
  98. package/src/core/tasks/SolanaSignAndExecuteTask.ts +9 -5
  99. package/src/core/tasks/SolanaWaitForTransactionTask.ts +5 -11
  100. package/src/rpc/registry.ts +18 -2
  101. package/src/types.ts +5 -0
  102. package/src/version.ts +1 -1
  103. package/dist/cjs/utils/shouldUseJitoBundle.d.ts +0 -8
  104. package/dist/cjs/utils/shouldUseJitoBundle.js +0 -12
  105. package/dist/cjs/utils/shouldUseJitoBundle.js.map +0 -1
  106. package/dist/esm/utils/shouldUseJitoBundle.d.ts +0 -8
  107. package/dist/esm/utils/shouldUseJitoBundle.d.ts.map +0 -1
  108. package/dist/esm/utils/shouldUseJitoBundle.js +0 -11
  109. package/dist/esm/utils/shouldUseJitoBundle.js.map +0 -1
  110. package/src/utils/shouldUseJitoBundle.ts +0 -18
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["ChainType"],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type SDKProvider,\n type StepExecutorContext,\n type StepExecutorOptions,\n} from '@lifi/sdk'\nimport type { Transaction } from '@solana/kit'\nimport type { Wallet, WalletAccount } from '@wallet-standard/base'\n\nexport interface SolanaProviderOptions {\n getWallet?: () => Promise<Wallet>\n skipSimulation?: boolean\n}\n\nexport interface SolanaTaskContext {\n signedTransactions?: Transaction[]\n}\n\nexport interface SolanaStepExecutorContext\n extends StepExecutorContext,\n SolanaTaskContext {\n wallet: Wallet\n walletAccount: WalletAccount\n skipSimulation: boolean\n}\n\nexport interface SolanaSDKProvider extends SDKProvider {\n setOptions(options: SolanaProviderOptions): void\n}\n\nexport function isSolanaProvider(\n provider: SDKProvider\n): provider is SolanaSDKProvider {\n return provider.type === ChainType.SVM\n}\n\nexport interface SolanaStepExecutorOptions extends StepExecutorOptions {\n wallet: Wallet\n skipSimulation?: boolean\n}\n"],"mappings":";;;AA8BA,SAAgB,iBACd,UAC+B;CAC/B,OAAO,SAAS,SAASA,UAAAA,UAAU;AACrC"}
1
+ {"version":3,"file":"types.js","names":["ChainType"],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type SDKProvider,\n type StepExecutorContext,\n type StepExecutorOptions,\n} from '@lifi/sdk'\nimport type { Transaction } from '@solana/kit'\nimport type { Wallet, WalletAccount } from '@wallet-standard/base'\n\nexport interface SolanaProviderOptions {\n getWallet?: () => Promise<Wallet>\n skipSimulation?: boolean\n}\n\nexport interface SolanaTaskContext {\n signedTransactions?: Transaction[]\n /**\n * Whether the backend returned a Jito bundle (array `transactionRequest.data`)\n * that must be submitted via `sendBundle` instead of `sendTransaction`.\n */\n isBundleExecution?: boolean\n}\n\nexport interface SolanaStepExecutorContext\n extends StepExecutorContext,\n SolanaTaskContext {\n wallet: Wallet\n walletAccount: WalletAccount\n skipSimulation: boolean\n}\n\nexport interface SolanaSDKProvider extends SDKProvider {\n setOptions(options: SolanaProviderOptions): void\n}\n\nexport function isSolanaProvider(\n provider: SDKProvider\n): provider is SolanaSDKProvider {\n return provider.type === ChainType.SVM\n}\n\nexport interface SolanaStepExecutorOptions extends StepExecutorOptions {\n wallet: Wallet\n skipSimulation?: boolean\n}\n"],"mappings":";;;AAmCA,SAAgB,iBACd,UAC+B;CAC/B,OAAO,SAAS,SAASA,UAAAA,UAAU;AACrC"}
@@ -1,22 +1,21 @@
1
1
  import { Wallet, WalletAccount } from "@wallet-standard/base";
2
2
  import { SolanaSignTransactionFeature } from "@solana/wallet-standard-features";
3
-
4
3
  //#region src/utils/KeypairWalletAdapter.d.ts
5
4
  /**
6
- * This keypair wallet adapter is unsafe to use on the frontend and is only included to provide an easy way for applications to test
7
- * Wallet Adapter without using a third-party wallet.
8
- */
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
+ * Wallet Adapter without using a third-party wallet.
7
+ */
9
8
  declare class KeypairWalletAdapter implements Wallet {
10
9
  /**
11
- * Storing a keypair locally like this is not safe because any application using this adapter could retrieve the
12
- * secret key, and because the keypair will be lost any time the wallet is disconnected or the window is refreshed.
13
- */
10
+ * Storing a keypair locally like this is not safe because any application using this adapter could retrieve the
11
+ * secret key, and because the keypair will be lost any time the wallet is disconnected or the window is refreshed.
12
+ */
14
13
  private _signer;
15
14
  private _account;
16
15
  private readonly _secretKeyBytes;
17
- readonly version = "1.0.0";
18
- readonly name = "Keypair Wallet";
19
- readonly icon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=";
16
+ readonly version: "1.0.0";
17
+ readonly name: "Keypair Wallet";
18
+ readonly icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=";
20
19
  constructor(secretKeyBase58: string);
21
20
  get chains(): readonly ["solana:mainnet", "solana:devnet", "solana:testnet"];
22
21
  get accounts(): readonly WalletAccount[];
@@ -1,6 +1,5 @@
1
1
  import { Wallet } from "@wallet-standard/base";
2
2
  import { SolanaSignAndSendTransaction, SolanaSignAndSendTransactionFeature, SolanaSignIn, SolanaSignInFeature, SolanaSignMessage, SolanaSignMessageFeature, SolanaSignTransaction, SolanaSignTransactionFeature } from "@solana/wallet-standard-features";
3
-
4
3
  //#region src/utils/getWalletFeature.d.ts
5
4
  type FeatureMap = {
6
5
  [SolanaSignTransaction]: SolanaSignTransactionFeature[typeof SolanaSignTransaction];
@@ -9,21 +8,21 @@ type FeatureMap = {
9
8
  [SolanaSignIn]: SolanaSignInFeature[typeof SolanaSignIn];
10
9
  };
11
10
  /**
12
- * Helper function to safely extract a feature's properties from a wallet.
13
- *
14
- * This handles the TypeScript union type issue where wallet.features is typed as a union
15
- * but at runtime is actually a record containing multiple features.
16
- *
17
- * @param wallet - The wallet instance
18
- * @param featureName - The feature identifier constant
19
- * @returns The feature's properties object
20
- * @throws Error if the wallet doesn't support the requested feature
21
- *
22
- * @example
23
- * import { SolanaSignTransaction } from '@solana/wallet-standard-features'
24
- *
25
- * const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction)
26
- */
11
+ * Helper function to safely extract a feature's properties from a wallet.
12
+ *
13
+ * This handles the TypeScript union type issue where wallet.features is typed as a union
14
+ * but at runtime is actually a record containing multiple features.
15
+ *
16
+ * @param wallet - The wallet instance
17
+ * @param featureName - The feature identifier constant
18
+ * @returns The feature's properties object
19
+ * @throws Error if the wallet doesn't support the requested feature
20
+ *
21
+ * @example
22
+ * import { SolanaSignTransaction } from '@solana/wallet-standard-features'
23
+ *
24
+ * const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction)
25
+ */
27
26
  declare function getWalletFeature<K extends keyof FeatureMap>(wallet: Wallet, featureName: K): FeatureMap[K];
28
27
  //#endregion
29
28
  export { getWalletFeature };
@@ -1,10 +1,10 @@
1
1
  //#region src/utils/solanaErrorCause.d.ts
2
2
  declare const safeStringifyBigInt: (value: unknown) => string;
3
3
  /**
4
- * Carries the structured payload of a failed Solana RPC simulation or
5
- * confirmation so consumers can inspect `err` and `logs` directly from
6
- * the thrown `TransactionError`'s `cause`, without re-simulating.
7
- */
4
+ * Carries the structured payload of a failed Solana RPC simulation or
5
+ * confirmation so consumers can inspect `err` and `logs` directly from
6
+ * the thrown `TransactionError`'s `cause`, without re-simulating.
7
+ */
8
8
  declare class SolanaTransactionDetailsError extends Error {
9
9
  readonly err: unknown;
10
10
  readonly logs: readonly string[] | null;
@@ -1,6 +1,6 @@
1
1
  //#region src/version.d.ts
2
2
  declare const name = "@lifi/sdk-provider-solana";
3
- declare const version = "4.0.3";
3
+ declare const version = "4.0.5";
4
4
  //#endregion
5
5
  export { name, version };
6
6
  //# 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.0.3";
4
+ const version = "4.0.5";
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.0.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.0.5'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
@@ -1,5 +1,4 @@
1
1
  import { SolanaProviderOptions, SolanaSDKProvider } from "./types.js";
2
-
3
2
  //#region src/SolanaProvider.d.ts
4
3
  declare function SolanaProvider(options?: SolanaProviderOptions): SolanaSDKProvider;
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":";;;iBAYgB,cAAA,CACd,OAAA,GAAU,qBAAA,GACT,iBAAA"}
1
+ {"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":";;iBAYgB,eACd,UAAU,wBACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":";cASa,aAAA,GACX,IAAA,aACC,OAAA"}
1
+ {"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":";cASa,gBACX,iBACC"}
@@ -1,5 +1,4 @@
1
1
  import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
2
-
3
2
  //#region src/actions/getSolanaBalance.d.ts
4
3
  declare const getSolanaBalance: (client: SDKClient, walletAddress: string, tokens: Token[]) => Promise<TokenAmount[]>;
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":";;;cAea,gBAAA,GACX,MAAA,EAAQ,SAAA,EACR,aAAA,UACA,MAAA,EAAQ,KAAA,OACP,OAAA,CAAQ,WAAA"}
1
+ {"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":";;cAea,mBACX,QAAQ,WACR,uBACA,QAAQ,YACP,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveSolanaAddress.d.ts","names":[],"sources":["../../../src/actions/resolveSolanaAddress.ts"],"mappings":";iBAEsB,oBAAA,CACpB,IAAA,WACC,OAAA"}
1
+ {"version":3,"file":"resolveSolanaAddress.d.ts","names":[],"sources":["../../../src/actions/resolveSolanaAddress.ts"],"mappings":";iBAEsB,qBACpB,eACC"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Commitment, Signature, Transaction, TransactionError as TransactionError$1 } from "@solana/kit";
3
-
4
3
  //#region src/actions/sendAndConfirmBundle.d.ts
5
4
  type SignatureStatus = {
6
5
  slot: bigint;
@@ -19,13 +18,13 @@ type BundleResult = {
19
18
  signatureResults: (SignatureStatus | null)[];
20
19
  };
21
20
  /**
22
- * Send and confirm a bundle of transactions using Jito.
23
- * Automatically selects a Jito-enabled RPC connection and polls for confirmation
24
- * across multiple Jito RPCs in parallel.
25
- * @param client - The SDK client.
26
- * @param signedTransactions - Array of signed transactions to bundle.
27
- * @returns BundleResult containing Bundle ID, transaction signatures, and confirmation results.
28
- */
21
+ * Send and confirm a bundle of transactions using Jito.
22
+ * Automatically selects a Jito-enabled RPC connection and polls for confirmation
23
+ * across multiple Jito RPCs in parallel.
24
+ * @param client - The SDK client.
25
+ * @param signedTransactions - Array of signed transactions to bundle.
26
+ * @returns BundleResult containing Bundle ID, transaction signatures, and confirmation results.
27
+ */
29
28
  declare function sendAndConfirmBundle(client: SDKClient, signedTransactions: Transaction[]): Promise<BundleResult>;
30
29
  //#endregion
31
30
  export { BundleResult, sendAndConfirmBundle };
@@ -1 +1 @@
1
- {"version":3,"file":"sendAndConfirmBundle.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmBundle.ts"],"mappings":";;;;KAWK,eAAA;EACH,IAAA;EACA,aAAA;EACA,GAAA,EAAK,kBAAA;EACL,kBAAA,EAAoB,UAAA;EACpB,MAAA,EAAQ,QAAA;IAAW,GAAA,EAAK,kBAAA;EAAA,KAAsB,QAAA;IAAW,EAAA;EAAA;AAAA;AAAA,KAG/C,YAAA;EACV,QAAA;EACA,YAAA,EAAc,SAAA;EACd,gBAAA,GAAmB,eAAA;AAAA;;;;;;;;;iBAaC,oBAAA,CACpB,MAAA,EAAQ,SAAA,EACR,kBAAA,EAAoB,WAAA,KACnB,OAAA,CAAQ,YAAA"}
1
+ {"version":3,"file":"sendAndConfirmBundle.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmBundle.ts"],"mappings":";;;KAWK;EACH;EACA;EACA,KAAK;EACL,oBAAoB;EACpB,QAAQ;IAAW,KAAK;OAAsB;IAAW;;;KAG/C;EACV;EACA,cAAc;EACd,mBAAmB;;;;;;;;;;iBAaC,qBACpB,QAAQ,WACR,oBAAoB,gBACnB,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Commitment, Transaction, TransactionError as TransactionError$1 } from "@solana/kit";
3
-
4
3
  //#region src/actions/sendAndConfirmTransaction.d.ts
5
4
  type SignatureStatus = {
6
5
  slot: bigint;
@@ -18,12 +17,12 @@ type ConfirmedTransactionResult = {
18
17
  txSignature: string;
19
18
  };
20
19
  /**
21
- * Sends a Solana transaction to multiple RPC endpoints and returns the confirmation
22
- * as soon as any of them confirm the transaction.
23
- * @param client - The SDK client.
24
- * @param signedTransaction - The signed transaction to send.
25
- * @returns - The confirmation result of the transaction.
26
- */
20
+ * Sends a Solana transaction to multiple RPC endpoints and returns the confirmation
21
+ * as soon as any of them confirm the transaction.
22
+ * @param client - The SDK client.
23
+ * @param signedTransaction - The signed transaction to send.
24
+ * @returns - The confirmation result of the transaction.
25
+ */
27
26
  declare function sendAndConfirmTransaction(client: SDKClient, signedTransaction: Transaction): Promise<ConfirmedTransactionResult>;
28
27
  //#endregion
29
28
  export { sendAndConfirmTransaction };
@@ -1 +1 @@
1
- {"version":3,"file":"sendAndConfirmTransaction.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmTransaction.ts"],"mappings":";;;;KAUK,eAAA;EACH,IAAA;EACA,aAAA;EACA,GAAA,EAAK,kBAAA;EACL,kBAAA,EAAoB,UAAA;EACpB,MAAA,EAAQ,QAAA;IAAW,GAAA,EAAK,kBAAA;EAAA,KAAsB,QAAA;IAAW,EAAA;EAAA;AAAA;AAAA,KAGtD,0BAAA;EACH,eAAA,EAAiB,eAAA;EACjB,WAAA;AAAA;;;;;;;;iBAcoB,yBAAA,CACpB,MAAA,EAAQ,SAAA,EACR,iBAAA,EAAmB,WAAA,GAClB,OAAA,CAAQ,0BAAA"}
1
+ {"version":3,"file":"sendAndConfirmTransaction.d.ts","names":[],"sources":["../../../src/actions/sendAndConfirmTransaction.ts"],"mappings":";;;KAUK;EACH;EACA;EACA,KAAK;EACL,oBAAoB;EACpB,QAAQ;IAAW,KAAK;OAAsB;IAAW;;;KAGtD;EACH,iBAAiB;EACjB;;;;;;;;;iBAcoB,0BACpB,QAAQ,WACR,mBAAmB,cAClB,QAAQ"}
@@ -1,7 +1,6 @@
1
1
  import { SolanaStepExecutorContext, SolanaStepExecutorOptions } from "../types.js";
2
2
  import { BaseStepExecutor, ExecutionAction, LiFiStepExtended, SDKError, StepExecutorBaseContext, TaskPipeline } from "@lifi/sdk";
3
3
  import { WalletAccount } from "@wallet-standard/base";
4
-
5
4
  //#region src/core/SolanaStepExecutor.d.ts
6
5
  declare class SolanaStepExecutor extends BaseStepExecutor {
7
6
  private wallet;
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaStepExecutor.d.ts","names":[],"sources":["../../../src/core/SolanaStepExecutor.ts"],"mappings":";;;;;cAsBa,kBAAA,SAA2B,gBAAA;EAAA,QAC9B,MAAA;EAAA,QACA,cAAA;EAER,WAAA,CAAY,OAAA,EAAS,yBAAA;EAMrB,gBAAA,GAAoB,IAAA,EAAM,gBAAA,KAAmB,aAAA;EAAA,SAepC,WAAA,GACP,KAAA,EAAO,KAAA,EACP,IAAA,GAAO,gBAAA,EACP,MAAA,GAAS,eAAA,KACR,OAAA,CAAQ,QAAA;EAAA,SAEF,aAAA,GACP,WAAA,EAAa,uBAAA,KACZ,OAAA,CAAQ,yBAAA;EAAA,SAaF,cAAA,GACP,OAAA,EAAS,yBAAA,KACR,YAAA;AAAA"}
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,6 +1,5 @@
1
1
  import { SolanaStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
-
4
3
  //#region src/core/tasks/SolanaJitoWaitForTransactionTask.d.ts
5
4
  declare class SolanaJitoWaitForTransactionTask extends BaseStepExecutionTask {
6
5
  run(context: SolanaStepExecutorContext): Promise<TaskResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaJitoWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaJitoWaitForTransactionTask.ts"],"mappings":";;;;cAUa,gCAAA,SAAyC,qBAAA;EACpD,GAAA,CAAU,OAAA,EAAS,yBAAA,GAA4B,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"SolanaJitoWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaJitoWaitForTransactionTask.ts"],"mappings":";;;cAUa,yCAAyC;EACpD,IAAU,SAAS,4BAA4B,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SolanaStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
-
4
3
  //#region src/core/tasks/SolanaSignAndExecuteTask.d.ts
5
4
  declare class SolanaSignAndExecuteTask extends BaseStepExecutionTask {
6
5
  run(context: SolanaStepExecutorContext): Promise<TaskResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaSignAndExecuteTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaSignAndExecuteTask.ts"],"mappings":";;;;cAca,wBAAA,SAAiC,qBAAA;EAC5C,GAAA,CAAU,OAAA,EAAS,yBAAA,GAA4B,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"SolanaSignAndExecuteTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaSignAndExecuteTask.ts"],"mappings":";;;cAca,iCAAiC;EAC5C,IAAU,SAAS,4BAA4B,QAAQ"}
@@ -10,7 +10,8 @@ var SolanaSignAndExecuteTask = class extends BaseStepExecutionTask {
10
10
  const action = statusManager.findAction(step, isBridgeExecution ? "CROSS_CHAIN" : "SWAP");
11
11
  if (!action) throw new TransactionError(LiFiErrorCode.TransactionUnprepared, "Unable to prepare transaction. Action not found.");
12
12
  const transactionRequestData = await getTransactionRequestData(step, executionOptions);
13
- const transactionBytesArray = (Array.isArray(transactionRequestData) ? transactionRequestData : [transactionRequestData]).map((data) => base64ToUint8Array(data));
13
+ const isBundleExecution = Array.isArray(transactionRequestData);
14
+ const transactionBytesArray = (isBundleExecution ? transactionRequestData : [transactionRequestData]).map((data) => base64ToUint8Array(data));
14
15
  const signedTransactionOutputs = await withTimeout(async () => {
15
16
  const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction);
16
17
  return signTransaction(...transactionBytesArray.map((transaction) => ({
@@ -26,7 +27,10 @@ var SolanaSignAndExecuteTask = class extends BaseStepExecutionTask {
26
27
  const transactionCodec = getTransactionCodec();
27
28
  return {
28
29
  status: "COMPLETED",
29
- context: { signedTransactions: signedTransactionOutputs.map((output) => transactionCodec.decode(output.signedTransaction)) }
30
+ context: {
31
+ signedTransactions: signedTransactionOutputs.map((output) => transactionCodec.decode(output.signedTransaction)),
32
+ isBundleExecution
33
+ }
30
34
  };
31
35
  }
32
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaSignAndExecuteTask.js","names":[],"sources":["../../../../src/core/tasks/SolanaSignAndExecuteTask.ts"],"sourcesContent":["import {\n BaseStepExecutionTask,\n getTransactionRequestData,\n LiFiErrorCode,\n type TaskResult,\n TransactionError,\n withTimeout,\n} from '@lifi/sdk'\nimport { getTransactionCodec } from '@solana/kit'\nimport { SolanaSignTransaction } from '@solana/wallet-standard-features'\nimport type { SolanaStepExecutorContext } from '../../types.js'\nimport { base64ToUint8Array } from '../../utils/base64ToUint8Array.js'\nimport { getWalletFeature } from '../../utils/getWalletFeature.js'\n\nexport class SolanaSignAndExecuteTask extends BaseStepExecutionTask {\n async run(context: SolanaStepExecutorContext): Promise<TaskResult> {\n const {\n step,\n wallet,\n walletAccount,\n statusManager,\n executionOptions,\n isBridgeExecution,\n } = context\n\n const action = statusManager.findAction(\n step,\n isBridgeExecution ? 'CROSS_CHAIN' : 'SWAP'\n )\n if (!action) {\n throw new TransactionError(\n LiFiErrorCode.TransactionUnprepared,\n 'Unable to prepare transaction. Action not found.'\n )\n }\n\n const transactionRequestData = await getTransactionRequestData(\n step,\n executionOptions\n )\n\n // Handle both single transaction (string) and multiple transactions (array)\n const transactionDataArray = Array.isArray(transactionRequestData)\n ? transactionRequestData\n : [transactionRequestData]\n\n const transactionBytesArray = transactionDataArray.map((data) =>\n base64ToUint8Array(data)\n )\n\n const signedTransactionOutputs = await withTimeout(\n async () => {\n const { signTransaction } = getWalletFeature(\n wallet,\n SolanaSignTransaction\n )\n // Spread the inputs to sign all transactions at once\n return signTransaction(\n ...transactionBytesArray.map((transaction) => ({\n account: walletAccount,\n transaction,\n }))\n )\n },\n {\n // https://solana.com/docs/advanced/confirmation#transaction-expiration\n // Use 2 minutes to account for fluctuations\n timeout: 120_000,\n errorInstance: new TransactionError(\n LiFiErrorCode.TransactionExpired,\n 'Transaction has expired: blockhash is no longer recent enough.'\n ),\n }\n )\n\n if (signedTransactionOutputs.length === 0) {\n throw new TransactionError(\n LiFiErrorCode.TransactionUnprepared,\n 'No signed transaction returned from signer.'\n )\n }\n\n statusManager.updateAction(step, action.type, 'PENDING', {\n signedAt: Date.now(),\n })\n\n const transactionCodec = getTransactionCodec()\n\n // Decode all signed transactions\n const signedTransactions = signedTransactionOutputs.map((output) =>\n transactionCodec.decode(output.signedTransaction)\n )\n\n return {\n status: 'COMPLETED',\n context: { signedTransactions },\n }\n }\n}\n"],"mappings":";;;;;;AAcA,IAAa,2BAAb,cAA8C,sBAAsB;CAClE,MAAM,IAAI,SAAyD;EACjE,MAAM,EACJ,MACA,QACA,eACA,eACA,kBACA,sBACE;EAEJ,MAAM,SAAS,cAAc,WAC3B,MACA,oBAAoB,gBAAgB,MACtC;EACA,IAAI,CAAC,QACH,MAAM,IAAI,iBACR,cAAc,uBACd,kDACF;EAGF,MAAM,yBAAyB,MAAM,0BACnC,MACA,gBACF;EAOA,MAAM,yBAJuB,MAAM,QAAQ,sBAAsB,IAC7D,yBACA,CAAC,sBAAsB,EAAA,CAEwB,KAAK,SACtD,mBAAmB,IAAI,CACzB;EAEA,MAAM,2BAA2B,MAAM,YACrC,YAAY;GACV,MAAM,EAAE,oBAAoB,iBAC1B,QACA,qBACF;GAEA,OAAO,gBACL,GAAG,sBAAsB,KAAK,iBAAiB;IAC7C,SAAS;IACT;GACF,EAAE,CACJ;EACF,GACA;GAGE,SAAS;GACT,eAAe,IAAI,iBACjB,cAAc,oBACd,gEACF;EACF,CACF;EAEA,IAAI,yBAAyB,WAAW,GACtC,MAAM,IAAI,iBACR,cAAc,uBACd,6CACF;EAGF,cAAc,aAAa,MAAM,OAAO,MAAM,WAAW,EACvD,UAAU,KAAK,IAAI,EACrB,CAAC;EAED,MAAM,mBAAmB,oBAAoB;EAO7C,OAAO;GACL,QAAQ;GACR,SAAS,EAAE,oBANc,yBAAyB,KAAK,WACvD,iBAAiB,OAAO,OAAO,iBAAiB,CAKpB,EAAE;EAChC;CACF;AACF"}
1
+ {"version":3,"file":"SolanaSignAndExecuteTask.js","names":[],"sources":["../../../../src/core/tasks/SolanaSignAndExecuteTask.ts"],"sourcesContent":["import {\n BaseStepExecutionTask,\n getTransactionRequestData,\n LiFiErrorCode,\n type TaskResult,\n TransactionError,\n withTimeout,\n} from '@lifi/sdk'\nimport { getTransactionCodec } from '@solana/kit'\nimport { SolanaSignTransaction } from '@solana/wallet-standard-features'\nimport type { SolanaStepExecutorContext } from '../../types.js'\nimport { base64ToUint8Array } from '../../utils/base64ToUint8Array.js'\nimport { getWalletFeature } from '../../utils/getWalletFeature.js'\n\nexport class SolanaSignAndExecuteTask extends BaseStepExecutionTask {\n async run(context: SolanaStepExecutorContext): Promise<TaskResult> {\n const {\n step,\n wallet,\n walletAccount,\n statusManager,\n executionOptions,\n isBridgeExecution,\n } = context\n\n const action = statusManager.findAction(\n step,\n isBridgeExecution ? 'CROSS_CHAIN' : 'SWAP'\n )\n if (!action) {\n throw new TransactionError(\n LiFiErrorCode.TransactionUnprepared,\n 'Unable to prepare transaction. Action not found.'\n )\n }\n\n const transactionRequestData = (await getTransactionRequestData(\n step,\n executionOptions\n )) as string | string[]\n\n // The backend returns an array when it produced a Jito bundle and a string\n // for a single transaction. The shape determines how we submit it later:\n // array -> sendBundle, string -> sendTransaction.\n const isBundleExecution = Array.isArray(transactionRequestData)\n\n const transactionDataArray = isBundleExecution\n ? transactionRequestData\n : [transactionRequestData]\n\n const transactionBytesArray = transactionDataArray.map((data) =>\n base64ToUint8Array(data)\n )\n\n const signedTransactionOutputs = await withTimeout(\n async () => {\n const { signTransaction } = getWalletFeature(\n wallet,\n SolanaSignTransaction\n )\n // Spread the inputs to sign all transactions at once\n return signTransaction(\n ...transactionBytesArray.map((transaction) => ({\n account: walletAccount,\n transaction,\n }))\n )\n },\n {\n // https://solana.com/docs/advanced/confirmation#transaction-expiration\n // Use 2 minutes to account for fluctuations\n timeout: 120_000,\n errorInstance: new TransactionError(\n LiFiErrorCode.TransactionExpired,\n 'Transaction has expired: blockhash is no longer recent enough.'\n ),\n }\n )\n\n if (signedTransactionOutputs.length === 0) {\n throw new TransactionError(\n LiFiErrorCode.TransactionUnprepared,\n 'No signed transaction returned from signer.'\n )\n }\n\n statusManager.updateAction(step, action.type, 'PENDING', {\n signedAt: Date.now(),\n })\n\n const transactionCodec = getTransactionCodec()\n\n // Decode all signed transactions\n const signedTransactions = signedTransactionOutputs.map((output) =>\n transactionCodec.decode(output.signedTransaction)\n )\n\n return {\n status: 'COMPLETED',\n context: { signedTransactions, isBundleExecution },\n }\n }\n}\n"],"mappings":";;;;;;AAcA,IAAa,2BAAb,cAA8C,sBAAsB;CAClE,MAAM,IAAI,SAAyD;EACjE,MAAM,EACJ,MACA,QACA,eACA,eACA,kBACA,sBACE;EAEJ,MAAM,SAAS,cAAc,WAC3B,MACA,oBAAoB,gBAAgB,MACtC;EACA,IAAI,CAAC,QACH,MAAM,IAAI,iBACR,cAAc,uBACd,kDACF;EAGF,MAAM,yBAA0B,MAAM,0BACpC,MACA,gBACF;EAKA,MAAM,oBAAoB,MAAM,QAAQ,sBAAsB;EAM9D,MAAM,yBAJuB,oBACzB,yBACA,CAAC,sBAAsB,EAAA,CAEwB,KAAK,SACtD,mBAAmB,IAAI,CACzB;EAEA,MAAM,2BAA2B,MAAM,YACrC,YAAY;GACV,MAAM,EAAE,oBAAoB,iBAC1B,QACA,qBACF;GAEA,OAAO,gBACL,GAAG,sBAAsB,KAAK,iBAAiB;IAC7C,SAAS;IACT;GACF,EAAE,CACJ;EACF,GACA;GAGE,SAAS;GACT,eAAe,IAAI,iBACjB,cAAc,oBACd,gEACF;EACF,CACF;EAEA,IAAI,yBAAyB,WAAW,GACtC,MAAM,IAAI,iBACR,cAAc,uBACd,6CACF;EAGF,cAAc,aAAa,MAAM,OAAO,MAAM,WAAW,EACvD,UAAU,KAAK,IAAI,EACrB,CAAC;EAED,MAAM,mBAAmB,oBAAoB;EAO7C,OAAO;GACL,QAAQ;GACR,SAAS;IAAE,oBANc,yBAAyB,KAAK,WACvD,iBAAiB,OAAO,OAAO,iBAAiB,CAKpB;IAAG;GAAkB;EACnD;CACF;AACF"}
@@ -1,6 +1,5 @@
1
1
  import { SolanaStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
-
4
3
  //#region src/core/tasks/SolanaStandardWaitForTransactionTask.d.ts
5
4
  declare class SolanaStandardWaitForTransactionTask extends BaseStepExecutionTask {
6
5
  run(context: SolanaStepExecutorContext): Promise<TaskResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaStandardWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaStandardWaitForTransactionTask.ts"],"mappings":";;;;cAYa,oCAAA,SAA6C,qBAAA;EACxD,GAAA,CAAU,OAAA,EAAS,yBAAA,GAA4B,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"SolanaStandardWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaStandardWaitForTransactionTask.ts"],"mappings":";;;cAYa,6CAA6C;EACxD,IAAU,SAAS,4BAA4B,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SolanaStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
-
4
3
  //#region src/core/tasks/SolanaWaitForTransactionTask.d.ts
5
4
  declare class SolanaWaitForTransactionTask extends BaseStepExecutionTask {
6
5
  run(context: SolanaStepExecutorContext): Promise<TaskResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaWaitForTransactionTask.ts"],"mappings":";;;;cAMa,4BAAA,SAAqC,qBAAA;EAChD,GAAA,CAAU,OAAA,EAAS,yBAAA,GAA4B,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"SolanaWaitForTransactionTask.d.ts","names":[],"sources":["../../../../src/core/tasks/SolanaWaitForTransactionTask.ts"],"mappings":";;;cAKa,qCAAqC;EAChD,IAAU,SAAS,4BAA4B,QAAQ"}
@@ -1,13 +1,10 @@
1
- import { shouldUseJitoBundle } from "../../utils/shouldUseJitoBundle.js";
2
1
  import { SolanaJitoWaitForTransactionTask } from "./SolanaJitoWaitForTransactionTask.js";
3
2
  import { SolanaStandardWaitForTransactionTask } from "./SolanaStandardWaitForTransactionTask.js";
4
3
  import { BaseStepExecutionTask } from "@lifi/sdk";
5
4
  //#region src/core/tasks/SolanaWaitForTransactionTask.ts
6
5
  var SolanaWaitForTransactionTask = class extends BaseStepExecutionTask {
7
6
  async run(context) {
8
- const { client, signedTransactions: contextSignedTransactions } = context;
9
- const signedTransactions = contextSignedTransactions ?? [];
10
- if (shouldUseJitoBundle(client.config.routeOptions, signedTransactions)) return new SolanaJitoWaitForTransactionTask().run(context);
7
+ if (context.isBundleExecution) return new SolanaJitoWaitForTransactionTask().run(context);
11
8
  return new SolanaStandardWaitForTransactionTask().run(context);
12
9
  }
13
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SolanaWaitForTransactionTask.js","names":[],"sources":["../../../../src/core/tasks/SolanaWaitForTransactionTask.ts"],"sourcesContent":["import { BaseStepExecutionTask, type TaskResult } from '@lifi/sdk'\nimport type { SolanaStepExecutorContext } from '../../types.js'\nimport { shouldUseJitoBundle } from '../../utils/shouldUseJitoBundle.js'\nimport { SolanaJitoWaitForTransactionTask } from './SolanaJitoWaitForTransactionTask.js'\nimport { SolanaStandardWaitForTransactionTask } from './SolanaStandardWaitForTransactionTask.js'\n\nexport class SolanaWaitForTransactionTask extends BaseStepExecutionTask {\n async run(context: SolanaStepExecutorContext): Promise<TaskResult> {\n const { client, signedTransactions: contextSignedTransactions } = context\n\n const signedTransactions = contextSignedTransactions ?? []\n\n const useJitoBundle = shouldUseJitoBundle(\n client.config.routeOptions,\n signedTransactions\n )\n\n if (useJitoBundle) {\n return new SolanaJitoWaitForTransactionTask().run(context)\n }\n return new SolanaStandardWaitForTransactionTask().run(context)\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,+BAAb,cAAkD,sBAAsB;CACtE,MAAM,IAAI,SAAyD;EACjE,MAAM,EAAE,QAAQ,oBAAoB,8BAA8B;EAElE,MAAM,qBAAqB,6BAA6B,CAAC;EAOzD,IALsB,oBACpB,OAAO,OAAO,cACd,kBAGc,GACd,OAAO,IAAI,iCAAiC,CAAC,CAAC,IAAI,OAAO;EAE3D,OAAO,IAAI,qCAAqC,CAAC,CAAC,IAAI,OAAO;CAC/D;AACF"}
1
+ {"version":3,"file":"SolanaWaitForTransactionTask.js","names":[],"sources":["../../../../src/core/tasks/SolanaWaitForTransactionTask.ts"],"sourcesContent":["import { BaseStepExecutionTask, type TaskResult } from '@lifi/sdk'\nimport type { SolanaStepExecutorContext } from '../../types.js'\nimport { SolanaJitoWaitForTransactionTask } from './SolanaJitoWaitForTransactionTask.js'\nimport { SolanaStandardWaitForTransactionTask } from './SolanaStandardWaitForTransactionTask.js'\n\nexport class SolanaWaitForTransactionTask extends BaseStepExecutionTask {\n async run(context: SolanaStepExecutorContext): Promise<TaskResult> {\n // The submission method is determined by the shape of the backend's\n // `transactionRequest.data` (resolved in SolanaSignAndExecuteTask):\n // a bundle (array) must go through `sendBundle`, a single transaction\n // (string) through `sendTransaction`.\n if (context.isBundleExecution) {\n return new SolanaJitoWaitForTransactionTask().run(context)\n }\n return new SolanaStandardWaitForTransactionTask().run(context)\n }\n}\n"],"mappings":";;;;AAKA,IAAa,+BAAb,cAAkD,sBAAsB;CACtE,MAAM,IAAI,SAAyD;EAKjE,IAAI,QAAQ,mBACV,OAAO,IAAI,iCAAiC,CAAC,CAAC,IAAI,OAAO;EAE3D,OAAO,IAAI,qCAAqC,CAAC,CAAC,IAAI,OAAO;CAC/D;AACF"}
@@ -1,5 +1,4 @@
1
1
  import { ExecutionAction, LiFiStep, SDKError } from "@lifi/sdk";
2
-
3
2
  //#region src/errors/parseSolanaErrors.d.ts
4
3
  declare const parseSolanaErrors: (e: Error, step?: LiFiStep, action?: ExecutionAction) => Promise<SDKError>;
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"parseSolanaErrors.d.ts","names":[],"sources":["../../../src/errors/parseSolanaErrors.ts"],"mappings":";;;cAWa,iBAAA,GACX,CAAA,EAAG,KAAA,EACH,IAAA,GAAO,QAAA,EACP,MAAA,GAAS,eAAA,KACR,OAAA,CAAQ,QAAA"}
1
+ {"version":3,"file":"parseSolanaErrors.d.ts","names":[],"sources":["../../../src/errors/parseSolanaErrors.ts"],"mappings":";;cAWa,oBACX,GAAG,OACH,OAAO,UACP,SAAS,oBACR,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { JitoRegion } from "../types.js";
2
2
  import { Signature } from "@solana/kit";
3
-
4
3
  //#region src/rpc/jito/api/getBundleStatuses.d.ts
5
4
  type BundleStatus = {
6
5
  bundle_id: string;
@@ -17,9 +16,9 @@ type GetBundleStatusesResponse = {
17
16
  };
18
17
  type GetBundleStatusesApi = {
19
18
  /**
20
- * Returns the status of submitted bundle(s).
21
- * @see https://www.quicknode.com/docs/solana/getBundleStatuses
22
- */
19
+ * Returns the status of submitted bundle(s).
20
+ * @see https://www.quicknode.com/docs/solana/getBundleStatuses
21
+ */
23
22
  getBundleStatuses(bundleIds: string[], region?: JitoRegion): GetBundleStatusesResponse;
24
23
  };
25
24
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getBundleStatuses.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getBundleStatuses.ts"],"mappings":";;;;KAIK,YAAA;EACH,SAAA;EACA,YAAA,EAAc,SAAA;EACd,IAAA;EACA,mBAAA;EACA,GAAA;AAAA;AAAA,KAGG,yBAAA;EACH,OAAA;IACE,IAAA;EAAA;EAEF,KAAA,EAAO,YAAA;AAAA;AAAA,KAGG,oBAAA;EAVV;;;;EAeA,iBAAA,CAEE,SAAA,YAEA,MAAA,GAAS,UAAA,GACR,yBAAA;AAAA"}
1
+ {"version":3,"file":"getBundleStatuses.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getBundleStatuses.ts"],"mappings":";;;KAIK;EACH;EACA,cAAc;EACd;EACA;EACA;;KAGG;EACH;IACE;;EAEF,OAAO;;KAGG;;;;;EAKV,kBAEE,qBAEA,SAAS,aACR"}
@@ -1,14 +1,13 @@
1
1
  import { JitoRegion } from "../types.js";
2
-
3
2
  //#region src/rpc/jito/api/getTipAccounts.d.ts
4
3
  /** Array of tip account addresses (Solana public keys) */
5
4
  type GetTipAccountsResponse = string[];
6
5
  type GetTipAccountsApi = {
7
6
  /**
8
- * Fetches the tip accounts designated for tip payments for bundles.
9
- * Returns an array of 8 tip account addresses that can receive tips for transaction prioritization.
10
- * @see https://www.quicknode.com/docs/solana/getTipAccounts
11
- */
7
+ * Fetches the tip accounts designated for tip payments for bundles.
8
+ * Returns an array of 8 tip account addresses that can receive tips for transaction prioritization.
9
+ * @see https://www.quicknode.com/docs/solana/getTipAccounts
10
+ */
12
11
  getTipAccounts(region?: JitoRegion): GetTipAccountsResponse;
13
12
  };
14
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getTipAccounts.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getTipAccounts.ts"],"mappings":";;;;KAGK,sBAAA;AAAA,KAEO,iBAAA;EAFP;;;AAAA;AAEL;EAME,cAAA,CAEE,MAAA,GAAS,UAAA,GACR,sBAAA;AAAA"}
1
+ {"version":3,"file":"getTipAccounts.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/getTipAccounts.ts"],"mappings":";;;KAGK;KAEO;;;;;;EAMV,eAEE,SAAS,aACR"}
@@ -1,21 +1,20 @@
1
1
  import { JitoRegion } from "../types.js";
2
2
  import { Base64EncodedWireTransaction } from "@solana/kit";
3
-
4
3
  //#region src/rpc/jito/api/sendBundle.d.ts
5
4
  /** Bundle ID returned on successful submission */
6
5
  type SendBundleResponse = string;
7
6
  type SendBundleApi = {
8
7
  /**
9
- * Submits a bundle of signed transactions (base-64 encoded) to the cluster for atomic processing.
10
- * If any transaction fails, the entire bundle is rejected.
11
- * This method relays the bundle to the leader without modifications.
12
- * If the bundle expires after the next Jito-Solana leader, it returns a success response with a bundle_id,
13
- * indicating receipt but not guaranteeing processing or on-chain landing.
14
- * Check the bundle status with getBundleStatuses using the bundle_id.
15
- *
16
- * Note: A tip is required for the bundle to be considered. The tip must transfer SOL to one of the 8 tip accounts.
17
- * @see https://www.quicknode.com/docs/solana/sendBundle
18
- */
8
+ * Submits a bundle of signed transactions (base-64 encoded) to the cluster for atomic processing.
9
+ * If any transaction fails, the entire bundle is rejected.
10
+ * This method relays the bundle to the leader without modifications.
11
+ * If the bundle expires after the next Jito-Solana leader, it returns a success response with a bundle_id,
12
+ * indicating receipt but not guaranteeing processing or on-chain landing.
13
+ * Check the bundle status with getBundleStatuses using the bundle_id.
14
+ *
15
+ * Note: A tip is required for the bundle to be considered. The tip must transfer SOL to one of the 8 tip accounts.
16
+ * @see https://www.quicknode.com/docs/solana/sendBundle
17
+ */
19
18
  sendBundle(transactions: Array<Base64EncodedWireTransaction>, region?: JitoRegion): SendBundleResponse;
20
19
  };
21
20
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"sendBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/sendBundle.ts"],"mappings":";;;;;KAKK,kBAAA;AAAA,KAEO,aAAA;EAFP;;;AAAA;AAEL;;;;;;;EAYE,UAAA,CAEE,YAAA,EAAc,KAAA,CAAM,4BAAA,GAEpB,MAAA,GAAS,UAAA,GACR,kBAAA;AAAA"}
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,5 +1,4 @@
1
1
  import { Base64EncodedWireTransaction } from "@solana/kit";
2
-
3
2
  //#region src/rpc/jito/api/simulateBundle.d.ts
4
3
  type AccountConfig = {
5
4
  accountIndex: number;
@@ -39,16 +38,21 @@ type SimulateBundleResponse = {
39
38
  };
40
39
  type SimulateBundleApi = {
41
40
  /**
42
- * Simulates a Jito bundle - runs simulation on the bundle to check if it will succeed
43
- * @see https://www.quicknode.com/docs/solana/simulateBundle
44
- */
41
+ * Simulates a Jito bundle - runs simulation on the bundle to check if it will succeed
42
+ * @see https://www.quicknode.com/docs/solana/simulateBundle
43
+ */
45
44
  simulateBundle(params: Readonly<{
46
45
  encodedTransactions: Array<Base64EncodedWireTransaction>;
47
46
  }>, config?: Readonly<{
48
- /** Specifies the bank state for simulation */simulationBank?: string; /** Skips signature verification during simulation */
49
- skipSigVerify?: boolean; /** Replaces the recent blockhash in transactions */
50
- replaceRecentBlockhash?: boolean; /** Specifies accounts to inspect before execution */
51
- preExecutionAccountsConfigs?: AccountConfig[]; /** Specifies accounts to inspect after execution */
47
+ /** Specifies the bank state for simulation */
48
+ simulationBank?: string;
49
+ /** Skips signature verification during simulation */
50
+ skipSigVerify?: boolean;
51
+ /** Replaces the recent blockhash in transactions */
52
+ replaceRecentBlockhash?: boolean;
53
+ /** Specifies accounts to inspect before execution */
54
+ preExecutionAccountsConfigs?: AccountConfig[];
55
+ /** Specifies accounts to inspect after execution */
52
56
  postExecutionAccountsConfigs?: AccountConfig[];
53
57
  }>): SimulateBundleResponse;
54
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"simulateBundle.d.ts","names":[],"sources":["../../../../../src/rpc/jito/api/simulateBundle.ts"],"mappings":";;;KAEK,aAAA;EACH,YAAA;EACA,SAAA;AAAA;AAAA,KAGG,eAAA;EACH,UAAA;EACA,KAAA;EACA,QAAA;EACA,IAAA;EACA,SAAA;AAAA;AAAA,KAGG,sBAAA;EACH,OAAA;IACE,UAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,OAAA;MAAyB,MAAA;QAAU,KAAA;QAAgB,YAAA;MAAA;IAAA;IACnD,kBAAA,EAAoB,KAAA;MAClB,GAAA;MACA,IAAA;MACA,aAAA;MACA,UAAA;QACE,SAAA;QACA,IAAA;MAAA;MAEF,oBAAA,EAAsB,eAAA;MACtB,qBAAA,EAAuB,eAAA;IAAA;EAAA;AAAA;AAAA,KAKjB,iBAAA;;;;;EAKV,cAAA,CACE,MAAA,EAAQ,QAAA;IACN,mBAAA,EAAqB,KAAA,CAAM,4BAAA;EAAA,IAE7B,MAAA,GAAS,QAAA;IAdP,8CAgBA,cAAA,WAhBuB;IAkBvB,aAAA,YAbN;IAeM,sBAAA;IAEA,2BAAA,GAA8B,aAAA,IAVT;IAYrB,4BAAA,GAA+B,aAAA;EAAA,KAEhC,sBAAA;AAAA"}
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"}
@@ -3,7 +3,6 @@ import { GetTipAccountsApi } from "./api/getTipAccounts.js";
3
3
  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
-
7
6
  //#region src/rpc/jito/createJitoRpc.d.ts
8
7
  type JitoBundleApi = GetBundleStatusesApi & GetTipAccountsApi & SendBundleApi & SimulateBundleApi;
9
8
  type JitoRpcApi = JitoBundleApi & SolanaRpcApi;
@@ -1 +1 @@
1
- {"version":3,"file":"createJitoRpc.d.ts","names":[],"sources":["../../../../src/rpc/jito/createJitoRpc.ts"],"mappings":";;;;;;;KAeY,aAAA,GAAgB,oBAAA,GAC1B,iBAAA,GACA,aAAA,GACA,iBAAA;AAAA,KAGU,UAAA,GAAa,aAAA,GAAgB,YAAA;AAAA,iBAQzB,0BAAA,oBAA8C,YAAA,EAC5D,SAAA,EAAW,UAAA,GACV,GAAA,CAAI,UAAA;AAAA,iBAQS,aAAA,qBAAkC,UAAA,EAChD,UAAA,EAAY,WAAA,EACZ,MAAA,GAAS,IAAA,CACP,UAAA,QAAkB,yBAAA,CAA0B,WAAA,gBAG7C,GAAA,CAAI,UAAA"}
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,7 +1,7 @@
1
1
  //#region src/rpc/jito/types.d.ts
2
2
  /**
3
- * Available Jito regions for routing requests.
4
- */
3
+ * Available Jito regions for routing requests.
4
+ */
5
5
  type JitoRegion = "mainnet" | "amsterdam" | "frankfurt" | "ny" | "tokyo" | "slc" | "london" | "singapore";
6
6
  //#endregion
7
7
  export { JitoRegion };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/rpc/jito/types.ts"],"mappings":";;AAGA;;KAAY,UAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/rpc/jito/types.ts"],"mappings":";;;;KAGY"}
@@ -1,20 +1,22 @@
1
1
  import { JitoRpcType, SolanaRpcType } from "./types.js";
2
2
  import { SDKClient } from "@lifi/sdk";
3
-
4
3
  //#region src/rpc/registry.d.ts
5
4
  /**
6
- * Checks if an RPC URL supports Jito methods by calling getTipAccounts.
7
- */
5
+ * Checks if an RPC URL supports Jito methods by calling getBundleStatuses.
6
+ * We probe with getBundleStatuses (rather than getTipAccounts) because it is the
7
+ * method actually used during bundle confirmation, and providers such as Helius
8
+ * support sendBundle/getBundleStatuses without exposing getTipAccounts.
9
+ */
8
10
  declare const isJitoRpc: (rpcUrl: string) => Promise<boolean>;
9
11
  /**
10
- * Wrapper around getting the Solana RPCs
11
- * @returns - Solana RPCs
12
- */
12
+ * Wrapper around getting the Solana RPCs
13
+ * @returns - Solana RPCs
14
+ */
13
15
  declare const getSolanaRpcs: (client: SDKClient) => Promise<SolanaRpcType[]>;
14
16
  /**
15
- * Wrapper around getting the Jito RPCs
16
- * @returns - Jito RPCs
17
- */
17
+ * Wrapper around getting the Jito RPCs
18
+ * @returns - Jito RPCs
19
+ */
18
20
  declare const getJitoRpcs: (client: SDKClient) => Promise<JitoRpcType[]>;
19
21
  //#endregion
20
22
  export { getJitoRpcs, getSolanaRpcs, isJitoRpc };
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","names":[],"sources":["../../../src/rpc/registry.ts"],"mappings":";;;;;;AAWA;cAAa,SAAA,GAAmB,MAAA,aAAiB,OAAA;;;AAAA;AA0CjD;cAAa,aAAA,GACX,MAAA,EAAQ,SAAA,KACP,OAAA,CAAQ,aAAA;;;;;cAWE,WAAA,GACX,MAAA,EAAQ,SAAA,KACP,OAAA,CAAQ,WAAA"}
1
+ {"version":3,"file":"registry.d.ts","names":[],"sources":["../../../src/rpc/registry.ts"],"mappings":";;;;;;;;;cA2Ba,YAAmB,mBAAiB;;;;;cA0CpC,gBACX,QAAQ,cACP,QAAQ;;;;;cAWE,cACX,QAAQ,cACP,QAAQ"}