@alchemy/wallet-apis 5.0.0-beta.28 → 5.0.0-beta.29

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 (171) hide show
  1. package/dist/esm/actions/prepareCalls.d.ts +8 -3
  2. package/dist/esm/actions/prepareCalls.js +8 -0
  3. package/dist/esm/actions/prepareCalls.js.map +1 -1
  4. package/dist/esm/actions/requestAccount.d.ts +4 -3
  5. package/dist/esm/actions/requestAccount.js.map +1 -1
  6. package/dist/esm/actions/sendPreparedCalls.d.ts +3 -1
  7. package/dist/esm/actions/sendPreparedCalls.js.map +1 -1
  8. package/dist/esm/actions/signPreparedCalls.js +1 -1
  9. package/dist/esm/actions/signPreparedCalls.js.map +1 -1
  10. package/dist/esm/actions/signSignatureRequest.d.ts +4 -4
  11. package/dist/esm/actions/signSignatureRequest.js +1 -1
  12. package/dist/esm/actions/signSignatureRequest.js.map +1 -1
  13. package/dist/esm/actions/signTypedData.d.ts +14 -4
  14. package/dist/esm/actions/signTypedData.js.map +1 -1
  15. package/dist/esm/actions/solana/getCallsStatus.d.ts +24 -0
  16. package/dist/esm/actions/solana/getCallsStatus.js +44 -0
  17. package/dist/esm/actions/solana/getCallsStatus.js.map +1 -0
  18. package/dist/esm/actions/solana/prepareCalls.d.ts +46 -0
  19. package/dist/esm/actions/solana/prepareCalls.js +70 -0
  20. package/dist/esm/actions/solana/prepareCalls.js.map +1 -0
  21. package/dist/esm/actions/solana/sendCalls.d.ts +34 -0
  22. package/dist/esm/actions/solana/sendCalls.js +44 -0
  23. package/dist/esm/actions/solana/sendCalls.js.map +1 -0
  24. package/dist/esm/actions/solana/sendPreparedCalls.d.ts +24 -0
  25. package/dist/esm/actions/solana/sendPreparedCalls.js +32 -0
  26. package/dist/esm/actions/solana/sendPreparedCalls.js.map +1 -0
  27. package/dist/esm/actions/solana/signPreparedCalls.d.ts +23 -0
  28. package/dist/esm/actions/solana/signPreparedCalls.js +24 -0
  29. package/dist/esm/actions/solana/signPreparedCalls.js.map +1 -0
  30. package/dist/esm/actions/solana/signSignatureRequest.d.ts +10 -0
  31. package/dist/esm/actions/solana/signSignatureRequest.js +33 -0
  32. package/dist/esm/actions/solana/signSignatureRequest.js.map +1 -0
  33. package/dist/esm/actions/solana/waitForCallsStatus.d.ts +24 -0
  34. package/dist/esm/actions/solana/waitForCallsStatus.js +46 -0
  35. package/dist/esm/actions/solana/waitForCallsStatus.js.map +1 -0
  36. package/dist/esm/adapters/SolanaSignerError.d.ts +4 -0
  37. package/dist/esm/adapters/SolanaSignerError.js +13 -0
  38. package/dist/esm/adapters/SolanaSignerError.js.map +1 -0
  39. package/dist/esm/adapters/fromKeypair.d.ts +21 -0
  40. package/dist/esm/adapters/fromKeypair.js +46 -0
  41. package/dist/esm/adapters/fromKeypair.js.map +1 -0
  42. package/dist/esm/adapters/fromKitSigner.d.ts +21 -0
  43. package/dist/esm/adapters/fromKitSigner.js +61 -0
  44. package/dist/esm/adapters/fromKitSigner.js.map +1 -0
  45. package/dist/esm/adapters/fromWalletAdapter.d.ts +26 -0
  46. package/dist/esm/adapters/fromWalletAdapter.js +45 -0
  47. package/dist/esm/adapters/fromWalletAdapter.js.map +1 -0
  48. package/dist/esm/adapters/fromWalletStandard.d.ts +31 -0
  49. package/dist/esm/adapters/fromWalletStandard.js +53 -0
  50. package/dist/esm/adapters/fromWalletStandard.js.map +1 -0
  51. package/dist/esm/adapters/resolveSignerSlot.d.ts +10 -0
  52. package/dist/esm/adapters/resolveSignerSlot.js +39 -0
  53. package/dist/esm/adapters/resolveSignerSlot.js.map +1 -0
  54. package/dist/esm/client.d.ts +29 -14
  55. package/dist/esm/client.js +63 -19
  56. package/dist/esm/client.js.map +1 -1
  57. package/dist/esm/decorators/smartWalletActions.js +2 -2
  58. package/dist/esm/decorators/smartWalletActions.js.map +1 -1
  59. package/dist/esm/decorators/solanaSmartWalletActions.d.ts +16 -0
  60. package/dist/esm/decorators/solanaSmartWalletActions.js +16 -0
  61. package/dist/esm/decorators/solanaSmartWalletActions.js.map +1 -0
  62. package/dist/esm/experimental/actions/requestQuoteV0.d.ts +34 -7
  63. package/dist/esm/experimental/actions/requestQuoteV0.js.map +1 -1
  64. package/dist/esm/exports/index.d.ts +3 -3
  65. package/dist/esm/exports/index.js.map +1 -1
  66. package/dist/esm/exports/solana.d.ts +24 -0
  67. package/dist/esm/exports/solana.js +15 -0
  68. package/dist/esm/exports/solana.js.map +1 -0
  69. package/dist/esm/types.d.ts +28 -4
  70. package/dist/esm/types.js.map +1 -1
  71. package/dist/esm/utils/assertions.d.ts +4 -2
  72. package/dist/esm/utils/assertions.js +6 -0
  73. package/dist/esm/utils/assertions.js.map +1 -1
  74. package/dist/esm/utils/capabilities.d.ts +22 -6
  75. package/dist/esm/utils/capabilities.js +19 -2
  76. package/dist/esm/utils/capabilities.js.map +1 -1
  77. package/dist/esm/utils/format.js +1 -1
  78. package/dist/esm/utils/format.js.map +1 -1
  79. package/dist/esm/utils/schema.d.ts +14 -14
  80. package/dist/esm/utils/schema.js +35 -39
  81. package/dist/esm/utils/schema.js.map +1 -1
  82. package/dist/esm/version.d.ts +1 -1
  83. package/dist/esm/version.js +1 -1
  84. package/dist/esm/version.js.map +1 -1
  85. package/dist/types/actions/prepareCalls.d.ts +8 -3
  86. package/dist/types/actions/prepareCalls.d.ts.map +1 -1
  87. package/dist/types/actions/requestAccount.d.ts +4 -3
  88. package/dist/types/actions/requestAccount.d.ts.map +1 -1
  89. package/dist/types/actions/sendPreparedCalls.d.ts +3 -1
  90. package/dist/types/actions/sendPreparedCalls.d.ts.map +1 -1
  91. package/dist/types/actions/signSignatureRequest.d.ts +4 -4
  92. package/dist/types/actions/signSignatureRequest.d.ts.map +1 -1
  93. package/dist/types/actions/signTypedData.d.ts +14 -4
  94. package/dist/types/actions/signTypedData.d.ts.map +1 -1
  95. package/dist/types/actions/solana/getCallsStatus.d.ts +25 -0
  96. package/dist/types/actions/solana/getCallsStatus.d.ts.map +1 -0
  97. package/dist/types/actions/solana/prepareCalls.d.ts +47 -0
  98. package/dist/types/actions/solana/prepareCalls.d.ts.map +1 -0
  99. package/dist/types/actions/solana/sendCalls.d.ts +35 -0
  100. package/dist/types/actions/solana/sendCalls.d.ts.map +1 -0
  101. package/dist/types/actions/solana/sendPreparedCalls.d.ts +25 -0
  102. package/dist/types/actions/solana/sendPreparedCalls.d.ts.map +1 -0
  103. package/dist/types/actions/solana/signPreparedCalls.d.ts +24 -0
  104. package/dist/types/actions/solana/signPreparedCalls.d.ts.map +1 -0
  105. package/dist/types/actions/solana/signSignatureRequest.d.ts +11 -0
  106. package/dist/types/actions/solana/signSignatureRequest.d.ts.map +1 -0
  107. package/dist/types/actions/solana/waitForCallsStatus.d.ts +25 -0
  108. package/dist/types/actions/solana/waitForCallsStatus.d.ts.map +1 -0
  109. package/dist/types/adapters/SolanaSignerError.d.ts +5 -0
  110. package/dist/types/adapters/SolanaSignerError.d.ts.map +1 -0
  111. package/dist/types/adapters/fromKeypair.d.ts +22 -0
  112. package/dist/types/adapters/fromKeypair.d.ts.map +1 -0
  113. package/dist/types/adapters/fromKitSigner.d.ts +22 -0
  114. package/dist/types/adapters/fromKitSigner.d.ts.map +1 -0
  115. package/dist/types/adapters/fromWalletAdapter.d.ts +27 -0
  116. package/dist/types/adapters/fromWalletAdapter.d.ts.map +1 -0
  117. package/dist/types/adapters/fromWalletStandard.d.ts +32 -0
  118. package/dist/types/adapters/fromWalletStandard.d.ts.map +1 -0
  119. package/dist/types/adapters/resolveSignerSlot.d.ts +11 -0
  120. package/dist/types/adapters/resolveSignerSlot.d.ts.map +1 -0
  121. package/dist/types/client.d.ts +29 -14
  122. package/dist/types/client.d.ts.map +1 -1
  123. package/dist/types/decorators/solanaSmartWalletActions.d.ts +17 -0
  124. package/dist/types/decorators/solanaSmartWalletActions.d.ts.map +1 -0
  125. package/dist/types/experimental/actions/requestQuoteV0.d.ts +34 -7
  126. package/dist/types/experimental/actions/requestQuoteV0.d.ts.map +1 -1
  127. package/dist/types/exports/index.d.ts +3 -3
  128. package/dist/types/exports/index.d.ts.map +1 -1
  129. package/dist/types/exports/solana.d.ts +25 -0
  130. package/dist/types/exports/solana.d.ts.map +1 -0
  131. package/dist/types/types.d.ts +28 -4
  132. package/dist/types/types.d.ts.map +1 -1
  133. package/dist/types/utils/assertions.d.ts +4 -2
  134. package/dist/types/utils/assertions.d.ts.map +1 -1
  135. package/dist/types/utils/capabilities.d.ts +22 -6
  136. package/dist/types/utils/capabilities.d.ts.map +1 -1
  137. package/dist/types/utils/schema.d.ts +14 -14
  138. package/dist/types/utils/schema.d.ts.map +1 -1
  139. package/dist/types/version.d.ts +1 -1
  140. package/package.json +26 -9
  141. package/src/actions/prepareCalls.ts +21 -3
  142. package/src/actions/requestAccount.ts +7 -5
  143. package/src/actions/sendPreparedCalls.ts +4 -1
  144. package/src/actions/signPreparedCalls.ts +1 -1
  145. package/src/actions/signSignatureRequest.ts +8 -8
  146. package/src/actions/signTypedData.ts +15 -12
  147. package/src/actions/solana/getCallsStatus.ts +79 -0
  148. package/src/actions/solana/prepareCalls.ts +120 -0
  149. package/src/actions/solana/sendCalls.ts +66 -0
  150. package/src/actions/solana/sendPreparedCalls.ts +65 -0
  151. package/src/actions/solana/signPreparedCalls.ts +50 -0
  152. package/src/actions/solana/signSignatureRequest.ts +63 -0
  153. package/src/actions/solana/waitForCallsStatus.ts +84 -0
  154. package/src/adapters/SolanaSignerError.ts +5 -0
  155. package/src/adapters/fromKeypair.ts +58 -0
  156. package/src/adapters/fromKitSigner.ts +82 -0
  157. package/src/adapters/fromWalletAdapter.ts +58 -0
  158. package/src/adapters/fromWalletStandard.ts +100 -0
  159. package/src/adapters/resolveSignerSlot.ts +46 -0
  160. package/src/client.ts +131 -18
  161. package/src/decorators/smartWalletActions.ts +2 -2
  162. package/src/decorators/solanaSmartWalletActions.ts +62 -0
  163. package/src/experimental/actions/requestQuoteV0.ts +26 -11
  164. package/src/exports/index.ts +8 -4
  165. package/src/exports/solana.ts +36 -0
  166. package/src/types.ts +38 -7
  167. package/src/utils/assertions.ts +17 -2
  168. package/src/utils/capabilities.ts +40 -8
  169. package/src/utils/format.ts +1 -1
  170. package/src/utils/schema.ts +58 -69
  171. package/src/version.ts +1 -1
