@lifi/sdk-provider-solana 4.3.7 → 4.3.9
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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/SolanaProvider.d.ts +1 -4
- package/dist/cjs/SolanaProvider.js +1 -2
- package/dist/cjs/SolanaProvider.js.map +1 -1
- package/dist/cjs/actions/getSNSAddress.d.ts +1 -4
- package/dist/cjs/actions/getSNSAddress.js +1 -2
- package/dist/cjs/actions/getSolanaBalance.d.ts +1 -4
- package/dist/cjs/actions/getSolanaBalance.js +1 -2
- package/dist/cjs/actions/lookupSignatureStatus.d.ts +1 -4
- package/dist/cjs/actions/lookupSignatureStatus.js +2 -3
- package/dist/cjs/actions/resolveSolanaAddress.d.ts +1 -4
- package/dist/cjs/actions/resolveSolanaAddress.js +1 -2
- package/dist/cjs/actions/sendAndConfirmBundle.d.ts +1 -4
- package/dist/cjs/actions/sendAndConfirmBundle.js +3 -4
- package/dist/cjs/actions/sendAndConfirmTransaction.d.ts +2 -5
- package/dist/cjs/actions/sendAndConfirmTransaction.js +3 -4
- package/dist/cjs/confirmation/abortableSleep.d.ts +1 -4
- package/dist/cjs/confirmation/abortableSleep.js +1 -2
- package/dist/cjs/confirmation/confirmBundle.d.ts +2 -5
- package/dist/cjs/confirmation/confirmBundle.js +1 -2
- package/dist/cjs/confirmation/confirmSignature.d.ts +2 -5
- package/dist/cjs/confirmation/confirmSignature.js +2 -3
- package/dist/cjs/confirmation/createConfirmationDeadline.d.ts +1 -4
- package/dist/cjs/confirmation/createConfirmationDeadline.js +1 -2
- package/dist/cjs/confirmation/pollUntilDeadline.d.ts +2 -5
- package/dist/cjs/confirmation/pollUntilDeadline.js +1 -2
- package/dist/cjs/confirmation/raceRpcs.d.ts +1 -4
- package/dist/cjs/confirmation/raceRpcs.js +1 -2
- package/dist/cjs/confirmation/raceRpcs.js.map +1 -1
- package/dist/cjs/confirmation/types.d.ts +1 -4
- package/dist/cjs/confirmation/types.js +1 -2
- package/dist/cjs/core/SolanaStepExecutor.d.ts +1 -4
- package/dist/cjs/core/SolanaStepExecutor.js +1 -2
- package/dist/cjs/core/SolanaStepExecutor.js.map +1 -1
- package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +1 -4
- package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.js +4 -5
- package/dist/cjs/core/tasks/SolanaJitoWaitForTransactionTask.js.map +1 -1
- package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.d.ts +1 -4
- package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.js +1 -2
- package/dist/cjs/core/tasks/SolanaSignAndExecuteTask.js.map +1 -1
- package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +1 -4
- package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.js +4 -5
- package/dist/cjs/core/tasks/SolanaStandardWaitForTransactionTask.js.map +1 -1
- package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.d.ts +1 -4
- package/dist/cjs/core/tasks/SolanaWaitForTransactionTask.js +1 -2
- package/dist/cjs/core/tasks/confirmationError.d.ts +1 -4
- package/dist/cjs/core/tasks/confirmationError.js +1 -2
- package/dist/cjs/core/tasks/readSignature.d.ts +1 -4
- package/dist/cjs/core/tasks/readSignature.js +1 -2
- package/dist/cjs/core/tasks/resumeFromStore.d.ts +2 -5
- package/dist/cjs/core/tasks/resumeFromStore.js +3 -4
- package/dist/cjs/core/tasks/resumeFromStore.js.map +1 -1
- package/dist/cjs/core/tasks/transactionOutcome.d.ts +3 -6
- package/dist/cjs/core/tasks/transactionOutcome.js +3 -4
- package/dist/cjs/core/tasks/transactionOutcome.js.map +1 -1
- package/dist/cjs/errors/parseSolanaErrors.d.ts +1 -4
- package/dist/cjs/errors/parseSolanaErrors.js +7 -5
- package/dist/cjs/errors/parseSolanaErrors.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/rpc/jito/api/getBundleStatuses.d.ts +1 -4
- package/dist/cjs/rpc/jito/api/getTipAccounts.d.ts +1 -4
- package/dist/cjs/rpc/jito/api/sendBundle.d.ts +1 -4
- package/dist/cjs/rpc/jito/api/simulateBundle.d.ts +1 -4
- package/dist/cjs/rpc/jito/createJitoRpc.d.ts +1 -4
- package/dist/cjs/rpc/jito/createJitoRpc.js +1 -2
- package/dist/cjs/rpc/jito/types.d.ts +1 -4
- package/dist/cjs/rpc/registry.d.ts +1 -4
- package/dist/cjs/rpc/registry.js +1 -2
- package/dist/cjs/rpc/types.d.ts +1 -4
- package/dist/cjs/rpc/utils.d.ts +1 -4
- package/dist/cjs/rpc/utils.js +1 -2
- package/dist/cjs/types.d.ts +1 -4
- package/dist/cjs/types.js +1 -2
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/utils/KeypairWallet.unit.helpers.d.ts +1 -4
- package/dist/cjs/utils/KeypairWallet.unit.helpers.js +1 -2
- package/dist/cjs/utils/KeypairWalletAdapter.d.ts +1 -4
- package/dist/cjs/utils/KeypairWalletAdapter.js +1 -2
- package/dist/cjs/utils/KeypairWalletAdapter.js.map +1 -1
- package/dist/cjs/utils/base64ToUint8Array.d.ts +1 -4
- package/dist/cjs/utils/base64ToUint8Array.js +1 -2
- package/dist/cjs/utils/getTransactionLifetime.d.ts +1 -4
- package/dist/cjs/utils/getTransactionLifetime.js +1 -2
- package/dist/cjs/utils/getWalletFeature.d.ts +1 -4
- package/dist/cjs/utils/getWalletFeature.js +1 -2
- package/dist/cjs/utils/getWalletFeature.js.map +1 -1
- package/dist/cjs/utils/solanaErrorCause.d.ts +1 -4
- package/dist/cjs/utils/solanaErrorCause.js +1 -2
- package/dist/cjs/utils/solanaErrorCause.js.map +1 -1
- package/dist/cjs/utils/storedTransactions.d.ts +1 -4
- package/dist/cjs/utils/storedTransactions.js +1 -2
- package/dist/cjs/version.d.ts +1 -4
- package/dist/cjs/version.js +2 -3
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/SolanaProvider.d.ts +0 -2
- package/dist/esm/SolanaProvider.d.ts.map +1 -1
- package/dist/esm/SolanaProvider.js +1 -2
- package/dist/esm/actions/getSNSAddress.d.ts +0 -2
- package/dist/esm/actions/getSNSAddress.d.ts.map +1 -1
- package/dist/esm/actions/getSNSAddress.js +1 -2
- package/dist/esm/actions/getSolanaBalance.d.ts +0 -2
- package/dist/esm/actions/getSolanaBalance.d.ts.map +1 -1
- package/dist/esm/actions/getSolanaBalance.js +1 -2
- package/dist/esm/actions/lookupSignatureStatus.d.ts +0 -2
- package/dist/esm/actions/lookupSignatureStatus.d.ts.map +1 -1
- package/dist/esm/actions/lookupSignatureStatus.js +2 -3
- package/dist/esm/actions/resolveSolanaAddress.d.ts +0 -2
- package/dist/esm/actions/resolveSolanaAddress.d.ts.map +1 -1
- package/dist/esm/actions/resolveSolanaAddress.js +1 -2
- package/dist/esm/actions/sendAndConfirmBundle.d.ts +0 -2
- package/dist/esm/actions/sendAndConfirmBundle.d.ts.map +1 -1
- package/dist/esm/actions/sendAndConfirmBundle.js +3 -4
- package/dist/esm/actions/sendAndConfirmTransaction.d.ts +1 -3
- package/dist/esm/actions/sendAndConfirmTransaction.d.ts.map +1 -1
- package/dist/esm/actions/sendAndConfirmTransaction.js +3 -4
- package/dist/esm/confirmation/abortableSleep.d.ts +0 -2
- package/dist/esm/confirmation/abortableSleep.d.ts.map +1 -1
- package/dist/esm/confirmation/abortableSleep.js +1 -2
- package/dist/esm/confirmation/confirmBundle.d.ts +1 -3
- package/dist/esm/confirmation/confirmBundle.d.ts.map +1 -1
- package/dist/esm/confirmation/confirmBundle.js +1 -2
- package/dist/esm/confirmation/confirmSignature.d.ts +1 -3
- package/dist/esm/confirmation/confirmSignature.d.ts.map +1 -1
- package/dist/esm/confirmation/confirmSignature.js +2 -3
- package/dist/esm/confirmation/createConfirmationDeadline.d.ts +0 -2
- package/dist/esm/confirmation/createConfirmationDeadline.d.ts.map +1 -1
- package/dist/esm/confirmation/createConfirmationDeadline.js +1 -2
- package/dist/esm/confirmation/pollUntilDeadline.d.ts +1 -3
- package/dist/esm/confirmation/pollUntilDeadline.d.ts.map +1 -1
- package/dist/esm/confirmation/pollUntilDeadline.js +1 -2
- package/dist/esm/confirmation/raceRpcs.d.ts +0 -2
- package/dist/esm/confirmation/raceRpcs.d.ts.map +1 -1
- package/dist/esm/confirmation/raceRpcs.js +1 -2
- package/dist/esm/confirmation/raceRpcs.js.map +1 -1
- package/dist/esm/confirmation/types.d.ts +0 -2
- package/dist/esm/confirmation/types.d.ts.map +1 -1
- package/dist/esm/confirmation/types.js +1 -2
- package/dist/esm/core/SolanaStepExecutor.d.ts +0 -2
- package/dist/esm/core/SolanaStepExecutor.d.ts.map +1 -1
- package/dist/esm/core/SolanaStepExecutor.js +1 -2
- package/dist/esm/core/SolanaStepExecutor.js.map +1 -1
- package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts +0 -2
- package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/SolanaJitoWaitForTransactionTask.js +4 -5
- package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts +0 -2
- package/dist/esm/core/tasks/SolanaSignAndExecuteTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/SolanaSignAndExecuteTask.js +1 -2
- package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts +0 -2
- package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/SolanaStandardWaitForTransactionTask.js +4 -5
- package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts +0 -2
- package/dist/esm/core/tasks/SolanaWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/SolanaWaitForTransactionTask.js +1 -2
- package/dist/esm/core/tasks/confirmationError.d.ts +0 -2
- package/dist/esm/core/tasks/confirmationError.d.ts.map +1 -1
- package/dist/esm/core/tasks/confirmationError.js +1 -2
- package/dist/esm/core/tasks/readSignature.d.ts +0 -2
- package/dist/esm/core/tasks/readSignature.d.ts.map +1 -1
- package/dist/esm/core/tasks/readSignature.js +1 -2
- package/dist/esm/core/tasks/resumeFromStore.d.ts +1 -3
- package/dist/esm/core/tasks/resumeFromStore.d.ts.map +1 -1
- package/dist/esm/core/tasks/resumeFromStore.js +3 -4
- package/dist/esm/core/tasks/resumeFromStore.js.map +1 -1
- package/dist/esm/core/tasks/transactionOutcome.d.ts +2 -4
- package/dist/esm/core/tasks/transactionOutcome.d.ts.map +1 -1
- package/dist/esm/core/tasks/transactionOutcome.js +3 -4
- package/dist/esm/core/tasks/transactionOutcome.js.map +1 -1
- package/dist/esm/errors/parseSolanaErrors.d.ts +0 -2
- package/dist/esm/errors/parseSolanaErrors.d.ts.map +1 -1
- package/dist/esm/errors/parseSolanaErrors.js +7 -5
- package/dist/esm/errors/parseSolanaErrors.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts +0 -2
- package/dist/esm/rpc/jito/api/getBundleStatuses.d.ts.map +1 -1
- package/dist/esm/rpc/jito/api/getTipAccounts.d.ts +0 -2
- package/dist/esm/rpc/jito/api/getTipAccounts.d.ts.map +1 -1
- package/dist/esm/rpc/jito/api/sendBundle.d.ts +0 -2
- package/dist/esm/rpc/jito/api/sendBundle.d.ts.map +1 -1
- package/dist/esm/rpc/jito/api/simulateBundle.d.ts +0 -2
- package/dist/esm/rpc/jito/api/simulateBundle.d.ts.map +1 -1
- package/dist/esm/rpc/jito/createJitoRpc.d.ts +0 -2
- package/dist/esm/rpc/jito/createJitoRpc.d.ts.map +1 -1
- package/dist/esm/rpc/jito/createJitoRpc.js +1 -2
- package/dist/esm/rpc/jito/types.d.ts +0 -2
- package/dist/esm/rpc/jito/types.d.ts.map +1 -1
- package/dist/esm/rpc/registry.d.ts +0 -2
- package/dist/esm/rpc/registry.d.ts.map +1 -1
- package/dist/esm/rpc/registry.js +1 -2
- package/dist/esm/rpc/types.d.ts +0 -2
- package/dist/esm/rpc/types.d.ts.map +1 -1
- package/dist/esm/rpc/utils.d.ts +0 -2
- package/dist/esm/rpc/utils.d.ts.map +1 -1
- package/dist/esm/rpc/utils.js +1 -2
- package/dist/esm/types.d.ts +0 -2
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +1 -2
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts +0 -2
- package/dist/esm/utils/KeypairWallet.unit.helpers.d.ts.map +1 -1
- package/dist/esm/utils/KeypairWallet.unit.helpers.js +1 -2
- package/dist/esm/utils/KeypairWalletAdapter.d.ts +0 -2
- package/dist/esm/utils/KeypairWalletAdapter.d.ts.map +1 -1
- package/dist/esm/utils/KeypairWalletAdapter.js +1 -2
- package/dist/esm/utils/KeypairWalletAdapter.js.map +1 -1
- package/dist/esm/utils/base64ToUint8Array.d.ts +0 -2
- package/dist/esm/utils/base64ToUint8Array.d.ts.map +1 -1
- package/dist/esm/utils/base64ToUint8Array.js +1 -2
- package/dist/esm/utils/getTransactionLifetime.d.ts +0 -2
- package/dist/esm/utils/getTransactionLifetime.d.ts.map +1 -1
- package/dist/esm/utils/getTransactionLifetime.js +1 -2
- package/dist/esm/utils/getWalletFeature.d.ts +0 -2
- package/dist/esm/utils/getWalletFeature.d.ts.map +1 -1
- package/dist/esm/utils/getWalletFeature.js +1 -2
- package/dist/esm/utils/getWalletFeature.js.map +1 -1
- package/dist/esm/utils/solanaErrorCause.d.ts +0 -2
- package/dist/esm/utils/solanaErrorCause.d.ts.map +1 -1
- package/dist/esm/utils/solanaErrorCause.js +1 -2
- package/dist/esm/utils/solanaErrorCause.js.map +1 -1
- package/dist/esm/utils/storedTransactions.d.ts +0 -2
- package/dist/esm/utils/storedTransactions.d.ts.map +1 -1
- package/dist/esm/utils/storedTransactions.js +1 -2
- package/dist/esm/version.d.ts +1 -3
- package/dist/esm/version.d.ts.map +1 -1
- package/dist/esm/version.js +2 -3
- package/dist/esm/version.js.map +1 -1
- package/package.json +3 -3
- package/src/confirmation/raceRpcs.ts +4 -3
- package/src/core/tasks/resumeFromStore.ts +1 -1
- package/src/core/tasks/transactionOutcome.ts +1 -1
- package/src/errors/parseSolanaErrors.ts +12 -3
- package/src/index.ts +1 -5
- package/src/types.ts +1 -2
- package/src/utils/getWalletFeature.ts +1 -0
- package/src/version.ts +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JitoRegion } from "../types.js";
|
|
2
2
|
import { Base64EncodedWireTransaction } from "@solana/kit";
|
|
3
|
-
//#region src/rpc/jito/api/sendBundle.d.ts
|
|
4
3
|
/** Bundle ID returned on successful submission */
|
|
5
4
|
type SendBundleResponse = string;
|
|
6
5
|
export type SendBundleApi = {
|
|
@@ -17,6 +16,4 @@ export type SendBundleApi = {
|
|
|
17
16
|
*/
|
|
18
17
|
sendBundle(transactions: Array<Base64EncodedWireTransaction>, region?: JitoRegion): SendBundleResponse;
|
|
19
18
|
};
|
|
20
|
-
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=sendBundle.d.ts.map
|
|
19
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Base64EncodedWireTransaction } from "@solana/kit";
|
|
2
|
-
//#region src/rpc/jito/api/simulateBundle.d.ts
|
|
3
2
|
type AccountConfig = {
|
|
4
3
|
accountIndex: number;
|
|
5
4
|
addresses: string[];
|
|
@@ -56,6 +55,4 @@ export type SimulateBundleApi = {
|
|
|
56
55
|
postExecutionAccountsConfigs?: AccountConfig[];
|
|
57
56
|
}>): SimulateBundleResponse;
|
|
58
57
|
};
|
|
59
|
-
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=simulateBundle.d.ts.map
|
|
58
|
+
export {};
|
|
@@ -3,10 +3,7 @@ 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
|
-
//#region src/rpc/jito/createJitoRpc.d.ts
|
|
7
6
|
export type JitoBundleApi = GetBundleStatusesApi & GetTipAccountsApi & SendBundleApi & SimulateBundleApi;
|
|
8
7
|
export type JitoRpcApi = JitoBundleApi & SolanaRpcApi;
|
|
9
8
|
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
|
-
//#endregion
|
|
12
|
-
//# sourceMappingURL=createJitoRpc.d.ts.map
|
|
9
|
+
export declare function createJitoRpc<TClusterUrl extends ClusterUrl>(clusterUrl: TClusterUrl, config?: Omit<Parameters<typeof createDefaultRpcTransport<TClusterUrl>>[0], "url">): Rpc<JitoRpcApi>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _solana_kit = require("@solana/kit");
|
|
3
|
-
|
|
3
|
+
// src/rpc/jito/createJitoRpc.ts
|
|
4
4
|
function createJitoRpcApi() {
|
|
5
5
|
return (0, _solana_kit.createSolanaRpcApi)();
|
|
6
6
|
}
|
|
@@ -16,7 +16,6 @@ function createJitoRpc(clusterUrl, config) {
|
|
|
16
16
|
...config
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.createJitoRpc = createJitoRpc;
|
|
21
20
|
exports.createJitoRpcFromTransport = createJitoRpcFromTransport;
|
|
22
21
|
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
//#region src/rpc/jito/types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Available Jito regions for routing requests.
|
|
4
3
|
*/
|
|
5
|
-
export type JitoRegion = "mainnet" | "amsterdam" | "frankfurt" | "ny" | "tokyo" | "slc" | "london" | "singapore";
|
|
6
|
-
//#endregion
|
|
7
|
-
//# sourceMappingURL=types.d.ts.map
|
|
4
|
+
export type JitoRegion = "mainnet" | "amsterdam" | "frankfurt" | "ny" | "tokyo" | "slc" | "london" | "singapore";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JitoRpcType, SolanaRpcType } from "./types.js";
|
|
2
2
|
import { SDKClient } from "@lifi/sdk";
|
|
3
|
-
//#region src/rpc/registry.d.ts
|
|
4
3
|
/** Both leave the endpoint out of the Jito list, but only `unsupported` is a
|
|
5
4
|
* configuration gap the integrator can act on. */
|
|
6
5
|
export type JitoProbeOutcome = "supported" | "unsupported" | "unreachable";
|
|
@@ -64,6 +63,4 @@ export declare const getJitoRpcs: (client: SDKClient) => Promise<{
|
|
|
64
63
|
export declare const getJitoCapableRpcs: (rpcUrls: string[]) => Promise<{
|
|
65
64
|
rpcs: JitoRpcType[];
|
|
66
65
|
unreachable: number;
|
|
67
|
-
}>;
|
|
68
|
-
//#endregion
|
|
69
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
66
|
+
}>;
|
package/dist/cjs/rpc/registry.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_rpc_jito_createJitoRpc = require("./jito/createJitoRpc.js");
|
|
3
3
|
let _lifi_sdk = require("@lifi/sdk");
|
|
4
4
|
let _solana_kit = require("@solana/kit");
|
|
5
|
-
|
|
5
|
+
// src/rpc/registry.ts
|
|
6
6
|
const solanaRpcs = new _lifi_sdk.LruMap(64);
|
|
7
7
|
const jitoRpcs = new _lifi_sdk.LruMap(64);
|
|
8
8
|
/**
|
|
@@ -187,7 +187,6 @@ const getJitoCapableRpcs = async (rpcUrls) => {
|
|
|
187
187
|
unreachable
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
//#endregion
|
|
191
190
|
exports.JITO_PROBE_GATEWAY_RETRY_MS = JITO_PROBE_GATEWAY_RETRY_MS;
|
|
192
191
|
exports.JITO_PROBE_RETRY_MS = JITO_PROBE_RETRY_MS;
|
|
193
192
|
exports.getJitoCapableRpcs = getJitoCapableRpcs;
|
package/dist/cjs/rpc/types.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { JitoRpcApi } from "./jito/createJitoRpc.js";
|
|
2
2
|
import { Rpc, createSolanaRpc } from "@solana/kit";
|
|
3
|
-
//#region src/rpc/types.d.ts
|
|
4
3
|
export type SolanaRpcType = ReturnType<typeof createSolanaRpc>;
|
|
5
|
-
export type JitoRpcType = Rpc<JitoRpcApi>;
|
|
6
|
-
//#endregion
|
|
7
|
-
//# sourceMappingURL=types.d.ts.map
|
|
4
|
+
export type JitoRpcType = Rpc<JitoRpcApi>;
|
package/dist/cjs/rpc/utils.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JitoRpcType, SolanaRpcType } from "./types.js";
|
|
2
2
|
import { SDKClient } from "@lifi/sdk";
|
|
3
|
-
//#region src/rpc/utils.d.ts
|
|
4
3
|
type RetryFn<Rpc> = <R>(client: SDKClient, fn: (rpc: Rpc) => Promise<R>) => Promise<R>;
|
|
5
4
|
/**
|
|
6
5
|
* Calls a function on RPC instances with retry logic.
|
|
@@ -61,6 +60,4 @@ export declare const callSolanaRpcsWithRetry: RetryFn<SolanaRpcType>;
|
|
|
61
60
|
* ```
|
|
62
61
|
*/
|
|
63
62
|
export declare const callJitoRpcsWithRetry: RetryFn<JitoRpcType>;
|
|
64
|
-
|
|
65
|
-
export {};
|
|
66
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
63
|
+
export {};
|
package/dist/cjs/rpc/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rpc_registry = require("./registry.js");
|
|
3
|
-
|
|
3
|
+
// src/rpc/utils.ts
|
|
4
4
|
/**
|
|
5
5
|
* Calls a function on RPC instances with retry logic.
|
|
6
6
|
* Tries each RPC in sequence until one succeeds.
|
|
@@ -76,7 +76,6 @@ const callSolanaRpcsWithRetry = createRetryFn(require_rpc_registry.getSolanaRpcs
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
const callJitoRpcsWithRetry = createRetryFn(async (client) => (await require_rpc_registry.getJitoRpcs(client)).rpcs);
|
|
79
|
-
//#endregion
|
|
80
79
|
exports.callJitoRpcsWithRetry = callJitoRpcsWithRetry;
|
|
81
80
|
exports.callSolanaRpcsWithRetry = callSolanaRpcsWithRetry;
|
|
82
81
|
exports.callWithRetry = callWithRetry;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LiFiStepExtended, SDKProvider, StepExecutorContext, StepExecutorOptions } from "@lifi/sdk";
|
|
2
2
|
import { Transaction } from "@solana/kit";
|
|
3
3
|
import { Wallet, WalletAccount } from "@wallet-standard/base";
|
|
4
|
-
//#region src/types.d.ts
|
|
5
4
|
export interface SolanaProviderOptions {
|
|
6
5
|
getWallet?: () => Promise<Wallet>;
|
|
7
6
|
skipSimulation?: boolean;
|
|
@@ -37,6 +36,4 @@ export declare function isSolanaProvider(provider: SDKProvider): provider is Sol
|
|
|
37
36
|
export interface SolanaStepExecutorOptions extends StepExecutorOptions {
|
|
38
37
|
wallet: Wallet;
|
|
39
38
|
skipSimulation?: boolean;
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
//# sourceMappingURL=types.d.ts.map
|
|
39
|
+
}
|
package/dist/cjs/types.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _lifi_sdk = require("@lifi/sdk");
|
|
3
|
-
|
|
3
|
+
// src/types.ts
|
|
4
4
|
function isSolanaProvider(provider) {
|
|
5
5
|
return provider.type === _lifi_sdk.ChainType.SVM;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
exports.isSolanaProvider = isSolanaProvider;
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=types.js.map
|
package/dist/cjs/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["ChainType"],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type LiFiStepExtended,\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 /**\n * Set by the sign task. Absent on a resume: the wait tasks then read the\n * signed bytes from the action's `txHex`.\n */\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 * Absent on a resume: a leading `[` in `txHex` marks a bundle then.\n */\n isBundleExecution?: boolean\n}\n\nexport interface SolanaStepExecutorContext\n extends StepExecutorContext
|
|
1
|
+
{"version":3,"file":"types.js","names":["ChainType"],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type LiFiStepExtended,\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 /**\n * Set by the sign task. Absent on a resume: the wait tasks then read the\n * signed bytes from the action's `txHex`.\n */\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 * Absent on a resume: a leading `[` in `txHex` marks a bundle then.\n */\n isBundleExecution?: boolean\n}\n\nexport interface SolanaStepExecutorContext\n extends StepExecutorContext, SolanaTaskContext {\n wallet: Wallet\n /**\n * Resolves the account that requested the quote. Only the sign task calls\n * it, so a resume that only waits does not need the wallet to have\n * reconnected. Throws `WalletChangedDuringExecution` when the account is\n * gone.\n */\n getWalletAccount: (step: LiFiStepExtended) => 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":";;;AA8CA,SAAgB,iBACd,UAC+B;CAC/B,OAAO,SAAS,SAASA,UAAAA,UAAU;AACrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _solana_kit = require("@solana/kit");
|
|
3
|
-
|
|
3
|
+
// src/utils/KeypairWallet.unit.helpers.ts
|
|
4
4
|
const nativeCrypto = globalThis.crypto;
|
|
5
5
|
const generateTestKeypair = async () => {
|
|
6
6
|
if (!nativeCrypto?.subtle) throw new Error("SubtleCrypto is not available in this environment");
|
|
@@ -14,7 +14,6 @@ const generateTestKeypair = async () => {
|
|
|
14
14
|
publicKey
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
exports.generateTestKeypair = generateTestKeypair;
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=KeypairWallet.unit.helpers.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Wallet, WalletAccount } from "@wallet-standard/base";
|
|
2
2
|
import { SolanaSignTransactionFeature } from "@solana/wallet-standard-features";
|
|
3
|
-
//#region src/utils/KeypairWalletAdapter.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 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
5
|
* Wallet Adapter without using a third-party wallet.
|
|
@@ -23,6 +22,4 @@ export declare class KeypairWalletAdapter implements Wallet {
|
|
|
23
22
|
connect(): Promise<void>;
|
|
24
23
|
disconnect(): Promise<void>;
|
|
25
24
|
private _signTransactionFeature;
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//# sourceMappingURL=KeypairWalletAdapter.d.ts.map
|
|
25
|
+
}
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_utils_base64ToUint8Array = require("./base64ToUint8Array.js");
|
|
3
3
|
let _solana_kit = require("@solana/kit");
|
|
4
4
|
let _solana_wallet_standard_features = require("@solana/wallet-standard-features");
|
|
5
|
-
|
|
5
|
+
// src/utils/KeypairWalletAdapter.ts
|
|
6
6
|
/**
|
|
7
7
|
* This keypair wallet adapter is unsafe to use on the frontend and is only included to provide an easy way for applications to test
|
|
8
8
|
* Wallet Adapter without using a third-party wallet.
|
|
@@ -82,7 +82,6 @@ var KeypairWalletAdapter = class {
|
|
|
82
82
|
return results;
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
//#endregion
|
|
86
85
|
exports.KeypairWalletAdapter = KeypairWalletAdapter;
|
|
87
86
|
|
|
88
87
|
//# sourceMappingURL=KeypairWalletAdapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeypairWalletAdapter.js","names":["getBase58Codec","SolanaSignTransaction","createKeyPairSignerFromBytes","getTransactionCodec","getBase64EncodedWireTransaction","base64ToUint8Array"],"sources":["../../../src/utils/KeypairWalletAdapter.ts"],"sourcesContent":["import {\n assertIsTransactionWithinSizeLimit,\n createKeyPairSignerFromBytes,\n getBase58Codec,\n getBase64EncodedWireTransaction,\n getTransactionCodec,\n type KeyPairSigner,\n type ReadonlyUint8Array,\n} from '@solana/kit'\nimport {\n SolanaSignTransaction,\n type SolanaSignTransactionFeature,\n type SolanaSignTransactionInput,\n type SolanaSignTransactionOutput,\n} from '@solana/wallet-standard-features'\nimport type { Wallet, WalletAccount } from '@wallet-standard/base'\nimport { base64ToUint8Array } from './base64ToUint8Array.js'\n\n/**\n * This keypair wallet adapter is unsafe to use on the frontend and is only included to provide an easy way for applications to test\n * Wallet Adapter without using a third-party wallet.\n */\nexport class KeypairWalletAdapter implements Wallet {\n /**\n * Storing a keypair locally like this is not safe because any application using this adapter could retrieve the\n * secret key, and because the keypair will be lost any time the wallet is disconnected or the window is refreshed.\n */\n private _signer: KeyPairSigner | undefined\n private _account: WalletAccount | undefined\n private readonly _secretKeyBytes: ReadonlyUint8Array\n\n readonly version = '1.0.0' as const\n readonly name = 'Keypair Wallet' as const\n readonly icon =\n 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=' as const\n\n constructor(secretKeyBase58: string) {\n if (!secretKeyBase58) {\n throw new Error('Private key is required')\n }\n\n const base58Codec = getBase58Codec()\n let encoded: ReadonlyUint8Array\n try {\n encoded = base58Codec.encode(secretKeyBase58)\n } catch {\n throw new Error('Invalid private key format')\n }\n\n if (encoded.length !== 64) {\n throw new Error('Invalid private key length. Expected 64 bytes.')\n }\n\n this._secretKeyBytes = encoded\n }\n\n // Wallet Standard interface properties\n get chains() {\n return ['solana:mainnet', 'solana:devnet', 'solana:testnet'] as const\n }\n\n get accounts(): readonly WalletAccount[] {\n return this._account ? [this._account] : []\n }\n\n get features(): SolanaSignTransactionFeature {\n return {\n [SolanaSignTransaction]: {\n version: '1.0.0' as const,\n supportedTransactionVersions: ['legacy', 0] as const,\n signTransaction: this._signTransactionFeature.bind(this),\n },\n }\n }\n\n async connect(): Promise<void> {\n this._signer = await createKeyPairSignerFromBytes(this._secretKeyBytes)\n\n const publicKeyBytes = new Uint8Array(\n await crypto.subtle.exportKey('raw', this._signer.keyPair.publicKey)\n )\n\n this._account = {\n address: this._signer.address,\n publicKey: publicKeyBytes,\n chains: this.chains,\n features: [SolanaSignTransaction],\n }\n }\n\n async disconnect(): Promise<void> {\n this._signer = undefined\n this._account = undefined\n }\n\n // Wallet Standard feature implementations\n private async _signTransactionFeature(\n ...inputs: readonly SolanaSignTransactionInput[]\n ): Promise<readonly SolanaSignTransactionOutput[]> {\n if (!this._signer) {\n throw new Error('Wallet is not connected')\n }\n\n const results: SolanaSignTransactionOutput[] = []\n\n for (const input of inputs) {\n const transaction = getTransactionCodec().decode(input.transaction)\n\n assertIsTransactionWithinSizeLimit(transaction)\n\n // `assertIsTransactionWithBlockhashLifetime` is deliberately NOT called\n // here. It tests `'lifetimeConstraint' in transaction`, and no kit\n // decoder reconstructs that property - decoding wire bytes yields\n // `{ messageBytes, signatures }` alone, so the assert rejected every\n // transaction a wallet is ever handed. Signing does not need it either:\n // `partiallySignTransaction` signs `messageBytes` and never reads the\n // lifetime. The blockhash still travels inside `messageBytes`, where\n // `getTransactionLifetime` reads it for the confirmation deadline.\n // Cast because `signTransactions` types its argument as carrying a\n // lifetime, while the runtime path - `partiallySignTransaction` - reads\n // only `messageBytes`. A decoded transaction never has the property, so\n // without this the type demands something no decoder can produce.\n const [signatureDictionary] = await this._signer.signTransactions([\n transaction as Parameters<\n typeof this._signer.signTransactions\n >[0][number],\n ])\n\n const signature = signatureDictionary?.[this._signer.address]\n if (!signature) {\n throw new Error('Failed to sign transaction')\n }\n\n // The signature has to be merged back in. `partiallySignTransaction`\n // returns a new frozen object rather than mutating its argument, so\n // encoding `transaction` here shipped the unsigned original and threw\n // the signature away - the transaction then failed on chain for a\n // missing signature, far from the code that dropped it.\n //\n // The cast mirrors the one above: the wire format is `messageBytes`\n // plus `signatures`, and the encoder reads nothing else - the lifetime\n // already travels inside `messageBytes`.\n const signedTransaction = getBase64EncodedWireTransaction({\n ...transaction,\n signatures: {\n ...transaction.signatures,\n [this._signer.address]: signature,\n },\n } as Parameters<typeof getBase64EncodedWireTransaction>[0])\n\n results.push({\n signedTransaction: base64ToUint8Array(signedTransaction),\n })\n }\n\n return results\n }\n}\n"],"mappings":";;;;;;;;;AAsBA,IAAa,uBAAb,MAAoD;;;;;
|
|
1
|
+
{"version":3,"file":"KeypairWalletAdapter.js","names":["getBase58Codec","SolanaSignTransaction","createKeyPairSignerFromBytes","getTransactionCodec","assertIsTransactionWithinSizeLimit","getBase64EncodedWireTransaction","base64ToUint8Array"],"sources":["../../../src/utils/KeypairWalletAdapter.ts"],"sourcesContent":["import {\n assertIsTransactionWithinSizeLimit,\n createKeyPairSignerFromBytes,\n getBase58Codec,\n getBase64EncodedWireTransaction,\n getTransactionCodec,\n type KeyPairSigner,\n type ReadonlyUint8Array,\n} from '@solana/kit'\nimport {\n SolanaSignTransaction,\n type SolanaSignTransactionFeature,\n type SolanaSignTransactionInput,\n type SolanaSignTransactionOutput,\n} from '@solana/wallet-standard-features'\nimport type { Wallet, WalletAccount } from '@wallet-standard/base'\nimport { base64ToUint8Array } from './base64ToUint8Array.js'\n\n/**\n * This keypair wallet adapter is unsafe to use on the frontend and is only included to provide an easy way for applications to test\n * Wallet Adapter without using a third-party wallet.\n */\nexport class KeypairWalletAdapter implements Wallet {\n /**\n * Storing a keypair locally like this is not safe because any application using this adapter could retrieve the\n * secret key, and because the keypair will be lost any time the wallet is disconnected or the window is refreshed.\n */\n private _signer: KeyPairSigner | undefined\n private _account: WalletAccount | undefined\n private readonly _secretKeyBytes: ReadonlyUint8Array\n\n readonly version = '1.0.0' as const\n readonly name = 'Keypair Wallet' as const\n readonly icon =\n 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=' as const\n\n constructor(secretKeyBase58: string) {\n if (!secretKeyBase58) {\n throw new Error('Private key is required')\n }\n\n const base58Codec = getBase58Codec()\n let encoded: ReadonlyUint8Array\n try {\n encoded = base58Codec.encode(secretKeyBase58)\n } catch {\n throw new Error('Invalid private key format')\n }\n\n if (encoded.length !== 64) {\n throw new Error('Invalid private key length. Expected 64 bytes.')\n }\n\n this._secretKeyBytes = encoded\n }\n\n // Wallet Standard interface properties\n get chains() {\n return ['solana:mainnet', 'solana:devnet', 'solana:testnet'] as const\n }\n\n get accounts(): readonly WalletAccount[] {\n return this._account ? [this._account] : []\n }\n\n get features(): SolanaSignTransactionFeature {\n return {\n [SolanaSignTransaction]: {\n version: '1.0.0' as const,\n supportedTransactionVersions: ['legacy', 0] as const,\n signTransaction: this._signTransactionFeature.bind(this),\n },\n }\n }\n\n async connect(): Promise<void> {\n this._signer = await createKeyPairSignerFromBytes(this._secretKeyBytes)\n\n const publicKeyBytes = new Uint8Array(\n await crypto.subtle.exportKey('raw', this._signer.keyPair.publicKey)\n )\n\n this._account = {\n address: this._signer.address,\n publicKey: publicKeyBytes,\n chains: this.chains,\n features: [SolanaSignTransaction],\n }\n }\n\n async disconnect(): Promise<void> {\n this._signer = undefined\n this._account = undefined\n }\n\n // Wallet Standard feature implementations\n private async _signTransactionFeature(\n ...inputs: readonly SolanaSignTransactionInput[]\n ): Promise<readonly SolanaSignTransactionOutput[]> {\n if (!this._signer) {\n throw new Error('Wallet is not connected')\n }\n\n const results: SolanaSignTransactionOutput[] = []\n\n for (const input of inputs) {\n const transaction = getTransactionCodec().decode(input.transaction)\n\n assertIsTransactionWithinSizeLimit(transaction)\n\n // `assertIsTransactionWithBlockhashLifetime` is deliberately NOT called\n // here. It tests `'lifetimeConstraint' in transaction`, and no kit\n // decoder reconstructs that property - decoding wire bytes yields\n // `{ messageBytes, signatures }` alone, so the assert rejected every\n // transaction a wallet is ever handed. Signing does not need it either:\n // `partiallySignTransaction` signs `messageBytes` and never reads the\n // lifetime. The blockhash still travels inside `messageBytes`, where\n // `getTransactionLifetime` reads it for the confirmation deadline.\n // Cast because `signTransactions` types its argument as carrying a\n // lifetime, while the runtime path - `partiallySignTransaction` - reads\n // only `messageBytes`. A decoded transaction never has the property, so\n // without this the type demands something no decoder can produce.\n const [signatureDictionary] = await this._signer.signTransactions([\n transaction as Parameters<\n typeof this._signer.signTransactions\n >[0][number],\n ])\n\n const signature = signatureDictionary?.[this._signer.address]\n if (!signature) {\n throw new Error('Failed to sign transaction')\n }\n\n // The signature has to be merged back in. `partiallySignTransaction`\n // returns a new frozen object rather than mutating its argument, so\n // encoding `transaction` here shipped the unsigned original and threw\n // the signature away - the transaction then failed on chain for a\n // missing signature, far from the code that dropped it.\n //\n // The cast mirrors the one above: the wire format is `messageBytes`\n // plus `signatures`, and the encoder reads nothing else - the lifetime\n // already travels inside `messageBytes`.\n const signedTransaction = getBase64EncodedWireTransaction({\n ...transaction,\n signatures: {\n ...transaction.signatures,\n [this._signer.address]: signature,\n },\n } as Parameters<typeof getBase64EncodedWireTransaction>[0])\n\n results.push({\n signedTransaction: base64ToUint8Array(signedTransaction),\n })\n }\n\n return results\n }\n}\n"],"mappings":";;;;;;;;;AAsBA,IAAa,uBAAb,MAAoD;;;;;CAK1C;CACA;CACS;CAER,UAAU;CACV,OAAO;CACP,OACP;CAEF,YAAY,iBAAyB;EACnC,IAAI,CAAC,iBACH,MAAM,IAAI,MAAM,yBAAyB;EAG3C,MAAM,eAAA,GAAcA,YAAAA,eAAAA,CAAe;EACnC,IAAI;EACJ,IAAI;GACF,UAAU,YAAY,OAAO,eAAe;EAC9C,QAAQ;GACN,MAAM,IAAI,MAAM,4BAA4B;EAC9C;EAEA,IAAI,QAAQ,WAAW,IACrB,MAAM,IAAI,MAAM,gDAAgD;EAGlE,KAAK,kBAAkB;CACzB;CAGA,IAAI,SAAS;EACX,OAAO;GAAC;GAAkB;GAAiB;EAAgB;CAC7D;CAEA,IAAI,WAAqC;EACvC,OAAO,KAAK,WAAW,CAAC,KAAK,QAAQ,IAAI,CAAC;CAC5C;CAEA,IAAI,WAAyC;EAC3C,OAAO,GACJC,iCAAAA,wBAAwB;GACvB,SAAS;GACT,8BAA8B,CAAC,UAAU,CAAC;GAC1C,iBAAiB,KAAK,wBAAwB,KAAK,IAAI;EACzD,EACF;CACF;CAEA,MAAM,UAAyB;EAC7B,KAAK,UAAU,OAAA,GAAMC,YAAAA,6BAAAA,CAA6B,KAAK,eAAe;EAEtE,MAAM,iBAAiB,IAAI,WACzB,MAAM,OAAO,OAAO,UAAU,OAAO,KAAK,QAAQ,QAAQ,SAAS,CACrE;EAEA,KAAK,WAAW;GACd,SAAS,KAAK,QAAQ;GACtB,WAAW;GACX,QAAQ,KAAK;GACb,UAAU,CAACD,iCAAAA,qBAAqB;EAClC;CACF;CAEA,MAAM,aAA4B;EAChC,KAAK,UAAU,KAAA;EACf,KAAK,WAAW,KAAA;CAClB;CAGA,MAAc,wBACZ,GAAG,QAC8C;EACjD,IAAI,CAAC,KAAK,SACR,MAAM,IAAI,MAAM,yBAAyB;EAG3C,MAAM,UAAyC,CAAC;EAEhD,KAAK,MAAM,SAAS,QAAQ;GAC1B,MAAM,eAAA,GAAcE,YAAAA,oBAAAA,CAAoB,CAAC,CAAC,OAAO,MAAM,WAAW;GAElEC,CAAAA,GAAAA,YAAAA,mCAAAA,CAAmC,WAAW;GAc9C,MAAM,CAAC,uBAAuB,MAAM,KAAK,QAAQ,iBAAiB,CAChE,WAGF,CAAC;GAED,MAAM,YAAY,sBAAsB,KAAK,QAAQ;GACrD,IAAI,CAAC,WACH,MAAM,IAAI,MAAM,4BAA4B;GAY9C,MAAM,qBAAA,GAAoBC,YAAAA,gCAAAA,CAAgC;IACxD,GAAG;IACH,YAAY;KACV,GAAG,YAAY;MACd,KAAK,QAAQ,UAAU;IAC1B;GACF,CAA0D;GAE1D,QAAQ,KAAK,EACX,mBAAmBC,iCAAAA,mBAAmB,iBAAiB,EACzD,CAAC;EACH;EAEA,OAAO;CACT;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/utils/base64ToUint8Array.ts
|
|
3
3
|
function base64ToUint8Array(base64String) {
|
|
4
4
|
const binaryString = atob(base64String);
|
|
5
5
|
const len = binaryString.length;
|
|
@@ -7,7 +7,6 @@ function base64ToUint8Array(base64String) {
|
|
|
7
7
|
for (let i = 0; i < len; i++) bytes[i] = binaryString.charCodeAt(i);
|
|
8
8
|
return bytes;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
exports.base64ToUint8Array = base64ToUint8Array;
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=base64ToUint8Array.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Blockhash, Transaction } from "@solana/kit";
|
|
2
|
-
//#region src/utils/getTransactionLifetime.d.ts
|
|
3
2
|
export type TransactionLifetime = {
|
|
4
3
|
kind: "blockhash";
|
|
5
4
|
blockhash: Blockhash;
|
|
@@ -15,6 +14,4 @@ export type TransactionLifetime = {
|
|
|
15
14
|
* Never throws: anything undecodable yields `unknown`, degrading confirmation
|
|
16
15
|
* to the wall-clock ceiling rather than aborting the send.
|
|
17
16
|
*/
|
|
18
|
-
export declare function getTransactionLifetime(transaction: Transaction): Promise<TransactionLifetime>;
|
|
19
|
-
//#endregion
|
|
20
|
-
//# sourceMappingURL=getTransactionLifetime.d.ts.map
|
|
17
|
+
export declare function getTransactionLifetime(transaction: Transaction): Promise<TransactionLifetime>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _solana_kit = require("@solana/kit");
|
|
3
|
-
|
|
3
|
+
// src/utils/getTransactionLifetime.ts
|
|
4
4
|
const decoder = (0, _solana_kit.getCompiledTransactionMessageDecoder)();
|
|
5
5
|
/**
|
|
6
6
|
* Decoding yields `{ messageBytes, signatures }` alone, so the lifetime is
|
|
@@ -22,7 +22,6 @@ async function getTransactionLifetime(transaction) {
|
|
|
22
22
|
return { kind: "unknown" };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
exports.getTransactionLifetime = getTransactionLifetime;
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=getTransactionLifetime.js.map
|
|
@@ -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
|
-
//#region src/utils/getWalletFeature.d.ts
|
|
4
3
|
type FeatureMap = {
|
|
5
4
|
[SolanaSignTransaction]: SolanaSignTransactionFeature[typeof SolanaSignTransaction];
|
|
6
5
|
[SolanaSignMessage]: SolanaSignMessageFeature[typeof SolanaSignMessage];
|
|
@@ -24,6 +23,4 @@ type FeatureMap = {
|
|
|
24
23
|
* const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction)
|
|
25
24
|
*/
|
|
26
25
|
export declare function getWalletFeature<K extends keyof FeatureMap>(wallet: Wallet, featureName: K): FeatureMap[K];
|
|
27
|
-
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=getWalletFeature.d.ts.map
|
|
26
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/utils/getWalletFeature.ts
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to safely extract a feature's properties from a wallet.
|
|
5
5
|
*
|
|
@@ -20,7 +20,6 @@ function getWalletFeature(wallet, featureName) {
|
|
|
20
20
|
if (!(featureName in wallet.features)) throw new Error(`Wallet does not support feature: ${featureName}`);
|
|
21
21
|
return wallet.features[featureName];
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
exports.getWalletFeature = getWalletFeature;
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=getWalletFeature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletFeature.js","names":[],"sources":["../../../src/utils/getWalletFeature.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"getWalletFeature.js","names":[],"sources":["../../../src/utils/getWalletFeature.ts"],"sourcesContent":["// oxlint-disable-next-line typescript/consistent-type-imports -- the constants are computed keys in the FeatureMap type\nimport {\n SolanaSignAndSendTransaction,\n type SolanaSignAndSendTransactionFeature,\n SolanaSignIn,\n type SolanaSignInFeature,\n SolanaSignMessage,\n type SolanaSignMessageFeature,\n SolanaSignTransaction,\n type SolanaSignTransactionFeature,\n} from '@solana/wallet-standard-features'\nimport type { Wallet } from '@wallet-standard/base'\n\n// Map feature identifiers to their corresponding feature property types\ntype FeatureMap = {\n [SolanaSignTransaction]: SolanaSignTransactionFeature[typeof SolanaSignTransaction]\n [SolanaSignMessage]: SolanaSignMessageFeature[typeof SolanaSignMessage]\n [SolanaSignAndSendTransaction]: SolanaSignAndSendTransactionFeature[typeof SolanaSignAndSendTransaction]\n [SolanaSignIn]: SolanaSignInFeature[typeof SolanaSignIn]\n}\n\n/**\n * Helper function to safely extract a feature's properties from a wallet.\n *\n * This handles the TypeScript union type issue where wallet.features is typed as a union\n * but at runtime is actually a record containing multiple features.\n *\n * @param wallet - The wallet instance\n * @param featureName - The feature identifier constant\n * @returns The feature's properties object\n * @throws Error if the wallet doesn't support the requested feature\n *\n * @example\n * import { SolanaSignTransaction } from '@solana/wallet-standard-features'\n *\n * const { signTransaction } = getWalletFeature(wallet, SolanaSignTransaction)\n */\nexport function getWalletFeature<K extends keyof FeatureMap>(\n wallet: Wallet,\n featureName: K\n): FeatureMap[K] {\n if (!(featureName in wallet.features)) {\n throw new Error(`Wallet does not support feature: ${featureName}`)\n }\n\n // At runtime, wallet.features is a record keyed by feature identifiers\n // Cast to access the specific feature\n return (wallet.features as Record<K, FeatureMap[K]>)[featureName]\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqCA,SAAgB,iBACd,QACA,aACe;CACf,IAAI,EAAE,eAAe,OAAO,WAC1B,MAAM,IAAI,MAAM,oCAAoC,aAAa;CAKnE,OAAQ,OAAO,SAAsC;AACvD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/solanaErrorCause.d.ts
|
|
2
1
|
export declare const safeStringifyBigInt: (value: unknown) => string;
|
|
3
2
|
/**
|
|
4
3
|
* Carries the structured payload of a failed Solana RPC simulation or
|
|
@@ -9,6 +8,4 @@ export declare class SolanaTransactionDetailsError extends Error {
|
|
|
9
8
|
readonly err: unknown;
|
|
10
9
|
readonly logs: readonly string[] | null;
|
|
11
10
|
constructor(err: unknown, logs?: readonly string[] | null);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=solanaErrorCause.d.ts.map
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/utils/solanaErrorCause.ts
|
|
3
3
|
const safeStringifyBigInt = (value) => JSON.stringify(value, (_, v) => typeof v === "bigint" ? v.toString() : v);
|
|
4
4
|
const formatSolanaErr = (err) => typeof err === "object" && err !== null ? safeStringifyBigInt(err) : String(err);
|
|
5
5
|
/**
|
|
@@ -17,7 +17,6 @@ var SolanaTransactionDetailsError = class extends Error {
|
|
|
17
17
|
this.logs = logs;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
exports.SolanaTransactionDetailsError = SolanaTransactionDetailsError;
|
|
22
21
|
exports.safeStringifyBigInt = safeStringifyBigInt;
|
|
23
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solanaErrorCause.js","names":[],"sources":["../../../src/utils/solanaErrorCause.ts"],"sourcesContent":["export const safeStringifyBigInt = (value: unknown): string =>\n JSON.stringify(value, (_, v) => (typeof v === 'bigint' ? v.toString() : v))\n\nconst formatSolanaErr = (err: unknown): string =>\n typeof err === 'object' && err !== null\n ? safeStringifyBigInt(err)\n : String(err)\n\n/**\n * Carries the structured payload of a failed Solana RPC simulation or\n * confirmation so consumers can inspect `err` and `logs` directly from\n * the thrown `TransactionError`'s `cause`, without re-simulating.\n */\nexport class SolanaTransactionDetailsError extends Error {\n readonly err: unknown\n readonly logs: readonly string[] | null\n\n constructor(err: unknown, logs: readonly string[] | null = null) {\n super(formatSolanaErr(err))\n this.name = 'SolanaTransactionDetailsError'\n this.err = err\n this.logs = logs\n }\n}\n"],"mappings":";;AAAA,MAAa,uBAAuB,UAClC,KAAK,UAAU,QAAQ,GAAG,MAAO,OAAO,MAAM,WAAW,EAAE,SAAS,IAAI,CAAE;AAE5E,MAAM,mBAAmB,QACvB,OAAO,QAAQ,YAAY,QAAQ,OAC/B,oBAAoB,GAAG,IACvB,OAAO,GAAG;;;;;;AAOhB,IAAa,gCAAb,cAAmD,MAAM;
|
|
1
|
+
{"version":3,"file":"solanaErrorCause.js","names":[],"sources":["../../../src/utils/solanaErrorCause.ts"],"sourcesContent":["export const safeStringifyBigInt = (value: unknown): string =>\n JSON.stringify(value, (_, v) => (typeof v === 'bigint' ? v.toString() : v))\n\nconst formatSolanaErr = (err: unknown): string =>\n typeof err === 'object' && err !== null\n ? safeStringifyBigInt(err)\n : String(err)\n\n/**\n * Carries the structured payload of a failed Solana RPC simulation or\n * confirmation so consumers can inspect `err` and `logs` directly from\n * the thrown `TransactionError`'s `cause`, without re-simulating.\n */\nexport class SolanaTransactionDetailsError extends Error {\n readonly err: unknown\n readonly logs: readonly string[] | null\n\n constructor(err: unknown, logs: readonly string[] | null = null) {\n super(formatSolanaErr(err))\n this.name = 'SolanaTransactionDetailsError'\n this.err = err\n this.logs = logs\n }\n}\n"],"mappings":";;AAAA,MAAa,uBAAuB,UAClC,KAAK,UAAU,QAAQ,GAAG,MAAO,OAAO,MAAM,WAAW,EAAE,SAAS,IAAI,CAAE;AAE5E,MAAM,mBAAmB,QACvB,OAAO,QAAQ,YAAY,QAAQ,OAC/B,oBAAoB,GAAG,IACvB,OAAO,GAAG;;;;;;AAOhB,IAAa,gCAAb,cAAmD,MAAM;CAC9C;CACA;CAET,YAAY,KAAc,OAAiC,MAAM;EAC/D,MAAM,gBAAgB,GAAG,CAAC;EAC1B,KAAK,OAAO;EACZ,KAAK,MAAM;EACX,KAAK,OAAO;CACd;AACF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Signature, Transaction } from "@solana/kit";
|
|
2
|
-
//#region src/utils/storedTransactions.d.ts
|
|
3
2
|
/** Signed transactions decoded from `action.txHex`. */
|
|
4
3
|
export type StoredTransactions = {
|
|
5
4
|
transactions: Transaction[];
|
|
@@ -31,6 +30,4 @@ export declare function isStoredBundle(txHex: string): boolean;
|
|
|
31
30
|
* values that pass these checks, so `undefined` means the stored value was
|
|
32
31
|
* damaged after it was written.
|
|
33
32
|
*/
|
|
34
|
-
export declare function decodeStoredTransactions(txHex: string): StoredTransactions | undefined;
|
|
35
|
-
//#endregion
|
|
36
|
-
//# sourceMappingURL=storedTransactions.d.ts.map
|
|
33
|
+
export declare function decodeStoredTransactions(txHex: string): StoredTransactions | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utils_base64ToUint8Array = require("./base64ToUint8Array.js");
|
|
3
3
|
let _solana_kit = require("@solana/kit");
|
|
4
|
-
|
|
4
|
+
// src/utils/storedTransactions.ts
|
|
5
5
|
/**
|
|
6
6
|
* Serializes signed wire transactions for `action.txHex`: the base64 wire
|
|
7
7
|
* transaction for a single one, a JSON array of them for a bundle.
|
|
@@ -49,7 +49,6 @@ function decodeStoredTransactions(txHex) {
|
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
exports.decodeStoredTransactions = decodeStoredTransactions;
|
|
54
53
|
exports.encodeStoredTransactions = encodeStoredTransactions;
|
|
55
54
|
exports.isStoredBundle = isStoredBundle;
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/version.ts
|
|
3
3
|
const name = "@lifi/sdk-provider-solana";
|
|
4
|
-
const version = "4.3.
|
|
5
|
-
//#endregion
|
|
4
|
+
const version = "4.3.9";
|
|
6
5
|
exports.name = name;
|
|
7
6
|
exports.version = version;
|
|
8
7
|
|
package/dist/cjs/version.js.map
CHANGED
|
@@ -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.3.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-solana'\nexport const version = '4.3.9'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SolanaProvider.d.ts","names":[],"sources":["../../src/SolanaProvider.ts"],"mappings":";wBAYgB,eACd,UAAU,wBACT"}
|
|
@@ -3,7 +3,7 @@ import { resolveSolanaAddress } from "./actions/resolveSolanaAddress.js";
|
|
|
3
3
|
import { SolanaStepExecutor } from "./core/SolanaStepExecutor.js";
|
|
4
4
|
import { ChainType, LiFiErrorCode, ProviderError } from "@lifi/sdk";
|
|
5
5
|
import { isAddress } from "@solana/kit";
|
|
6
|
-
|
|
6
|
+
// src/SolanaProvider.ts
|
|
7
7
|
function SolanaProvider(options) {
|
|
8
8
|
const _options = options ?? {};
|
|
9
9
|
return {
|
|
@@ -29,7 +29,6 @@ function SolanaProvider(options) {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { SolanaProvider };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=SolanaProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSNSAddress.ts"],"mappings":"A,qBASa,gBACX,iBACC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isAddress } from "@solana/kit";
|
|
2
|
-
|
|
2
|
+
// src/actions/getSNSAddress.ts
|
|
3
3
|
const getSNSAddress = async (name) => {
|
|
4
4
|
try {
|
|
5
5
|
if (!name.endsWith(".sol")) return;
|
|
@@ -13,7 +13,6 @@ const getSNSAddress = async (name) => {
|
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { getSNSAddress };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=getSNSAddress.js.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
|
|
2
|
-
//#region src/actions/getSolanaBalance.d.ts
|
|
3
2
|
export declare const getSolanaBalance: (client: SDKClient, walletAddress: string, tokens: Token[]) => Promise<TokenAmount[]>;
|
|
4
|
-
//#endregion
|
|
5
3
|
//# sourceMappingURL=getSolanaBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSolanaBalance.d.ts","names":[],"sources":["../../../src/actions/getSolanaBalance.ts"],"mappings":";qBAea,mBACX,QAAQ,WACR,uBACA,QAAQ,YACP,QAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { callSolanaRpcsWithRetry } from "../rpc/utils.js";
|
|
2
2
|
import { withDedupe } from "@lifi/sdk";
|
|
3
3
|
import { address } from "@solana/kit";
|
|
4
|
-
|
|
4
|
+
// src/actions/getSolanaBalance.ts
|
|
5
5
|
const SolSystemProgram = "11111111111111111111111111111111";
|
|
6
6
|
const TokenProgramId = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
7
7
|
const Token2022ProgramId = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
@@ -68,7 +68,6 @@ const getSolanaBalanceDefault = async (client, _chainId, tokens, walletAddress)
|
|
|
68
68
|
};
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
//#endregion
|
|
72
71
|
export { getSolanaBalance };
|
|
73
72
|
|
|
74
73
|
//# sourceMappingURL=getSolanaBalance.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SignatureStatus } from "../confirmation/types.js";
|
|
2
2
|
import { SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Signature } from "@solana/kit";
|
|
4
|
-
//#region src/actions/lookupSignatureStatus.d.ts
|
|
5
4
|
/** Budget of each `getSignatureStatuses` call, the status request. A hung
|
|
6
5
|
* endpoint would otherwise hold the `allSettled` below - and the wait task
|
|
7
6
|
* with it - open for good. */
|
|
@@ -62,5 +61,4 @@ export type SignatureLookup = {
|
|
|
62
61
|
* request. Never throws.
|
|
63
62
|
*/
|
|
64
63
|
export declare function lookupSignatureStatus(client: SDKClient, signature: Signature, bounds?: LookupBounds): Promise<SignatureLookup>;
|
|
65
|
-
//#endregion
|
|
66
64
|
//# sourceMappingURL=lookupSignatureStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookupSignatureStatus.d.ts","names":[],"sources":["../../../src/actions/lookupSignatureStatus.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"lookupSignatureStatus.d.ts","names":[],"sources":["../../../src/actions/lookupSignatureStatus.ts"],"mappings":";;;;;;qBAYa;;;;;qBAKA;;;qBAGA;;;;qBAIA;;qBAEA;YAED;;;EAGV;;;;;EAKA;;EAEA;;YAGU;EAGN;EAAe,QAAQ;;EAIvB;;EAGA;EAAiB;EAAmB,QAAQ;;;;;;;;;;;;;;;;;;;;;wBAgH5B,sBACpB,QAAQ,WACR,WAAW,WACX,SAAS,eACR,QAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getSolanaRpcs } from "../rpc/registry.js";
|
|
2
1
|
import { isConfirmedCommitment } from "../confirmation/types.js";
|
|
2
|
+
import { getSolanaRpcs } from "../rpc/registry.js";
|
|
3
3
|
import { isSignature } from "@solana/kit";
|
|
4
|
-
|
|
4
|
+
// src/actions/lookupSignatureStatus.ts
|
|
5
5
|
/** Budget of each `getSignatureStatuses` call, the status request. A hung
|
|
6
6
|
* endpoint would otherwise hold the `allSettled` below - and the wait task
|
|
7
7
|
* with it - open for good. */
|
|
@@ -246,7 +246,6 @@ function firstSignatureOf(blocks) {
|
|
|
246
246
|
if (canary) return canary;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
//#endregion
|
|
250
249
|
export { CANARY_CALL_TIMEOUT_MS, CANARY_SLOT_STEPS, COVERAGE_PROOF_TIMEOUT_MS, SIGNATURE_LOOKUP_TIMEOUT_MS, SLOT_DURATION_MS, lookupSignatureStatus };
|
|
251
250
|
|
|
252
251
|
//# sourceMappingURL=lookupSignatureStatus.js.map
|