@@ -1,9 +1,9 @@
1
1
  import { type Hex, type Prettify } from "viem";
2
- import { type PersonalSignSignatureRequest, type TypedDataSignatureRequest, type AuthorizationSignatureRequest, Eip7702UnsignedAuth } from "@alchemy/wallet-api-types";
2
+ import { PersonalSignSignatureRequest, TypedDataSignatureRequest, AuthorizationSignatureRequest, Eip7702UnsignedAuth } from "@alchemy/wallet-api-types";
3
3
  import type { InnerWalletApiClient, WithoutRawPayload } from "../types";
4
- import type { StaticDecode } from "typebox";
5
- export type SignSignatureRequestParams = Prettify<WithoutRawPayload<PersonalSignSignatureRequest | TypedDataSignatureRequest | (AuthorizationSignatureRequest & {
6
- data: StaticDecode<typeof Eip7702UnsignedAuth>;
4
+ import type { z } from "zod";
5
+ export type SignSignatureRequestParams = Prettify<WithoutRawPayload<z.output<typeof PersonalSignSignatureRequest> | z.output<typeof TypedDataSignatureRequest> | (z.output<typeof AuthorizationSignatureRequest> & {
6
+ data: z.output<typeof Eip7702UnsignedAuth>;
7
7
  })>>;
8
8
  export type SignSignatureRequestResult = {
9
9
  type: "secp256k1";
@@ -1 +1 @@
1
- {"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../src/actions/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,QAAQ,EAAsB,MAAM,MAAM,CAAC;AACnE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,oBAAoB,EAEpB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAOlB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;A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C;IAClB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAQrC"}
@@ -1,10 +1,20 @@
1
- import { type Hex, type Prettify, type TypedData, type TypedDataDefinition } from "viem";
1
+ import { type Address as ViemAddress, type Hex, type TypedData } from "viem";
2
2
  import type { InnerWalletApiClient } from "../types.ts";
3
3
  import { type AccountParam } from "../utils/resolve.js";
4
- export type SignTypedDataParams = Prettify<TypedDataDefinition<TypedData | Record<string, unknown>> & {
4
+ export type SignTypedDataParams = {
5
+ domain?: {
6
+ name?: string;
7
+ version?: string;
8
+ chainId?: number | bigint;
9
+ verifyingContract?: ViemAddress;
10
+ salt?: Hex;
11
+ };
12
+ types: TypedData | Record<string, unknown>;
13
+ primaryType: string;
14
+ message: Record<string, unknown>;
5
15
  account?: AccountParam;
6
- }>;
7
- export type SignTypedDataResult = Prettify<Hex>;
16
+ };
17
+ export type SignTypedDataResult = Hex;
8
18
  /**
9
19
  * Signs typed data (EIP-712) using the smart account.
10
20
  * This method requests the account associated with the signer and uses it to sign the typed data.
@@ -1 +1 @@
1
- {"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../src/actions/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAMxD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CACxC,mBAAmB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG;IAC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,OAAO,CAAC,mBAAmB,CAAC,CA4B9B"}
@@ -0,0 +1,25 @@
1
+ import type { Hex } from "viem";
2
+ import type { InnerSolanaWalletApiClient } from "../../types.js";
3
+ import { wallet_getCallsStatus as MethodSchema } from "@alchemy/wallet-api-types/rpc";
4
+ import { type MethodResponse } from "../../utils/schema.js";
5
+ type GetCallsStatusResponse = MethodResponse<typeof MethodSchema>;
6
+ type SolanaGetCallsStatusResponse = Extract<GetCallsStatusResponse, {
7
+ chainId: `solana:${string}`;
8
+ }>;
9
+ export type SolanaGetCallsStatusParams = {
10
+ id: Hex;
11
+ };
12
+ export type SolanaGetCallsStatusResult = Omit<SolanaGetCallsStatusResponse, "status"> & {
13
+ status: "pending" | "success" | "failure";
14
+ statusCode: number;
15
+ };
16
+ /**
17
+ * Gets the status of a Solana call bundle.
18
+ *
19
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet API client
20
+ * @param {SolanaGetCallsStatusParams} params - The call ID to check
21
+ * @returns {Promise<SolanaGetCallsStatusResult>} The status of the call
22
+ */
23
+ export declare function getCallsStatus(client: InnerSolanaWalletApiClient, params: SolanaGetCallsStatusParams): Promise<SolanaGetCallsStatusResult>;
24
+ export {};
25
+ //# sourceMappingURL=getCallsStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAG/B,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAElE,KAAK,4BAA4B,GAAG,OAAO,CACzC,sBAAsB,EACtB;IAAE,OAAO,EAAE,UAAU,MAAM,EAAE,CAAA;CAAE,CAChC,CAAC;AAWF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,GAAG,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,4BAA4B,EAC5B,QAAQ,CACT,GAAG;IACF,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CA4BrC"}
@@ -0,0 +1,47 @@
1
+ import type { Prettify } from "viem";
2
+ import type { DistributiveOmit, InnerSolanaWalletApiClient } from "../../types.js";
3
+ import type { SolanaChainId } from "@alchemy/wallet-api-types";
4
+ import { SolanaPrepareCallsParams as SolanaPrepareCallsSchema } from "@alchemy/wallet-api-types";
5
+ import { wallet_prepareCalls as MethodSchema } from "@alchemy/wallet-api-types/rpc";
6
+ import type { z } from "zod";
7
+ import { type WithCapabilities } from "../../utils/capabilities.js";
8
+ import { type MethodResponse } from "../../utils/schema.js";
9
+ type PrepareCallsResponse = MethodResponse<typeof MethodSchema>;
10
+ type BaseSolanaPrepareCallsParams = z.output<typeof SolanaPrepareCallsSchema>;
11
+ export type SolanaPrepareCallsParams = Prettify<WithCapabilities<DistributiveOmit<BaseSolanaPrepareCallsParams, "from" | "chainId"> & {
12
+ account?: string;
13
+ chainId?: SolanaChainId;
14
+ }>>;
15
+ type SolanaPrepareCallsResponse = Extract<PrepareCallsResponse, {
16
+ type: "solana-transaction-v0";
17
+ }>;
18
+ export type SolanaPrepareCallsResult = SolanaPrepareCallsResponse;
19
+ /**
20
+ * Prepares Solana instructions for execution by building a versioned transaction.
21
+ * Returns the compiled transaction and a signature request that needs to be signed
22
+ * before submitting to sendPreparedCalls.
23
+ *
24
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet API client
25
+ * @param {SolanaPrepareCallsParams} params - Parameters for preparing Solana calls
26
+ * @param {Array<{programId: string, accounts?: Array, data: Hex}>} params.calls - Array of Solana instructions
27
+ * @param {string} [params.account] - The Solana address to execute from. Defaults to the signer's address.
28
+ * @param {SolanaChainId} [params.chainId] - The Solana chain ID. Defaults to the client's chain.
29
+ * @param {object} [params.capabilities] - Optional capabilities (e.g. paymaster sponsorship)
30
+ * @returns {Promise<SolanaPrepareCallsResult>} The prepared Solana transaction with signature request
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const result = await client.prepareCalls({
35
+ * calls: [{
36
+ * programId: "11111111111111111111111111111111",
37
+ * data: "0x...",
38
+ * }],
39
+ * capabilities: {
40
+ * paymaster: { policyId: "your-policy-id" }
41
+ * }
42
+ * });
43
+ * ```
44
+ */
45
+ export declare function prepareCalls(client: InnerSolanaWalletApiClient, params: SolanaPrepareCallsParams): Promise<SolanaPrepareCallsResult>;
46
+ export {};
47
+ //# sourceMappingURL=prepareCalls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/prepareCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EACV,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,wBAAwB,IAAI,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAG/B,KAAK,oBAAoB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEhE,KAAK,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE9E,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAC7C,gBAAgB,CACd,gBAAgB,CAAC,4BAA4B,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CACF,CACF,CAAC;AAEF,KAAK,0BAA0B,GAAG,OAAO,CACvC,oBAAoB,EACpB;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAClC,CAAC;AAQF,MAAM,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,wBAAwB,CAAC,CAwCnC"}
@@ -0,0 +1,35 @@
1
+ import type { Prettify } from "viem";
2
+ import type { DistributiveOmit, InnerSolanaWalletApiClient } from "../../types.js";
3
+ import type { SolanaChainId } from "@alchemy/wallet-api-types";
4
+ import { type SolanaPrepareCallsParams } from "./prepareCalls.js";
5
+ import { type SolanaSendPreparedCallsResult } from "./sendPreparedCalls.js";
6
+ export type SolanaSendCallsParams = Prettify<DistributiveOmit<SolanaPrepareCallsParams, "chainId"> & {
7
+ chainId?: SolanaChainId;
8
+ }>;
9
+ export type SolanaSendCallsResult = Prettify<SolanaSendPreparedCallsResult>;
10
+ /**
11
+ * Prepares, signs, and submits Solana instructions in a single call.
12
+ * Internally calls `prepareCalls`, `signPreparedCalls`, and `sendPreparedCalls`.
13
+ *
14
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet API client
15
+ * @param {SolanaSendCallsParams} params - Parameters for sending Solana calls
16
+ * @param {Array<{programId: string, accounts?: Array, data: Hex}>} params.calls - Array of Solana instructions
17
+ * @param {string} [params.account] - The Solana address to execute from. Defaults to the signer's address.
18
+ * @param {object} [params.capabilities] - Optional capabilities (e.g. paymaster sponsorship)
19
+ * @returns {Promise<SolanaSendCallsResult>} The result containing the call ID
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const result = await client.sendCalls({
24
+ * calls: [{
25
+ * programId: "11111111111111111111111111111111",
26
+ * data: "0x...",
27
+ * }],
28
+ * capabilities: {
29
+ * paymaster: { policyId: "your-policy-id" }
30
+ * }
31
+ * });
32
+ * ```
33
+ */
34
+ export declare function sendCalls(client: InnerSolanaWalletApiClient, params: SolanaSendCallsParams): Promise<SolanaSendCallsResult>;
35
+ //# sourceMappingURL=sendCalls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendCalls.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/sendCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EACV,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAgB,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,wBAAwB,CAAC;AAGhC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAC1C,gBAAgB,CAAC,wBAAwB,EAAE,SAAS,CAAC,GAAG;IACtD,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CACF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,6BAA6B,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAgBhC"}
@@ -0,0 +1,25 @@
1
+ import type { Prettify } from "viem";
2
+ import type { InnerSolanaWalletApiClient } from "../../types.js";
3
+ import { PreparedCall_SolanaV0_Signed as PreparedCall_SolanaV0_SignedSchema } from "@alchemy/wallet-api-types";
4
+ import type { z } from "zod";
5
+ import { wallet_sendPreparedCalls as MethodSchema } from "@alchemy/wallet-api-types/rpc";
6
+ import { type MethodResponse } from "../../utils/schema.js";
7
+ type SendPreparedCallsResponse = MethodResponse<typeof MethodSchema>;
8
+ export type SolanaSendPreparedCallsParams = Prettify<z.output<typeof PreparedCall_SolanaV0_SignedSchema>>;
9
+ type SolanaSendPreparedCallsResponse = Extract<SendPreparedCallsResponse, {
10
+ details: {
11
+ type: "solana-transaction-v0";
12
+ };
13
+ }>;
14
+ export type SolanaSendPreparedCallsResult = SolanaSendPreparedCallsResponse;
15
+ /**
16
+ * Sends a signed Solana transaction.
17
+ * This method is used after signing the signature request returned from prepareCalls.
18
+ *
19
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet API client
20
+ * @param {SolanaSendPreparedCallsParams} params - The signed Solana transaction
21
+ * @returns {Promise<SolanaSendPreparedCallsResult>} The result containing the call ID
22
+ */
23
+ export declare function sendPreparedCalls(client: InnerSolanaWalletApiClient, params: SolanaSendPreparedCallsParams): Promise<SolanaSendPreparedCallsResult>;
24
+ export {};
25
+ //# sourceMappingURL=sendPreparedCalls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAC/G,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,EAAE,wBAAwB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAG/B,KAAK,yBAAyB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAErE,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAClD,CAAC,CAAC,MAAM,CAAC,OAAO,kCAAkC,CAAC,CACpD,CAAC;AAEF,KAAK,+BAA+B,GAAG,OAAO,CAC5C,yBAAyB,EACzB;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,uBAAuB,CAAA;KAAE,CAAA;CAAE,CAC/C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;AAQ5E;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAmBxC"}
@@ -0,0 +1,24 @@
1
+ import type { Prettify } from "viem";
2
+ import type { InnerSolanaWalletApiClient } from "../../types.js";
3
+ import { type SolanaSignatureResult } from "./signSignatureRequest.js";
4
+ import type { SolanaPrepareCallsResult } from "./prepareCalls.js";
5
+ export type SolanaSignPreparedCallsParams = Prettify<SolanaPrepareCallsResult>;
6
+ export type SolanaSignPreparedCallsResult = Prettify<Omit<SolanaPrepareCallsResult, "signatureRequest" | "feePayment" | "details"> & {
7
+ signature: SolanaSignatureResult;
8
+ }>;
9
+ /**
10
+ * Signs a prepared Solana transaction using the client's Ed25519 signer.
11
+ *
12
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet client
13
+ * @param {SolanaSignPreparedCallsParams} params - The prepared Solana transaction with signature request
14
+ * @returns {Promise<SolanaSignPreparedCallsResult>} The signed Solana transaction
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const prepared = await client.prepareCalls({ ... });
19
+ * const signed = await client.signPreparedCalls(prepared);
20
+ * const result = await client.sendPreparedCalls(signed);
21
+ * ```
22
+ */
23
+ export declare function signPreparedCalls(client: InnerSolanaWalletApiClient, params: SolanaSignPreparedCallsParams): Promise<SolanaSignPreparedCallsResult>;
24
+ //# sourceMappingURL=signPreparedCalls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/signPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAGlE,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAE/E,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAClD,IAAI,CACF,wBAAwB,EACxB,kBAAkB,GAAG,YAAY,GAAG,SAAS,CAC9C,GAAG;IACF,SAAS,EAAE,qBAAqB,CAAC;CAClC,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAYxC"}
@@ -0,0 +1,11 @@
1
+ import type { SolanaSigner } from "../../types.js";
2
+ export type SolanaSignatureRequestParams = {
3
+ type: "solana_signTransaction";
4
+ data: `0x${string}`;
5
+ };
6
+ export type SolanaSignatureResult = {
7
+ type: "ed25519";
8
+ data: string;
9
+ };
10
+ export declare function signSolanaSignatureRequest(signer: SolanaSigner, signatureRequest: SolanaSignatureRequestParams): Promise<SolanaSignatureResult>;
11
+ //# sourceMappingURL=signSignatureRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,YAAY,EACpB,gBAAgB,EAAE,4BAA4B,GAC7C,OAAO,CAAC,qBAAqB,CAAC,CA0ChC"}
@@ -0,0 +1,25 @@
1
+ import type { InnerSolanaWalletApiClient } from "../../types.js";
2
+ import { type SolanaGetCallsStatusResult } from "./getCallsStatus.js";
3
+ export type SolanaWaitForCallsStatusParams = {
4
+ id: `0x${string}`;
5
+ pollingInterval?: number;
6
+ retryCount?: number;
7
+ retryDelay?: (opts: {
8
+ count: number;
9
+ }) => number;
10
+ status?: (result: SolanaGetCallsStatusResult) => boolean;
11
+ throwOnFailure?: boolean;
12
+ timeout?: number;
13
+ };
14
+ export type SolanaWaitForCallsStatusResult = SolanaGetCallsStatusResult;
15
+ /**
16
+ * Polls getCallsStatus until the call reaches a terminal state.
17
+ * Similar API to viem's waitForCallsStatus with retry, exponential backoff,
18
+ * configurable status predicate, throwOnFailure, and timeout.
19
+ *
20
+ * @param {InnerSolanaWalletApiClient} client - The Solana wallet API client
21
+ * @param {SolanaWaitForCallsStatusParams} params - The call ID and optional polling config
22
+ * @returns {Promise<SolanaWaitForCallsStatusResult>} The final status
23
+ */
24
+ export declare function waitForCallsStatus(client: InnerSolanaWalletApiClient, params: SolanaWaitForCallsStatusParams): Promise<SolanaWaitForCallsStatusResult>;
25
+ //# sourceMappingURL=waitForCallsStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/actions/solana/waitForCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACjD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,OAAO,CAAC;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AAExE;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,8BAA8B,GACrC,OAAO,CAAC,8BAA8B,CAAC,CAmDzC"}
@@ -0,0 +1,5 @@
1
+ import { BaseError } from "@alchemy/common";
2
+ export declare class SolanaSignerError extends BaseError {
3
+ name: string;
4
+ }
5
+ //# sourceMappingURL=SolanaSignerError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolanaSignerError.d.ts","sourceRoot":"","sources":["../../../src/adapters/SolanaSignerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,qBAAa,iBAAkB,SAAQ,SAAS;IACrC,IAAI,SAAuB;CACrC"}
@@ -0,0 +1,22 @@
1
+ import type { SolanaSigner } from "../types.js";
2
+ /** Raw Ed25519 keypair signer (e.g. `Keypair` from `@solana/web3.js` v1 or a bare Ed25519 key). */
3
+ export interface SolanaKeypairSigner {
4
+ address: string;
5
+ signMessage(message: Uint8Array): Promise<Uint8Array>;
6
+ }
7
+ /**
8
+ * Adapts a raw Ed25519 keypair signer into a {@link SolanaSigner}.
9
+ *
10
+ * Use this for legacy `@solana/web3.js` v1 `Keypair` signers or any signer
11
+ * that exposes a `signMessage(bytes) => signature` interface. For
12
+ * `@solana/kit` signers, use {@link fromKitSigner}. For browser wallets
13
+ * (wallet adapter, Phantom, etc.), use {@link fromWalletAdapter}. For
14
+ * wallet-standard wallets, use {@link fromWalletStandard}.
15
+ *
16
+ * Requires `@solana/kit` or `@solana/web3.js` as a peer dependency.
17
+ *
18
+ * @param {SolanaKeypairSigner} signer - The raw Ed25519 keypair signer to adapt
19
+ * @returns {SolanaSigner} A SolanaSigner compatible with `createSmartWalletClient`
20
+ */
21
+ export declare function fromKeypair(signer: SolanaKeypairSigner): SolanaSigner;
22
+ //# sourceMappingURL=fromKeypair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromKeypair.d.ts","sourceRoot":"","sources":["../../../src/adapters/fromKeypair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,mGAAmG;AACnG,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACvD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,YAAY,CAiCrE"}
@@ -0,0 +1,22 @@
1
+ import type { SolanaSigner } from "../types.js";
2
+ /** Any {@link https://solanakit.com @solana/kit} signer that implements `signTransactions` (e.g. `TransactionPartialSigner`, `KeyPairSigner`). */
3
+ export interface SolanaTransactionPartialSigner {
4
+ address: string;
5
+ signTransactions(transactions: readonly unknown[]): Promise<readonly Record<string, Uint8Array>[]>;
6
+ }
7
+ /**
8
+ * Adapts an {@link https://solanakit.com @solana/kit} signer into a {@link SolanaSigner}.
9
+ *
10
+ * Accepts any signer that implements `signTransactions`, including
11
+ * `KeyPairSigner`, `TransactionPartialSigner`, and `NoopSigner`. For raw
12
+ * Ed25519 keypairs, use {@link fromKeypair}. For browser wallets (wallet
13
+ * adapter, Phantom, etc.), use {@link fromWalletAdapter}. For
14
+ * wallet-standard wallets, use {@link fromWalletStandard}.
15
+ *
16
+ * Requires `@solana/kit` as a peer dependency.
17
+ *
18
+ * @param {SolanaTransactionPartialSigner} signer - The @solana/kit signer to adapt
19
+ * @returns {SolanaSigner} A SolanaSigner compatible with `createSmartWalletClient`
20
+ */
21
+ export declare function fromKitSigner(signer: SolanaTransactionPartialSigner): SolanaSigner;
22
+ //# sourceMappingURL=fromKitSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromKitSigner.d.ts","sourceRoot":"","sources":["../../../src/adapters/fromKitSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,kJAAkJ;AAClJ,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CACd,YAAY,EAAE,SAAS,OAAO,EAAE,GAC/B,OAAO,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;CACnD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,8BAA8B,GACrC,YAAY,CAqDd"}
@@ -0,0 +1,27 @@
1
+ import type { SolanaSigner } from "../types.js";
2
+ import type { VersionedTransaction } from "@solana/web3.js";
3
+ /** Any signer with a `publicKey` and `signTransaction(VersionedTransaction)` method — matches `useWallet()` from `@solana/wallet-adapter-react` and injected wallet providers like `window.phantom.solana`. */
4
+ export interface WalletAdapterSigner {
5
+ publicKey: {
6
+ toBase58(): string;
7
+ };
8
+ signTransaction: <T extends VersionedTransaction>(transaction: T) => Promise<T>;
9
+ }
10
+ /**
11
+ * Adapts a wallet that signs `VersionedTransaction` objects into a {@link SolanaSigner}.
12
+ *
13
+ * Works with `useWallet()` from `@solana/wallet-adapter-react` and injected
14
+ * browser wallet providers (e.g. `window.phantom.solana`). Handles the
15
+ * `Uint8Array` ↔ `VersionedTransaction` conversion internally.
16
+ *
17
+ * For `@solana/kit` signers, use {@link fromKitSigner}. For raw Ed25519
18
+ * keypairs, use {@link fromKeypair}. For wallet-standard wallets, use
19
+ * {@link fromWalletStandard}.
20
+ *
21
+ * Requires `@solana/web3.js` as a peer dependency.
22
+ *
23
+ * @param {WalletAdapterSigner} signer - The wallet adapter signer
24
+ * @returns {SolanaSigner} A SolanaSigner compatible with `createSmartWalletClient`
25
+ */
26
+ export declare function fromWalletAdapter(signer: WalletAdapterSigner): SolanaSigner;
27
+ //# sourceMappingURL=fromWalletAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromWalletAdapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/fromWalletAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,+MAA+M;AAC/M,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE;QAAE,QAAQ,IAAI,MAAM,CAAA;KAAE,CAAC;IAClC,eAAe,EAAE,CAAC,CAAC,SAAS,oBAAoB,EAC9C,WAAW,EAAE,CAAC,KACX,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,GAAG,YAAY,CA6B3E"}
@@ -0,0 +1,32 @@
1
+ import type { SolanaSigner } from "../types.js";
2
+ /** Minimal structural shape of a wallet-standard account. */
3
+ export interface WalletStandardAccount {
4
+ address: string;
5
+ publicKey?: Uint8Array;
6
+ chains?: readonly string[];
7
+ features?: readonly string[];
8
+ [key: string]: unknown;
9
+ }
10
+ /** Minimal structural shape of a wallet-standard wallet. */
11
+ export interface WalletStandardWallet {
12
+ features: {
13
+ readonly [name: string]: unknown;
14
+ };
15
+ }
16
+ /**
17
+ * Adapts a Wallet Standard wallet into a {@link SolanaSigner}.
18
+ *
19
+ * Works with any wallet that implements the `solana:signTransaction` feature
20
+ * from the Wallet Standard spec (Phantom, Solflare, etc.). No peer dependency
21
+ * required — the interface uses `Uint8Array` directly.
22
+ *
23
+ * For `@solana/wallet-adapter-react` wallets, use {@link fromWalletAdapter}.
24
+ * For `@solana/kit` signers, use {@link fromKitSigner}. For raw Ed25519
25
+ * keypairs, use {@link fromKeypair}.
26
+ *
27
+ * @param {WalletStandardWallet} wallet - The wallet-standard wallet object
28
+ * @param {WalletStandardAccount} account - The account to sign with
29
+ * @returns {SolanaSigner} A SolanaSigner compatible with `createSmartWalletClient`
30
+ */
31
+ export declare function fromWalletStandard(wallet: WalletStandardWallet, account: WalletStandardAccount): SolanaSigner;
32
+ //# sourceMappingURL=fromWalletStandard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromWalletStandard.d.ts","sourceRoot":"","sources":["../../../src/adapters/fromWalletStandard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,6DAA6D;AAC7D,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE;QAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CAChD;AAuBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,qBAAqB,GAC7B,YAAY,CAyCd"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Finds the signature slot index for `signerAddress` by decoding the
3
+ * transaction message and looking up the address in the account keys.
4
+ * Tries `@solana/kit` first, falls back to `@solana/web3.js`.
5
+ *
6
+ * @param {Uint8Array} transaction - The serialized Solana transaction bytes
7
+ * @param {string} signerAddress - The base58-encoded address of the signer
8
+ * @returns {Promise<number>} The slot index, or -1 if the address is not a required signer
9
+ */
10
+ export declare function findSignerSlot(transaction: Uint8Array, signerAddress: string): Promise<number>;
11
+ //# sourceMappingURL=resolveSignerSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveSignerSlot.d.ts","sourceRoot":"","sources":["../../../src/adapters/resolveSignerSlot.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,UAAU,EACvB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CA+BjB"}
@@ -1,7 +1,9 @@
1
1
  import { type Address, type Chain } from "viem";
2
- import type { SmartWalletClient, SmartWalletSigner } from "./types.js";
2
+ import type { SmartWalletClient, SmartWalletSigner, SolanaSmartWalletClient, SolanaSigner, SolanaChainDef } from "./types.js";
3
3
  import type { AlchemyWalletTransport } from "./transport.js";
4
- export type CreateSmartWalletClientParams = {
4
+ import type { SolanaChainId } from "@alchemy/wallet-api-types";
5
+ export declare const SOLANA_CHAINS: Record<SolanaChainId, SolanaChainDef>;
6
+ export type CreateEvmSmartWalletClientParams = {
5
7
  signer: SmartWalletSigner;
6
8
  transport: AlchemyWalletTransport;
7
9
  chain: Chain;
@@ -11,20 +13,33 @@ export type CreateSmartWalletClientParams = {
11
13
  policyIds?: string[];
12
14
  };
13
15
  };
16
+ export type CreateSolanaSmartWalletClientParams = {
17
+ signer: SolanaSigner;
18
+ transport: AlchemyWalletTransport;
19
+ chain: SolanaChainId;
20
+ account?: string;
21
+ paymaster?: {
22
+ policyId: string;
23
+ };
24
+ };
25
+ /** Either {@link CreateEvmSmartWalletClientParams} or {@link CreateSolanaSmartWalletClientParams}. */
26
+ export type CreateSmartWalletClientParams = CreateEvmSmartWalletClientParams | CreateSolanaSmartWalletClientParams;
27
+ /**
28
+ * Creates a smart wallet client for EVM chains with actions for preparing,
29
+ * signing, and sending user operations.
30
+ *
31
+ * @param {CreateEvmSmartWalletClientParams} params - EVM client configuration
32
+ * @returns {SmartWalletClient} An EVM smart wallet client with smart wallet actions
33
+ */
34
+ export declare function createSmartWalletClient(params: CreateEvmSmartWalletClientParams): SmartWalletClient;
14
35
  /**
15
- * Creates a smart wallet client with wallet API actions.
36
+ * Creates a smart wallet client for Solana chains with actions for preparing,
37
+ * signing, and sending transactions.
16
38
  *
17
- * By default, the client uses EIP-7702 with the signer's address, allowing you to call
18
- * `prepareCalls` or `sendCalls` directly without first calling `requestAccount`.
19
- * Use `requestAccount` only if you need a non-7702 smart account.
39
+ * Solana-specific adapters are in `@alchemy/wallet-apis/solana`.
20
40
  *
21
- * @param {CreateSmartWalletClientParams} params - Parameters for creating the smart wallet client.
22
- * @param {SmartWalletSigner} params.signer - The signer to use for signing transactions.
23
- * @param {AlchemyWalletTransport} params.transport - The transport to use for RPC calls.
24
- * @param {Chain} params.chain - The blockchain network to connect to.
25
- * @param {AccountParam} [params.account] - Optional account. Can be an address string or an object with an `address` property. Defaults to the signer's address (EIP-7702).
26
- * @param {object} [params.paymaster] - Optional paymaster configuration with policy IDs.
27
- * @returns {SmartWalletClient} A wallet client extended with smart wallet actions.
41
+ * @param {CreateSolanaSmartWalletClientParams} params - Solana client configuration
42
+ * @returns {SolanaSmartWalletClient} A Solana smart wallet client with Solana smart wallet actions
28
43
  */
29
- export declare const createSmartWalletClient: ({ signer, transport, chain, account, paymaster, }: CreateSmartWalletClientParams) => SmartWalletClient;
44
+ export declare function createSmartWalletClient(params: CreateSolanaSmartWalletClientParams): SolanaSmartWalletClient;
30
45
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,GAAI,mDAMrC,6BAA6B,KAAG,iBAuBlC,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAG3E,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACf,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAwB/D,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,cAAc,CAK/D,CAAC;AAIF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,sGAAsG;AACtG,MAAM,MAAM,6BAA6B,GACrC,gCAAgC,GAChC,mCAAmC,CAAC;AAUxC;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,gCAAgC,GACvC,iBAAiB,CAAC;AACrB;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,mCAAmC,GAC1C,uBAAuB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { InnerSolanaWalletApiClient } from "../types.js";
2
+ import { type SolanaPrepareCallsParams, type SolanaPrepareCallsResult } from "../actions/solana/prepareCalls.js";
3
+ import { type SolanaSignPreparedCallsParams, type SolanaSignPreparedCallsResult } from "../actions/solana/signPreparedCalls.js";
4
+ import { type SolanaSendPreparedCallsParams, type SolanaSendPreparedCallsResult } from "../actions/solana/sendPreparedCalls.js";
5
+ import { type SolanaSendCallsParams, type SolanaSendCallsResult } from "../actions/solana/sendCalls.js";
6
+ import { type SolanaGetCallsStatusParams, type SolanaGetCallsStatusResult } from "../actions/solana/getCallsStatus.js";
7
+ import { type SolanaWaitForCallsStatusParams, type SolanaWaitForCallsStatusResult } from "../actions/solana/waitForCallsStatus.js";
8
+ export type SolanaSmartWalletActions = {
9
+ prepareCalls: (params: SolanaPrepareCallsParams) => Promise<SolanaPrepareCallsResult>;
10
+ signPreparedCalls: (params: SolanaSignPreparedCallsParams) => Promise<SolanaSignPreparedCallsResult>;
11
+ sendPreparedCalls: (params: SolanaSendPreparedCallsParams) => Promise<SolanaSendPreparedCallsResult>;
12
+ sendCalls: (params: SolanaSendCallsParams) => Promise<SolanaSendCallsResult>;
13
+ getCallsStatus: (params: SolanaGetCallsStatusParams) => Promise<SolanaGetCallsStatusResult>;
14
+ waitForCallsStatus: (params: SolanaWaitForCallsStatusParams) => Promise<SolanaWaitForCallsStatusResult>;
15
+ };
16
+ export declare const solanaSmartWalletActions: (client: InnerSolanaWalletApiClient) => SolanaSmartWalletActions;
17
+ //# sourceMappingURL=solanaSmartWalletActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solanaSmartWalletActions.d.ts","sourceRoot":"","sources":["../../../src/decorators/solanaSmartWalletActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACpC,MAAM,yCAAyC,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,CACZ,MAAM,EAAE,wBAAwB,KAC7B,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACvC,iBAAiB,EAAE,CACjB,MAAM,EAAE,6BAA6B,KAClC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,iBAAiB,EAAE,CACjB,MAAM,EAAE,6BAA6B,KAClC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,SAAS,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC7E,cAAc,EAAE,CACd,MAAM,EAAE,0BAA0B,KAC/B,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACzC,kBAAkB,EAAE,CAClB,MAAM,EAAE,8BAA8B,KACnC,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,0BAA0B,KACjC,wBAQD,CAAC"}
@@ -1,18 +1,45 @@
1
- import type { Address, Prettify } from "viem";
2
- import type { DistributiveOmit, InnerWalletApiClient } from "../../types.ts";
3
- import { type PrepareCallsCapabilities, type WithCapabilities } from "../../utils/capabilities.js";
1
+ import type { Address, Hex, Prettify } from "viem";
2
+ import type { InnerWalletApiClient } from "../../types.ts";
3
+ import { type PrepareCallsCapabilities } from "../../utils/capabilities.js";
4
4
  import { type AccountParam } from "../../utils/resolve.js";
5
5
  import { wallet_requestQuote_v0 as MethodSchema } from "@alchemy/wallet-api-types/rpc";
6
- import { type MethodParams, type MethodResponse } from "../../utils/schema.js";
7
- type BaseRequestQuoteV0Params = MethodParams<typeof MethodSchema>;
6
+ import { type MethodResponse } from "../../utils/schema.js";
8
7
  type RequestQuoteV0Response = MethodResponse<typeof MethodSchema>;
8
+ type SwapAmountParams = {
9
+ fromAmount: bigint;
10
+ minimumToAmount?: never;
11
+ } | {
12
+ fromAmount?: never;
13
+ minimumToAmount: bigint;
14
+ };
15
+ type SwapChainParams = {
16
+ toChainId?: never;
17
+ postCalls?: Array<{
18
+ to: Address;
19
+ data?: Hex;
20
+ value?: bigint;
21
+ }>;
22
+ } | {
23
+ toChainId: number;
24
+ postCalls?: never;
25
+ };
26
+ type SwapExecutionParams = {
27
+ returnRawCalls?: false;
28
+ capabilities?: PrepareCallsCapabilities;
29
+ } | {
30
+ returnRawCalls: true;
31
+ capabilities?: never;
32
+ };
9
33
  /**
10
34
  * Parameters accepted by the experimental `requestQuoteV0` action.
11
35
  */
12
- export type RequestQuoteV0Params = Prettify<WithCapabilities<DistributiveOmit<BaseRequestQuoteV0Params, "from" | "chainId"> & {
36
+ export type RequestQuoteV0Params = Prettify<{
37
+ fromToken: Address;
38
+ toToken: Address;
39
+ slippage?: bigint;
13
40
  account?: AccountParam;
14
41
  chainId?: number;
15
- }>>;
42
+ } & SwapAmountParams & SwapChainParams & SwapExecutionParams>;
16
43
  /** The modifiedRequest in client format: `account` instead of `from`, SDK capabilities. */
17
44
  type ClientModifiedRequest = Prettify<Omit<Extract<RequestQuoteV0Response, {
18
45
  type: "paymaster-permit";
@@ -1 +1 @@
1
- {"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAIL,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAIL,KAAK,YAAY,EACjB,K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O,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,gBAAgB,GAClB,eAAe,GACf,mBAAmB,CACtB,CAAC;AAEF,2FAA2F;AAC3F,KAAK,qBAAqB,GAAG,QAAQ,CACnC,IAAI,CACF,OAAO,CACL,sBAAsB,EACtB;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAC7B,CAAC,iBAAiB,CAAC,EACpB,MAAM,GAAG,cAAc,CACxB,GAAG;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,wBAAwB,CAAC;CACzC,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,OAAO,CAAC,sBAAsB,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GAC7D,CAAC,IAAI,CACH,OAAO,CAAC,sBAAsB,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,EAC7D,iBAAiB,CAClB,GAAG;IACF,eAAe,EAAE,qBAAqB,CAAC;CACxC,CAAC,CAAC;AAEP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CA6C/B"}
@@ -26,10 +26,10 @@ export type * from "../actions/signTypedData.js";
26
26
  export { signTypedData } from "../actions/signTypedData.js";
27
27
  export type * from "../actions/undelegateAccount.js";
28
28
  export { undelegateAccount } from "../actions/undelegateAccount.js";
29
- export type * from "../decorators/smartWalletActions.js";
29
+ export type { SmartWalletActions } from "../decorators/smartWalletActions.js";
30
30
  export { smartWalletActions } from "../decorators/smartWalletActions.js";
31
- export type { BaseWalletClient, SignerClient, SmartWalletClient, } from "../types.js";
32
- export type * from "../client.js";
31
+ export type { SmartWalletClient, SolanaSmartWalletClient, SolanaSigner, } from "../types.js";
32
+ export type { CreateEvmSmartWalletClientParams, CreateSolanaSmartWalletClientParams, CreateSmartWalletClientParams, } from "../client.js";
33
33
  export { createSmartWalletClient } from "../client.js";
34
34
  export type * from "../transport.js";
35
35
  export { alchemyWalletTransport } from "../transport.js";